[Pkg-mozext-commits] [tabmixplus] 28/51: Fix Exception "Component returned failure code: 0x80004002 (NS_NOINTERFACE) [nsIWebProgress.DOMWindow]"
David Prévot
taffit at moszumanska.debian.org
Mon Feb 2 18:36:50 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository tabmixplus.
commit 953c580320ef264921e057bc4bfc9421262723a2
Author: onemen <tabmix.onemen at gmail.com>
Date: Tue Jan 6 15:17:45 2015 +0200
Fix Exception "Component returned failure code: 0x80004002 (NS_NOINTERFACE) [nsIWebProgress.DOMWindow]"
---
chrome/content/tab/tab.js | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/chrome/content/tab/tab.js b/chrome/content/tab/tab.js
index cf21c8b..d2cc60c 100644
--- a/chrome/content/tab/tab.js
+++ b/chrome/content/tab/tab.js
@@ -2562,10 +2562,15 @@ var TabmixProgressListener = {
aStateFlags & nsIWebProgressListener.STATE_IS_NETWORK) {
let uri = aRequest.QueryInterface(Ci.nsIChannel).URI.spec;
// remove blank tab that created by downloading a file.
- if (Tabmix.prefs.getBoolPref("enablefiletype") &&
+ let isDownLoading;
+ try {
+ // nsIWebProgress.DOMWindow can throw NS_NOINTERFACE
+ isDownLoading = Tabmix.prefs.getBoolPref("enablefiletype") &&
aWebProgress.DOMWindow.document.documentURI == "about:blank" &&
uri != "about:blank" && aStatus === 0 &&
- this.mTabBrowser.isBlankTab(tab)) {
+ this.mTabBrowser.isBlankTab(tab);
+ } catch(ex) { }
+ if (isDownLoading) {
if (tab.selected)
this.mTabBrowser.previousTab(tab);
this.mTabBrowser.hideTab(tab);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/tabmixplus.git
More information about the Pkg-mozext-commits
mailing list