Only show a warning for frames pointing at UwS URLs, not resources.
commit6cf04694c355457102bb93c47b63754ea43d5f60
authorgab <gab@chromium.org>
Wed, 10 Dec 2014 03:52:55 +0000 (9 19:52 -0800)
committerCommit bot <commit-bot@chromium.org>
Wed, 10 Dec 2014 03:55:00 +0000 (10 03:55 +0000)
tree1f0d1136d04f8a08b5a796282a1cef222c9e6d24
parent27018cea56f6f1b3521975657acedbd20206c31a
Only show a warning for frames pointing at UwS URLs, not resources.

Where "frames" applies to the top-level frame, <iframe>'s, and <frame>'s.

Augmented SafeBrowsingBlockingPageBrowserTest to run for all 3 of MALWARE/PHISHING/UNWANTED threats.

BUG=439043
TEST=
A) New SafeBrowsingServiceTest.UnwantedImgIgnored test doesn't pass without corresponding ui_manager.cc change.
B) All SafeBrowsingBlockingPageBrowserTest augmented to run for UNWANTED_URL and PHISHING threats as well pass.
C) Manually verified that an iframe/frame/main_frame pointing to an Unwanted site triggers an interstitial, yet an image inclusion doesn't.

Review URL: https://codereview.chromium.org/770503004

Cr-Commit-Position: refs/heads/master@{#307636}
chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc
chrome/browser/safe_browsing/safe_browsing_service_browsertest.cc
chrome/browser/safe_browsing/ui_manager.cc