Closed Bug 1574028 Opened 5 years ago Closed 5 years ago

Pink colored bookmarks and history in Android Q beta 6

Categories

(Firefox for Android Graveyard :: General, defect)

Firefox 68
All
Android
defect
Not set
normal

Tracking

(firefox-esr6869+ verified, firefox69 verified, firefox70 verified)

VERIFIED FIXED
Firefox 70
Tracking Status
firefox-esr68 69+ verified
firefox69 --- verified
firefox70 --- verified

People

(Reporter: bevis, Assigned: ashleyrose)

References

Details

Attachments

(5 files)

User Agent: Mozilla/5.0 (Android 10; Mobile; rv:68.0) Gecko/68.0 Firefox/68.0

Steps to reproduce:

Nothing to be specific. Happens in Android Q beta 6.

Actual results:

Pink colored bookmarks and history

Expected results:

White background with black texts

Did you enable paint flashing?

Never mind I can reproduce this on Q beta 6 running on a Pixel 2XL.

Blocks: android-q
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Unspecified → Android
Hardware: Unspecified → All

This has also been reported to Google at https://issuetracker.google.com/issues/139090903 it may be an issue that Android should fix.

Attached image 1984175680.png

Forgot to mention that even the background of the search engine selector from the address bar is also colored pink.

This happened to me in beta 5 of Android Q on a Pixel 3

Thanks Ashley! Petru or Andrei please review when you have a chance.

You're welcome!

This happened because Q now loads a ColorStateListDrawable when loading an XML resource defined under res/color as a Drawable. For backwards compatibility, it falls back to loading the resource as a Drawable, but since ColorStateList and StateListDrawable both share the <selector> root tag, the fallback does not get triggered. ColorStateList falls back to magenta if an item in the state list is missing an android:color attribute.

To fix this, I added an android:color attribute to the affected XML resources, and kept the android:drawable attribute. This allows them to be loaded as a ColorStateList (which Q wraps with a ColorStateListDrawable) or as a StateListDrawable on devices before Q.

Assignee: nobody → ashleyrose
Status: NEW → ASSIGNED

Comment on attachment 9086789 [details]
Bug 1574028: Fix ColorStateLists on Android Q

ESR Uplift Approval Request

  • If this is not a sec:{high,crit} bug, please state case for ESR consideration: Important UX bug.
  • User impact if declined: The app would show a magenta background for various Views in Android Q.
  • Fix Landed on Version:
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Background color change for 3 layouts.
  • String or UUID changes made by this patch:

Beta/Release Uplift Approval Request

  • User impact if declined: The app would show a magenta background for various Views in Android Q.
  • Is this code covered by automated tests?: No
  • Has the fix been verified in Nightly?: No
  • Needs manual test from QE?: Yes
  • If yes, steps to reproduce: Verify that the search engine bar and the items in the Bookmarks and History tabs do not show a magenta background.
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Background color change for 3 layouts.
  • String changes made/needed:
Attachment #9086789 - Flags: approval-mozilla-esr68?
Attachment #9086789 - Flags: approval-mozilla-beta?
Flags: qe-verify+
Keywords: checkin-needed

Comment on attachment 9086789 [details]
Bug 1574028: Fix ColorStateLists on Android Q

Fixes an ugly UX regression on newer betas of Android Q. Approved for Fennec 68.1b8.

Attachment #9086789 - Flags: approval-mozilla-esr68?
Attachment #9086789 - Flags: approval-mozilla-esr68+
Attachment #9086789 - Flags: approval-mozilla-beta?
Attachment #9086789 - Flags: approval-mozilla-beta+
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 70

I have tested the issue on the latest Firefox builds: 69.0b16 and 70.0a1 (2019-08-21) using a Google Pixel XL (Android Q Beta 6) and the issue no longer occurs. I will mark this issue accordingly. I will leave the qe-verify+ flag up until the fix is uplifted to the esr build.

QA Whiteboard: [qa-triaged]

Hi, verified as fixed on Firefox 68.1b8 using a Google Pixel XL (Android Q Beta 6)

Flags: qe-verify+
Status: RESOLVED → VERIFIED

Bugbug thinks this bug is a regression, but please revert this change in case of error.

Keywords: regression

pretty sure bugbug is wrong.

Keywords: regression
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: