Open Bug 2010916 Opened 3 days ago Updated 3 days ago

Remove Fragment, NavController and ToolbarStore from the FenixSearchMiddleware

Categories

(Firefox for Android :: Tooling, task)

All
Android
task

Tracking

()

People

(Reporter: moyin, Unassigned)

References

(Blocks 1 open bug)

Details

(Whiteboard: [fxdroid][group6])

The FenixSearchMiddleware is currently triggering LeakCanary reports by holding strong references to the Fragment, NavController, and ToolbarStore.

While wrapping these variables in WeakReference offers an immediate mitigation, it introduces fragility and significant null-check overhead. A more robust solution is to refactor the Middleware to remove these dependencies entirely.

You need to log in before you can comment on or make changes to this bug.