Closed Bug 1444884 Opened 6 years ago Closed 6 years ago

[wpt-sync] Sync PR 9970 - Prevent redirect loop in fetch/api/redirect/redirect-location.html

Categories

(Core :: DOM: Core & HTML, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
mozilla61
Tracking Status
firefox61 --- fixed

People

(Reporter: mozilla.org, Unassigned)

Details

(Whiteboard: [wptsync downstream])

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

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

Adam Rice wrote:
>  Prevent redirect loop in fetch/api/redirect/redirect-location.html
>  
>  The value of invalidLocationUrl, "#invalidurl:" is actually treated as a valid
>  URL by redirect.py, leading to a redirect loop. This makes the test take over 6
>  seconds in Chrome, causing it to time out. Change invalidLocationUrl to
>  "invalidurl:" to avoid the redirect loop and make the test faster.
>  
>  See Chrome issue http://crbug.com/815286 about the test timing out.
Component: web-platform-tests → DOM
Product: Testing → Core
Ran 2 tests and 60 subtests
OK     : 2
PASS   : 50
FAIL   : 10

Existing tests that now have a worse result (e.g. they used to PASS and now FAIL):
/fetch/api/redirect/redirect-location-worker.html
    Redirect 301 in "manual" mode with invalid location: FAIL
    Redirect 302 in "manual" mode with invalid location: FAIL
    Redirect 303 in "manual" mode with invalid location: FAIL
    Redirect 307 in "manual" mode with invalid location: FAIL
    Redirect 308 in "manual" mode with invalid location: FAIL
/fetch/api/redirect/redirect-location.html
    Redirect 301 in "manual" mode with invalid location: FAIL
    Redirect 302 in "manual" mode with invalid location: FAIL
    Redirect 303 in "manual" mode with invalid location: FAIL
    Redirect 307 in "manual" mode with invalid location: FAIL
    Redirect 308 in "manual" mode with invalid location: FAIL
P4 is unused to setting priority to P3.
Priority: P4 → P3
Pushed by james@hoppipolla.co.uk:
https://hg.mozilla.org/integration/mozilla-inbound/rev/120441171115
[wpt PR 9970] - Prevent redirect loop in fetch/api/redirect/redirect-location.html, a=testonly
https://hg.mozilla.org/integration/mozilla-inbound/rev/08d5e8e3b38a
[wpt PR 9970] - Update wpt metadata, a=testonly
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.