Closed Bug 1352963 Opened 7 years ago Closed 7 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
firefox-esr45 --- unaffected
firefox52 --- unaffected
firefox-esr52 --- unaffected
firefox53 --- unaffected
firefox54 + fixed
firefox55 --- fixed

People

(Reporter: over68, Assigned: jaws)

References

(Depends on 1 open bug, Blocks 1 open bug)

Details

Attachments

(1 file)

Steps to reproduce:

1. Go to https://onedrive.live.com/download?cid=F96BA52A2AF70D03&resid=F96BA52A2AF70D03%21841&authkey=ACQf2Dqa11rX3lk.
2. Open the <select> element.


Actual results:

The background is white when opened for the first time.

The background is gray when opened for the second time.

Screenshot https://1drv.ms/i/s!AgMN9yoqpWv5hkqqY2J_e_M-hpgo
Flags: needinfo?(jaws)
Blocks: 910022
Blocks: e10s-select
This test case reproduces it:

data:text/html,<style>* { transition: all 2s; } select:focus { background: orange; }</style><select><option>1<option>2
Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: needinfo?(jaws)
Assignee: nobody → jaws
Status: NEW → ASSIGNED
(In reply to Jared Wein [:jaws] (please needinfo? me) from comment #1)
> This test case reproduces it:
> 
> data:text/html,<style>* { transition: all 2s; } select:focus { background:
> orange; }</style><select><option>1<option>2

Note that this test case uncovered another bug unrelated to this bug. I just filed bug 1353222 for the issue.

The following test case should be used to confirm/verify this specific bug:
data:text/html,<style>select { transition: all .2s; } select:focus { background: orange; }</style><select><option>1<option>2
Comment on attachment 8854270 [details]
Bug 1352963 - Update the styling of the select popup after transitionend.

https://reviewboard.mozilla.org/r/126198/#review128910

Looks ok but if I understand correctly we aren't going to see the transition on the select drop-down. Does Chrome support that?
Attachment #8854270 - Flags: review?(dtownsend) → review+
(In reply to Dave Townsend [:mossop] from comment #5)
> Comment on attachment 8854270 [details]
> Bug 1352963 - Update the styling of the select popup after transitionend.
> 
> https://reviewboard.mozilla.org/r/126198/#review128910
> 
> Looks ok but if I understand correctly we aren't going to see the transition
> on the select drop-down. Does Chrome support that?

Yeah, both Chrome and Edge show the transition actually happening on the popup contents, whereas we would only update to the final state once the transition ends. This is really unfortunate, but from the front-end perspective I'm not aware of a solution to this problem. I think it underlines a major problem with how the e10s implementation of the select popup works.
Pushed by jwein@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/cf051de0d37b
Update the styling of the select popup after transitionend. r=mossop
(In reply to Jared Wein [:jaws] (please needinfo? me) from comment #6)
> (In reply to Dave Townsend [:mossop] from comment #5)
> > Comment on attachment 8854270 [details]
> > Bug 1352963 - Update the styling of the select popup after transitionend.
> > 
> > https://reviewboard.mozilla.org/r/126198/#review128910
> > 
> > Looks ok but if I understand correctly we aren't going to see the transition
> > on the select drop-down. Does Chrome support that?
> 
> Yeah, both Chrome and Edge show the transition actually happening on the
> popup contents, whereas we would only update to the final state once the
> transition ends. This is really unfortunate, but from the front-end
> perspective I'm not aware of a solution to this problem. I think it
> underlines a major problem with how the e10s implementation of the select
> popup works.

Filed bug 1353426 for this.
[Tracking Requested - why for this release]: regression from bug 910022
https://hg.mozilla.org/mozilla-central/rev/cf051de0d37b
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
Track 54+ as regression.

Hi :jaws,
Do you want to uplift this to Aurora54 if this patch is not too risky?
Flags: needinfo?(jaws)
Depends on: 1355078
We will need to wait for bug 1355078 to get fixed first (it is waiting for review right now).
Flags: needinfo?(jaws)
Depends on: 1358975
Comment on attachment 8854270 [details]
Bug 1352963 - Update the styling of the select popup after transitionend.

Approval Request Comment
[Feature/Bug causing the regression]: regression from bug 910022
[User impact if declined]: some <select> popups may be unreadable due to dependence on CSS transitions
[Is this code covered by automated tests?]: yes
[Has the fix been verified in Nightly?]: no
[Needs manual test from QE? If yes, steps to reproduce]: no, automated test covers this
[List of other uplifts needed for the feature/fix]: yes, this patch should be applied before the patches from bug 1354196 and bug 1355078, in that order.
[Is the change risky?]: not expected
[Why is the change risky/not risky?]: The change is focused specifically on select dropdowns and is a very specific/focused fix.
[String changes made/needed]: none
Attachment #8854270 - Flags: approval-mozilla-beta?
Flags: qe-verify+
Comment on attachment 8854270 [details]
Bug 1352963 - Update the styling of the select popup after transitionend.

Fix a select dropdown issue and include test. Beta54+. Should be in 54 beta 3.
Attachment #8854270 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
(In reply to (Away 3 May - 5 May) Jared Wein [:jaws] (please needinfo? me) from comment #13)
> [Is this code covered by automated tests?]: yes
> [Has the fix been verified in Nightly?]: no
> [Needs manual test from QE? If yes, steps to reproduce]: no, automated test
> covers this

This fix seems to have automated coverage. Gerry, Jared, do you think manual testing would be of value here?
Flags: needinfo?(jaws)
Flags: needinfo?(gchang)
Hi Andrei,
You're right. There is no need for manual testing here. Thanks.
Flags: qe-verify-
Flags: qe-verify+
Flags: needinfo?(jaws)
Flags: needinfo?(gchang)
Yes, no need for manual testing here.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: