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

Issue 22159002: Add 'didDispatchPingLoader' callback to FrameLoaderClient. (Closed)

Created:
7 years, 4 months ago by Mike West
Modified:
7 years, 4 months ago
CC:
blink-reviews, jamesr, eae+blinkwatch, abarth-chromium, dglazkov+blink, gavinp+loader_chromium.org, mkwst+watchlist_chromium.org, Tom Sepez
Visibility:
Public.

Description

Add 'didDispatchPingLoader' callback to FrameLoaderClient. Our current <a ping> and CSP violation report layout tests dispatch a PingLoader to a script that writes to a file, and then navigate to another script that reads that file and dumps the payload. This works for most cases, but doesn't allow us to effectively assert that the number of pings matches the expectations. Adding a 'didDispatchPingLoader' callback enables visible output in layout tests when a PingLoader is dispatched to a URL, which makes it possible to verify that we're sending one and only one ping to a URL. This will be particularly useful for a future CL which intends to deduplicate CSP violation reports. Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=155608

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+103 lines, -10 lines) Patch
M LayoutTests/http/tests/navigation/ping-cookie.html View 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/http/tests/navigation/ping-cookie-expected.txt View 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/http/tests/navigation/ping-cross-origin.html View 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/http/tests/navigation/ping-cross-origin-expected.txt View 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/http/tests/navigation/ping-cross-origin-from-https.html View 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/http/tests/navigation/ping-cross-origin-from-https-expected.txt View 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/http/tests/navigation/ping-same-origin.html View 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/http/tests/navigation/ping-same-origin-expected.txt View 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/http/tests/security/contentSecurityPolicy/report-and-enforce.html View 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/http/tests/security/contentSecurityPolicy/report-and-enforce-expected.txt View 1 chunk +2 lines, -1 line 0 comments Download
M LayoutTests/http/tests/security/contentSecurityPolicy/report-blocked-data-uri.html View 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/http/tests/security/contentSecurityPolicy/report-blocked-data-uri-expected.txt View 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/http/tests/security/contentSecurityPolicy/report-blocked-file-uri.html View 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/http/tests/security/contentSecurityPolicy/report-blocked-file-uri-expected.txt View 1 chunk +2 lines, -1 line 0 comments Download
M LayoutTests/http/tests/security/contentSecurityPolicy/report-blocked-uri.html View 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/http/tests/security/contentSecurityPolicy/report-blocked-uri-cross-origin.html View 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/http/tests/security/contentSecurityPolicy/report-blocked-uri-cross-origin-expected.txt View 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/http/tests/security/contentSecurityPolicy/report-blocked-uri-expected.txt View 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/http/tests/security/contentSecurityPolicy/report-cross-origin-no-cookies.html View 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/http/tests/security/contentSecurityPolicy/report-cross-origin-no-cookies-expected.txt View 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/http/tests/security/contentSecurityPolicy/report-only.html View 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/http/tests/security/contentSecurityPolicy/report-only-expected.txt View 1 chunk +2 lines, -1 line 0 comments Download
M LayoutTests/http/tests/security/contentSecurityPolicy/report-only-report-uri-missing.html View 1 chunk +1 line, -4 lines 0 comments Download
M LayoutTests/http/tests/security/contentSecurityPolicy/report-same-origin-with-cookies.html View 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/http/tests/security/contentSecurityPolicy/report-same-origin-with-cookies-expected.txt View 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/http/tests/security/contentSecurityPolicy/report-uri.html View 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/http/tests/security/contentSecurityPolicy/report-uri-expected.txt View 1 chunk +2 lines, -1 line 0 comments Download
M LayoutTests/http/tests/security/contentSecurityPolicy/report-uri-from-child-frame.html View 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/http/tests/security/contentSecurityPolicy/report-uri-from-child-frame-expected.txt View 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/http/tests/security/contentSecurityPolicy/report-uri-from-inline-javascript.html View 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/http/tests/security/contentSecurityPolicy/report-uri-from-inline-javascript-expected.txt View 1 chunk +2 lines, -1 line 0 comments Download
M LayoutTests/http/tests/security/contentSecurityPolicy/report-uri-from-javascript.html View 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/http/tests/security/contentSecurityPolicy/report-uri-from-javascript-expected.txt View 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/http/tests/security/contentSecurityPolicy/report-uri-scheme-relative.html View 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/http/tests/security/contentSecurityPolicy/report-uri-scheme-relative-expected.txt View 1 chunk +2 lines, -1 line 0 comments Download
A LayoutTests/http/tests/security/contentSecurityPolicy/resources/report-test.js View 1 chunk +4 lines, -0 lines 0 comments Download
M Source/core/loader/EmptyClients.h View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/loader/FrameLoaderClient.h View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/loader/PingLoader.cpp View 2 chunks +3 lines, -0 lines 0 comments Download
M Source/testing/runner/TestRunner.h View 3 chunks +11 lines, -0 lines 0 comments Download
M Source/testing/runner/TestRunner.cpp View 4 chunks +18 lines, -0 lines 0 comments Download
M Source/testing/runner/WebTestProxy.cpp View 1 chunk +6 lines, -0 lines 0 comments Download
M Source/web/FrameLoaderClientImpl.h View 1 chunk +1 line, -0 lines 0 comments Download
M Source/web/FrameLoaderClientImpl.cpp View 1 chunk +6 lines, -0 lines 0 comments Download
M public/testing/WebFrameTestProxy.h View 1 chunk +7 lines, -0 lines 0 comments Download
M public/testing/WebTestProxy.h View 1 chunk +1 line, -0 lines 0 comments Download
M public/web/WebFrameClient.h View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Mike West
Jochen, mind taking a look at this? I intend to use the callback to make ...
7 years, 4 months ago (2013-08-05 09:03:57 UTC) #1
jochen (gone - plz use gerrit)
dunno, looks better than writing to a local file lgtm
7 years, 4 months ago (2013-08-05 09:26:18 UTC) #2
Nate Chapin
On 2013/08/05 09:26:18, jochen wrote: > dunno, looks better than writing to a local file ...
7 years, 4 months ago (2013-08-05 16:27:35 UTC) #3
jochen (gone - plz use gerrit)
On 2013/08/05 16:27:35, Nate Chapin wrote: > On 2013/08/05 09:26:18, jochen wrote: > > dunno, ...
7 years, 4 months ago (2013-08-05 16:31:07 UTC) #4
Mike West
On 2013/08/05 16:31:07, jochen wrote: > > So this patch is test-only, but the callback ...
7 years, 4 months ago (2013-08-05 16:45:13 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mkwst@chromium.org/22159002/1
7 years, 4 months ago (2013-08-06 10:37:40 UTC) #6
commit-bot: I haz the power
7 years, 4 months ago (2013-08-06 13:04:51 UTC) #7
Message was sent while issue was closed.
Change committed as 155608

Powered by Google App Engine
This is Rietveld 408576698