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

Issue 2987563004: Revert of Use FrameIsAd to decide whether to isolate a frame in TopDocumentIsolation mode. (Closed)

Created:
3 years, 5 months ago by Łukasz Anforowicz
Modified:
3 years, 5 months ago
CC:
chromium-reviews, extensions-reviews_chromium.org, creis+watch_chromium.org, nasko+codewatch_chromium.org, jam, darin-cc_chromium.org, asvitkine+watch_chromium.org, chromium-apps-reviews_chromium.org, site-isolation-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Revert of Use FrameIsAd to decide whether to isolate a frame in TopDocumentIsolation mode. (patchset #28 id:540001 of https://codereview.chromium.org/2946113002/ ) Reason for revert: This CL has caused crashes reported in https://crbug.com/747403 Original issue's description: > Use FrameIsAd to decide whether to isolate a frame in TopDocumentIsolation mode. > > FrameIsAd heuristics > ==================== > > After this CL, TopDocumentIsolation will by default only isolate > cross-site frames that also match FrameIsAd heuristics. This behavior > is controllable via Finch, via chrome://flags and via command line > (see below for details). > > Impact on browser tests > ======================= > > Browser tests should not depend on the FrameIsAd heuristics. This is > taken care of by EnableTopDocumentIsolationForTesting, which enables > the mode that isolates all frames that are cross-site from the main > frame. > > chrome://flags changes > ====================== > > This CL tweaks TopDocumentIsolation's entry in chrome://flags, so that the > following variations are present (3. and 4. are introduced by this CL): > 1. Default > 2. Enabled > 3. Enabled (CrossSite - isolate all frames from sites other than > the top-level frame) > 4. Enabled (Ads - isolate only cross-site ads detected by heuristics) > 5. Disabled > > Today variations 1 and 5 turn off TDI mode (because the default for > kTopDocumentIsolation base::Feature is to be disabled). Variation 3 > enables TDI and isolates all cross-site frames (this is what browser > tests use when enabling TDI via EnableTopDocumentIsolationForTesting). > Variations 2 and 4 enable TDI and use FrameIsAd heuristics. Probably a > better name for variation 2 would be "Enabled (unspecified isolation > mode)", but the "Enabled" string is hardcoded in the chrome://flags > code. > > I've manually tested that if a user enabled TDI in chrome://flags before > this CL, then it will stay enabled after this CL (variation 2). > > Command line > ============ > > After this CL, the user can control TDI with the following command line > switches: > > - When no extra cmdline switches are present, then TDI is controlled via > chrome://flags and/or Finch experiments. > > - Cmdline flags to disable TDI: > --disable-features=top-document-isolation > > - Cmdline flags to enable TDI using unspecified / default isolation mode: > --enable-features=top-document-isolation > > - Cmdline flags to enable TDI using specific isolation mode (1 for > cross-site, 2 for ads; see the TopDocumentIsolationMode enum for all > possible values): > --enable-features="top-document-isolation<TopDocumentIsolation" \ > --force-fieldtrials=TopDocumentIsolation/Cmdline \ > --force-fieldtrial-params=TopDocumentIsolation.Cmdline:mode/1 > > BUG=733303 > CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation > > Review-Url: https://codereview.chromium.org/2946113002 > Cr-Commit-Position: refs/heads/master@{#488372} > Committed: https://chromium.googlesource.com/chromium/src/+/c1dd61f01ced0c94ccc2efe373a93c696bb98c2f TBR=creis@chromium.org,jam@chromium.org,asvitkine@chromium.org,jkarlin@chromium.org,csharrison@chromium.org # Skipping CQ checks because original CL landed less than 1 days ago. NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true BUG=733303 Review-Url: https://codereview.chromium.org/2987563004 Cr-Commit-Position: refs/heads/master@{#488660} Committed: https://chromium.googlesource.com/chromium/src/+/9d5eaef0eb860f65218f56e73af5aeb5408e3848

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+181 lines, -400 lines) Patch
M chrome/browser/BUILD.gn View 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/about_flags.cc View 2 chunks +1 line, -17 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.h View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 3 chunks +13 lines, -32 lines 0 comments Download
M chrome/browser/extensions/chrome_content_browser_client_extensions_part.h View 2 chunks +3 lines, -6 lines 0 comments Download
M chrome/browser/extensions/chrome_content_browser_client_extensions_part.cc View 2 chunks +7 lines, -10 lines 0 comments Download
D chrome/browser/page_load_metrics/ads_detection.h View 1 chunk +0 lines, -36 lines 0 comments Download
D chrome/browser/page_load_metrics/ads_detection.cc View 1 chunk +0 lines, -136 lines 0 comments Download
M chrome/browser/page_load_metrics/observers/ads_page_load_metrics_observer.h View 5 chunks +27 lines, -4 lines 0 comments Download
M chrome/browser/page_load_metrics/observers/ads_page_load_metrics_observer.cc View 7 chunks +69 lines, -21 lines 0 comments Download
M chrome/browser/page_load_metrics/observers/ads_page_load_metrics_observer_unittest.cc View 12 chunks +17 lines, -24 lines 0 comments Download
M chrome/browser/task_manager/providers/web_contents/subframe_task_browsertest.cc View 3 chunks +4 lines, -5 lines 0 comments Download
M chrome/browser/ui/extensions/hosted_app_browsertest.cc View 1 chunk +3 lines, -5 lines 0 comments Download
M content/browser/frame_host/render_frame_host_manager.cc View 2 chunks +12 lines, -14 lines 0 comments Download
M content/browser/top_document_isolation_browsertest.cc View 3 chunks +5 lines, -3 lines 0 comments Download
M content/public/browser/content_browser_client.h View 2 chunks +7 lines, -11 lines 0 comments Download
M content/public/browser/content_browser_client.cc View 1 chunk +5 lines, -7 lines 0 comments Download
M content/public/browser/navigation_handle.h View 2 chunks +3 lines, -5 lines 0 comments Download
M content/public/common/content_features.h View 1 chunk +0 lines, -34 lines 0 comments Download
M content/public/common/content_features.cc View 1 chunk +0 lines, -5 lines 0 comments Download
M content/public/test/test_utils.h View 4 chunks +2 lines, -8 lines 0 comments Download
M content/public/test/test_utils.cc View 3 chunks +0 lines, -12 lines 0 comments Download

Messages

Total messages: 6 (3 generated)
Łukasz Anforowicz
Created Revert of Use FrameIsAd to decide whether to isolate a frame in TopDocumentIsolation mode.
3 years, 5 months ago (2017-07-21 15:25:45 UTC) #2
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/2987563004/1
3 years, 5 months ago (2017-07-21 15:25:55 UTC) #3
commit-bot: I haz the power
3 years, 5 months ago (2017-07-21 15:26:49 UTC) #6
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/9d5eaef0eb860f65218f56e73af5...

Powered by Google App Engine
This is Rietveld 408576698