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

Issue 2589663002: Mac: Add CHECK() in ConstrainedWindowMac::GetDialogManager(). (Closed)

Created:
4 years ago by tapted
Modified:
4 years ago
Reviewers:
Robert Sesek
CC:
chromium-reviews, mac-reviews_chromium.org, chrome-apps-syd-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Mac: Add CHECK() in ConstrainedWindowMac::GetDialogManager(). It is invalid to show dialogs on some kinds of WebContents. WebContentsModalDialogManager::FromWebContents() returns null for these. However, ConstrainedWindowMac assumes GetDialogManager() returns non- null. It's hard to control the myriad of ways a WebContents may want to invoke a dialog and we currently seem to be missing some likely crashes on Mac from this. Add a CHECK() so we crash cleanly and quickly. BUG=674960 Committed: https://crrev.com/cafed52c5f3313646b8e04e05601b5cb98f305b3 Cr-Commit-Position: refs/heads/master@{#439625}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -2 lines) Patch
M chrome/browser/ui/cocoa/constrained_window/constrained_window_mac.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/constrained_window/constrained_window_mac.mm View 1 chunk +8 lines, -1 line 0 comments Download

Messages

Total messages: 14 (9 generated)
tapted
Hi Robert - do you think this will help? Of course, the "Stability-Crash-Chronic" in http://crbug.com/629529 ...
4 years ago (2016-12-19 06:58:39 UTC) #6
Robert Sesek
LGTM I think this is probably safer than allowing the current behavior, even if it ...
4 years ago (2016-12-19 23:37:22 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2589663002/1
4 years ago (2016-12-19 23:48:24 UTC) #9
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years ago (2016-12-19 23:56:12 UTC) #12
commit-bot: I haz the power
4 years ago (2016-12-19 23:57:50 UTC) #14
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/cafed52c5f3313646b8e04e05601b5cb98f305b3
Cr-Commit-Position: refs/heads/master@{#439625}

Powered by Google App Engine
This is Rietveld 408576698