Bug 1448613 - Clean up TabsInTitlebar resize event handling. r=johannh
MozReview-Commit-ID: 9UaG2RHst7
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user