Skip to content

Implement missing history handling steps for form submission #43670

@jdm

Description

@jdm

// Step 24. Let historyHandling be "auto".
// TODO
// Step 25. If form document equals targetNavigable's active document, and form document has not yet completely loaded,
// then set historyHandling to "replace".
// TODO

step 24 and 25 of https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#concept-form-submit

This data needs to be propagated to all calls of Window::load_url from that function (or navigate after #43668). The spec for https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#planned-navigation is written weirdly where it references variables from the caller algorithm.

Tests: ./mach test-wpt tests/wpt/tests/html/semantics/forms/form-submission-0

Metadata

Metadata

Assignees

Labels

A-content/domInteracting with the DOM from web contentC-assignedThere is someone working on resolving the issueE-less-complexStraightforward. Recommended for a new contributor.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions