Don't use document.defaultView as a security principal if it is null
This commit is contained in:
parent
a22da78f18
commit
9074c09cc3
1 changed files with 1 additions and 1 deletions
|
@ -1428,7 +1428,7 @@ Zotero.Translate.Web.prototype._getTranslatorsGetPotentialTranslators = function
|
||||||
Zotero.Translate.Web.prototype._getSandboxLocation = function() {
|
Zotero.Translate.Web.prototype._getSandboxLocation = function() {
|
||||||
if(this._parentTranslator) {
|
if(this._parentTranslator) {
|
||||||
return this._parentTranslator._sandboxLocation;
|
return this._parentTranslator._sandboxLocation;
|
||||||
} else if("defaultView" in this.document) {
|
} else if(this.document.defaultView) {
|
||||||
return this.document.defaultView;
|
return this.document.defaultView;
|
||||||
} else {
|
} else {
|
||||||
return this.document.location.toString();
|
return this.document.location.toString();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue