• Christopher Cameron's avatar
    MacPWAs: Fix part of fullscreen-exit hang · 85aa6103
    Christopher Cameron authored
    NativeWidgetMac::CloseNow expects that the callbacks for window closure
    will happen before the function exits. For out-of-process windows, this
    will not be the case (and the callbacks will never be made because the
    host interface will have been destroyed).
    
    In out-of-process mode, add explicit calls to these callbacks.
    
    This matches the behavior BridgedNativeWidgetHostImpl's
    OnBridgeFactoryHostDestroying (which has the same problem where the
    window destroy callbacks won't come in).
    
    Bug: 915572
    Change-Id: Ie65dfef1a7e483364ee95df2e52083c777523a61
    Reviewed-on: https://chromium-review.googlesource.com/c/1388722
    Commit-Queue: ccameron <ccameron@chromium.org>
    Reviewed-by: default avatarSidney San Martín <sdy@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#618682}
    85aa6103
native_widget_mac.mm 30 KB