[wpt-sync] Sync PR 35707 - Add multiple tests for prefetch behavior
Categories
(Core :: DOM: Core & HTML, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox111 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
(Blocks 1 open bug, )
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 35707 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/35707
Details from upstream follow.
Noam Rosenthal <noamr@users.noreply.github.com> wrote:
Add multiple tests for prefetch behavior
See https://github.com/whatwg/html/pull/8111#issuecomment-1229907894
Tests that:
preload/prefetch-cache.html
No 5 minute rule (cache headers must be respected)preload/prefetch-document.html
No special treatment of as=document
Whether Accept is left as its default value.
Storage partitioning is applied, including for documentspreload/prefetch-load-event.html
Does not block the load eventpreload/prefetch-headers.html
Sec-PurposeandSec-Destinationare correctpreload/prefetch-types.html
Always uses prefetch destination, and ignores as=""preload/prefetch-events.html
Load & error events are fired, and invalid/empty hrefs are ignored.
| Assignee | ||
Updated•3 years ago
|
| Assignee | ||
Comment 1•3 years ago
|
||
| Assignee | ||
Comment 2•3 years ago
|
||
CI Results
Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 7 tests and 25 subtests
Status Summary
Firefox
OK : 7
PASS : 12[GitHub] 13[Gecko-android-em-7.0-x86_64-lite-qr-opt-geckoview, Gecko-android-em-7.0-x86_64-qr-debug-geckoview, Gecko-android-em-7.0-x86_64-qr-opt-geckoview, Gecko-linux1804-64-qr-debug, Gecko-linux1804-64-qr-opt, Gecko-windows10-32-2004-qr-debug, Gecko-windows10-32-2004-qr-opt, Gecko-windows10-64-2004-qr-debug, Gecko-windows10-64-2004-qr-opt]
FAIL : 35[Gecko-android-em-7.0-x86_64-lite-qr-opt-geckoview, Gecko-android-em-7.0-x86_64-qr-debug-geckoview, Gecko-android-em-7.0-x86_64-qr-opt-geckoview, Gecko-linux1804-64-qr-debug, Gecko-linux1804-64-qr-opt, Gecko-windows10-32-2004-qr-debug, Gecko-windows10-32-2004-qr-opt, Gecko-windows10-64-2004-qr-debug, Gecko-windows10-64-2004-qr-opt] 36[GitHub]
Chrome
OK : 7
PASS : 13
FAIL : 35
Safari
OK : 2
PASS : 3
FAIL : 7
TIMEOUT: 10
NOTRUN : 33
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
New Tests That Don't Pass
- /preload/prefetch-accept.html [wpt.fyi]
- Document prefetch should send the exact Accept header as navigation:
FAIL(Chrome:PASS, Safari:TIMEOUT)
- Document prefetch should send the exact Accept header as navigation:
- /preload/prefetch-cache.html [wpt.fyi]
- Prefetch should populate the HTTP cache:
FAIL[GitHub],PASS[Gecko-android-em-7.0-x86_64-lite-qr-opt-geckoview,Gecko-android-em-7.0-x86_64-qr-debug-geckoview,Gecko-android-em-7.0-x86_64-qr-opt-geckoview,Gecko-linux1804-64-qr-debug,Gecko-linux1804-64-qr-opt,Gecko-windows10-32-2004-qr-debug,Gecko-windows10-32-2004-qr-opt,Gecko-windows10-64-2004-qr-debug,Gecko-windows10-64-2004-qr-opt] (Chrome:PASS, Safari:TIMEOUT)
- Prefetch should populate the HTTP cache:
- /preload/prefetch-document.html [wpt.fyi]
- same origin document prefetch without 'as' should be consumed:
FAIL(Chrome:PASS, Safari:TIMEOUT) - same-site different-origin document prefetch without 'as' should be consumed:
FAIL(Chrome:PASS, Safari:NOTRUN) - Document prefetch should send the exact Accept header as navigation:
FAIL(Chrome:PASS, Safari:NOTRUN)
- same origin document prefetch without 'as' should be consumed:
- /preload/prefetch-events.html [wpt.fyi]
- Prefetch should fire the load event:
FAIL(Chrome:PASS, Safari:FAIL) - Prefetch should fire the load event for 404:
FAIL(Chrome:FAIL, Safari:FAIL) - Prefetch should fire the load event for 500:
FAIL(Chrome:FAIL, Safari:FAIL) - Prefetch should fire the error event for network errors:
FAIL(Chrome:PASS, Safari:FAIL)
- Prefetch should fire the load event:
- /preload/prefetch-headers.html [wpt.fyi]
- Prefetch should include Sec-Purpose=prefetch and Sec-Fetch-Dest=empty headers:
FAIL(Chrome:FAIL, Safari:TIMEOUT) - Prefetch should not include proprietary headers (X-moz/Purpose):
FAIL(Chrome:FAIL, Safari:NOTRUN)
- Prefetch should include Sec-Purpose=prefetch and Sec-Fetch-Dest=empty headers:
- /preload/prefetch-types.html [wpt.fyi]
- Prefetch as= should work when consumed as (http://web-platform.test:8000):
FAIL(Chrome:FAIL, Safari:TIMEOUT) - Prefetch as= should work when consumed as image (http://web-platform.test:8000):
FAIL(Chrome:FAIL, Safari:NOTRUN) - Prefetch as= should work when consumed as script (http://web-platform.test:8000):
FAIL(Chrome:FAIL, Safari:NOTRUN) - Prefetch as= should work when consumed as style (http://web-platform.test:8000):
FAIL(Chrome:FAIL, Safari:NOTRUN) - Prefetch as= should work when consumed as document (http://web-platform.test:8000):
FAIL(Chrome:FAIL, Safari:NOTRUN) - Prefetch as=image should work when consumed as (http://web-platform.test:8000):
FAIL(Chrome:FAIL, Safari:NOTRUN) - Prefetch as=image should work when consumed as image (http://web-platform.test:8000):
FAIL(Chrome:FAIL, Safari:NOTRUN) - Prefetch as=image should work when consumed as script (http://web-platform.test:8000):
FAIL(Chrome:FAIL, Safari:NOTRUN) - Prefetch as=image should work when consumed as style (http://web-platform.test:8000):
FAIL(Chrome:FAIL, Safari:NOTRUN) - Prefetch as=image should work when consumed as document (http://web-platform.test:8000):
FAIL(Chrome:FAIL, Safari:NOTRUN) - Prefetch as=script should work when consumed as (http://web-platform.test:8000):
FAIL(Chrome:FAIL, Safari:NOTRUN) - Prefetch as=script should work when consumed as image (http://web-platform.test:8000):
FAIL(Chrome:FAIL, Safari:NOTRUN) - Prefetch as=script should work when consumed as script (http://web-platform.test:8000):
FAIL(Chrome:FAIL, Safari:NOTRUN) - Prefetch as=script should work when consumed as style (http://web-platform.test:8000):
FAIL(Chrome:FAIL, Safari:NOTRUN) - Prefetch as=script should work when consumed as document (http://web-platform.test:8000):
FAIL(Chrome:FAIL, Safari:NOTRUN) - Prefetch as=style should work when consumed as (http://web-platform.test:8000):
FAIL(Chrome:FAIL, Safari:NOTRUN) - Prefetch as=style should work when consumed as image (http://web-platform.test:8000):
FAIL(Chrome:FAIL, Safari:NOTRUN) - Prefetch as=style should work when consumed as script (http://web-platform.test:8000):
FAIL(Chrome:FAIL, Safari:NOTRUN) - Prefetch as=style should work when consumed as style (http://web-platform.test:8000):
FAIL(Chrome:FAIL, Safari:NOTRUN) - Prefetch as=style should work when consumed as document (http://web-platform.test:8000):
FAIL(Chrome:FAIL, Safari:NOTRUN) - Prefetch as=document should work when consumed as (http://web-platform.test:8000):
FAIL(Chrome:FAIL, Safari:NOTRUN) - Prefetch as=document should work when consumed as image (http://web-platform.test:8000):
FAIL(Chrome:FAIL, Safari:NOTRUN) - Prefetch as=document should work when consumed as script (http://web-platform.test:8000):
FAIL(Chrome:FAIL, Safari:NOTRUN) - Prefetch as=document should work when consumed as style (http://web-platform.test:8000):
FAIL(Chrome:FAIL, Safari:NOTRUN) - Prefetch as=document should work when consumed as document (http://web-platform.test:8000):
FAIL(Chrome:FAIL, Safari:NOTRUN)
- Prefetch as= should work when consumed as (http://web-platform.test:8000):
Comment 4•3 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/bd34864725f5
https://hg.mozilla.org/mozilla-central/rev/60d8ca6c4793
Description
•