Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fetch] Mutation on navigation request #11176

Merged
merged 1 commit into from May 28, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
22 changes: 22 additions & 0 deletions fetch/api/request/request-reset-attributes.https.html
Expand Up @@ -33,4 +33,26 @@
}
}
}, 'Request.isReloadNavigation is reset with non-empty RequestInit');

promise_test(async (t) => {
const scope = 'resources/hello.txt?name=mode';
let frame;
let reg;

try {
reg = await service_worker_unregister_and_register(t, worker, scope);
await wait_for_state(t, reg.installing, 'activated');
frame = await with_iframe(scope);
assert_equals(frame.contentDocument.body.textContent,
'old: navigate, new: same-origin');
} finally {
if (frame) {
frame.remove();
}
if (reg) {
await reg.unregister();
}
}
}, 'Request.mode is reset with non-empty RequestInit when it\'s "navigate"');

</script>