DescriptionMac: 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 #
Messages
Total messages: 14 (9 generated)
|