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

Issue 2444383007: Trigger Dangerous indicator for unsafe subresources (Closed)

Created:
4 years, 1 month ago by estark
Modified:
4 years, 1 month ago
CC:
chromium-reviews, nasko+codewatch_chromium.org, grt+watch_chromium.org, jam, darin-cc_chromium.org, creis+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Trigger Dangerous indicator for unsafe subresources Previously, the Dangerous indicator was not firing for subresources flagged by Safe Browsing as unsafe. This is because marking a subresource as unsafe was not triggering an omnibox update. We want to trigger an omnibox update whenever a URL is marked as whitelisted (either pending, meaning that an interstitial is showing, or whitelisted, meaning that an interstitial has been clicked through) in SafeBrowsingUIManager. To do so, this CL renames WebContentsImpl::DidChangeVisibleSSLState() to DidChangeVisibleSecurityState() (since it's no longer just SSL information that can affect the omnibox security UI) and moves it to WebContents so that it can be called from SafeBrowsingUIManager. BUG=659713 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/8bb181295c47ba4d74a626f809a1a27423544f2f Cr-Commit-Position: refs/heads/master@{#428223}

Patch Set 1 #

Patch Set 2 : cleanup #

Patch Set 3 : add missing #include #

Total comments: 2

Patch Set 4 : protip: #include the .h, not the .cc #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+208 lines, -41 lines) Patch
M chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc View 1 1 chunk +48 lines, -0 lines 0 comments Download
M chrome/browser/safe_browsing/ui_manager.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/safe_browsing/ui_manager_unittest.cc View 1 2 3 3 chunks +112 lines, -0 lines 1 comment Download
M chrome/browser/ssl/chrome_security_state_model_client.h View 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/ssl/chrome_security_state_model_client.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ssl/chrome_security_state_model_client_browser_tests.cc View 4 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/ui/browser.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/browser.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M components/web_contents_delegate_android/web_contents_delegate_android.h View 1 chunk +1 line, -1 line 0 comments Download
M components/web_contents_delegate_android/web_contents_delegate_android.cc View 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/frame_host/interstitial_page_impl.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M content/browser/ssl/ssl_manager.h View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/ssl/ssl_manager.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/ssl/ssl_manager_unittest.cc View 4 chunks +4 lines, -4 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 2 chunks +1 line, -3 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 2 chunks +14 lines, -14 lines 0 comments Download
M content/public/browser/web_contents.h View 1 chunk +3 lines, -0 lines 0 comments Download
M content/public/browser/web_contents_delegate.h View 1 chunk +3 lines, -3 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 34 (20 generated)
estark
nparker, PTAL? Most of the files here are mechanical renames; the interesting stuff is in ...
4 years, 1 month ago (2016-10-27 00:54:46 UTC) #7
Nathan Parker
lgtm Nice! https://codereview.chromium.org/2444383007/diff/40001/chrome/browser/safe_browsing/ui_manager.cc File chrome/browser/safe_browsing/ui_manager.cc (right): https://codereview.chromium.org/2444383007/diff/40001/chrome/browser/safe_browsing/ui_manager.cc#newcode394 chrome/browser/safe_browsing/ui_manager.cc:394: web_contents->DidChangeVisibleSecurityState(); Could this go in the "{Insert(whitelisted_url)..}" ...
4 years, 1 month ago (2016-10-27 18:49:32 UTC) #16
estark
jam: could you please review the chrome/browser/, components/, and /content parts of this? The gist ...
4 years, 1 month ago (2016-10-27 20:06:09 UTC) #20
jam
lgtm
4 years, 1 month ago (2016-10-27 22:42:33 UTC) #21
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/2444383007/60001
4 years, 1 month ago (2016-10-27 23:51:32 UTC) #23
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 1 month ago (2016-10-27 23:57:45 UTC) #24
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/8bb181295c47ba4d74a626f809a1a27423544f2f Cr-Commit-Position: refs/heads/master@{#428223}
4 years, 1 month ago (2016-10-27 23:59:50 UTC) #26
tommycli
A revert of this CL (patchset #4 id:60001) has been created in https://codereview.chromium.org/2461093002/ by tommycli@chromium.org. ...
4 years, 1 month ago (2016-10-28 22:21:15 UTC) #27
Lei Zhang
On 2016/10/28 22:21:15, tommycli wrote: > A revert of this CL (patchset #4 id:60001) has ...
4 years, 1 month ago (2016-10-28 22:57:29 UTC) #28
estark
On 2016/10/28 22:57:29, Lei Zhang wrote: > On 2016/10/28 22:21:15, tommycli wrote: > > A ...
4 years, 1 month ago (2016-10-28 23:01:13 UTC) #29
DaleCurtis
On 2016/10/28 at 23:01:13, estark wrote: > On 2016/10/28 22:57:29, Lei Zhang wrote: > > ...
4 years, 1 month ago (2016-10-28 23:03:14 UTC) #30
Lei Zhang
https://codereview.chromium.org/2444383007/diff/60001/chrome/browser/safe_browsing/ui_manager_unittest.cc File chrome/browser/safe_browsing/ui_manager_unittest.cc (right): https://codereview.chromium.org/2444383007/diff/60001/chrome/browser/safe_browsing/ui_manager_unittest.cc#newcode355 chrome/browser/safe_browsing/ui_manager_unittest.cc:355: MakeUnsafeResource(kBadURL, true /* is_subresource */); I think the simple ...
4 years, 1 month ago (2016-10-28 23:03:46 UTC) #32
estark
On 2016/10/28 23:03:14, DaleCurtis wrote: > On 2016/10/28 at 23:01:13, estark wrote: > > On ...
4 years, 1 month ago (2016-10-28 23:03:54 UTC) #33
estark
4 years, 1 month ago (2016-10-28 23:06:17 UTC) #34
Message was sent while issue was closed.
On 2016/10/28 23:03:46, Lei Zhang wrote:
>
https://codereview.chromium.org/2444383007/diff/60001/chrome/browser/safe_bro...
> File chrome/browser/safe_browsing/ui_manager_unittest.cc (right):
> 
>
https://codereview.chromium.org/2444383007/diff/60001/chrome/browser/safe_bro...
> chrome/browser/safe_browsing/ui_manager_unittest.cc:355:
> MakeUnsafeResource(kBadURL, true /* is_subresource */);
> I think the simple cause of the MSAN error is resource.is_subframe not being
> initialized. Given the simple error, I recommended we do (3) - revert the
> revert, and just init is_subframe and call it a day.

Yes, the fix is in https://codereview.chromium.org/2458223002/

Powered by Google App Engine
This is Rietveld 408576698