| Summary: | Load event never firing after form is submitted | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Sam Sneddon [:gsnedders] <gsnedders> | ||||||||
| Component: | Page Loading | Assignee: | Chris Dumez <cdumez> | ||||||||
| Status: | RESOLVED FIXED | ||||||||||
| Severity: | Normal | CC: | achristensen, ap, beidson, cdumez, darin, ews-watchlist, ggaren, japhet, webkit-bug-importer, youennf | ||||||||
| Priority: | P2 | Keywords: | InRadar | ||||||||
| Version: | WebKit Nightly Build | ||||||||||
| Hardware: | Unspecified | ||||||||||
| OS: | Unspecified | ||||||||||
| URL: | http://wpt.live/html/semantics/forms/form-submission-target/rel-base-target.html | ||||||||||
| Attachments: |
|
||||||||||
|
Description
Sam Sneddon [:gsnedders]
2022-01-20 08:48:17 PST
Reduces down to:
<div id=log></div>
<form action=about:blank target=_blank><input type=hidden name=input></form>
<script>
const t1 = performance.now();
const submitter = document.querySelector("form");
submitter.submit();
window.onload = () => {
document.querySelector("#log").textContent = `loaded after ${performance.now() - t1}ms`;
}
</script>
I looked through our other form submission bugs, but this one seems new. I am investigating. Created attachment 453849 [details]
WIP patch
Created attachment 453851 [details]
Patch
Created attachment 453857 [details]
Patch
Comment on attachment 453857 [details]
Patch
r=me
Committed r290841 (248077@main): <https://commits.webkit.org/248077@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 453857 [details]. |