| Index: lib/ui.js |
| =================================================================== |
| --- a/lib/ui.js |
| +++ b/lib/ui.js |
| @@ -1076,20 +1076,33 @@ |
| if (location && Policy.isWhitelisted(location.spec)) |
| state = "whitelisted"; |
| } |
| - |
| + |
| + let popupId = "abp-status-popup"; |
| if (icon.localName == "statusbarpanel") |
| { |
| if (Prefs.defaultstatusbaraction == 0) |
| - icon.setAttribute("popup", icon.getAttribute("context")); |
| + { |
| + icon.setAttribute("popup", popupId); |
| + icon.removeAttribute("context"); |
| + } |
| else |
| + { |
| icon.removeAttribute("popup"); |
| + icon.setAttribute("context", popupId); |
| + } |
| } |
| else |
| { |
| if (Prefs.defaulttoolbaraction == 0) |
| + { |
| icon.setAttribute("type", "menu"); |
| + icon.removeAttribute("context"); |
| + } |
| else |
| + { |
| icon.setAttribute("type", "menu-button"); |
| + icon.setAttribute("context", popupId); |
| + } |
| } |
| icon.setAttribute("abpstate", state); |