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

Issue 2729613006: When navigation focuses a web contents, also activate its window. (Closed)

Created:
3 years, 9 months ago by Sidney San Martín
Modified:
3 years, 9 months ago
Reviewers:
*yoshiki, *Nico, Avi (use Gerrit)
CC:
chromium-reviews, awdf+watch_chromium.org, Peter Beverloo, mlamouri+watch-notifications_chromium.org, jam, darin-cc_chromium.org, mac-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

When navigation focuses a web contents, also activate its window. This fixes an issue where a popup opened by clicking a notification doesn't activate Chrome (and appears behind the active app) on Mac. BUG=661250 Review-Url: https://codereview.chromium.org/2729613006 Cr-Commit-Position: refs/heads/master@{#455632} Committed: https://chromium.googlesource.com/chromium/src/+/6589abd5285d3008c44143269bdf5dc2605028cf

Patch Set 1 #

Total comments: 3

Patch Set 2 : Move common interactive_uitest stuff into its own file instead of notification_test_util #

Patch Set 3 : Activate in a more specific place. #

Patch Set 4 : Test cleanup. #

Total comments: 4

Patch Set 5 : Copyright + nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+441 lines, -334 lines) Patch
M chrome/browser/notifications/notification_interactive_uitest.cc View 1 3 chunks +1 line, -329 lines 0 comments Download
A chrome/browser/notifications/notification_interactive_uitest_mac.mm View 1 2 3 4 1 chunk +53 lines, -0 lines 0 comments Download
A chrome/browser/notifications/notification_interactive_uitest_support.h View 1 1 chunk +79 lines, -0 lines 0 comments Download
A chrome/browser/notifications/notification_interactive_uitest_support.cc View 1 2 3 4 1 chunk +299 lines, -0 lines 0 comments Download
M chrome/browser/ui/browser_navigator.cc View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M chrome/test/BUILD.gn View 1 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/test/data/notifications/notification_tester.html View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 48 (38 generated)
Sidney San Martín
PTAL
3 years, 9 months ago (2017-03-02 22:49:12 UTC) #7
Sidney San Martín
Sorry, I missed that I broke the Linux build. Will resubmit once I've fixed it.
3 years, 9 months ago (2017-03-02 22:57:35 UTC) #9
Avi (use Gerrit)
https://codereview.chromium.org/2729613006/diff/1/content/browser/web_contents/web_contents_view_mac.mm File content/browser/web_contents/web_contents_view_mac.mm (right): https://codereview.chromium.org/2729613006/diff/1/content/browser/web_contents/web_contents_view_mac.mm#newcode230 content/browser/web_contents/web_contents_view_mac.mm:230: [NSApp activateIgnoringOtherApps:YES]; I could swear I've seen this change ...
3 years, 9 months ago (2017-03-02 23:26:18 UTC) #11
Sidney San Martín
PTAL (avi@ — it looks like I don't need you as a reviewer anymore, but ...
3 years, 9 months ago (2017-03-08 05:02:29 UTC) #22
Sidney San Martín
Sorry, the CL title and description didn't match the most recent patch set. Fixed.
3 years, 9 months ago (2017-03-08 05:05:46 UTC) #24
Nico
lgtm, but someone familiar with notifications (e.g. yoshiki) should take a look too. Nice test! ...
3 years, 9 months ago (2017-03-08 16:23:26 UTC) #33
Sidney San Martín
Thanks! https://codereview.chromium.org/2729613006/diff/80001/chrome/browser/notifications/notification_interactive_uitest_support.cc File chrome/browser/notifications/notification_interactive_uitest_support.cc (right): https://codereview.chromium.org/2729613006/diff/80001/chrome/browser/notifications/notification_interactive_uitest_support.cc#newcode23 chrome/browser/notifications/notification_interactive_uitest_support.cc:23: // On 2017/03/08 16:23:25, Nico wrote: > remove ...
3 years, 9 months ago (2017-03-08 19:34:47 UTC) #38
yoshiki
lgtm
3 years, 9 months ago (2017-03-09 00:20:36 UTC) #42
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/2729613006/120001
3 years, 9 months ago (2017-03-09 01:39:02 UTC) #45
commit-bot: I haz the power
3 years, 9 months ago (2017-03-09 01:47:07 UTC) #48
Message was sent while issue was closed.
Committed patchset #5 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/6589abd5285d3008c44143269bdf...

Powered by Google App Engine
This is Rietveld 408576698