blob: 821d0e40a8cf52d0d7a66e0946e87cf44b2447d8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// META: script=/common/utils.js
// META: script=resources/early-hints-helpers.sub.js
test(() => {
const resource_origin = CROSS_ORIGIN;
const resource_url = CROSS_ORIGIN + RESOURCES_PATH + "/empty.js?" + token();
const params = new URLSearchParams();
params.set("resource-origin", resource_origin);
params.set("resource-url", resource_url);
const test_url = "resources/preconnect-in-early-hints.h2.py?" + params.toString();
window.location.replace(new URL(test_url, window.location));
});
|