Open Bug 622096 Opened 14 years ago Updated 2 years ago

Autocomplete on focused form input doesn't work after closing a tab

Categories

(Toolkit :: Form Manager, defect)

defect

Tracking

()

People

(Reporter: jiri.hlavka, Unassigned)

References

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0b8) Gecko/20100101 Firefox/4.0b8
Build Identifier: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0b8) Gecko/20100101 Firefox/4.0b8

Autocompletion not offered, if in between was opened another tab.

Reproducible: Always

Steps to Reproduce:
1.open tab with form with desired autocompletion
2.open some another tab
3.edit first tab form => autocompletion is not offered


Expected Results:  
autocompletion everytime
Component: Bookmarks & History → Form Manager
Product: Firefox → Toolkit
QA Contact: bookmarks → form.manager
I can't reproduce that. Could you be more explicit and try with a nightly?
(In reply to comment #1)
> I can't reproduce that. Could you be more explicit and try with a nightly?

Steps to Reproduce:
1.open first tab with form with desired autocompletion
2.open second tab from bookmarks
3.switch to second tab
4.close second tab
3.edit first tab form => autocompletion is not offered
(In reply to comment #1)
> I can't reproduce that. Could you be more explicit and try with a nightly?

Steps to Reproduce:
1.open first tab with form with desired autocompletion
2.open second tab from UI (bookmarks, homepage and new tab button)
3.close second tab
4.edit first tab form => autocompletion is not offered

In my opinion, this problem is generated only if second tab is opened from User Interface, not from web page.
It sounds like you have 2 pages open at once (A and B), then create a new autocomplete result in page B (by submitting a form). You then expect the new entry to be available in the form on page A. Is that correct?

The autocomplete results are loaded at page load. We don't currently load new results for open pages if they are added in a different tab.
(In reply to comment #4)
> It sounds like you have 2 pages open at once (A and B), then create a new
> autocomplete result in page B (by submitting a form). You then expect the new
> entry to be available in the form on page A. Is that correct?
> 
> The autocomplete results are loaded at page load. We don't currently load new
> results for open pages if they are added in a different tab.


You have one page (A) open. This page contains the form.

If you now open some page (B) (empty or from bookmarks by click to mouse roller) and immediately close it, the form in the (A) now do not execute autocompletion.

Page (B) switch off autocompletion page (A).

These are all the tabs of one window.
Closing of page (B) switch off (or unload results of) autocompletion page (A).
Could you see if the issue occurs...
- With a new, empty profile:
http://support.mozilla.com/en-US/kb/Basic%20Troubleshooting#w_make-a-new-profile
- Using the latest nightly:
http://nightly.mozilla.org/

Thanks!
Version: unspecified → Trunk
Whiteboard: [closeme 2011-02-01]
Whiteboard closeme date been and gone, so marking as incomplete.

Please comment on/reopen this issue if it still occurs with the latest beta - and see comment 7 - thanks!
Status: UNCONFIRMED → RESOLVED
Closed: 13 years ago
Resolution: --- → INCOMPLETE
(In reply to comment #8)
> Whiteboard closeme date been and gone, so marking as incomplete.
> 
> Please comment on/reopen this issue if it still occurs with the latest beta -
> and see comment 7 - thanks!


In my opinion, the remaining two cases in which the bug manifests.

1) If from a "form tab" (A) open a new tab (B) using the plus button. Close (B). Now in (A) not working autocomplete.

2) If from a "form tab" (A) open a new tab (B) by click on the mouse roller. Close (B). Now in (A) not working autocomplete.
Please see comment 7...
(In reply to comment #7)
> Could you see if the issue occurs...
> - With a new, empty profile:
> http://support.mozilla.com/en-US/kb/Basic%20Troubleshooting#w_make-a-new-profile
> - Using the latest nightly:
> http://nightly.mozilla.org/
> 
> Thanks!


No, this is not this case.

I tested last (from 9.2.11) night buld (Minefield) with a new (empty) profile and the same situations as initially, but the problem remained. (Probably without change.)
Status: RESOLVED → UNCONFIRMED
Resolution: INCOMPLETE → ---
Whiteboard: [closeme 2011-02-01]
Build ID: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:2.0b12pre) Gecko/20110209 Firefox/4.0b12pre

I was able to reproduce this bug and made a screencast showing Minefield with a clean profile.

Steps in the video:
1) Load a form such as
data:text/html,<form><input%20name=u%20placeholder=foo><input%20type=submit>
2) Populate the form history by submitting the form with "abcdef" in the text input. (Text input is empty after submission.)
3) Type "a" in the text input. Autocomplete dropdown should display "abcdef".
4) While dropdown is showing, click the "Open a new tab" button on the tab bar. Browser switches to new tab.
5) Click the X to close the new tab. Browser switches back to tab with form and focus remains in the text input.
6a) Press the down arrow on the keyboard to trigger the dropdown.
OR
6b) Type the letter b into the text input (so value would then be "ab").

Expected Result: Form history dropdown appears showing "abcdef"
Actual Result:   No dropdown appears.  
NOTE: Removing focus from the text input (by clicking in an empty part of the page) and then focusing the input again does make the dropdown appear.
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Windows 7 → All
Hardware: x86 → All
(In reply to comment #12)
It seems as though closing any tab (not just a new tab) in place of step 4 & 5  will cause the dropdown not to show for the focused text input when returning to the page.

Also, the dropdown does not have to be showing (as I said in step 4) but the text input must be focused when switching to another tab.
Summary: Autocompletion on forms → Autocomplete on focused form input doesn't work after closing a tab
some images of problem:

http://digitalni.mysteria.cz/problem/problem.html
With the corrected STR, confirmed using Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0b12pre) Gecko/20110209 Firefox/4.0b12pre ID:20110209030359.

Also, this exists in 3.6.13 and as far back as at least 2008-11-16 nightly (didn't check anything older than that, but imagine it's been around a while), so not a Fx4 regression.

Something I did notice though:

When you close the extra tab, you must do so using left mouse click on the "X", rather than using middle mouse button on the tab itself, or the issue does not occur.
Possibly related to bug 424646.
See Also: → 424646
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: