Closed
Bug 1973834
Opened 7 months ago
Closed 7 months ago
The Compose previews in Bookmarks are broken
Categories
(Firefox for Android :: Bookmarks, defect)
Tracking
()
RESOLVED
FIXED
142 Branch
| Tracking | Status | |
|---|---|---|
| firefox142 | --- | fixed |
People
(Reporter: 007, Assigned: mavduevskiy)
References
Details
Attachments
(1 file)
The Compose previews in BookmarksScreen are broken because of invoking the components singleton. It's used to obtain the AppStore, when it can just be a parameter on the BookmarksScreen API instead.
Components makes a call expecting an application context and all of the FenixApplication singleton dependencies to be initialized, which is broken on Compose previews, since the AppContext is never initialized in that scenario.
We can either inline the AppStore dependency with the components call as the default value in the API and provide an empty AppStore in the previews, or make it a mandatory parameter of the API and provide the real AppStore at the BookmarksScreen callsite.
Comment 1•7 months ago
|
||
:mavduevskiy, any chance you could take this?
Updated•7 months ago
|
Flags: needinfo?(mavduevskiy)
| Assignee | ||
Comment 2•7 months ago
|
||
ooopsy
sure
Assignee: nobody → mavduevskiy
Flags: needinfo?(mavduevskiy)
| Assignee | ||
Comment 3•7 months ago
|
||
Pushed by mavduevskiy@mozilla.com:
https://github.com/mozilla-firefox/firefox/commit/fd5aab6d09c4
https://hg.mozilla.org/integration/autoland/rev/900296eaceb9
Fix bookmarks previews r=android-reviewers,007
Status: NEW → RESOLVED
Closed: 7 months ago
status-firefox142:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 142 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•