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

Issue 2211283004: Drop test-only WebFrameClient params/functions (Closed)

Created:
4 years, 4 months ago by Nate Chapin
Modified:
4 years, 4 months ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, tyoshino+watch_chromium.org, creis+watch_chromium.org, mlamouri+watch-test-runner_chromium.org, nasko+codewatch_chromium.org, jam, Yoav Weiss, loading-reviews_chromium.org, dglazkov+blink, darin-cc_chromium.org, gavinp+loader_chromium.org, blink-reviews, loading-reviews+fetch_chromium.org, kinuko+watch, Nate Chapin, blink-reviews-api_chromium.org, jochen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Drop test-only WebFrameClient params/functions * WebFrameClient::didFinishLoading() is only used for tests that dumpResourceLoadCallbacks(), and only one test (http/tests/cache/cancel-multiple-post-xhrs.html) is explicitly testing whether or not the load finishes. Rewrite that tests to listen to XHR onabort instead. * WebFrameClient::didChangeResourcePriority() is only used for the 3 tests that dumpResourceRequestPriorities(). Rewrite those tests as WebFrameTests (for http/tests/loading/script-priorities.html and http/tests/loading/promote-img-in-viewport-priority.html) or ResourceFetcherTests (http/tests/loading/sync-xhr-priority.html), and remove both the flag and the callback. * WebFrameClient::didReceiveResponse() has two parameters, one of which, |identifier|, is only used for looking up the original request url for that response. Dump the response url instead, which will only be different for requests that redirect. * Similarly, WebFrameClient::willSendRequest() has two parameters that are only used for layout tests, |identifier| and |redirectResponse|. |identifier| is unnecessary due to the changes to didReceiveResponse(). |redirectResponse| is used to dump redirect information, which is only relevant for 2 tests (http/tests/loading/307-after-303-after-post.html and http/tests/loading/redirect-methods.html). Not dumping the redirect response information leads to a small loss of information, because it does not put the redirect source and redirect destination urls right next to each other. However, neither layout test interleaves redirecting requests, so it ends up being very clear which requests are related, and all tests that dumpResourceLoadCallbacks() also dumpFrameLoadCallbacks(), which ensures that a redirect willSendRequest() dump is immediately followed by a didReceiveServerRedirectForProvisionalLoadForFrame dump. BUG= Committed: https://crrev.com/8489f1bf78c2c6f296e0df6c529751d29e8a0188 Cr-Commit-Position: refs/heads/master@{#413907}

Patch Set 1 #

Patch Set 2 : WebViewPlugin fix #

Patch Set 3 : test fix #

Total comments: 2

Patch Set 4 : Rebase #

Patch Set 5 : Rebase #

Patch Set 6 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+313 lines, -621 lines) Patch
M components/plugins/renderer/webview_plugin.h View 1 3 chunks +1 line, -9 lines 0 comments Download
M components/plugins/renderer/webview_plugin.cc View 1 3 chunks +3 lines, -12 lines 0 comments Download
M components/test_runner/layout_test_runtime_flags.h View 1 chunk +0 lines, -1 line 0 comments Download
M components/test_runner/layout_test_runtime_flags.cc View 1 chunk +0 lines, -1 line 0 comments Download
M components/test_runner/test_runner.h View 1 2 3 2 chunks +0 lines, -6 lines 0 comments Download
M components/test_runner/test_runner.cc View 1 2 3 5 chunks +0 lines, -17 lines 0 comments Download
M components/test_runner/web_frame_test_client.h View 1 2 3 2 chunks +2 lines, -15 lines 0 comments Download
M components/test_runner/web_frame_test_client.cc View 1 2 3 5 chunks +6 lines, -84 lines 0 comments Download
M components/test_runner/web_frame_test_proxy.h View 1 2 3 1 chunk +7 lines, -28 lines 0 comments Download
M content/renderer/render_frame_impl.h View 1 2 3 1 chunk +2 lines, -5 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 3 chunks +3 lines, -7 lines 0 comments Download
M content/renderer/render_view_browsertest.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/TestExpectations View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/loader/main-document-url-for-non-http-loads-expected.txt View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/cache/cancel-multiple-post-xhrs.html View 1 chunk +8 lines, -4 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/cache/cancel-multiple-post-xhrs-expected.txt View 1 chunk +1 line, -7 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/cache/iframe-304-crash-expected.txt View 1 chunk +2 lines, -4 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/history/post-replace-state-reload-expected.txt View 1 chunk +2 lines, -4 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/loading/307-after-303-after-post-expected.txt View 1 chunk +4 lines, -5 lines 0 comments Download
D third_party/WebKit/LayoutTests/http/tests/loading/promote-img-in-viewport-priority.html View 1 chunk +0 lines, -21 lines 0 comments Download
D third_party/WebKit/LayoutTests/http/tests/loading/promote-img-in-viewport-priority-expected.txt View 1 chunk +0 lines, -24 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/loading/redirect-methods-expected.txt View 4 chunks +16 lines, -24 lines 0 comments Download
D third_party/WebKit/LayoutTests/http/tests/loading/resources/async.js View 0 chunks +-1 lines, --1 lines 0 comments Download
D third_party/WebKit/LayoutTests/http/tests/loading/resources/body.js View 1 chunk +0 lines, -1 line 0 comments Download
D third_party/WebKit/LayoutTests/http/tests/loading/resources/defer.js View 0 chunks +-1 lines, --1 lines 0 comments Download
D third_party/WebKit/LayoutTests/http/tests/loading/resources/document-write.js View 1 chunk +0 lines, -1 line 0 comments Download
D third_party/WebKit/LayoutTests/http/tests/loading/resources/head.js View 1 chunk +0 lines, -1 line 0 comments Download
D third_party/WebKit/LayoutTests/http/tests/loading/script-priorities.html View 1 chunk +0 lines, -31 lines 0 comments Download
D third_party/WebKit/LayoutTests/http/tests/loading/script-priorities-expected.txt View 1 chunk +0 lines, -20 lines 0 comments Download
D third_party/WebKit/LayoutTests/http/tests/loading/sync-xhr-priority.html View 1 chunk +0 lines, -18 lines 0 comments Download
D third_party/WebKit/LayoutTests/http/tests/loading/sync-xhr-priority-expected.txt View 1 chunk +0 lines, -11 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/misc/favicon-loads-with-images-disabled-expected.txt View 1 chunk +1 line, -2 lines 0 comments Download
D third_party/WebKit/LayoutTests/http/tests/misc/resources/image-slow-out-of-viewport.pl View 1 chunk +0 lines, -19 lines 0 comments Download
D third_party/WebKit/LayoutTests/http/tests/misc/will-send-request-returns-null-on-redirect-expected.txt View 1 chunk +0 lines, -6 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/misc/window-dot-stop-expected.txt View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/navigation/location-reload-after-post-expected.txt View 1 chunk +2 lines, -4 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/security/XFrameOptions/x-frame-options-allowall-expected.txt View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/security/XFrameOptions/x-frame-options-deny-expected.txt View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/security/XFrameOptions/x-frame-options-invalid-expected.txt View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/security/XFrameOptions/x-frame-options-multiple-headers-conflict-expected.txt View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/security/XFrameOptions/x-frame-options-multiple-headers-sameorigin-allow-expected.txt View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/security/XFrameOptions/x-frame-options-none-expected.txt View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/security/XFrameOptions/x-frame-options-parent-same-origin-allow-expected.txt View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/security/block-test-expected.txt View 1 chunk +71 lines, -142 lines 0 comments Download
M third_party/WebKit/LayoutTests/security/block-test-no-port-expected.txt View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/ResourceFetcherTest.cpp View 1 2 3 1 chunk +18 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/loader/EmptyClients.h View 1 2 3 1 chunk +2 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/loader/FrameFetchContext.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/loader/FrameFetchContext.cpp View 1 2 3 4 6 chunks +5 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/core/loader/FrameLoaderClient.h View 1 2 3 2 chunks +2 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/web/FrameLoaderClientImpl.h View 1 2 3 1 chunk +2 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp View 1 2 3 4 1 chunk +4 lines, -24 lines 0 comments Download
M third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.h View 1 2 3 4 5 1 chunk +1 line, -3 lines 0 comments Download
M third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp View 1 2 3 4 5 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/web/WebLocalFrameImpl.cpp View 1 2 3 4 5 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/web/WebSharedWorkerImpl.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp View 1 2 3 4 5 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebFrameTest.cpp View 1 2 3 5 5 chunks +95 lines, -3 lines 0 comments Download
A + third_party/WebKit/Source/web/tests/data/image_slow.pl View 0 chunks +-1 lines, --1 lines 0 comments Download
A + third_party/WebKit/Source/web/tests/data/image_slow_out_of_viewport.pl View 0 chunks +-1 lines, --1 lines 0 comments Download
A + third_party/WebKit/Source/web/tests/data/priorities/async.js View 0 chunks +-1 lines, --1 lines 0 comments Download
A + third_party/WebKit/Source/web/tests/data/priorities/body.js View 0 chunks +-1 lines, --1 lines 0 comments Download
A + third_party/WebKit/Source/web/tests/data/priorities/defer.js View 0 chunks +-1 lines, --1 lines 0 comments Download
A + third_party/WebKit/Source/web/tests/data/priorities/document-write.js View 0 chunks +-1 lines, --1 lines 0 comments Download
A + third_party/WebKit/Source/web/tests/data/priorities/head.js View 0 chunks +-1 lines, --1 lines 0 comments Download
A + third_party/WebKit/Source/web/tests/data/priorities/injected.js View 0 chunks +-1 lines, --1 lines 0 comments Download
A + third_party/WebKit/Source/web/tests/data/priorities/injected-async.js View 0 chunks +-1 lines, --1 lines 0 comments Download
A third_party/WebKit/Source/web/tests/data/promote_img_in_viewport_priority.html View 1 chunk +18 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/web/tests/data/script_priority.html View 1 chunk +24 lines, -0 lines 0 comments Download
M third_party/WebKit/public/web/WebFrameClient.h View 1 2 3 1 chunk +5 lines, -16 lines 0 comments Download

Messages

Total messages: 52 (35 generated)
Nate Chapin
Sorry for the size of this patch. :/ If you agree with the patch description, ...
4 years, 4 months ago (2016-08-10 23:42:14 UTC) #16
Dirk Pranke
Seems reasonable. LGTM.
4 years, 4 months ago (2016-08-11 00:48:40 UTC) #17
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/2211283004/40001
4 years, 4 months ago (2016-08-11 03:07:39 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_clang_dbg_recipe/builds/110721) cast_shell_android on master.tryserver.chromium.android (JOB_FAILED, ...
4 years, 4 months ago (2016-08-11 03:11:13 UTC) #21
Nate Chapin
bauerb: Please review the changes in components/plugins/ avi: Please review the (very mechanical) changes in ...
4 years, 4 months ago (2016-08-18 18:01:35 UTC) #23
Bernhard Bauer
plugins LGTM
4 years, 4 months ago (2016-08-18 19:00:10 UTC) #28
Nate Chapin
Oops, avi is OOO. sievers, would you be up for a quick review of these ...
4 years, 4 months ago (2016-08-18 22:09:51 UTC) #30
no sievers
On 2016/08/18 22:09:51, Nate Chapin wrote: > Oops, avi is OOO. sievers, would you be ...
4 years, 4 months ago (2016-08-22 23:08:03 UTC) #31
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/2211283004/60001
4 years, 4 months ago (2016-08-22 23:08:58 UTC) #34
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/255621) mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, ...
4 years, 4 months ago (2016-08-22 23:13:15 UTC) #36
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/2211283004/80001
4 years, 4 months ago (2016-08-22 23:35:14 UTC) #39
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/127470)
4 years, 4 months ago (2016-08-23 00:34:34 UTC) #41
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/2211283004/100001
4 years, 4 months ago (2016-08-23 19:41:16 UTC) #44
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/214609)
4 years, 4 months ago (2016-08-23 23:20:22 UTC) #46
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/2211283004/100001
4 years, 4 months ago (2016-08-23 23:21:43 UTC) #48
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 4 months ago (2016-08-24 00:28:37 UTC) #50
commit-bot: I haz the power
4 years, 4 months ago (2016-08-24 00:30:32 UTC) #52
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/8489f1bf78c2c6f296e0df6c529751d29e8a0188
Cr-Commit-Position: refs/heads/master@{#413907}

Powered by Google App Engine
This is Rietveld 408576698