Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(154)

Issue 2056273002: [merge-m52] Mac: Retain the child NSWindow in WidgetOwnerNSWindowAdapter before invoking close (Closed)

Created:
4 years, 6 months ago by tapted
Modified:
4 years, 6 months ago
Reviewers:
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@2743
Target Ref:
refs/pending/branch-heads/2743
Project:
chromium
Visibility:
Public.

Description

[merge-m52] Mac: Retain the child NSWindow in WidgetOwnerNSWindowAdapter before invoking close AppKit has gotten better at handling the last reference to an NSWindow going away inside -[NSWindow close]. However, on 10.9, bad things can happen if we don't retain the NSWindow being closed until after the -[NSWindow close] call returns. WidgetOwnerNSWindowAdapter::OnWindowWillClose() wasn't doing this. The result: in some codepaths, a zombie access under the close call. To fix, retain the window being closed. BUG=616701 TEST=On OSX 10.9, have one browser tab, navigate to a page (e.g. chrome://version), then press Backspace. The "Press Cmd+Left to go back" bubble should appear. Wait for it to fade out completely. Then close the tab via the tabstrip. Chrome shouldn't crash. Review-Url: https://codereview.chromium.org/2056593002 Cr-Commit-Position: refs/heads/master@{#398890} (cherry picked from commit 6777bcc56aff3a1dc27fb0adced9a462b22e4e33) Committed: https://chromium.googlesource.com/chromium/src/+/f74417df0eb4a034004fa587c8835cf3ee69edac

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+90 lines, -6 lines) Patch
M ui/views/cocoa/native_widget_mac_nswindow.mm View 1 chunk +6 lines, -0 lines 0 comments Download
M ui/views/cocoa/widget_owner_nswindow_adapter.mm View 1 chunk +15 lines, -1 line 0 comments Download
M ui/views/widget/native_widget_mac_unittest.mm View 9 chunks +69 lines, -5 lines 0 comments Download

Messages

Total messages: 2 (1 generated)
tapted
4 years, 6 months ago (2016-06-10 11:58:51 UTC) #2
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
f74417df0eb4a034004fa587c8835cf3ee69edac.

Powered by Google App Engine
This is Rietveld 408576698