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

Issue 2451623005: Remove Dangerous indicator after going back from interstitial (Closed)

Created:
4 years, 1 month ago by estark
Modified:
4 years, 1 month ago
Reviewers:
Nathan Parker
CC:
chromium-reviews, grt+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove Dangerous indicator after going back from interstitial While showing a Safe Browsing interstitial, the top-level hostname for the WebContents gets added to a "pending" whitelist set. Previously, we were never removing URLs from that set, meaning that if you went Back from an interstitial to a URL on the same hostname, the Dangerous indicator persisted. This CL fixes this bug by removing pending whitelist URLs when an interstitial is dismissed with the Don't Proceed option. BUG=659709 TEST=Visit http://testsafebrowsing.appspot.com, click first link. Observe that the icon in the omnibox is a red triangle. Click "Back to safety". Observe that the icon in the omnibox is an (i), not a red triangle. TEST=Added browser test Committed: https://crrev.com/1ca09ca22c714b67a7d2be4070686065f47fd9d7 Cr-Commit-Position: refs/heads/master@{#428932}

Patch Set 1 #

Total comments: 6

Patch Set 2 : rebase #

Patch Set 3 : nparker comments #

Patch Set 4 : fix broken-ness: web_contents_getter doesn't work after navigation is gone #

Patch Set 5 : fix comment wrapping #

Patch Set 6 : add another test and expand one #

Total comments: 9

Patch Set 7 : nparker comments #

Patch Set 8 : typo fix #

Patch Set 9 : another typo fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+297 lines, -58 lines) Patch
M chrome/browser/safe_browsing/safe_browsing_blocking_page.cc View 1 2 3 2 chunks +6 lines, -3 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc View 1 2 3 4 5 6 7 8 7 chunks +111 lines, -1 line 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_blocking_page_unittest.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/safe_browsing/ui_manager.h View 1 2 3 4 4 chunks +36 lines, -9 lines 0 comments Download
M chrome/browser/safe_browsing/ui_manager.cc View 1 2 3 4 5 6 7 10 chunks +129 lines, -43 lines 0 comments Download
M chrome/browser/safe_browsing/ui_manager_unittest.cc View 1 2 3 4 chunks +14 lines, -2 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 44 (29 generated)
estark
nparker, another bug fix for you to take a look at, please.
4 years, 1 month ago (2016-10-27 01:44:48 UTC) #3
Nathan Parker
lgtm One remaining odd behavior is that if I proceed through a warning, then go ...
4 years, 1 month ago (2016-10-27 18:31:02 UTC) #7
estark
Some red bots alerted me that this was a little bit broken. Stupid tests, getting ...
4 years, 1 month ago (2016-10-28 17:57:47 UTC) #20
estark
A couple forgotten comments/replies... > One remaining odd behavior is that if I proceed through ...
4 years, 1 month ago (2016-10-28 18:01:33 UTC) #21
estark
Friendly ping
4 years, 1 month ago (2016-10-31 23:07:03 UTC) #24
Nathan Parker
lgtm hrm. I think your solution is better than any I can propose. I wish ...
4 years, 1 month ago (2016-10-31 23:54:38 UTC) #25
estark
Thanks! https://codereview.chromium.org/2451623005/diff/120001/chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc File chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc (right): https://codereview.chromium.org/2451623005/diff/120001/chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc#newcode121 chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc:121: void ClearURL(const GURL& url) { badurls.erase(url.spec()); } On ...
4 years, 1 month ago (2016-11-01 02:41:17 UTC) #26
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/2451623005/140001
4 years, 1 month ago (2016-11-01 02:43:03 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/297202)
4 years, 1 month ago (2016-11-01 02:52:56 UTC) #31
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/2451623005/160001
4 years, 1 month ago (2016-11-01 02:56:12 UTC) #34
estark
https://codereview.chromium.org/2451623005/diff/120001/chrome/browser/safe_browsing/ui_manager.cc File chrome/browser/safe_browsing/ui_manager.cc (right): https://codereview.chromium.org/2451623005/diff/120001/chrome/browser/safe_browsing/ui_manager.cc#newcode468 chrome/browser/safe_browsing/ui_manager.cc:468: // pages queued up for different resources on the ...
4 years, 1 month ago (2016-11-01 03:00:08 UTC) #35
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/263788)
4 years, 1 month ago (2016-11-01 03:06:45 UTC) #37
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/2451623005/180001
4 years, 1 month ago (2016-11-01 03:26:35 UTC) #40
commit-bot: I haz the power
Committed patchset #9 (id:180001)
4 years, 1 month ago (2016-11-01 04:04:36 UTC) #42
commit-bot: I haz the power
4 years, 1 month ago (2016-11-01 04:06:40 UTC) #44
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/1ca09ca22c714b67a7d2be4070686065f47fd9d7
Cr-Commit-Position: refs/heads/master@{#428932}

Powered by Google App Engine
This is Rietveld 408576698