Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(238)

Issue 1152963007: Disable 'duplicate tab' functionality on interstitial pages (Closed)

Created:
5 years, 6 months ago by estark
Modified:
5 years, 6 months ago
Reviewers:
msw
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Disable 'duplicate tab' functionality on interstitial pages Currently, duplicating a tab that is showing an interstitial page will duplicate the last committed navigation entry, which will likely not be what the user expects. This CL simply disables the Duplicate Tab functionality on interstitial pages. This matches the behavior when there is no previously committed navigation entry before an interstitial. (For example, navigate to https://badssl.com, right-click on "expired", and open link in new tab. Note that Duplicate Tab is disabled.) BUG=310812 TEST=Visit https://badssl.com. Click "expired" and observe an SSL page. Right-click on the tab at the top and observe that "Duplicate Tab" is disabled. Committed: https://crrev.com/9ecf2edac44ee510b7ec81267e4b6610e7c0a812 Cr-Commit-Position: refs/heads/master@{#332614}

Patch Set 1 #

Total comments: 8

Patch Set 2 : msw comments #

Total comments: 6

Patch Set 3 : test tweaks #

Patch Set 4 : style fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+53 lines, -7 lines) Patch
M chrome/browser/ui/browser_browsertest.cc View 1 2 3 4 chunks +44 lines, -0 lines 0 comments Download
M chrome/browser/ui/browser_commands.h View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/browser_commands.cc View 1 2 chunks +8 lines, -6 lines 0 comments Download

Messages

Total messages: 12 (3 generated)
estark
msw, could you please take a look? In this CL I'm following meacer's (cc'ed) idea ...
5 years, 6 months ago (2015-06-02 17:17:37 UTC) #2
meacer
On 2015/06/02 17:17:37, estark wrote: > msw, could you please take a look? > > ...
5 years, 6 months ago (2015-06-02 17:48:46 UTC) #3
msw
https://codereview.chromium.org/1152963007/diff/1/chrome/browser/ui/browser_browsertest.cc File chrome/browser/ui/browser_browsertest.cc (right): https://codereview.chromium.org/1152963007/diff/1/chrome/browser/ui/browser_browsertest.cc#newcode1897 chrome/browser/ui/browser_browsertest.cc:1897: IN_PROC_BROWSER_TEST_F(BrowserTest, InterstitialCommandDisable) { Can you add IDC_DUPLICATE_TAB to the ...
5 years, 6 months ago (2015-06-02 23:59:34 UTC) #4
estark
Thanks msw. https://codereview.chromium.org/1152963007/diff/1/chrome/browser/ui/browser_browsertest.cc File chrome/browser/ui/browser_browsertest.cc (right): https://codereview.chromium.org/1152963007/diff/1/chrome/browser/ui/browser_browsertest.cc#newcode1897 chrome/browser/ui/browser_browsertest.cc:1897: IN_PROC_BROWSER_TEST_F(BrowserTest, InterstitialCommandDisable) { On 2015/06/02 23:59:34, msw ...
5 years, 6 months ago (2015-06-03 00:56:20 UTC) #5
msw
lgtm with nits and an optional test expansion idea. https://codereview.chromium.org/1152963007/diff/20001/chrome/browser/ui/browser_browsertest.cc File chrome/browser/ui/browser_browsertest.cc (right): https://codereview.chromium.org/1152963007/diff/20001/chrome/browser/ui/browser_browsertest.cc#newcode2746 chrome/browser/ui/browser_browsertest.cc:2746: ...
5 years, 6 months ago (2015-06-03 01:11:06 UTC) #6
estark
https://codereview.chromium.org/1152963007/diff/20001/chrome/browser/ui/browser_browsertest.cc File chrome/browser/ui/browser_browsertest.cc (right): https://codereview.chromium.org/1152963007/diff/20001/chrome/browser/ui/browser_browsertest.cc#newcode2746 chrome/browser/ui/browser_browsertest.cc:2746: // Verify that the "Duplicate tab" command is disabled ...
5 years, 6 months ago (2015-06-03 14:26:44 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1152963007/60001
5 years, 6 months ago (2015-06-03 14:28:07 UTC) #10
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 6 months ago (2015-06-03 15:25:54 UTC) #11
commit-bot: I haz the power
5 years, 6 months ago (2015-06-03 15:26:59 UTC) #12
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/9ecf2edac44ee510b7ec81267e4b6610e7c0a812
Cr-Commit-Position: refs/heads/master@{#332614}

Powered by Google App Engine
This is Rietveld 408576698