Open
Bug 1930678
Opened 7 months ago
<form target=_blank>.submit() throws an error when opening a new window is blocked
Categories
(Core :: DOM: Forms, defect)
Core
DOM: Forms
Tracking
()
NEW
People
(Reporter: edgar, Unassigned)
Details
Test: https://software.hixie.ch/utilities/js/live-dom-viewer/?saved=13260
Only gecko throws an exception on submit()
when popup is blocked, per spec https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#concept-form-submit:
- Let targetNavigable be the first return value of applying the rules for choosing a navigable given target, form's node navigable, and noopener.
- If targetNavigable is null, then return.
submit steps just return (without throwing an error) when the rules for choosing a navigable
returns no navigable, i.e. creating a new window is blocked.
You need to log in
before you can comment on or make changes to this bug.
Description
•