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 13, 2017
1 parent 995e021 commit dbf08dc
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 _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 dbf08dc

Please sign in to comment.