Chromium Code Reviews
DescriptionRevert of Address a crash under -[NSWindow close] via a WeakPtr PostTask from Browser::TabStripEmpty() (patchset #6 id:100001 of https://codereview.chromium.org/2041213002/ )
Reason for revert:
Fix didn't work.
Original issue's description:
> Address a crash under -[NSWindow close] via a WeakPtr PostTask from Browser::TabStripEmpty()
>
> This is the #1 browser crash for Mac in current Beta - 52.0.2743.24. The
> stacks all have in common a Posted Task that's triggering -[NSWindow
> close] via a base::WeakPtr<Browser>. This only happens via
> Browser::TabStripEmpty().
>
> The WeakPtr is only nerfed when BrowserWindowController's dealloc fully
> completes. It seems plausible that this can be after the NSWindow's
> dealloc fully completes, leading to an invalid access. One would hope
> that [NSWindowController window] returns nil once the controlled window
> is destroyed, but this seems to not be guaranteed.
>
> To (speculatively) fix, set a flag when the controlled window invokes
> -[NSWindowController windowWillClose]. The window shouldn't be accessed
> after this. Ensure the C++ BrowserWindowCocoa shim returns nil in this
> case for the window, even if -[NSWindowController window] doesn't.
>
> See http://crbug.com/616701
>
> Committed: https://crrev.com/7e91932ca0df94f1d3ebe9303e6ff31637751c17
> Cr-Commit-Position: refs/heads/master@{#398474}
# Not skipping CQ checks because original CL landed more than 1 days ago.
See http://crbug.com/616701
Committed: https://crrev.com/b59603cd2b5c7b00a47651b57516ef8e802af67b
Cr-Commit-Position: refs/heads/master@{#399164}
Patch Set 1 #
Messages
Total messages: 12 (5 generated)
|
|||||||||||||||||||||||||||||||||||||