[Pkg-mozext-commits] [tabmixplus] 07/34: [e10s] Stop using CPOWs for checking if document.documentURI is about:blank (the CPOW is in unsafe state)
David Prévot
taffit at moszumanska.debian.org
Mon Mar 9 23:28:06 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 02a75d9e7fba3cca261789ccde4a7834fb1e8c5d
Author: onemen <tabmix.onemen at gmail.com>
Date: Tue Feb 17 21:21:17 2015 +0200
[e10s] Stop using CPOWs for checking if document.documentURI is about:blank (the CPOW is in unsafe state)
---
chrome/content/tab/tab.js | 11 +++--------
1 file changed, 3 insertions(+), 8 deletions(-)
diff --git a/chrome/content/tab/tab.js b/chrome/content/tab/tab.js
index 79b0a96..ffa5a14 100644
--- a/chrome/content/tab/tab.js
+++ b/chrome/content/tab/tab.js
@@ -2571,14 +2571,9 @@ var TabmixProgressListener = {
aStateFlags & nsIWebProgressListener.STATE_IS_NETWORK) {
let uri = aRequest.QueryInterface(Ci.nsIChannel).URI.spec;
// remove blank tab that created by downloading a file.
- 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);
- } catch(ex) { }
+ let isDownLoading = Tabmix.prefs.getBoolPref("enablefiletype") &&
+ this.mTabBrowser.isBlankBrowser(aBrowser) &&
+ uri != "about:blank" && aStatus === 0;
if (isDownLoading) {
if (tab.selected)
this.mTabBrowser.previousTab(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