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

Issue 7080034: Currently, there is a bug in the way we show the csd phishing interstitial. (Closed)

Created:
9 years, 6 months ago by noelutz
Modified:
9 years, 6 months ago
CC:
chromium-reviews, Paweł Hajdan Jr.
Visibility:
Public.

Description

Currently, there is a bug in the way we show the csd phishing interstitial. Because we have to go from the UI to the IO back to the UI thread to display the csd interstitial it's possible that a navigation starts while we're on the IO thread which causes the interstitial constructor to fail on a DCHECK. This change moves the SafeBrowsing service whitelist logic from the IO thread to the UI thread so that the csd interstitial doesn't have to go through the IO thread. BUG=None TEST=None Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=87441

Patch Set 1 #

Patch Set 2 : Fix tests and add some logging. #

Total comments: 7

Patch Set 3 : merge #

Patch Set 4 : Address Matt's comments. #

Total comments: 5

Patch Set 5 : Address Brian's comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+143 lines, -113 lines) Patch
M chrome/browser/safe_browsing/client_side_detection_host.cc View 1 2 3 4 4 chunks +24 lines, -21 lines 0 comments Download
M chrome/browser/safe_browsing/client_side_detection_host_unittest.cc View 8 chunks +43 lines, -56 lines 0 comments Download
M chrome/browser/safe_browsing/client_side_detection_service.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_service.h View 1 2 4 chunks +19 lines, -11 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_service.cc View 1 4 chunks +56 lines, -25 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
noelutz
9 years, 6 months ago (2011-05-31 21:27:14 UTC) #1
mattm
http://codereview.chromium.org/7080034/diff/2001/chrome/browser/safe_browsing/client_side_detection_host.cc File chrome/browser/safe_browsing/client_side_detection_host.cc (right): http://codereview.chromium.org/7080034/diff/2001/chrome/browser/safe_browsing/client_side_detection_host.cc#newcode372 chrome/browser/safe_browsing/client_side_detection_host.cc:372: resource.threat_type= SafeBrowsingService::CLIENT_SIDE_PHISHING_URL; nit: space before = http://codereview.chromium.org/7080034/diff/2001/chrome/browser/safe_browsing/client_side_detection_host.cc#newcode383 chrome/browser/safe_browsing/client_side_detection_host.cc:383: } ...
9 years, 6 months ago (2011-05-31 22:00:41 UTC) #2
noelutz
Thanks for your comments. Please take another look, noé. http://codereview.chromium.org/7080034/diff/2001/chrome/browser/safe_browsing/client_side_detection_host.cc File chrome/browser/safe_browsing/client_side_detection_host.cc (right): http://codereview.chromium.org/7080034/diff/2001/chrome/browser/safe_browsing/client_side_detection_host.cc#newcode372 chrome/browser/safe_browsing/client_side_detection_host.cc:372: ...
9 years, 6 months ago (2011-06-01 01:18:01 UTC) #3
mattm
lgtm http://codereview.chromium.org/7080034/diff/2001/chrome/browser/safe_browsing/safe_browsing_service.cc File chrome/browser/safe_browsing/safe_browsing_service.cc (left): http://codereview.chromium.org/7080034/diff/2001/chrome/browser/safe_browsing/safe_browsing_service.cc#oldcode360 chrome/browser/safe_browsing/safe_browsing_service.cc:360: On 2011/06/01 01:18:01, noelutz wrote: > On 2011/05/31 ...
9 years, 6 months ago (2011-06-01 02:14:52 UTC) #4
Brian Ryner
lgtm http://codereview.chromium.org/7080034/diff/6004/chrome/browser/safe_browsing/client_side_detection_host.cc File chrome/browser/safe_browsing/client_side_detection_host.cc (right): http://codereview.chromium.org/7080034/diff/6004/chrome/browser/safe_browsing/client_side_detection_host.cc#newcode370 chrome/browser/safe_browsing/client_side_detection_host.cc:370: resource.redirect_urls = std::vector<GURL>(); This seems unnecessary, since you ...
9 years, 6 months ago (2011-06-01 02:58:43 UTC) #5
noelutz
Thanks. Please take another look, noé. http://codereview.chromium.org/7080034/diff/6004/chrome/browser/safe_browsing/client_side_detection_host.cc File chrome/browser/safe_browsing/client_side_detection_host.cc (right): http://codereview.chromium.org/7080034/diff/6004/chrome/browser/safe_browsing/client_side_detection_host.cc#newcode370 chrome/browser/safe_browsing/client_side_detection_host.cc:370: resource.redirect_urls = std::vector<GURL>(); ...
9 years, 6 months ago (2011-06-01 05:33:53 UTC) #6
Brian Ryner
lgtm http://codereview.chromium.org/7080034/diff/6004/chrome/browser/safe_browsing/client_side_detection_host.cc File chrome/browser/safe_browsing/client_side_detection_host.cc (right): http://codereview.chromium.org/7080034/diff/6004/chrome/browser/safe_browsing/client_side_detection_host.cc#newcode380 chrome/browser/safe_browsing/client_side_detection_host.cc:380: tab_contents()->controller().DiscardNonCommittedEntries(); On 2011/06/01 05:33:53, noelutz wrote: > On ...
9 years, 6 months ago (2011-06-01 05:35:55 UTC) #7
commit-bot: I haz the power
9 years, 6 months ago (2011-06-01 06:22:01 UTC) #8
Change committed as 87441

Powered by Google App Engine
This is Rietveld 408576698