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

Issue 1397673004: Make opening a new tab with the NTP use PAGE_TRANSITION_AUTO_TOPLEVEL. (Closed)

Created:
5 years, 2 months ago by calamity
Modified:
4 years, 10 months ago
Reviewers:
msw
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make opening a new tab with the NTP use PAGE_TRANSITION_AUTO_TOPLEVEL. This CL changes the page transition type for opening the NTP from PAGE_TRANSITION_TYPED to PAGE_TRANSITION_AUTO_TOPLEVEL. Semantically, this makes sense because the new tab is content automatically loaded into a top level frame and the user did not 'type' chrome://newtab. This change was made to distinguish between actual direct URL navigations and opening a new tab when considering whether the Site Engagement Service should award the origin engagement points. BUG=543358 Committed: https://crrev.com/d0cdbbbf6653a1ff04dba51558d582035555992b Cr-Commit-Position: refs/heads/master@{#354404}

Patch Set 1 #

Patch Set 2 : fix tab focus issue and add test #

Patch Set 3 : #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -2 lines) Patch
M chrome/browser/ui/browser.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/browser_browsertest.cc View 1 2 2 chunks +32 lines, -0 lines 0 comments Download
M chrome/browser/ui/browser_tabstrip.cc View 1 1 chunk +8 lines, -2 lines 2 comments Download

Messages

Total messages: 11 (3 generated)
calamity
+msw for OWNERS.
5 years, 2 months ago (2015-10-15 03:04:38 UTC) #2
msw
lgtm
5 years, 2 months ago (2015-10-15 17:33:59 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1397673004/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1397673004/1
5 years, 2 months ago (2015-10-15 22:45:31 UTC) #5
commit-bot: I haz the power
Committed patchset #1 (id:1)
5 years, 2 months ago (2015-10-15 23:45:17 UTC) #6
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/d0cdbbbf6653a1ff04dba51558d582035555992b Cr-Commit-Position: refs/heads/master@{#354404}
5 years, 2 months ago (2015-10-15 23:46:02 UTC) #7
calamity
A revert of this CL (patchset #1 id:1) has been created in https://codereview.chromium.org/1650923002/ by calamity@chromium.org. ...
4 years, 10 months ago (2016-01-31 23:59:36 UTC) #8
calamity
Hey, this CL broke something so I reverted it. Reuploaded with a fix and test. ...
4 years, 10 months ago (2016-02-02 01:19:40 UTC) #10
msw
4 years, 10 months ago (2016-02-02 01:57:46 UTC) #11
It's good practice to create a new issue when re-landing an update CL.
(upload the reverted change first, then more patch sets with fixes)

https://codereview.chromium.org/1397673004/diff/40001/chrome/browser/ui/brows...
File chrome/browser/ui/browser_tabstrip.cc (right):

https://codereview.chromium.org/1397673004/diff/40001/chrome/browser/ui/brows...
chrome/browser/ui/browser_tabstrip.cc:33: // Explicitly ensure new tabs will
return to the previous focused tabs when
nit: "Ensure the previously active tab regains focus when the new tab closes."

https://codereview.chromium.org/1397673004/diff/40001/chrome/browser/ui/brows...
chrome/browser/ui/browser_tabstrip.cc:35: if (show_ntp)
Why is this only applied if |show_ntp| is true? (doesn't that run counter to the
alt+enter test case or other cases with urls, like 'open link in new tab'?) I
wonder if this really is the right fix, and kinda wonder why we don't always
default to this behavior. Can you seek a reviewer with more experience here?

Powered by Google App Engine
This is Rietveld 408576698