mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-03 12:35:58 +00:00
[mq]: weakRefForms
This commit is contained in:
parent
e414ab20ea
commit
967ecb4058
@ -207,14 +207,15 @@ function FormTracker(name) {
|
||||
// nsHTMLFormElement doesn't use the normal observer/observe pattern and looks
|
||||
// up nsIFormSubmitObservers to .notify() them so add manually to observers
|
||||
Cc["@mozilla.org/observer-service;1"].getService(Ci.nsIObserverService).
|
||||
addObserver(this, "earlyformsubmit", false);
|
||||
addObserver(this, "earlyformsubmit", true);
|
||||
}
|
||||
FormTracker.prototype = {
|
||||
__proto__: Tracker.prototype,
|
||||
|
||||
QueryInterface: XPCOMUtils.generateQI([
|
||||
Ci.nsIFormSubmitObserver,
|
||||
Ci.nsIObserver]),
|
||||
Ci.nsIObserver,
|
||||
Ci.nsISupportsWeakReference]),
|
||||
|
||||
trackEntry: function trackEntry(name, value) {
|
||||
this.addChangedID(FormWrapper.getGUID(name, value));
|
||||
|
Loading…
x
Reference in New Issue
Block a user