Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: lib/customizableUI.js

Issue 5040954746601472: Issue 186 - disabled ABP icon in tool bar re-appears after seamonkey restart (Closed)
Patch Set: Created May 6, 2014, 12:05 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/customizableUI.js
===================================================================
--- a/lib/customizableUI.js
+++ b/lib/customizableUI.js
@@ -182,7 +182,9 @@
let node = toolbox.ownerDocument.getElementById(widget.id);
let position = toolbox.getAttribute(widget.positionAttribute) || "hidden,,";
- if (node)
+
+ // In SeaMonkey BrowserToolbarPalette is located in toolbox
+ if (node && node.parentNode.id != "BrowserToolbarPalette")
Wladimir Palant 2014/05/08 13:40:21 Please check |node.parentNode.localName == "toolba
saroyanm 2014/05/08 15:13:13 Good point.
{
if (typeof widget.onAdded == "function")
widget.onAdded(node)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld