[wpt-sync] Sync PR 33487 - Update test.html
Categories
(Testing :: web-platform-tests, task, P4)
Tracking
(Not tracked)
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 33487 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/33487
Details from upstream follow.
Martin Thomson <martin.thomson@gmail.com> wrote:
Update test.html
Fix test 64 for running under https and redirect to HTTPS for this test.
There's an alternative here that might be simpler: change test 64 to look for window.location.protocol using indexOf() === 0, but I think that this version will produce a better outcome for all involved.
I haven't investigated it, but there is an outside chance that HSTS on the server is cleaner. Given the amount of stuff that server serves, I doubt that that change would be trivial though.
I wasn't sure how far to go with the localhost detection piece; if this needs to include matching 127/8 and ::1, then I'm happy to adjust.
Description
•