Commit ae6a5e9c authored by dvallet's avatar dvallet Committed by Commit bot

Always return false on IsHandlingSendingEvent

This fixes an issue on closing Web contents on headless Mac, since it makes think Web contents that the current view is still handling UI events. See https://cs.chromium.org/chromium/src/content/browser/web_contents/web_contents_view.h?rcl=e0bef062337921727eb9b670b417ebd0b6d86fd6&l=131

BUG=713268

Review-Url: https://codereview.chromium.org/2853473002
Cr-Commit-Position: refs/heads/master@{#468132}
parent 27684e69
...@@ -9,9 +9,8 @@ ...@@ -9,9 +9,8 @@
@implementation HeadlessShellCrApplication @implementation HeadlessShellCrApplication
- (BOOL)isHandlingSendEvent { - (BOOL)isHandlingSendEvent {
// The CrAppProtocol must return true if [NSApplication sendEvent:] is // Since headless mode is non-interactive, always return false.
// currently on the stack. seee |CrAppProtocol| in |MessagePumpMac|. return false;
return true;
} }
@end @end
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