Closed
Bug 1335332
Opened 8 years ago
Closed 8 years ago
Autocomplete UI appears in wrong position when autofocusing on non-empty username field before CSS has finished loading
Categories
(Toolkit :: Password Manager, defect, P2)
Tracking
()
RESOLVED
DUPLICATE
of bug 1329333
| Tracking | Status | |
|---|---|---|
| firefox51 | --- | unaffected |
| firefox52 | + | fix-optional |
| firefox53 | + | fix-optional |
| firefox54 | + | fix-optional |
| firefox55 | --- | affected |
People
(Reporter: studio, Unassigned)
References
(Depends on 1 open bug)
Details
(Keywords: regression)
Attachments
(5 files)
User Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Firefox/52.0
Build ID: 20170124094647
Steps to reproduce:
1) Open login form which contains input field with "autofocus" attribute. Nothing special in this form (no absolute positioning etc.). Tested on 2 different forms.
2) The similar problem: open https://github.com/login
Actual results:
1) Password autocomplete list appears in a wrong position. If we click the mouse into the field autocomplete list repositions to the right position. Maybe it's because the list positioned BEFORE styles loaded?
2) Password autocomplete list takes whe whole width of the page. Everything is OK after mouseclick
Expected results:
1) Password autocomplete list should appear right after the field, as it does if we focus element by the mouse.
2) Password autocomplete list should respect the width of the input field
I tried on https://github.com/login with Nightly, I can't reproduce it: http://i.imgur.com/eydSDy7.jpg
Do you have a page link to reproduce it?
Are you using a special theme on your Win 10?
Component: Layout: Form Controls → Password Manager
Flags: needinfo?(studio)
Product: Core → Toolkit
I wrote a screencast on GitHub login page. As you can see sometimes autocomplete list displays correctly (I think it depends on CSS load). I have caching disabled.
I don't use any special Windows themes. And it's not an insider preview.
Here is a link on another website where I can see the similar problrm: http://oko44.ru/admin
Do you have cache disabled in normal mode? If yes, how did you disable it?
With network.http.use-cache=false?
I know PB mode has cache disabled (like in your screencast indeed).
Nevermind, I'm able to reproduce it in Nightly (in normal or PB mode, whatever).
Flags: needinfo?(studio)
I used your website login page and I pressed F5 many times to reproduce it.
Maybe it depends on network connection speed? I tried to emulate slow connection using new Responsive design mode from Developer tools, but unfornanately logins autocomplete list doesn't initially appear at all when Developer tools are open
No, it's due to the autocomplete UI displayed on autofocus non-empty field when the CSS sheet is still loading.
In your case, without full CSS, the pwd field is displayed temporarily on the top left and the autocomplete UI too due to autofocus.
Before the regression, you can replicate it manually by clicking VERY quickly on the input field to display the autocomplete UI.
The regression is due to:
Dale Harvey — Bug 1311301 - Ensure login managed inputs focus on load. r=mattn
https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=9b8bf5feb0b52aa4b03aa5fa3d4f0727b2974663&tochange=b49684127ce464141b0a989cd621cb4794b6a85f
I think it could be fixed by bug 1325437.
Blocks: 1311301
Status: UNCONFIRMED → NEW
status-firefox51:
--- → unaffected
status-firefox52:
--- → affected
status-firefox53:
--- → affected
status-firefox54:
--- → affected
tracking-firefox52:
--- → ?
tracking-firefox53:
--- → ?
tracking-firefox54:
--- → ?
Depends on: 1325437
Ever confirmed: true
Flags: needinfo?(dale)
Keywords: regression
Summary: Password autocomplete list appears in wrong position when using autofocus attribute → Autocomplete UI appears in wrong position when autofocusing on non-empty username field before CSS has finished loading
Updated•8 years ago
|
Priority: -- → P2
Comment 10•8 years ago
|
||
(In reply to Loic from comment #8)
> I think it could be fixed by bug 1325437.
Matt, status-firefox52 in bug 1325437 was labeled as fix-optional.
Would you think this regression is likely to be fixed by triggering another reflow after loading style sheet? Or any suggestion to progress this bug ?
Thanks.
Flags: needinfo?(MattN+bmo)
Comment 11•8 years ago
|
||
I am happy to investigate and try out fixes for this, however it seems like content moving / loading is something this should already handle so I would like to hear from someone who knows the code (hi Matt) about whether this is a regression or where to look at a fix
Flags: needinfo?(dale)
Comment 12•8 years ago
|
||
I believe this is a regression form e10s-ification because the popup is now in a different process from the input so can't use the `anchor` feature of popups to automatically follow the input as it moves. I believe the same problem may also apply to form validation popups and maybe <select> ones too, if not we should copy their solution(s). I believe we would need something like IntersectionObserver or some other API for the parent process to be notified of position changes (ideally without polling).
Flags: needinfo?(MattN+bmo)
Comment 13•8 years ago
|
||
Matt, from discussion in the platform triage meeting, it sounds like we would need some UI work or decisions here and it's a bigger project than we should try to fix in 52 or even 53. Can you take this on or find someone to work on it for the 54/55 timeframe?
Flags: needinfo?(MattN+bmo)
| Reporter | ||
Comment 14•8 years ago
|
||
I've noticed the similar bug while I maximized the browser window during the page load. Autocomplete list appeared in the position where it has to be before maximizing. See attachments
| Reporter | ||
Comment 15•8 years ago
|
||
| Reporter | ||
Comment 16•8 years ago
|
||
Comment 17•8 years ago
|
||
Mark 54 fix-optional as there are no actions for the moment but still happy to have the fix in 54.
Updated•8 years ago
|
status-firefox55:
--- → affected
Comment 18•8 years ago
|
||
I have no time to work on this… I'm going to escalate to get password manager issues fixed.
Flags: needinfo?(MattN+bmo)
See Also: → 1344390
Updated•8 years ago
|
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•