Commit 079facd9 authored by Sidney San Martín's avatar Sidney San Martín Committed by Commit Bot

Mac: Fix fullscreen warning bubble only displaying intermittently.

Sometimes, a browser window isn't considered "on the current space"
during the fullscreen transition at the moment the exclusive access
bubble is displayed. Fix by checking again at the end of the transition.

Bug: 1000882
Change-Id: Ia2ef081098ca84f975dd26dfa6bf2615a3094af7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1790378
Auto-Submit: Sidney San Martín <sdy@chromium.org>
Commit-Queue: Avi Drissman <avi@chromium.org>
Reviewed-by: default avatarAvi Drissman <avi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#694863}
parent 177e8236
......@@ -853,6 +853,9 @@ void NativeWidgetNSWindowBridge::OnFullscreenTransitionComplete(
bool actual_fullscreen_state) {
in_fullscreen_transition_ = false;
// Add any children that were skipped during the fullscreen transition.
OrderChildren();
if (has_deferred_window_close_) {
[ns_window() close];
return;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment