Should throw a TypeError on attempts to construct Request with mode=navigate
Categories
(Core :: DOM: Networking, defect, P2)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox69 | --- | fixed |
People
(Reporter: twisniewski, Assigned: kershaw)
References
()
Details
(Whiteboard: [necko-triaged])
Attachments
(1 file)
Step 18 in the fetch spec for the Request constructor [1] indicates that we should throw a TypeError if mode=navigate, which we currently do not do, thus failing the related WPT.
[1] https://fetch.spec.whatwg.org/#ref-for-dfn-throw%E2%91%A0%E2%91%A7
| Assignee | ||
Updated•7 years ago
|
| Assignee | ||
Comment 1•7 years ago
|
||
The code [1] was complied with the spec before, but it was changed in bug 1298823.
This looks like a spec issue to me.
Anne, what do you think?
Comment 2•7 years ago
|
||
Throwing less often was about the first argument being a Request object whose mode is "navigate", right? This is about the second argument being an object whose mode member is "navigate". That should still throw.
| Assignee | ||
Updated•7 years ago
|
| Assignee | ||
Comment 3•7 years ago
|
||
Comment 5•7 years ago
|
||
Backed out changeset 3b6338393cc7 (Bug 1546041) for mochitest failures at test_request.html.
Backout: https://hg.mozilla.org/integration/autoland/rev/6f3ded4cf77287eb566e8ff8d40bb3d272722a0d
Push that started the failures: https://treeherder.mozilla.org/#/jobs?repo=autoland&resultStatus=pending%2Crunning%2Csuccess%2Ctestfailed%2Cbusted%2Cexception&revision=3b6338393cc72035f69e2804e364080fbdd5a7e5&selectedJob=248509605
Failure log: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=248509605&repo=autoland&lineNumber=3765
| Assignee | ||
Comment 7•7 years ago
|
||
(In reply to Cristian Brindusan [:cbrindusan] from comment #5)
Backed out changeset 3b6338393cc7 (Bug 1546041) for mochitest failures at test_request.html.
Backout: https://hg.mozilla.org/integration/autoland/rev/6f3ded4cf77287eb566e8ff8d40bb3d272722a0d
Push that started the failures: https://treeherder.mozilla.org/#/jobs?repo=autoland&resultStatus=pending%2Crunning%2Csuccess%2Ctestfailed%2Cbusted%2Cexception&revision=3b6338393cc72035f69e2804e364080fbdd5a7e5&selectedJob=248509605
Failure log: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=248509605&repo=autoland&lineNumber=3765
I've fixed the test.
Comment 8•7 years ago
|
||
| bugherder | ||
Description
•