Closed Bug 1349701 Opened 8 years ago Closed 8 years ago

[e10s] Background on <select> options is white when opened for the first time

Categories

(Core :: Layout: Form Controls, defect)

55 Branch
x86_64
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla55
Tracking Status
firefox54 --- fixed
firefox55 --- verified

People

(Reporter: over68, Assigned: jaws)

References

Details

Attachments

(1 file)

Steps to reproduce: 1. Go to https://onedrive.live.com/download?cid=F96BA52A2AF70D03&resid=F96BA52A2AF70D03%21685&authkey=AP0Dc0bV1PUZRe0. 2. Open the <select> element. Actual results: The background is white when opened for the first time. The background appears when opened for the second time. Screenshot https://1drv.ms/i/s!AgMN9yoqpWv5hS6WCfr5dv1aiOMx
Flags: needinfo?(jaws)
Blocks: 1336301, 910022
I think this is a similar case http://jsfiddle.net/luiscastillo/sFx7f/.
Thanks, this URL reproduces the issue: data:text/html,<style>select:focus { background: orange; }</style><select><option>1<option>2
Status: UNCONFIRMED → NEW
Ever confirmed: true
Assignee: nobody → jaws
Status: NEW → ASSIGNED
Flags: needinfo?(jaws)
Comment on attachment 8850608 [details] Bug 1349701 - Update the styles of <select> popups on focus. https://reviewboard.mozilla.org/r/123146/#review125528 Do we see any flickering with this approach? Is there a way to just get the computed style of the elements assuming they will be focused since I don't think there is a way to open the select without focusing it.
Attachment #8850608 - Flags: review?(dtownsend) → review+
Comment on attachment 8850608 [details] Bug 1349701 - Update the styles of <select> popups on focus. https://reviewboard.mozilla.org/r/123146/#review125528 I don't see any flickering. Yes, we could lock the styles to :focus similar to what DevTools does. We're actually using that API right now for disabling the :checked style on <option> elements. I will see what that change looks like.
Comment on attachment 8850608 [details] Bug 1349701 - Update the styles of <select> popups on focus. https://reviewboard.mozilla.org/r/123146/#review125550 ::: toolkit/modules/SelectContentHelper.jsm:129 (Diff revisions 1 - 2) > }, > > _update() { > // The <select> was updated while the dropdown was open. > // Let's send up a new list of options. > + DOMUtils.addPseudoClassLock(this.element, ":focus"); Technically we might not need to set this pseudo-class during _update since the element should organically have :focus. Though I put it here for belt-and-suspenders.
(In reply to Jared Wein [:jaws] (please needinfo? me) from comment #7) > Comment on attachment 8850608 [details] > Bug 1349701 - Update the styles of <select> popups on focus. > > https://reviewboard.mozilla.org/r/123146/#review125550 > > ::: toolkit/modules/SelectContentHelper.jsm:129 > (Diff revisions 1 - 2) > > }, > > > > _update() { > > // The <select> was updated while the dropdown was open. > > // Let's send up a new list of options. > > + DOMUtils.addPseudoClassLock(this.element, ":focus"); > > Technically we might not need to set this pseudo-class during _update since > the element should organically have :focus. Though I put it here for > belt-and-suspenders. Can you add this as a comment in the code
Pushed by jwein@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/4a98ffe94e12 Update the styles of <select> popups on focus. r=mossop
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
Depends on: 1350774
Comment on attachment 8850608 [details] Bug 1349701 - Update the styles of <select> popups on focus. Approval Request Comment [Feature/Bug causing the regression]: regression from bug 910022 [User impact if declined]: <select> menus may look broken on some webpages [Is this code covered by automated tests?]: yes [Has the fix been verified in Nightly?]: not "verified" but it has been on nightly for some time now with no bugs filed against it and the bug reporter has done an amazing job hunting for bugs with the feature [Needs manual test from QE? If yes, steps to reproduce]: no [List of other uplifts needed for the feature/fix]: this patch must be applied on top of the one from bug 1348617 [Is the change risky?]: no [Why is the change risky/not risky?]: limited to just select popups, this is following other patches that have been uplifted to for bug 910022 [String changes made/needed]: none
Attachment #8850608 - Flags: approval-mozilla-aurora?
Comment on attachment 8850608 [details] Bug 1349701 - Update the styles of <select> popups on focus. Fix a regression related to <select> element and was verified in comment #13 of bug 1348617. Aurora54+.
Attachment #8850608 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: