[Pkg-mozext-commits] [tabmixplus] 32/51: Catch error Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIWebNavigation.document]

David Prévot taffit at moszumanska.debian.org
Mon Feb 2 18:36:51 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 71aaa23decb91a0d198329e2ec75d8939e818c6d
Author: onemen <tabmix.onemen at gmail.com>
Date:   Tue Jan 6 23:31:49 2015 +0200

    Catch error Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIWebNavigation.document]
---
 chrome/content/links/removeBlankTab.js | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/chrome/content/links/removeBlankTab.js b/chrome/content/links/removeBlankTab.js
index 0b4dd94..9240ff3 100644
--- a/chrome/content/links/removeBlankTab.js
+++ b/chrome/content/links/removeBlankTab.js
@@ -56,7 +56,12 @@ let TabmixRemoveBlankTab = {
     if (aContext) {
       let nav = aContext.QueryInterface(Ci.nsIInterfaceRequestor)
                     .getInterface(Ci.nsIWebNavigation);
-      let doc = nav.document;
+      let doc;
+      try {
+        doc = nav.document;
+      } catch(ex) {
+        return result;
+      }
       result.win = nav.QueryInterface(Ci.nsIDocShellTreeItem)
                     .rootTreeItem
                     .QueryInterface(Ci.nsIInterfaceRequestor)

-- 
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