Closed Bug 1761179 Opened 4 years ago Closed 4 years ago

[wpt-sync] Sync PR 33340 - Add WPT for 404 with Early Hints

Categories

(Testing :: web-platform-tests, task, P4)

task

Tracking

(firefox100 fixed)

RESOLVED FIXED
100 Branch
Tracking Status
firefox100 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 33340 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/33340
Details from upstream follow.

Kenichi Ishibashi <bashi@chromium.org> wrote:

Add WPT for 404 with Early Hints

The test scenario is:

  • The test page sends an Early Hints with an image preload.
  • The test page sends the final response with status code 404.
  • The 404 page uses the preloaded image.

The expectation is that the image is added to the preload map of the
404 page.

Before this CL NavigationURLLoaderImpl canceled preload when the final
response's status code isn't 2xx. Change the behavior to accept 4xx
status.

Bug: 1305896
Change-Id: I97c6a778abc851ecddfa04139d3ac8113e64059a

Reviewed-on: https://chromium-review.googlesource.com/3547937
WPT-Export-Revision: 579790ada1a68a3104dd1dbb76f46940e14ec40b

Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]

CI Results

Ran 11 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 24 tests and 1 subtests

Status Summary

Firefox

OK : 21[Gecko-android-em-7.0-x86_64-lite-qr-debug-geckoview, 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-linux1804-64-tsan-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] 24[GitHub]
PASS : 8
FAIL : 13[Gecko-android-em-7.0-x86_64-lite-qr-debug-geckoview, 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-linux1804-64-tsan-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] 16[GitHub]

Chrome

OK : 1
PASS : 1
ERROR: 23

Safari

OK : 10
PASS : 1
FAIL : 9
ERROR: 14

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

/loading/early-hints/404-with-early-hints.h2.window.html
404 with an early hints preload.: FAIL (Safari: FAIL)
/loading/early-hints/csp-early-hints-absent-final-absent.h2.window.html
Early Hints CSP: Early Hints policy = absent, final response policy = absent.: FAIL (Safari: FAIL)
/loading/early-hints/csp-early-hints-absent-final-allowed.h2.window.html
Early Hints CSP: Early Hints policy = absent, final response policy = allowed.: FAIL (Safari: FAIL)
/loading/early-hints/csp-early-hints-allowed-final-absent.h2.window.html
Early Hints CSP: Early Hints policy = allowed, final response policy = absent.: FAIL (Safari: FAIL)
/loading/early-hints/csp-early-hints-allowed-final-allowed.h2.window.html
Early Hints CSP: Early Hints policy = allowed, final response policy = allowed.: FAIL (Safari: FAIL)
/loading/early-hints/multiple-early-hints-responses.h2.window.html
Only the first early hints response is processed: FAIL
/loading/early-hints/preload-initiator-type.h2.window.html
Ensure initiatorType is set to 'early-hints': FAIL
/loading/early-hints/redirect-same-origin.h2.window.html
Redirect to the same origin keeps early hints preload: FAIL (Safari: FAIL)
/loading/early-hints/referrer-policy-no-referrer.h2.window.html
Referrer policy: no-referrer: FAIL
/loading/early-hints/referrer-policy-origin-when-cross-origin.h2.window.html
Referrer policy: origin-when-cross-origin: FAIL
/loading/early-hints/referrer-policy-origin.h2.window.html
Referrer policy: origin: FAIL
/loading/early-hints/referrer-policy-same-origin.h2.window.html
Referrer policy: same-origin: FAIL
/loading/early-hints/referrer-policy-unsafe-url.h2.window.html
Referrer policy: unsafe-url: FAIL
/loading/early-hints/preload-in-flight-when-consumed.h2.window.html
Early hints preload is in-flight when consumed.: FAIL
/loading/early-hints/redirect-cross-origin-between-early-hints.h2.window.html
Early hints -> cross origin redirect -> early hints -> final response.: FAIL
/loading/early-hints/redirect-same-origin-between-early-hints.h2.window.html
Early hints -> same origin redirect -> early hints -> final response.: FAIL (Safari: FAIL)

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/c97a87572296 [wpt PR 33340] - Add WPT for 404 with Early Hints, a=testonly https://hg.mozilla.org/integration/autoland/rev/f663b65644f1 [wpt PR 33340] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 100 Branch
You need to log in before you can comment on or make changes to this bug.