зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1173768 - Force TabsInTitlebar to re-update appearance after exiting fullscreen. r=Gijs
--HG-- extra : source : ef759f9c95e6837fd8fe15389ee3b20779676fb3
This commit is contained in:
Родитель
4311ba661f
Коммит
b5cb6a7b23
|
@ -90,6 +90,12 @@ var FullScreen = {
|
|||
// This is needed if they use the context menu to quit fullscreen
|
||||
this._isPopupOpen = false;
|
||||
this.cleanup();
|
||||
// In TabsInTitlebar._update(), we cancel the appearance update on
|
||||
// resize event for exiting fullscreen, since that happens before we
|
||||
// change the UI here in the "fullscreen" event. Hence we need to
|
||||
// call it here to ensure the appearance is properly updated. See
|
||||
// TabsInTitlebar._update() and bug 1173768.
|
||||
TabsInTitlebar.updateAppearance(true);
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
@ -5066,7 +5066,15 @@ var TabsInTitlebar = {
|
|||
if (this._lastSizeMode == sizemode) {
|
||||
return;
|
||||
}
|
||||
let oldSizeMode = this._lastSizeMode;
|
||||
this._lastSizeMode = sizemode;
|
||||
// Don't update right now if we are leaving fullscreen, since the UI is
|
||||
// still changing in the consequent "fullscreen" event. Code there will
|
||||
// call this function again when everything is ready.
|
||||
// See browser-fullScreen.js: FullScreen.toggle and bug 1173768.
|
||||
if (oldSizeMode == "fullscreen") {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
for (let something in this._disallowed) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче