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

Issue 2883373002: Upstream service worker "referer" tests to WPT (Closed)

Created:
3 years, 7 months ago by mike3
Modified:
3 years, 7 months ago
Reviewers:
falken
CC:
chromium-reviews, michaeln, jsbell+serviceworker_chromium.org, kenjibaheux+watch_chromium.org, shimazu+serviceworker_chromium.org, serviceworker-reviews, blink-reviews-w3ctests_chromium.org, nhiroki, kinuko+serviceworker, blink-reviews, horo+watch_chromium.org, falken+watch_chromium.org, tzik
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Upstream service worker "referer" tests to WPT **referer** This test exists in both WPT and the Chromium project tree. They differ only in implementation details of the testing infrastructure. However, the upstream version suffers from timeout issues in the build environment. Rename the Chromium-specific version to reflect its deprecated status, and re-enable the upstream version as an expected timeout. **referrer-policy-header** Move test file for automated contribution to the Web Platform Tests project. Update URLs to use contextual values. Express asynchronous sub-test using the `promise_test` function. Consistently remove iframe regardless of sub-test result. Specify necessary HTTP headers in a format that is supported by the Web Platform Tests project. BUG=688116, 658997 R=falken@chromium.org Review-Url: https://codereview.chromium.org/2883373002 Cr-Commit-Position: refs/heads/master@{#472902} Committed: https://chromium.googlesource.com/chromium/src/+/74008fbe10dff1e03e4d5a9c941d6700705231df

Patch Set 1 #

Total comments: 6

Patch Set 2 : Incorporate review feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+65 lines, -106 lines) Patch
M third_party/WebKit/LayoutTests/TestExpectations View 1 chunk +2 lines, -2 lines 0 comments Download
A third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/referrer-policy-header.https.html View 1 1 chunk +43 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/resources/fetch-rewrite-worker-referrer-policy.js View 1 chunk +4 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/resources/fetch-rewrite-worker-referrer-policy.js.headers View 1 chunk +2 lines, -0 lines 0 comments Download
A + third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/resources/referrer-policy-iframe.html View 2 chunks +9 lines, -8 lines 0 comments Download
A + third_party/WebKit/LayoutTests/http/tests/serviceworker/chromium.referer.html View 1 chunk +5 lines, -0 lines 0 comments Download
D third_party/WebKit/LayoutTests/http/tests/serviceworker/referer.html View 1 chunk +0 lines, -30 lines 0 comments Download
D third_party/WebKit/LayoutTests/http/tests/serviceworker/referrer-policy-header.html View 1 chunk +0 lines, -30 lines 0 comments Download
D third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/fetch-rewrite-worker.php View 1 chunk +0 lines, -5 lines 0 comments Download
D third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/referrer-policy-iframe.html View 1 chunk +0 lines, -31 lines 0 comments Download

Messages

Total messages: 10 (3 generated)
mike3
Hi Matt--would you mind reviewing this for me?
3 years, 7 months ago (2017-05-16 18:07:10 UTC) #1
mike3
Also, here's a comparison of the two project's versions of the "referer" test: https://gist.github.com/jugglinmike/e8eb9efdbb8e32210def383760f8a2c9
3 years, 7 months ago (2017-05-16 18:10:33 UTC) #2
falken
https://codereview.chromium.org/2883373002/diff/1/third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/referrer-policy-header.https.html File third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/referrer-policy-header.https.html (left): https://codereview.chromium.org/2883373002/diff/1/third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/referrer-policy-header.https.html#oldcode28 third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/referrer-policy-header.https.html:28: .catch(unreached_rejection(t)); I think we can't remove this unless we ...
3 years, 7 months ago (2017-05-17 05:13:47 UTC) #3
mike3
This was a little sloppy on my part; sorry about that. Thanks for the review! ...
3 years, 7 months ago (2017-05-17 22:24:53 UTC) #4
falken
lgtm, thanks
3 years, 7 months ago (2017-05-18 01:53:40 UTC) #5
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/2883373002/20001
3 years, 7 months ago (2017-05-18 17:51:05 UTC) #7
commit-bot: I haz the power
3 years, 7 months ago (2017-05-18 19:35:55 UTC) #10
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/74008fbe10dff1e03e4d5a9c941d...

Powered by Google App Engine
This is Rietveld 408576698