Skip to content

Commit

Permalink
Merge pull request mozilla#8515 from yurydelendik/bloborigin
Browse files Browse the repository at this point in the history
Adds special case for origin of blob to the compatibility URL.
  • Loading branch information
yurydelendik authored Jun 16, 2017
2 parents 3c89def + dbf08dc commit c99f0f2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/shared/compatibility.js
Original file line number Diff line number Diff line change
Expand Up @@ -1817,6 +1817,14 @@ PDFJS.compatibilityChecked = true;
case 'javascript':
case 'mailto':
return 'null';
case 'blob':
// Special case of blob: -- returns valid origin of _schemeData.
try {
return new JURL(this._schemeData).origin || 'null';
} catch (_) {
// Invalid _schemeData origin -- ignoring errors.
}
return 'null';
}
host = this.host;
if (!host) {
Expand Down

0 comments on commit c99f0f2

Please sign in to comment.