Closed
Bug 939004
Opened 12 years ago
Closed 12 years ago
don't uselessly listen for earlyformsubmit notifications in formSubmitListener.js
Categories
(Toolkit :: Form Manager, defect)
Toolkit
Form Manager
Tracking
()
RESOLVED
INVALID
People
(Reporter: froydnj, Unassigned)
Details
Attachments
(1 file)
I don't think we even send these notifications anymore.
| Reporter | ||
Comment 1•12 years ago
|
||
It doesn't look like we send these notifications, and our observe method
doesn't handle them anyway. Just delete the code and save a little memory.
Attachment #832737 -
Flags: review?(dolske)
Comment 2•12 years ago
|
||
Uhh. Then how is the observer here ever going to be invoked?
See also http://mxr.mozilla.org/mozilla-central/source/content/html/content/src/HTMLFormElement.cpp#873
Did you run tests with this?
Comment 3•12 years ago
|
||
[Note that nsIFormSubmitObserver uses notify(), not observe()]
| Reporter | ||
Comment 4•12 years ago
|
||
(In reply to Justin Dolske [:Dolske] from comment #2)
> Uhh. Then how is the observer here ever going to be invoked?
>
> See also
> http://mxr.mozilla.org/mozilla-central/source/content/html/content/src/
> HTMLFormElement.cpp#873
>
> Did you run tests with this?
Oh man. That's unfortunate. Oh well.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → INVALID
| Reporter | ||
Updated•12 years ago
|
Attachment #832737 -
Flags: review?(dolske)
You need to log in
before you can comment on or make changes to this bug.
Description
•