Closed
Bug 1411396
Opened 7 years ago
Closed 7 years ago
[e10s] Form control required popup doesn't follow input when scrolling
Categories
(Firefox :: General, defect, P3)
Firefox
General
Tracking
()
RESOLVED
DUPLICATE
of bug 643758
People
(Reporter: emilio, Unassigned)
References
Details
(Keywords: regression)
Attachments
(3 files, 1 obsolete file)
Not sure if this is the right component...
A friend of mine reported this to me today.
It seems that in other browsers, when you try to submit the form pressing enter, and then scroll, the "Please fill out this field" popup follows the input.
So, STR:
* Open attached test-case.
* Focus the text input, then press enter. A "Please fill out this field" popup appears.
* Scroll down the page, without unfocusing the field.
Expected:
* The popup remains under the form input.
Actual:
* The popup stays in the same position, which hides other elements of the page, and is ugly.
Reporter | ||
Comment 1•7 years ago
|
||
Reporter | ||
Comment 2•7 years ago
|
||
Reporter | ||
Comment 3•7 years ago
|
||
So when looking at it, this is all handled by FormSubmitObserver / FormValidationHandler, so this seems to be a Firefox bug, not a Core bug.
Component: Layout: Form Controls → General
Product: Core → Firefox
Version: unspecified → Trunk
Comment 4•7 years ago
|
||
Matt, is this a known bug?
status-firefox57:
--- → wontfix
Flags: needinfo?(MattN+bmo)
Reporter | ||
Comment 5•7 years ago
|
||
I shall point out that this works fine in Chrome and Edge, fwiw.
Comment 6•7 years ago
|
||
I've never worked on this code before (felipe has) but I see that it's an e10s regression. The "scroll" event doesn't fire on a <browser> with e10s on: https://dxr.mozilla.org/mozilla-central/rev/1c618b1a13662de7cec429f606367db3827b6dc7/browser/modules/FormValidationHandler.jsm#70-71
Assignee: nobody → MattN+bmo
Blocks: 691601
Status: NEW → ASSIGNED
status-firefox56:
--- → wontfix
status-firefox-esr52:
--- → wontfix
Flags: needinfo?(MattN+bmo)
Keywords: regression
Priority: -- → P3
Summary: Form control required popup doesn't follow input when scrolling → [e10s] Form control required popup doesn't follow input when scrolling
Comment hidden (mozreview-request) |
Comment 8•7 years ago
|
||
Great… in case it wasn't obvious that this feature isn't really maintained… I found out that two of three tests which references this popup were disabled in bug 1057615.
Comment hidden (mozreview-request) |
Comment 10•7 years ago
|
||
mozreview-review |
Comment on attachment 8923654 [details]
Bug 1411396 - Cleanup and move formValidation b-c tests.
https://reviewboard.mozilla.org/r/194776/#review199838
::: browser/modules/test/browser/formValidation/browser.ini:3
(Diff revision 1)
> +[browser_form_validation.js]
> +skip-if = true # bug 1057615
> +[browser_validation_iframe.js]
I enabled this test since I think it should pass with the iframe height change that was caused by scroll in non-e10s closing the popup.
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Updated•7 years ago
|
Attachment #8923654 -
Attachment is obsolete: true
Attachment #8923654 -
Flags: review?(felipc)
Comment 13•7 years ago
|
||
I thought this was going to be trivial but the with the tests being broken and the fact that we need to handle a scroll caused by a validation message, I don't have time to look at this now. I've attached my WIP patch with the TODO of what needs to be fixed.
We really should have a module to handle laying out UI in the parent process that is supposed to be attached to content elements. We would use that module for autocomplete, <select> popups, and form validation rather than each implementing it differently and with potential security bugs. I'll file a separate bug for this.
Updated•7 years ago
|
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
Updated•7 years ago
|
status-firefox59:
--- → wontfix
status-firefox60:
--- → fix-optional
You need to log in
before you can comment on or make changes to this bug.
Description
•