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

Issue 1878863002: Replicate LayoutTestRuntimeFlags across secondary window renderers. (Closed)

Created:
4 years, 8 months ago by Łukasz Anforowicz
Modified:
4 years, 8 months ago
CC:
blink-reviews, chromium-reviews, darin-cc_chromium.org, dcheng, jam, jochen+watch_chromium.org, mkwst+moarreviews-shell_chromium.org, mlamouri+watch-content_chromium.org, mlamouri+watch-test-runner_chromium.org, Peter Beverloo, site-isolation-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@replicate-web-content-settings
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Replicate LayoutTestRuntimeFlags across secondary window renderers. Before this CL, LayoutTestRuntimeFlags would only be replicated across renderers with frames belonging to the main test window. After this CL, LayoutTestRuntimeFlags are replicated across all renderers (including renderers for secondary window frames). This CL also switches to use control/process IPC messages (rather than RenderView messages) for propagating changes to LayoutTestRuntimeFlags. This is desirable, because LayoutTestRuntimeFlags are a global object, not really associated with a specific RenderView and/or BlinkTestRunner. This is also nice from code clean-up perspective - this approach doesn't need a swapped-out exception in LayoutTestContentClient and other baroque pieces of code in BlinkTestRunner and BlinkTestController. Regrettably, even after this CL, TestRunner continues to notify the world about LayoutTestRuntimeFlags changes via an arbitrarily picked BlinkTestRunner / WebTestDelegate. After this CL (and after the earlier https://crrev.com/1875303002) flags controlling WebContentSettingsClient are replicated to secondary renderers. This means that a few extra mixed content layout tests are passing in --site-per-process mode and allows to remove test expectations for this mode. BUG=587175, 582525, 595895 Committed: https://crrev.com/23c3a85fc9c33eecaec87d9cc85195dcdfb4b3aa Cr-Commit-Position: refs/heads/master@{#387977}

Patch Set 1 #

Patch Set 2 : Self-review. #

Patch Set 3 : More self review. #

Patch Set 4 : Global tracking of focused view. #

Patch Set 5 : Extracted half of changes to https://crrev.com/1890223002 #

Total comments: 2

Patch Set 6 : Rebasing... #

Unified diffs Side-by-side diffs Delta from patch set Stats (+97 lines, -99 lines) Patch
M components/test_runner/test_runner.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M content/shell/browser/layout_test/blink_test_controller.h View 1 2 3 4 3 chunks +6 lines, -4 lines 0 comments Download
M content/shell/browser/layout_test/blink_test_controller.cc View 1 2 3 4 6 chunks +18 lines, -24 lines 0 comments Download
M content/shell/browser/layout_test/layout_test_message_filter.h View 2 chunks +6 lines, -0 lines 0 comments Download
M content/shell/browser/layout_test/layout_test_message_filter.cc View 1 4 chunks +21 lines, -7 lines 0 comments Download
M content/shell/browser/layout_test/secondary_test_window_observer.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M content/shell/common/layout_test/layout_test_content_client.cc View 1 chunk +0 lines, -1 line 0 comments Download
M content/shell/common/layout_test/layout_test_messages.h View 1 2 3 4 1 chunk +13 lines, -0 lines 0 comments Download
M content/shell/common/shell_messages.h View 1 2 3 4 2 chunks +2 lines, -15 lines 0 comments Download
M content/shell/renderer/layout_test/blink_test_runner.cc View 1 2 3 4 5 1 chunk +2 lines, -14 lines 0 comments Download
M content/shell/renderer/layout_test/layout_test_render_frame_observer.h View 1 2 3 4 1 chunk +1 line, -6 lines 0 comments Download
M content/shell/renderer/layout_test/layout_test_render_frame_observer.cc View 1 2 3 4 5 2 chunks +1 line, -17 lines 0 comments Download
M content/shell/renderer/layout_test/layout_test_render_thread_observer.h View 1 2 3 4 5 2 chunks +6 lines, -0 lines 0 comments Download
M content/shell/renderer/layout_test/layout_test_render_thread_observer.cc View 1 2 3 4 5 3 chunks +10 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/FlagExpectations/site-per-process View 1 3 chunks +9 lines, -10 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 22 (12 generated)
Łukasz Anforowicz
+dcheng@ to CC [this CL cleans up some code that we've discussed in the past] ...
4 years, 8 months ago (2016-04-15 20:17:51 UTC) #4
Łukasz Anforowicz
jochen@, could you please take a look? In this CL, the refactorings from the last ...
4 years, 8 months ago (2016-04-15 20:19:24 UTC) #6
jochen (gone - plz use gerrit)
lgtm
4 years, 8 months ago (2016-04-17 17:11:37 UTC) #7
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1878863002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1878863002/80001
4 years, 8 months ago (2016-04-18 14:41:06 UTC) #9
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios_dbg_simulator_gn on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_gn/builds/20633) ios_dbg_simulator_ninja on ...
4 years, 8 months ago (2016-04-18 14:43:39 UTC) #11
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1878863002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1878863002/100001
4 years, 8 months ago (2016-04-18 17:42:39 UTC) #14
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-18 18:52:14 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1878863002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1878863002/100001
4 years, 8 months ago (2016-04-18 19:00:12 UTC) #19
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 8 months ago (2016-04-18 19:05:41 UTC) #20
commit-bot: I haz the power
4 years, 8 months ago (2016-04-18 19:07:25 UTC) #22
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/23c3a85fc9c33eecaec87d9cc85195dcdfb4b3aa
Cr-Commit-Position: refs/heads/master@{#387977}

Powered by Google App Engine
This is Rietveld 408576698