Chromium Code Reviews
DescriptionUse -[NSApp activateIgnoringOtherApps:NO] instead of -[NSRunningApplication activateWithOptions:].
In c57771b074f8, +[BrowserWindowUtils activateWindowController:] was changed
from using Carbon's SetFrontProcessWithOptions(). This caused an activation bug,
https://crbug.com/653483, to occur. The difference in behavior is because the
NSApplication method internally calls _NXActivateSelf(), which uses
SetFrontProcessWithOptions(). The NSRunningApplication method instead messages
LaunchServices to set the front process.
The NSRunningApplication method appers to deactivate the app if it is currently
active, which caused the bug. Switching to the NSApplication method resolves
the issue and restores the old behavior. An alternatieve to using the
NSApplication method would be to make calling the NSRunningApplication method
conditional on -[NSApp isActive].
BUG=653483, 650845
R=avi@chromium.org
Committed: https://crrev.com/6d3dbe8eb6ff81ed2c9e89df2e13d1764056e9d7
Cr-Commit-Position: refs/heads/master@{#423590}
Patch Set 1 #
Messages
Total messages: 13 (8 generated)
|
|||||||||||||||||||