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

Issue 2831583006: Fix incorrect |main_frame_url_| parameter to BaseBlockingPage (Closed)

Created:
3 years, 8 months ago by estark
Modified:
3 years, 8 months ago
CC:
chromium-reviews, grt+watch_chromium.org, vakh+watch_chromium.org, timvolodine, Jialiu Lin
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix incorrect |main_frame_url_| parameter to BaseBlockingPage SafeBrowsingBlockingPage was constructing a BaseBlockingPage using the URL of the UnsafeResource as the main frame URL. The main frame URL is what gets removed from the whitelist when the blocking page is dismissed; as a result, interstitials triggered by cross-origin subresources weren't properly clearing the whitelist on Back to Safety. This resulted in the Dangerous indicator sticking around after going back. We had a test in place for this, but it was incomplete in two ways: - The malicious subresource was same-origin as the main frame, meaning that the whitelist was getting properly cleared "by accident" because it so happens that the whitelist URL for the subresource was the same as the main frame URL. - The test was not checking that if we go back to the hostname on which there was an interstitial, the Dangerous indicator does not persist. BUG=710955 Review-Url: https://codereview.chromium.org/2831583006 Cr-Commit-Position: refs/heads/master@{#466396} Committed: https://chromium.googlesource.com/chromium/src/+/2a99e9e1b32d0218d1e13a88bb6a7db80dc4a970

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+48 lines, -3 lines) Patch
M chrome/browser/safe_browsing/safe_browsing_blocking_page.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc View 4 chunks +38 lines, -2 lines 0 comments Download
A chrome/test/data/safe_browsing/malware3.html View 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (9 generated)
estark
nparker, PTAL? jialiul: While I was here I noticed that BaseBlockingPage::main_frame_url() looks like it's unused. ...
3 years, 8 months ago (2017-04-21 01:53:56 UTC) #4
Jialiu Lin
LGTM. That's some awesome debugging! I didn't realize the temp whitelist handling has been incorrect ...
3 years, 8 months ago (2017-04-21 02:33:14 UTC) #6
Nathan Parker
lgtm Great!
3 years, 8 months ago (2017-04-21 18:17:27 UTC) #9
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/2831583006/1
3 years, 8 months ago (2017-04-21 18:20:49 UTC) #11
commit-bot: I haz the power
3 years, 8 months ago (2017-04-21 18:25:13 UTC) #14
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/2a99e9e1b32d0218d1e13a88bb6a...

Powered by Google App Engine
This is Rietveld 408576698