Bug 1448613 - Clean up TabsInTitlebar resize event handling. r=johannh

MozReview-Commit-ID: 9UaG2RHst7
This commit is contained in:
Dão Gottwald
2018-03-25 05:54:38 +02:00
parent a59ad251ce
commit 1e4cc40aa1
6 changed files with 53 additions and 53 deletions

View File

@@ -338,12 +338,11 @@ 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);
// TabsInTitlebar skips appearance updates on resize events 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 bug 1173768.
TabsInTitlebar.update();
}
if (enterFS && !document.fullscreenElement) {