Closed Bug 1405720 Opened 7 years ago Closed 7 years ago

[macOS] [Photon] Regression Theme selector door hanger is showing two highlighted themes

Categories

(Firefox :: Theme, defect, P1)

Unspecified
macOS
defect

Tracking

()

VERIFIED FIXED
Firefox 58
Tracking Status
firefox-esr52 --- unaffected
firefox56 --- unaffected
firefox57 + verified
firefox58 --- verified

People

(Reporter: mehmet.sahin, Assigned: Gijs)

References

Details

(Keywords: regression, Whiteboard: [reserve-photon-structure])

Attachments

(3 files)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3228.0 Safari/537.36

Steps to reproduce:

macOS 10.12.6
58.0a1 (2017-10-04) (64-Bit)

1.) Go to Customizing
2.) Click on the Theme selector


Actual results:

The door hanger shows two selected/highlighted themes.


Expected results:

Only the actual theme should be highlighted.
Component: Untriaged → Theme
OS: Unspecified → Mac OS X
Hm, on Windows 7 it's showing no item highlighted. Weird. Can you get a regression window with mozregression, please?
Attached video screencast.mov
Okay, I'll take a look to find the regression ...

Just a note, it seems, that it depends, which theme is selected. I also see with the Light and dark theme that nothing is selected. Please see the enclosed screencast.
(In reply to Johann Hofmann [:johannh] from comment #1)
> Hm, on Windows 7 it's showing no item highlighted. Weird. Can you get a
> regression window with mozregression, please?

Looks like your patch is the culprit: https://hg.mozilla.org/integration/autoland/rev/074089753394
Gah, what? I can't see how that code would cause this. Maybe some race condition? I'll try to debug.

[Tracking Requested - why for this release]:
Horrible experience switching themes.
Assignee: nobody → jhofmann
Blocks: 1390885
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Flags: qe-verify+
Priority: -- → P1
Whiteboard: [reserve-photon-visual]
Are you sure that this was caused by bug 1390885? Bug 1402981 landed around the same time and looks like a more realistic regressor. I'll try to local backout both patches.
Flags: needinfo?(mehmet.sahin)
Ok my local backouts confirm that this is indeed regressed by bug 1402981.

Gijs, can you take a look?
Assignee: jhofmann → nobody
Blocks: 1402981
No longer blocks: 1390885
Status: ASSIGNED → NEW
Flags: needinfo?(mehmet.sahin) → needinfo?(gijskruitbosch+bugs)
Priority: P1 → --
Whiteboard: [reserve-photon-visual] → [photon-structure][triage]
Can someone suggest steps to reproduce? The ones in comment #0 don't produce the issue in the summary for me on a clean profile (tested on OS X), so something's missing here.
Flags: needinfo?(mehmet.sahin)
Flags: needinfo?(jhofmann)
Flags: needinfo?(gijskruitbosch+bugs)
I can reproduce comment 2 in a clean profile on Beta. I currently can't reproduce "two themes selected at once", maybe Mehmet knows more about this.
Flags: needinfo?(jhofmann)
STR:

1. open clean profile
2. select the 'light' or 'dark' theme from customize mode theme selector
3. restart firefox
4. reopen customize mode theme selector and select another lightweight theme (not light or dark)
5. reopen the theme selector
Flags: needinfo?(mehmet.sahin)
Assignee: nobody → gijskruitbosch+bugs
Status: NEW → ASSIGNED
Priority: -- → P1
Whiteboard: [photon-structure][triage] → [reserve-photon-structure]
Comment on attachment 8915593 [details]
Bug 1405720 - ensure only 1 theme is ever shown as selected in customize mode,

https://reviewboard.mozilla.org/r/186790/#review191890

It would be nice to have a test for this
Attachment #8915593 - Flags: review?(jaws) → review+
Comment on attachment 8915593 [details]
Bug 1405720 - ensure only 1 theme is ever shown as selected in customize mode,

https://reviewboard.mozilla.org/r/186790/#review191914

Test changes look good, thanks!
Comment on attachment 8915593 [details]
Bug 1405720 - ensure only 1 theme is ever shown as selected in customize mode,

https://reviewboard.mozilla.org/r/186790/#review191922

Seems good and works for me! Thank you!
Attachment #8915593 - Flags: review?(jhofmann) → review+
Pushed by gijskruitbosch@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/4099fa94e3ba
ensure only 1 theme is ever shown as selected in customize mode, r=jaws,johannh
Comment on attachment 8915593 [details]
Bug 1405720 - ensure only 1 theme is ever shown as selected in customize mode,

Approval Request Comment
[Feature/Bug causing the regression]: bug 1402981 (which was also uplifted to 57)
[User impact if declined]: the theme dropdown in customize mode shows either no selected theme, or the wrong selected theme, in some cases.
[Is this code covered by automated tests?]: I said yes to this before, but clearly there weren't enough tests... I added some more in this change to make sure we don't break this again.
[Has the fix been verified in Nightly?]: not yet, but it's had 2 separate reviews including checks to see this is fixed, so I'm reasonably confident.
[Needs manual test from QE? If yes, steps to reproduce]: would be helpful. See comment 0 (to see 0 themes selected, when done on a clean profile) and comment 9 (to see 2 themes selected)
[List of other uplifts needed for the feature/fix]: nope
[Is the change risky?]: not really
[Why is the change risky/not risky?]: we're continuing to manipulate the picker we were manipulating before, so it's a small patch, we still have opportunities to find more issues and back all of it out if it comes to that, but with the extra reviews and the additional test coverage I'm reasonably confident this will be the end of things.
[String changes made/needed]: nope.
Attachment #8915593 - Flags: approval-mozilla-beta?
Tracking 57+ for this visible regression. We should also have QA verify the fix following the landing.
https://hg.mozilla.org/mozilla-central/rev/4099fa94e3ba
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 58
Comment on attachment 8915593 [details]
Bug 1405720 - ensure only 1 theme is ever shown as selected in customize mode,

Recent regression in Photon code, Bet57+
Attachment #8915593 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
I have repro this issue using STR from comment 2 and comment 9 using an affected Nightly (2017-10-04).

This is not reproducible anymore on Beta 57.0b7 and latest Nightly 58.0a1 under Windows 10 x64, Mac OS X 10.11 and Ubuntu 16.04 x64.
Status: RESOLVED → VERIFIED
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: