Commit 5cd8a4ff authored by avi's avatar avi Committed by Commit bot

Force recalc of the keyloop for alerts.

BUG=638492, 383820
TEST=javascript:prompt("hi")

Review-Url: https://codereview.chromium.org/2252913003
Cr-Commit-Position: refs/heads/master@{#412622}
parent b606148d
......@@ -140,6 +140,10 @@ const int kMessageTextMaxSlots = 2000;
DCHECK(!alertShown_);
alertShown_ = YES;
NSAlert* alert = [self alert];
[alert layout];
[[alert window] recalculateKeyViewLoop];
[alert beginSheetModalForWindow:nil // nil here makes it app-modal
modalDelegate:self
didEndSelector:@selector(alertDidEnd:returnCode:contextInfo:)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment