FormAutoFill still leaks if the focused input is removed before closing the browser
Categories
(Toolkit :: Form Autofill, defect, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox70 | --- | verified |
People
(Reporter: jdescottes, Assigned: jdescottes)
References
Details
Attachments
(1 file)
The fix I am landing in https://bugzilla.mozilla.org/show_bug.cgi?id=1566870 is not fixing all the leaks that we have with FormAutoFill in devtools.
This fix relies on receiving a focusout (blur) event to cleanup references on FormAutofillContent.jsm. However if the input is removed before being blurred, this event will never be received and we will still have a leak.
I now believe we should simply avoid keeping any non-weak reference on DOM elements in FormAutofillContent, rather than trying to add various hooks to cleanup the state.
Assignee | ||
Updated•6 years ago
|
Assignee | ||
Comment 1•6 years ago
|
||
Depends on D39716
Comment 2•6 years ago
|
||
I think it would be good to have QA do a quick check that address autofill still works once this is resolved in case the test coverage misses something.
Comment 4•6 years ago
|
||
bugherder |
Comment 5•6 years ago
|
||
Saw an error in the console JavaScript error: chrome://formautofill/content/FormAutofillFrameScript.js, line 86: Error: Unexpected event type focusout
Shouldn't we also remove https://searchfox.org/mozilla-central/rev/29cce9a2684ef64c4f1f996087da8b7545d31f65/browser/extensions/formautofill/content/FormAutofillFrameScript.js#63
Assignee | ||
Comment 6•6 years ago
|
||
(In reply to Brendan Dahl [:bdahl] from comment #5)
Saw an error in the console
JavaScript error: chrome://formautofill/content/FormAutofillFrameScript.js, line 86: Error: Unexpected event type focusout
Shouldn't we also remove https://searchfox.org/mozilla-central/rev/29cce9a2684ef64c4f1f996087da8b7545d31f65/browser/extensions/formautofill/content/FormAutofillFrameScript.js#63
Good catch! Filed Bug 1570885 to fix it.
Comment 7•5 years ago
|
||
Hi,
I've verified that the address autofill still works as expected after the fix using Firefox Nightly 70.0a1(20190730215316).
Description
•