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

Issue 2689483007: Tests of ctrl-click can't postMessage to opener - using custom text instead. (Closed)

Created:
3 years, 10 months ago by Łukasz Anforowicz
Modified:
3 years, 8 months ago
Reviewers:
alexmos
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, mlamouri+watch-test-runner_chromium.org, Peter Beverloo, jam, einbinder+watch-test-runner_chromium.org, blink-reviews, darin-cc_chromium.org, jochen+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Tests of ctrl-click can't postMessage to opener - using custom text instead. This CL fixes/refactors two layout tests that used to depend on ability to find the opener via window.open, even in case of ctrl-click or shift-click. This dependency is incorrect and will be broken once https://crbug.com/658386 is fixed. The tests had to be refactored so that they don't depend on ability to communicate back with the main test window. After this CL the tests report their results via testRunner.setCustomTextOutput (rather than sending the results back to the main window using window.postMessage). In the 2 tests here, the custom text dump is being set from a secondary test window - the CL also needs to relax the condition that limited propagation of LayoutTestRuntimeFlags to the main test window. The intent of the original condition should have covered both secondary and main windows (i.e. the intent was to just check if the renderer has received a LayoutTestRuntimeFlags). It seems desirable overall to also propagate LayoutTestRuntimeFlags changes originating from secondary test windows. BUG=658386 Review-Url: https://codereview.chromium.org/2689483007 Cr-Commit-Position: refs/heads/master@{#463400} Committed: https://chromium.googlesource.com/chromium/src/+/69e056006f20f2973eafb2e95b7ea4395f3065db

Patch Set 1 #

Patch Set 2 : Rebasing... #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -81 lines) Patch
M content/shell/renderer/layout_test/blink_test_runner.cc View 1 2 chunks +10 lines, -5 lines 0 comments Download
M content/shell/test_runner/test_interfaces.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M content/shell/test_runner/test_interfaces.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download
M content/shell/test_runner/web_test_interfaces.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M content/shell/test_runner/web_test_interfaces.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/navigation/post-with-modifier.html View 2 chunks +2 lines, -23 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/navigation/post-with-modifier-expected.txt View 1 chunk +2 lines, -6 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/navigation/resources/post-with-modifier.php View 1 chunk +4 lines, -6 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/frame-src-vs-shift-click.html View 2 chunks +2 lines, -34 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/frame-src-vs-shift-click-expected.txt View 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/resources/frame-src-vs-shift-click-target.html View 1 chunk +5 lines, -7 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 18 (14 generated)
Łukasz Anforowicz
alexmos@, could you PTAL? 1. The two modified tests simulate clicking on an anchor/link while ...
3 years, 8 months ago (2017-04-10 18:10:06 UTC) #10
alexmos
Thanks, LGTM. I agree that propagating LayoutTestRuntimeFlags changes from secondary test windows is reasonable/desirable.
3 years, 8 months ago (2017-04-10 21:18:08 UTC) #13
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/2689483007/20001
3 years, 8 months ago (2017-04-10 21:20:54 UTC) #15
commit-bot: I haz the power
3 years, 8 months ago (2017-04-10 21:31:04 UTC) #18
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/69e056006f20f2973eafb2e95b7e...

Powered by Google App Engine
This is Rietveld 408576698