[Pkg-mozext-commits] [adblock-plus-element-hiding-helper] 11/28: Issue 4533 - Don't rely on the default namespace to be XUL for DevTools

David Prévot taffit at moszumanska.debian.org
Fri Aug 4 21:15:15 UTC 2017


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

taffit pushed a commit to branch master
in repository adblock-plus-element-hiding-helper.

commit d792a3a5a05a16f257c430759e7757396217ee7b
Author: Wladimir Palant <trev at adblockplus.org>
Date:   Mon Oct 17 10:59:55 2016 +0200

    Issue 4533 - Don't rely on the default namespace to be XUL for DevTools
---
 lib/inspectorObserver.js | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/lib/inspectorObserver.js b/lib/inspectorObserver.js
index 0b72f5f..4358715 100644
--- a/lib/inspectorObserver.js
+++ b/lib/inspectorObserver.js
@@ -61,7 +61,10 @@ let InspectorObserver =
     }
 
     let tooltiptext = InspectorObserver.inspectorButtonTooltip;
-    let button = panelWindow.document.createElement("toolbarbutton");
+    let button = panelWindow.document.createElementNS(
+      "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul",
+      "toolbarbutton"
+    );
     button.setAttribute("id", "ehh-inspector-toolbarbutton");
     button.setAttribute("class", "devtools-toolbarbutton");
     button.setAttribute("tooltiptext", tooltiptext);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/adblock-plus-element-hiding-helper.git



More information about the Pkg-mozext-commits mailing list