Bug 1639748 [wpt PR 23722] - Make form submissions cancel pending jsurl navigations...
commit409794a5daf6297c15be189e0d0eb81482207938
authorJoey Arhar <jarhar@chromium.org>
Sat, 30 May 2020 09:55:16 +0000 (30 09:55 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Mon, 1 Jun 2020 14:03:12 +0000 (1 14:03 +0000)
tree8d3bed089a3ce74f76d9c95f10888bb8a565c519
parent5341c46a559ee68d5f990adf33a7b3f41487ba21
Bug 1639748 [wpt PR 23722] - Make form submissions cancel pending jsurl navigations, a=testonly

Automatic update from web-platform-tests
Make form submissions cancel pending jsurl navigations

After http://crrev.com/c/1922699 iframes which are assigned a javascript
url via the iframe.src property and then immediately targeted by a form
submission would load both the javascript url and then the form
submission. Before, only the form submission would occur.

This patch fixes the regression by cancelling the pending javascript url
navigation when a form submission is scheduled.

Bug: 1084874
Change-Id: I93623d2fc5f5a1bd207a9f0956004be920b2e270
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2211099
Commit-Queue: Joey Arhar <jarhar@chromium.org>
Reviewed-by: Kent Tamura <tkent@chromium.org>
Reviewed-by: Mason Freed <masonfreed@chromium.org>
Reviewed-by: Nate Chapin <japhet@chromium.org>
Cr-Commit-Position: refs/heads/master@{#772875}

--

wpt-commits: 9ef19e4f9aafd26840fe7ceed77991b2738d89ae
wpt-pr: 23722
testing/web-platform/tests/html/semantics/forms/form-submission-0/jsurl-navigation-then-form-submit.html [new file with mode: 0644]