Closed Bug 1931579 Opened 1 year ago Closed 1 year ago

Compose Previews are broken and unable to render

Categories

(Firefox for Android :: Design System and Theming, defect, P2)

All
Android
defect

Tracking

()

RESOLVED FIXED
134 Branch
Tracking Status
firefox132 --- unaffected
firefox133 --- unaffected
firefox134 --- fixed

People

(Reporter: 007, Assigned: harrisono)

References

(Regression)

Details

(Keywords: regression, Whiteboard: [fxdroid][group3][toolbar-redesign-beta-blocker])

Attachments

(1 obsolete file)

A recent change from a navbar patch nuked Compose previews and all of them are unable to render. Calling components (which is what context.settings() does under the hood), breaks previews, so these calls should be avoided whenever possible.

We would need to either:

  1. Wrap the settings calls with the inComposePreview check
  2. “Revert” the change and remove the isCustomTab check from Theme.getTheme() and instead have a local when check inside of ExternalAppBrowserFragment to directly specify the theme to the FirefoxTheme wrapper call.
    • So we’d have a when to check for the custom tab logic and then just use the default Theme.getTheme otherwise

Personally, I’d advocate for option 2. The firefox theme wrapper should probably not have knowledge about custom tabs logic, especially if it’s only used in one location, but also to keep Theme.getTheme as minimal as possible.

Assignee: nobody → hoglesby
Status: NEW → ASSIGNED

Set release status flags based on info from the regressing bug 1925679

Whiteboard: [fxdroid][group3][toolbar-redesign-beta-blocker]
Attachment #9438065 - Attachment is obsolete: true

Fixed with the revert mentioned above

Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 134 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: