www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 9074c09cc36268619ab1ce78fcd21b3d0a1b5cfe
parent a22da78f18d3f8b455d9de934e664ad202b82071
Author: Simon Kornblith <simon@simonster.com>
Date:   Sun,  8 Apr 2012 22:38:42 -0400

Don't use document.defaultView as a security principal if it is null

Diffstat:
Mchrome/content/zotero/xpcom/translation/translate.js | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/chrome/content/zotero/xpcom/translation/translate.js b/chrome/content/zotero/xpcom/translation/translate.js @@ -1428,7 +1428,7 @@ Zotero.Translate.Web.prototype._getTranslatorsGetPotentialTranslators = function Zotero.Translate.Web.prototype._getSandboxLocation = function() { if(this._parentTranslator) { return this._parentTranslator._sandboxLocation; - } else if("defaultView" in this.document) { + } else if(this.document.defaultView) { return this.document.defaultView; } else { return this.document.location.toString();