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)

defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: froydnj, Unassigned)

Details

Attachments

(1 file)

I don't think we even send these notifications anymore.
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)
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?
[Note that nsIFormSubmitObserver uses notify(), not observe()]
(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
Attachment #832737 - Flags: review?(dolske)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: