Skip to content

Commit

Permalink
Revert "Add referrer-policy module worker tests"
Browse files Browse the repository at this point in the history
This reverts commit ec589a5ce0cd6d297605922119065cc2805d8db9.

Reason for revert: crbug.com/906964

Original change's description:
> Add referrer-policy module worker tests
>
> This CL adds WPT tests for referrer policy applied to
> module worker top-level script fetch.
>
> The only manual changes are
> - referrer-policy/generic/common.js
> - referrer-policy/generic/referrer-policy-test-case.js
> - referrer-policy/spec.src.json
> and all other modifications are made by
> referrer-policy/generic/tools/generate.py.
>
> Bug: 880027
> Change-Id: Ib1f9136161e8efacf317fb9b7e9ba0651a103c41
> Reviewed-on: https://chromium-review.googlesource.com/c/1330906
> Reviewed-by: Hiroki Nakagawa <nhiroki@chromium.org>
> Reviewed-by: Jochen Eisinger <jochen@chromium.org>
> Commit-Queue: Hiroshige Hayashizaki <hiroshige@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#609589}

TBR=hiroshige@chromium.org,nhiroki@chromium.org,jochen@chromium.org

Change-Id: I0931159c0494b981a1d6b07232af55b20f68f559
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: 880027, 906964
Reviewed-on: https://chromium-review.googlesource.com/c/1344213
Reviewed-by: Hiroshige Hayashizaki <hiroshige@chromium.org>
Commit-Queue: Hiroshige Hayashizaki <hiroshige@chromium.org>
Cr-Commit-Position: refs/heads/master@{#609731}
  • Loading branch information
hiroshige-g authored and chromium-wpt-export-bot committed Nov 20, 2018
1 parent 99e9e99 commit 1fa9612
Show file tree
Hide file tree
Showing 56 changed files with 4 additions and 1,530 deletions.
8 changes: 0 additions & 8 deletions referrer-policy/generic/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,14 +179,6 @@ function queryWorker(url, callback) {
};
}

function queryModuleWorkerTopLevel(url, callback) {
var worker = new Worker(url, {type: "module"});
worker.onmessage = function(event) {
var server_data = event.data;
callback(wrapResult(url, server_data), url);
};
}

function queryFetch(url, callback) {
fetch(url).then(function(response) {
response.json().then(function(server_data) {
Expand Down
1 change: 0 additions & 1 deletion referrer-policy/generic/referrer-policy-test-case.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ function ReferrerPolicyTestCase(scenario, testDescription, sanityChecker) {
"img-tag": queryImage,
"script-tag": queryScript,
"worker-request": queryWorker,
"module-worker": queryModuleWorkerTopLevel,
"xhr-request": queryXhr
};

Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 1fa9612

Please sign in to comment.