[Pkg-mozext-commits] [tabmixplus] 17/73: Fix changeset 16dc9be85881, about:config document don't have getSelection function

David Prévot taffit at moszumanska.debian.org
Mon May 9 02:30:51 UTC 2016


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

taffit pushed a commit to branch master
in repository tabmixplus.

commit 5865146057e4d8846950987953178e13649a0a35
Author: onemen <tabmix.onemen at gmail.com>
Date:   Tue Mar 29 00:04:03 2016 +0300

    Fix changeset 16dc9be85881, about:config document don't have getSelection function
---
 chrome/content/content.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/chrome/content/content.js b/chrome/content/content.js
index 492b3dc..43d66d5 100644
--- a/chrome/content/content.js
+++ b/chrome/content/content.js
@@ -382,7 +382,8 @@ var ContextMenuHandler = {
     }
 
     let links;
-    if (TabmixSvc.prefBranch.getBoolPref("openAllLinks")) {
+    if (TabmixSvc.prefBranch.getBoolPref("openAllLinks") &&
+        typeof content.document.getSelection == "function") {
       links = ContextMenu.getSelectedLinks(content).join("\n");
     }
 

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