Bug
1724309 [wpt PR 29921] - App history: fix event.formData to be POST-only, plus tests, a=testonly
Automatic update from web-platform-tests
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/c/chromium/src/+/
3076282
Commit-Queue: Domenic Denicola <domenic@chromium.org>
Reviewed-by: Nate Chapin <japhet@chromium.org>
Reviewed-by: Mason Freed <masonf@chromium.org>
Cr-Commit-Position: refs/heads/master@{#909507}
--
wpt-commits:
bd68e1184f5068f85df9fc545e0c990a00ff204f
wpt-pr: 29921