[Pkg-mozext-commits] [tabmixplus] 26/44: Handle null ownerDoc in content.js (Bug 1062631)

David Prévot taffit at moszumanska.debian.org
Wed Oct 15 02:10:03 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository tabmixplus.

commit 5212ccee16479b3aa49051de30307382a4c6548e
Author: onemen <tabmix.onemen at gmail.com>
Date:   Mon Oct 13 10:02:02 2014 +0300

    Handle null ownerDoc in content.js (Bug 1062631)
---
 chrome/content/content.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/chrome/content/content.js b/chrome/content/content.js
index 5319edb..2ac390e 100644
--- a/chrome/content/content.js
+++ b/chrome/content/content.js
@@ -86,7 +86,7 @@ let TabmixClickEventHandler = {
     let ownerDoc = originalTarget.ownerDocument;
 
     // let Firefox code handle click events from about pages
-    if (/^about:[certerror|blocked|neterror]/.test(ownerDoc.documentURI))
+    if (!ownerDoc || /^about:[certerror|blocked|neterror]/.test(ownerDoc.documentURI))
       return;
 
     let [href, node] = this._hrefAndLinkNodeForClickEvent(event);

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