www

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

commit 0ab3f1d2d6d5ac01dad916e33e6fb4bf6348ac7f
parent 6802b700365c818571b1e77e9ce63ccadeee1c06
Author: Dan Stillman <dstillman@zotero.org>
Date:   Wed,  6 May 2009 07:07:47 +0000

Proper 3.5b4 fix for Zotero.File.getCharsetFromFile()


Diffstat:
Mchrome/content/zotero/xpcom/file.js | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/chrome/content/zotero/xpcom/file.js b/chrome/content/zotero/xpcom/file.js @@ -240,9 +240,6 @@ Zotero.File = new function(){ .getURLSpecFromFile(file); this.addCharsetListener(browser, function (charset, args) { - // ignore spurious about:blank loads - if(browser.contentDocument.location.href == "about:blank") return; - callback(charset, args); Zotero.Browser.deleteHiddenBrowser(browser); }, args); @@ -273,6 +270,9 @@ Zotero.File = new function(){ } var onpageshow = function(){ + // ignore spurious about:blank loads + if(browser.contentDocument.location.href == "about:blank") return; + browser.removeEventListener("pageshow", onpageshow, false); var charset = browser.contentDocument.characterSet;