mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-24 10:45:42 +00:00
Bug 1276904 - container-icon visibility should follow the selectedBrowser, r=gijs
This commit is contained in:
parent
5ec1e29d9a
commit
a63c7e4ee3
@ -4069,11 +4069,11 @@ function updateUserContextUIVisibility()
|
||||
/**
|
||||
* Updates the User Context UI indicators if the browser is in a non-default context
|
||||
*/
|
||||
function updateUserContextUIIndicator(browser)
|
||||
function updateUserContextUIIndicator()
|
||||
{
|
||||
let hbox = document.getElementById("userContext-icons");
|
||||
|
||||
let userContextId = browser.getAttribute("usercontextid");
|
||||
let userContextId = gBrowser.selectedBrowser.getAttribute("usercontextid");
|
||||
if (!userContextId) {
|
||||
hbox.hidden = true;
|
||||
return;
|
||||
|
@ -1217,7 +1217,7 @@
|
||||
this._adjustFocusAfterTabSwitch(this.mCurrentTab);
|
||||
}
|
||||
|
||||
updateUserContextUIIndicator(gBrowser.selectedBrowser);
|
||||
updateUserContextUIIndicator();
|
||||
|
||||
this.tabContainer._setPositionalAttributes();
|
||||
|
||||
@ -4328,7 +4328,12 @@
|
||||
tab.setUserContextId(data.userContextId);
|
||||
}
|
||||
|
||||
updateUserContextUIIndicator(browser);
|
||||
// We don't want to update the container icon and identifier if
|
||||
// this is not the selected browser.
|
||||
if (browser == gBrowser.selectedBrowser) {
|
||||
updateUserContextUIIndicator();
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
case "Findbar:Keypress": {
|
||||
|
Loading…
Reference in New Issue
Block a user