From bb27f33b35fe93e9bd62dd96c6b64f7132208cf3 Mon Sep 17 00:00:00 2001 From: gorhill Date: Tue, 19 Jan 2016 13:30:28 -0500 Subject: [PATCH] this fixes #1257: toolbar button missing for new uBO install w/ Seamonkey 2.39 --- platform/firefox/vapi-background.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/platform/firefox/vapi-background.js b/platform/firefox/vapi-background.js index 5e02e0311..36b8f7f3d 100644 --- a/platform/firefox/vapi-background.js +++ b/platform/firefox/vapi-background.js @@ -2751,7 +2751,10 @@ vAPI.toolbarButton = { break; } - if ( document.getElementById(tbb.id) !== null ) { + // https://github.com/gorhill/uBlock/issues/763 + // We are done if our toolbar button is already installed in one of the + // toolbar. + if ( palette !== null && toolbarButton.parentElement !== palette ) { return; }