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

Issue 1000333003: Properly decode IDN in interstitials (Closed)

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

Description

Properly decode IDN in interstitials Decode IDN hostnames in SecurityInterstitialPage before displaying them. Add browser tests for SSLBlockingPage and CaptivePortalBlockingPage to test this behavior. Other blocking pages can subclass the new SecurityInterstitialIDNTest class to do similar tests. BUG=450883 Committed: https://crrev.com/489874cb190ad4c4fafef212d99082645582bd55 Cr-Commit-Position: refs/heads/master@{#322128}

Patch Set 1 #

Total comments: 12

Patch Set 2 : factor out common code into SecurityInterstitialIDNTest #

Patch Set 3 : forward-declare GURL #

Total comments: 10

Patch Set 4 : Send special commands for text searching, return AssertionResult, other cleanup #

Total comments: 4

Patch Set 5 : move test commands to negative values, and control flow nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+182 lines, -38 lines) Patch
M chrome/browser/interstitials/security_interstitial_page.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/interstitials/security_interstitial_page.cc View 2 chunks +10 lines, -1 line 0 comments Download
A chrome/browser/interstitials/security_interstitial_page_test_utils.h View 1 2 3 1 chunk +45 lines, -0 lines 0 comments Download
A chrome/browser/interstitials/security_interstitial_page_test_utils.cc View 1 2 3 4 1 chunk +72 lines, -0 lines 0 comments Download
M chrome/browser/ssl/captive_portal_blocking_page_browsertest.cc View 1 2 3 4 chunks +20 lines, -37 lines 0 comments Download
M chrome/browser/ssl/ssl_blocking_page.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/ssl/ssl_browser_tests.cc View 1 2 3 5 chunks +24 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (5 generated)
estark
meacer@, could you please take a look? This is the patch I stole from https://codereview.chromium.org/863133003/ ...
5 years, 9 months ago (2015-03-24 19:10:14 UTC) #2
meacer
Great timing, you sent the CL just as I commented on the bug :) https://codereview.chromium.org/1000333003/diff/1/chrome/browser/interstitials/security_interstitial_page_browsertest.cc ...
5 years, 9 months ago (2015-03-24 20:22:25 UTC) #3
estark
Thanks Mustafa. https://codereview.chromium.org/1000333003/diff/1/chrome/browser/interstitials/security_interstitial_page_browsertest.cc File chrome/browser/interstitials/security_interstitial_page_browsertest.cc (right): https://codereview.chromium.org/1000333003/diff/1/chrome/browser/interstitials/security_interstitial_page_browsertest.cc#newcode59 chrome/browser/interstitials/security_interstitial_page_browsertest.cc:59: IN_PROC_BROWSER_TEST_F(SecurityInterstitialPageIDNTest, On 2015/03/24 20:22:24, Mustafa Emre Acer ...
5 years, 9 months ago (2015-03-24 22:35:47 UTC) #4
meacer
Looking good. Can you check whether SSLBlockingPage is trying to accept the cert? https://codereview.chromium.org/1000333003/diff/1/chrome/browser/ssl/ssl_browser_tests.cc File ...
5 years, 9 months ago (2015-03-24 23:17:00 UTC) #5
estark
https://codereview.chromium.org/1000333003/diff/1/chrome/browser/ssl/ssl_browser_tests.cc File chrome/browser/ssl/ssl_browser_tests.cc (right): https://codereview.chromium.org/1000333003/diff/1/chrome/browser/ssl/ssl_browser_tests.cc#newcode1936 chrome/browser/ssl/ssl_browser_tests.cc:1936: class SSLUITestIDN : public SSLUITest { On 2015/03/24 23:16:59, ...
5 years, 9 months ago (2015-03-25 00:45:25 UTC) #6
meacer
LGTM https://codereview.chromium.org/1000333003/diff/1/chrome/browser/ssl/ssl_browser_tests.cc File chrome/browser/ssl/ssl_browser_tests.cc (right): https://codereview.chromium.org/1000333003/diff/1/chrome/browser/ssl/ssl_browser_tests.cc#newcode1967 chrome/browser/ssl/ssl_browser_tests.cc:1967: base::Time::NowFromSystemTime(), base::Bind(&DoNothing)); On 2015/03/25 00:45:25, emily wrote: > ...
5 years, 9 months ago (2015-03-25 01:08:40 UTC) #7
estark
https://codereview.chromium.org/1000333003/diff/40001/chrome/browser/interstitials/security_interstitial_page_test_utils.h File chrome/browser/interstitials/security_interstitial_page_test_utils.h (right): https://codereview.chromium.org/1000333003/diff/40001/chrome/browser/interstitials/security_interstitial_page_test_utils.h#newcode34 chrome/browser/interstitials/security_interstitial_page_test_utils.h:34: void TestIDN(); On 2015/03/25 01:08:39, Mustafa Emre Acer wrote: ...
5 years, 9 months ago (2015-03-25 04:23:49 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1000333003/80001
5 years, 9 months ago (2015-03-25 04:27:09 UTC) #13
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 9 months ago (2015-03-25 07:17:49 UTC) #14
commit-bot: I haz the power
5 years, 9 months ago (2015-03-25 07:18:40 UTC) #15
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/489874cb190ad4c4fafef212d99082645582bd55
Cr-Commit-Position: refs/heads/master@{#322128}

Powered by Google App Engine
This is Rietveld 408576698