Clicking a form submit button on an invisible iframe noops

NEW
Unassigned

Status

()

Core
DOM: Core & HTML
8 years ago
8 years ago

People

(Reporter: stechz, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

8 years ago
The code for button click is here:
http://mxr.mozilla.org/mozilla-central/source/content/html/content/src/nsHTMLButtonElement.cpp#220

It relies on a presShell existing, which doesn't happen if an iframe is loaded as display: none.

Expected behavior IMO: the form should submit.
This is being fixed in a bug I just reviewed, but I don't have the bug number
in front of me right now.
You need to log in before you can comment on or make changes to this bug.