Closed Bug 1091954 Opened 10 years ago Closed 1 year ago

autocomplete suggestions stick around after corresponding input is removed

Categories

(Toolkit :: Form Manager, defect)

32 Branch
x86
macOS
defect

Tracking

()

RESOLVED FIXED
117 Branch
Tracking Status
firefox117 --- fixed

People

(Reporter: hello, Assigned: serg)

References

Details

(Keywords: testcase, Whiteboard: [fxcm-debt])

Attachments

(2 files)

Attached file removed-element.html
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:32.0) Gecko/20100101 Firefox/32.0 Build ID: 20140923175406 Steps to reproduce: * have an input on a page * fill that input out with some value, and submit the form (so there's an autocomplete suggestion available next time) * refresh the page, or visit it fresh, etc. * start filling out the input with the same value as before, so the autocomplete suggestion pops up * cause the input to be removed (when I came across this, I had an event handler for the escape key) (I used jQuery's .remove(), which appears to be equivalent to myParent.removeChild(this)). I've attached a short HTML file where you can see the problem. It uses an input named "email" so you can probably get autocompletion if you start typing your email address. The element is deleted if you hit escape. Actual results: the autocomplete suggestion box continues to exist. Sometimes I've seen it jump to the bottom of the window, but usually it's right where the input used to be Expected results: The autocomplete suggestion box should vanish.
The autocomplete tooltip disappears only if the user clicks on the page after removing the input by pressing ESC. In rare cases, I saw the tooltip moving to the bottom of the browser window too.
Blocks: é
Component: Untriaged → Autocomplete
Keywords: testcase
Product: Firefox → Toolkit
No longer blocks: é
This was wontfixed for Firefox for Android. Unlike bug 713027 comment #1, I do think it's fixable, using a mutation observer... but I'm not sure that implementing that is worth the effort.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: firefox-backlog+
See Also: → 713027
Flags: firefox-backlog+ → firefox-backlog?
Flags: firefox-backlog? → firefox-backlog+
Component: Autocomplete → Form Manager
Severity: normal → S3

Autocomplete disappears when element is removed, however pressing Down key right after that opens autocomplete again on the element that is not connected to the document.

Whiteboard: [fxcm-debt]
Assignee: nobody → sgalich
Status: NEW → ASSIGNED
Pushed by sgalich@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/d9c072524f41 showing autocomplete on connected elements only r=credential-management-reviewers,issammani,dimi
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 117 Branch
QA Whiteboard: [qa-117b-p2]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: