1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-22 16:18:08 +02:00

Merge pull request #8515 from yurydelendik/bloborigin

Adds special case for origin of blob to the compatibility URL.
This commit is contained in:
Yury Delendik 2017-06-16 11:21:45 -05:00 committed by GitHub
commit 0c93dee0de

View file

@ -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) {