[wpt-sync] Sync PR 56978 - script: Fix fetch-later length and quota computation
Categories
(Core :: DOM: Networking, task, P4)
Tracking
()
People
(Reporter: wpt-sync, Unassigned)
References
(Depends on 1 open bug, )
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 56978 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/56978
Details from upstream follow.
Tim van der Lippe <tvanderlippe@gmail.com> wrote:
script: Fix fetch-later length and quota computation
The specification isn't complete here and thus we
were missing WPT coverage. Spec will be updated.Also, we are correctly throwing the QuotaExceededError with relevant information, while Chrome sets both
fields tonull. Therefore, the test now allows for both (since providing relevant information is good for the developer and recommended in the spec 1).Reviewed in servo/servo#41665
| Assignee | ||
Updated•3 days ago
|
| Assignee | ||
Comment 1•1 day ago
|
||
| Assignee | ||
Comment 2•1 day ago
|
||
CI Results
Ran 9 Firefox configurations based on mozilla-central, and Firefox, and Chrome on GitHub CI
Total 20 tests and 6 subtests
Status Summary
Firefox
OK : 1[GitHub] 13[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-24h2-debug, Gecko-windows11-64-24h2-debug, Gecko-windows11-64-24h2-opt] 14[Gecko-windows11-32-24h2-opt] 15[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview]
PASS : 1
FAIL : 1[GitHub] 59[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-24h2-opt, Gecko-windows11-64-24h2-debug, Gecko-windows11-64-24h2-opt] 60[Gecko-windows11-32-24h2-debug]
TIMEOUT: 2
ERROR : 1[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview] 2[Gecko-windows11-32-24h2-opt] 3[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-24h2-debug, Gecko-windows11-64-24h2-debug, Gecko-windows11-64-24h2-opt]
NOTRUN : 2
Chrome
OK : 1
PASS : 1
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
New Tests That Don't Pass
- /fetch/fetch-later/quota/cross-origin-iframe/max-payload.https.window.html [wpt.fyi]:
SKIP[Gecko-android-em-14-x86_64-debug-geckoview,Gecko-android-em-14-x86_64-lite-opt-geckoview,Gecko-android-em-14-x86_64-opt-geckoview,Gecko-linux2404-64-debug,Gecko-linux2404-64-opt,Gecko-windows11-32-24h2-opt,Gecko-windows11-64-24h2-debug,Gecko-windows11-64-24h2-opt],TIMEOUT[Gecko-windows11-32-24h2-debug]- fetchLater() accepts max payload in a parent-frame-origin POST request body of String in a default cross-origin iframe.:
FAIL - fetchLater() rejects max+1 payload in a parent-frame-origin POST request body of String in a default cross-origin iframe.:
TIMEOUT - fetchLater() accepts max payload in a self-frame-origin POST request body of String in a default cross-origin iframe.:
NOTRUN - fetchLater() rejects max+1 payload in a self-frame-origin POST request body of String in a default cross-origin iframe.:
NOTRUN
- fetchLater() accepts max payload in a parent-frame-origin POST request body of String in a default cross-origin iframe.:
- /fetch/fetch-later/quota/cross-origin-iframe/oversized-payload.https.window.html [wpt.fyi]:
SKIP - /fetch/fetch-later/quota/same-origin-iframe/max-payload.https.window.html [wpt.fyi]:
SKIP - /fetch/fetch-later/quota/same-origin-iframe/oversized-payload.https.window.html [wpt.fyi]:
SKIP - /fetch/fetch-later/quota/accumulated-oversized-payload.https.window.html [wpt.fyi]
- The 2nd fetchLater(same-origin) call in the top-level document is not allowed to exceed per-origin quota for its POST body of String.:
FAIL(Chrome:PASS)
- The 2nd fetchLater(same-origin) call in the top-level document is not allowed to exceed per-origin quota for its POST body of String.:
- /fetch/fetch-later/quota/cross-origin-iframe/accumulated-oversized-payload.https.window.html [wpt.fyi]
- The 2nd fetchLater(same-origin) call in a default cross-origin child iframe has its owned per-origin quota for a request POST body of String.:
FAIL
- The 2nd fetchLater(same-origin) call in a default cross-origin child iframe has its owned per-origin quota for a request POST body of String.:
- /fetch/fetch-later/quota/cross-origin-iframe/empty-payload.https.window.html [wpt.fyi]:
ERROR[Gecko-linux2404-64-debug,Gecko-windows11-32-24h2-debug,Gecko-windows11-32-24h2-opt,Gecko-windows11-64-24h2-debug,Gecko-windows11-64-24h2-opt],OK[Gecko-android-em-14-x86_64-debug-geckoview,Gecko-android-em-14-x86_64-lite-opt-geckoview,Gecko-android-em-14-x86_64-opt-geckoview,Gecko-linux2404-64-opt]- fetchLater() does not accept empty POST request body of String in a default cross-origin iframe.:
FAIL - fetchLater() does not accept empty POST request body of ArrayBuffer in a default cross-origin iframe.:
FAIL - fetchLater() accepts a non-empty POST request body of FormData in a default cross-origin iframe.:
FAIL - fetchLater() does not accept empty POST request body of URLSearchParams in a default cross-origin iframe.:
FAIL - fetchLater() does not accept empty POST request body of Blob in a default cross-origin iframe.:
FAIL - fetchLater() does not accept empty POST request body of File in a default cross-origin iframe.:
FAIL
- fetchLater() does not accept empty POST request body of String in a default cross-origin iframe.:
- /fetch/fetch-later/quota/cross-origin-iframe/multiple-iframes.https.window.html [wpt.fyi]:
ERROR[Gecko-linux2404-64-opt],OK[Gecko-android-em-14-x86_64-debug-geckoview,Gecko-android-em-14-x86_64-lite-opt-geckoview,Gecko-android-em-14-x86_64-opt-geckoview,Gecko-linux2404-64-debug,Gecko-windows11-32-24h2-debug,Gecko-windows11-32-24h2-opt,Gecko-windows11-64-24h2-debug,Gecko-windows11-64-24h2-opt]- fetchLater() request quota are delegated to cross-origin iframes and not shared, even if they are same origin.:
FAIL
- fetchLater() request quota are delegated to cross-origin iframes and not shared, even if they are same origin.:
- /fetch/fetch-later/quota/cross-origin-iframe/sandboxed-iframe.https.window.html [wpt.fyi]
- A sandboxed iframe (without allow-same-origin) should be treated as cross-origin and have its own minimal quota.:
FAIL
- A sandboxed iframe (without allow-same-origin) should be treated as cross-origin and have its own minimal quota.:
- /fetch/fetch-later/quota/cross-origin-iframe/small-payload.https.window.html [wpt.fyi]:
ERROR[Gecko-linux2404-64-debug,Gecko-linux2404-64-opt,Gecko-windows11-32-24h2-debug,Gecko-windows11-64-24h2-debug,Gecko-windows11-64-24h2-opt],OK[Gecko-android-em-14-x86_64-debug-geckoview,Gecko-android-em-14-x86_64-lite-opt-geckoview,Gecko-android-em-14-x86_64-opt-geckoview,Gecko-windows11-32-24h2-opt]- fetchLater() accepts payload[size=20] in a POST request body of String in a default cross-origin iframe.:
FAIL - fetchLater() accepts payload[size=20] in a POST request body of ArrayBuffer in a default cross-origin iframe.:
FAIL - fetchLater() accepts payload[size=20] in a POST request body of FormData in a default cross-origin iframe.:
FAIL - fetchLater() accepts payload[size=20] in a POST request body of URLSearchParams in a default cross-origin iframe.:
FAIL - fetchLater() accepts payload[size=20] in a POST request body of Blob in a default cross-origin iframe.:
FAIL - fetchLater() accepts payload[size=20] in a POST request body of File in a default cross-origin iframe.:
FAIL
- fetchLater() accepts payload[size=20] in a POST request body of String in a default cross-origin iframe.:
- /fetch/fetch-later/quota/empty-payload.https.window.html [wpt.fyi]:
ERROR- fetchLater() does not accept an empty POST request body of String.:
FAIL - fetchLater() does not accept an empty POST request body of ArrayBuffer.:
FAIL - fetchLater() does not accept an empty POST request body of URLSearchParams.:
FAIL - fetchLater() does not accept an empty POST request body of Blob.:
FAIL - fetchLater() does not accept an empty POST request body of File.:
FAIL - fetchLater() accept a GET request.:
FAIL - fetchLater() accept a DELETE request.:
FAIL - fetchLater() accept a PUT request.:
FAIL
- fetchLater() does not accept an empty POST request body of String.:
- /fetch/fetch-later/quota/max-payload.https.window.html [wpt.fyi]
- fetchLater() accepts max payload in a POST request body of String.:
FAIL - fetchLater() rejects max+1 payload in a POST request body of String.:
FAIL
- fetchLater() accepts max payload in a POST request body of String.:
- /fetch/fetch-later/quota/multiple-origins.https.window.html [wpt.fyi]
- fetchLater() has per-request-origin quota for its POST body of String.:
FAIL - fetchLater() has per-request-origin quota for its POST body of ArrayBuffer.:
FAIL - fetchLater() has per-request-origin quota for its POST body of FormData.:
FAIL - fetchLater() has per-request-origin quota for its POST body of URLSearchParams.:
FAIL - fetchLater() has per-request-origin quota for its POST body of Blob.:
FAIL - fetchLater() has per-request-origin quota for its POST body of File.:
FAIL
- fetchLater() has per-request-origin quota for its POST body of String.:
- /fetch/fetch-later/quota/oversized-payload.https.window.html [wpt.fyi]
- fetchLater() does not accept payload[size=65537] exceeding per-origin quota in a POST request body of String.:
FAIL - fetchLater() does not accept payload[size=65537] exceeding per-origin quota in a POST request body of ArrayBuffer.:
FAIL - fetchLater() does not accept payload[size=65537] exceeding per-origin quota in a POST request body of FormData.:
FAIL - fetchLater() does not accept payload[size=65537] exceeding per-origin quota in a POST request body of URLSearchParams.:
FAIL - fetchLater() does not accept payload[size=65537] exceeding per-origin quota in a POST request body of Blob.:
FAIL - fetchLater() does not accept payload[size=65537] exceeding per-origin quota in a POST request body of File.:
FAIL
- fetchLater() does not accept payload[size=65537] exceeding per-origin quota in a POST request body of String.:
- /fetch/fetch-later/quota/same-origin-iframe/accumulated-oversized-payload.https.window.html [wpt.fyi]
- The 2nd fetchLater(same-origin) call in a same-origin child iframe is not allowed to exceed per-origin quota for its POST body of String.:
FAIL
- The 2nd fetchLater(same-origin) call in a same-origin child iframe is not allowed to exceed per-origin quota for its POST body of String.:
- /fetch/fetch-later/quota/same-origin-iframe/empty-payload.https.window.html [wpt.fyi]
- fetchLater() does not accept empty POST request body of String in same-origin iframe.:
FAIL - fetchLater() does not accept empty POST request body of ArrayBuffer in same-origin iframe.:
FAIL - fetchLater() accepts a non-empty POST request body of FormData in same-origin iframe.:
FAIL - fetchLater() does not accept empty POST request body of URLSearchParams in same-origin iframe.:
FAIL - fetchLater() does not accept empty POST request body of Blob in same-origin iframe.:
FAIL - fetchLater() does not accept empty POST request body of File in same-origin iframe.:
FAIL
- fetchLater() does not accept empty POST request body of String in same-origin iframe.:
- /fetch/fetch-later/quota/same-origin-iframe/multiple-iframes.https.window.html [wpt.fyi]
- fetchLater() request quota are shared by same-origin iframes and root.:
FAIL
- fetchLater() request quota are shared by same-origin iframes and root.:
- /fetch/fetch-later/quota/same-origin-iframe/sandboxed-iframe.https.window.html [wpt.fyi]
- A sandboxed iframe with 'allow-same-origin' should be treated as same-origin and share the parent's quota.:
FAIL
- A sandboxed iframe with 'allow-same-origin' should be treated as same-origin and share the parent's quota.:
- /fetch/fetch-later/quota/same-origin-iframe/small-payload.https.window.html [wpt.fyi]
- fetchLater() accepts payload[size=20] in a POST request body of String in same-origin iframe.:
FAIL - fetchLater() accepts payload[size=20] in a POST request body of ArrayBuffer in same-origin iframe.:
FAIL - fetchLater() accepts payload[size=20] in a POST request body of FormData in same-origin iframe.:
FAIL - fetchLater() accepts payload[size=20] in a POST request body of URLSearchParams in same-origin iframe.:
FAIL - fetchLater() accepts payload[size=20] in a POST request body of Blob in same-origin iframe.:
FAIL - fetchLater() accepts payload[size=20] in a POST request body of File in same-origin iframe.:
FAIL
- fetchLater() accepts payload[size=20] in a POST request body of String in same-origin iframe.:
- /fetch/fetch-later/quota/small-payload.https.window.html [wpt.fyi]
- fetchLater() accepts small payload in a POST request body of String.:
FAIL - fetchLater() accepts small payload in a POST request body of ArrayBuffer.:
FAIL - fetchLater() accepts small payload in a POST request body of FormData.:
FAIL - fetchLater() accepts small payload in a POST request body of URLSearchParams.:
FAIL - fetchLater() accepts small payload in a POST request body of Blob.:
FAIL - fetchLater() accepts small payload in a POST request body of File.:
FAIL
- fetchLater() accepts small payload in a POST request body of String.:
Tests Disabled in Gecko Infrastructure
- /fetch/fetch-later/quota/cross-origin-iframe/max-payload.https.window.html [wpt.fyi]:
SKIP[Gecko-android-em-14-x86_64-debug-geckoview,Gecko-android-em-14-x86_64-lite-opt-geckoview,Gecko-android-em-14-x86_64-opt-geckoview,Gecko-linux2404-64-debug,Gecko-linux2404-64-opt,Gecko-windows11-32-24h2-opt,Gecko-windows11-64-24h2-debug,Gecko-windows11-64-24h2-opt],TIMEOUT[Gecko-windows11-32-24h2-debug] linked bugs:Bug 1970587, Bug 1988924 - /fetch/fetch-later/quota/cross-origin-iframe/oversized-payload.https.window.html [wpt.fyi]:
SKIPlinked bug:Bug 1970587 - /fetch/fetch-later/quota/same-origin-iframe/max-payload.https.window.html [wpt.fyi]:
SKIPlinked bug:Bug 1970587 - /fetch/fetch-later/quota/same-origin-iframe/oversized-payload.https.window.html [wpt.fyi]:
SKIPlinked bug:Bug 1970587
Description
•