|
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}
Total comments: 2
|
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
|
Total messages: 52 (35 generated)
|