Skip to content

Commit

Permalink
Adds special case for origin of blob to the compatibility URL.
Browse files Browse the repository at this point in the history
  • Loading branch information
yurydelendik committed Jun 12, 2017
1 parent c264104 commit 5a1be4a
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 @@ -1812,6 +1812,14 @@ PDFJS.compatibilityChecked = true;
case 'javascript':
case 'mailto':
return 'null';
case 'blob':
// Special case of blob: -- returns valid origin of _schemaData.
try {
return new JURL(this._schemaData).origin || 'null';
} catch (_) {
// Invalid _schemaData origin -- ignoring errors.
}
return 'null';
}
host = this.host;
if (!host) {
Expand Down

0 comments on commit 5a1be4a

Please sign in to comment.