[wpt-sync] Sync PR 29921 - App history: fix event.formData to be POST-only, plus tests
Categories
(Testing :: web-platform-tests, task, P4)
Tracking
(firefox93 fixed)
Tracking | Status | |
---|---|---|
firefox93 | --- | fixed |
People
(Reporter: mozilla.org, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 29921 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/29921
Details from upstream follow.
b'Domenic Denicola <domenic@chromium.org>' wrote:
App history: fix event.formData to be POST-only, plus tests
event.formData is only supposed to be populated for POST form submissions. Fix that and update tests accordingly.
A number of tests were using e.preventDefault() after all the asserts. This was subpar because if the asserts failed the event would not be prevented, i.e. we would leave the test page. Put the e.preventDefault() first.
Test that event.formData does not appear for "traverse" or "reload" navigations even if the session history entry contains form data
Fixed: 1233710
Bug: 1183545
Change-Id: Ibc6307a9a8629df769c2eeae19b2d332af77843b
Reviewed-on: https://chromium-review.googlesource.com/3076282
WPT-Export-Revision: 554bfb12d0605605fd629cbed0f31e36608e65c6
Assignee | ||
Comment 1•3 years ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/#/jobs?repo=try&revision=eb08c68516cc91761226fea5240d5dfc2ada58d3
Assignee | ||
Comment 2•3 years ago
|
||
CI Results
Ran 0 Firefox configurations based on mozilla-central, and Firefox, and Safari on GitHub CI
Total 6 tests and 1 subtests
Status Summary
Firefox
OK : 6
FAIL: 6
Safari
OK : 6
FAIL: 6
Links
Details
New Tests That Don't Pass
/app-history/navigate-event/navigate-form-get.html
<form> submission with GET method fires navigate event but with formData null: FAIL (Safari: FAIL)
/app-history/navigate-event/navigate-form-reload.html
reloading a page created from form submission results in formData of null, not the original form data: FAIL (Safari: FAIL)
/app-history/navigate-event/navigate-form-traverse.html
reloading a page created from form submission results in formData of null, not the original form data: FAIL (Safari: FAIL)
/app-history/navigate-event/navigate-form-userInitiated.html
<form> submission fires navigate event: FAIL (Safari: FAIL)
/app-history/navigate-event/navigate-form-with-target.html
<form> submission with a target fires navigate event in target window but not source: FAIL (Safari: FAIL)
/app-history/navigate-event/navigate-form.html
<form> submission fires navigate event: FAIL (Safari: FAIL)
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/141770415b4c [wpt PR 29921] - App history: fix event.formData to be POST-only, plus tests, a=testonly https://hg.mozilla.org/integration/autoland/rev/d5a770eaa10e [wpt PR 29921] - Update wpt metadata, a=testonly
Comment 4•3 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/141770415b4c
https://hg.mozilla.org/mozilla-central/rev/d5a770eaa10e
Description
•