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

Issue 981243003: Make commands consistent across security interstitials (Closed)

Created:
5 years, 9 months ago by felt
Modified:
5 years, 9 months ago
CC:
estark, chromium-reviews, grt+watch_chromium.org, arv+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make commands consistent across security interstitials Committed: https://crrev.com/1c42a82a61d33ea102701a5621e52b3c8f4455d2 Cr-Commit-Position: refs/heads/master@{#320107}

Patch Set 1 #

Patch Set 2 : Fixed privacy policy link #

Patch Set 3 : Updated test #

Total comments: 9

Patch Set 4 : Check for known string command #

Total comments: 3

Patch Set 5 : Add quotes #

Patch Set 6 : Const #

Patch Set 7 : Tests must return ints #

Total comments: 2

Patch Set 8 : Tests #

Total comments: 11

Patch Set 9 : if -> switch in SafeBrowsingBlockingPage #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+205 lines, -222 lines) Patch
M chrome/browser/interstitials/security_interstitial_page.h View 1 chunk +21 lines, -0 lines 0 comments Download
M chrome/browser/resources/security_warnings/interstitial_v2.js View 6 chunks +27 lines, -13 lines 0 comments Download
M chrome/browser/resources/security_warnings/safe_browsing.js View 2 chunks +1 line, -11 lines 0 comments Download
M chrome/browser/resources/security_warnings/ssl.js View 1 chunk +0 lines, -8 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_blocking_page.cc View 1 2 3 4 5 6 7 8 4 chunks +114 lines, -149 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc View 1 2 3 4 5 6 7 8 5 chunks +6 lines, -4 lines 0 comments Download
M chrome/browser/ssl/captive_portal_blocking_page.cc View 1 2 3 4 5 6 3 chunks +12 lines, -4 lines 0 comments Download
M chrome/browser/ssl/captive_portal_blocking_page_browsertest.cc View 1 2 3 4 5 6 7 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/browser/ssl/ssl_blocking_page.h View 1 chunk +0 lines, -12 lines 0 comments Download
M chrome/browser/ssl/ssl_blocking_page.cc View 1 2 3 4 5 6 7 8 3 chunks +18 lines, -15 lines 2 comments Download
M chrome/browser/ssl/ssl_browser_tests.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 27 (5 generated)
felt
meacer, ptal
5 years, 9 months ago (2015-03-06 16:44:30 UTC) #2
meacer
https://codereview.chromium.org/981243003/diff/40001/chrome/browser/safe_browsing/safe_browsing_blocking_page.cc File chrome/browser/safe_browsing/safe_browsing_blocking_page.cc (right): https://codereview.chromium.org/981243003/diff/40001/chrome/browser/safe_browsing/safe_browsing_blocking_page.cc#newcode72 chrome/browser/safe_browsing/safe_browsing_blocking_page.cc:72: "<a id=\"privacy-link\" href=\"\" onclick=\"sendCommand(10); " How about using |sendCommand(%d)| ...
5 years, 9 months ago (2015-03-06 18:29:22 UTC) #3
meacer
https://codereview.chromium.org/981243003/diff/40001/chrome/browser/ssl/captive_portal_blocking_page.cc File chrome/browser/ssl/captive_portal_blocking_page.cc (right): https://codereview.chromium.org/981243003/diff/40001/chrome/browser/ssl/captive_portal_blocking_page.cc#newcode195 chrome/browser/ssl/captive_portal_blocking_page.cc:195: bool retval = base::StringToInt(command, &cmd); On 2015/03/06 18:29:22, Mustafa ...
5 years, 9 months ago (2015-03-07 01:00:04 UTC) #4
felt
https://codereview.chromium.org/981243003/diff/40001/chrome/browser/safe_browsing/safe_browsing_blocking_page.cc File chrome/browser/safe_browsing/safe_browsing_blocking_page.cc (right): https://codereview.chromium.org/981243003/diff/40001/chrome/browser/safe_browsing/safe_browsing_blocking_page.cc#newcode72 chrome/browser/safe_browsing/safe_browsing_blocking_page.cc:72: "<a id=\"privacy-link\" href=\"\" onclick=\"sendCommand(10); " On 2015/03/06 18:29:22, Mustafa ...
5 years, 9 months ago (2015-03-07 04:02:39 UTC) #5
meacer
https://codereview.chromium.org/981243003/diff/40001/chrome/browser/safe_browsing/safe_browsing_blocking_page.cc File chrome/browser/safe_browsing/safe_browsing_blocking_page.cc (right): https://codereview.chromium.org/981243003/diff/40001/chrome/browser/safe_browsing/safe_browsing_blocking_page.cc#newcode299 chrome/browser/safe_browsing/safe_browsing_blocking_page.cc:299: std::string bad_url_spec = unsafe_resources_[element_index].url.spec(); On 2015/03/07 04:02:39, felt wrote: ...
5 years, 9 months ago (2015-03-07 05:23:10 UTC) #6
felt
https://codereview.chromium.org/981243003/diff/40001/chrome/browser/safe_browsing/safe_browsing_blocking_page.cc File chrome/browser/safe_browsing/safe_browsing_blocking_page.cc (right): https://codereview.chromium.org/981243003/diff/40001/chrome/browser/safe_browsing/safe_browsing_blocking_page.cc#newcode299 chrome/browser/safe_browsing/safe_browsing_blocking_page.cc:299: std::string bad_url_spec = unsafe_resources_[element_index].url.spec(); On 2015/03/07 05:23:09, Mustafa Emre ...
5 years, 9 months ago (2015-03-07 05:50:04 UTC) #7
meacer
Looks good, but not sure why the tryjobs are failing this time :/
5 years, 9 months ago (2015-03-07 06:01:14 UTC) #8
meacer
Lgtm with one comment. https://codereview.chromium.org/981243003/diff/120001/chrome/browser/ssl/captive_portal_blocking_page_browsertest.cc File chrome/browser/ssl/captive_portal_blocking_page_browsertest.cc (right): https://codereview.chromium.org/981243003/diff/120001/chrome/browser/ssl/captive_portal_blocking_page_browsertest.cc#newcode45 chrome/browser/ssl/captive_portal_blocking_page_browsertest.cc:45: EXPECT_EQ(1, content::ExecuteScriptAndExtractInt( EXPECT_TRUE(content::ExecuteScriptAndExtractInt(... instead.
5 years, 9 months ago (2015-03-07 07:50:59 UTC) #9
felt
hold up, the tests still aren't passing (why i didn't mail yet). linux_chromium_chromeos_rel_ng is failing. ...
5 years, 9 months ago (2015-03-07 07:54:32 UTC) #10
meacer
Yeah, I saw the test failure just after sending the comment :p https://codereview.chromium.org/981243003/diff/120001/chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc File chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc ...
5 years, 9 months ago (2015-03-07 07:58:07 UTC) #11
felt
OK, *now* the tests are passing if you want to take a look. :)
5 years, 9 months ago (2015-03-07 17:24:44 UTC) #12
felt
mattm, PTAL
5 years, 9 months ago (2015-03-07 17:24:58 UTC) #14
meacer
Ah, I forgot about the InterstitialDisplayingText one. Still lgtm.
5 years, 9 months ago (2015-03-07 20:45:34 UTC) #15
mattm
lgtm
5 years, 9 months ago (2015-03-11 00:10:38 UTC) #16
felt
bernhard, ptal
5 years, 9 months ago (2015-03-11 03:44:32 UTC) #18
Bernhard Bauer
Nice! Can you add a bug number, or remove the BUG= field? https://codereview.chromium.org/981243003/diff/140001/chrome/browser/interstitials/security_interstitial_page.h File chrome/browser/interstitials/security_interstitial_page.h ...
5 years, 9 months ago (2015-03-11 08:42:14 UTC) #19
felt
https://codereview.chromium.org/981243003/diff/140001/chrome/browser/interstitials/security_interstitial_page.h File chrome/browser/interstitials/security_interstitial_page.h (right): https://codereview.chromium.org/981243003/diff/140001/chrome/browser/interstitials/security_interstitial_page.h#newcode26 chrome/browser/interstitials/security_interstitial_page.h:26: enum SecurityInterstitialCommands { On 2015/03/11 08:42:14, Bernhard Bauer wrote: ...
5 years, 9 months ago (2015-03-11 15:25:10 UTC) #20
Bernhard Bauer
LGTM w/ a question below: https://codereview.chromium.org/981243003/diff/140001/chrome/browser/interstitials/security_interstitial_page.h File chrome/browser/interstitials/security_interstitial_page.h (right): https://codereview.chromium.org/981243003/diff/140001/chrome/browser/interstitials/security_interstitial_page.h#newcode26 chrome/browser/interstitials/security_interstitial_page.h:26: enum SecurityInterstitialCommands { On ...
5 years, 9 months ago (2015-03-11 16:19:20 UTC) #21
felt
https://codereview.chromium.org/981243003/diff/160001/chrome/browser/ssl/ssl_blocking_page.cc File chrome/browser/ssl/ssl_blocking_page.cc (right): https://codereview.chromium.org/981243003/diff/160001/chrome/browser/ssl/ssl_blocking_page.cc#newcode502 chrome/browser/ssl/ssl_blocking_page.cc:502: NOTREACHED() << "Unexpected command: " << command; On 2015/03/11 ...
5 years, 9 months ago (2015-03-11 16:25:21 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/981243003/160001
5 years, 9 months ago (2015-03-11 16:28:27 UTC) #25
commit-bot: I haz the power
Committed patchset #9 (id:160001)
5 years, 9 months ago (2015-03-11 17:46:54 UTC) #26
commit-bot: I haz the power
5 years, 9 months ago (2015-03-11 17:49:34 UTC) #27
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/1c42a82a61d33ea102701a5621e52b3c8f4455d2
Cr-Commit-Position: refs/heads/master@{#320107}

Powered by Google App Engine
This is Rietveld 408576698