autocomplete suggestions stick around after corresponding input is removed

NEW
Unassigned

Status

()

Toolkit
Form Manager
4 years ago
3 months ago

People

(Reporter: Andrew Lorente, Unassigned)

Tracking

({testcase})

32 Branch
x86
Mac OS X
testcase
Points:
---
Bug Flags:
firefox-backlog +

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

4 years ago
Created attachment 8514705 [details]
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.

Comment 1

4 years ago
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: 352251
Component: Untriaged → Autocomplete
Keywords: testcase
Product: Firefox → Toolkit

Updated

4 years ago
No longer blocks: 352251

Comment 2

4 years ago
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: → bug 713027

Updated

4 years ago
Flags: firefox-backlog+ → firefox-backlog?
Flags: firefox-backlog? → firefox-backlog+

Updated

3 months ago
Component: Autocomplete → Form Manager
You need to log in before you can comment on or make changes to this bug.