Index: lib/inspectorObserver.js |
=================================================================== |
--- a/lib/inspectorObserver.js |
+++ b/lib/inspectorObserver.js |
@@ -56,17 +56,20 @@ let InspectorObserver = |
let inspectorAddButton = panelWindow.document.getElementById("inspector-element-add-button"); |
if (inspectorAddButton && inspectorAddButton.parentNode == inspectorToolbar) |
{ |
// Firefox 48+ |
insertBefore = inspectorAddButton.nextSibling; |
} |
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", |
saroyanm
2016/10/17 12:02:09
LGTM
|
+ "toolbarbutton" |
+ ); |
button.setAttribute("id", "ehh-inspector-toolbarbutton"); |
button.setAttribute("class", "devtools-toolbarbutton"); |
button.setAttribute("tooltiptext", tooltiptext); |
button.setAttribute("tabindex", "0"); |
button.addEventListener("command", () => |
{ |
let node = panel.selection.nodeFront; |
let target = panel.target; |