Adds special case for origin of blob to the compatibility URL.
This commit is contained in:
parent
c2641045e6
commit
b44848b918
@ -1812,6 +1812,14 @@ PDFJS.compatibilityChecked = true;
|
|||||||
case 'javascript':
|
case 'javascript':
|
||||||
case 'mailto':
|
case 'mailto':
|
||||||
return 'null';
|
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;
|
host = this.host;
|
||||||
if (!host) {
|
if (!host) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user