Closed
Bug 125578
Opened 23 years ago
Closed 22 years ago
Remove nsFormFrame entirely from existence
Categories
(Core :: Layout: Form Controls, defect)
Tracking
()
RESOLVED
FIXED
mozilla1.1alpha
People
(Reporter: john, Assigned: john)
References
Details
Attachments
(1 file, 1 obsolete file)
(deleted),
patch
|
john
:
review+
jst
:
superreview+
|
Details | Diff | Splinter Review |
According to pollmann, nsFormFrame only existed to manage form controls and
submission. When bug 108308 lands, that purpose will be entirely obsolete.
Assignee | ||
Comment 1•23 years ago
|
||
There is a question in my mind about whether or not save/restore state has
anything to do with nsFormFrame. Thus bug 108309 is marked as a blocker though
it might not be.
People believe this will fix bug 86633 and bug 44470. It will sure as heck
reduce memory consumption for forms.
Assignee | ||
Comment 2•23 years ago
|
||
This is 1.1 material at the moment, esp. since (we think) it blocks those other
bugs.
Target Milestone: --- → mozilla1.1
Updated•23 years ago
|
QA Contact: madhur → tpreston
Assignee | ||
Updated•23 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Comment 3•22 years ago
|
||
This removes nsFormFrame and fixes the dependent bugs as well by removing the
!important rule from stylesheet. To accomplish this it was necessary to move
the password manager initialization and form submit on pressing ENTER to
content. Additionally, I had to have submit() and reset() call
HandleDOMEvent() directly, since HandleDOMEventWithTarget *does not work* for
elements with display: none.
Tested against:
- pressing enter to submit (bug 99920)
- forms with display: inline (bug 86633) and none (bug 44470)
- http://www.johnkeiser.com/cgi-bin/mozform.pl
- password manager init (verify that password is filled in when you go to the
first password page)
- Bugzilla (bug search at bottom, upload attachment, make comment, query)
Comment 4•22 years ago
|
||
Comment on attachment 85110 [details] [diff] [review]
Patch
r= alexsavulov
boy, this was a big one again. clean removal, good work.
Attachment #85110 -
Flags: review+
Assignee | ||
Comment 5•22 years ago
|
||
Fixed JST's sr:
- changed nsIGfxTextControlFrame2::FireIfChanged() to CheckFireOnChange()
- made nsFormControlHelper::GetDisabled() inline-able and just call
nsIContent::HasAttr()
- nsHTMLInputElement::HandleDOMEvent() - moved the FireIfChanged() inside the
if (frame) block
Deliberately not fixed from JST's sr:
- still use HandleDOMEvent() directly instead of
PresShell::HandleEventWithTarget. This makes it possible to call submit() or
reset() on a form with display: none since HandleEventWithTarget does not work
in that regard (probably should be fixed but I'm not sure of the
ramifications). I have stepped through the code and HandleEventWithTarget
just happens not do anything extra in this case (now that nsFormFrame is gone).
Added comments to this effect and filed bug 148542 to deal
HandleEventWithTarget.
Also:
- added a comment on nsFormControlHelper::GetName()
- removed nsFormControlHelper::GetValue() and GetInputElementValue(), neither
of which were used
- added Win32/Mac build changes
Attachment #85110 -
Attachment is obsolete: true
Comment 6•22 years ago
|
||
Comment on attachment 85916 [details] [diff] [review]
Patch v1.0.1
sr=jst
Attachment #85916 -
Flags: superreview+
Assignee | ||
Comment 7•22 years ago
|
||
Comment on attachment 85916 [details] [diff] [review]
Patch v1.0.1
Carrying r=alexsavulov
Attachment #85916 -
Flags: review+
Assignee | ||
Comment 8•22 years ago
|
||
Fix checked in. Godspeed.
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 9•22 years ago
|
||
For drivers considering inclusion of this patch in 1.0.x: bug 149282 and bug
149685 need to be checked in if this is checked in.
Comment 10•22 years ago
|
||
*** Bug 180808 has been marked as a duplicate of this bug. ***
You need to log in
before you can comment on or make changes to this bug.
Description
•