Open Bug 1961133 Opened 1 year ago Updated 4 months ago

[meta] Remove (activity as HomeActivity) casts

Categories

(Firefox for Android :: Homepage, task)

All
Android
task

Tracking

()

People

(Reporter: polly, Unassigned)

References

(Depends on 8 open bugs, Blocks 1 open bug)

Details

(Keywords: meta, Whiteboard: [fxdroid][group6] )

Fragments / composables currently often assume what parent container implementation they will be added to.
This stops us from being able to test Fragments in isolation.

(activity as HomeActivity) casts are currently used for access to:

Bug 1973366 will already take care of replacing openToBrowserAndLoad as we look through every use case that involves open a URL to determine whether or not we need to open the URL in a new tab or not as part of Homepage as a New Tab. Please consider that task taken care of.

For BrowsingModeManger, we should consider refactoring this out into Components so it doesn't have to live in the HomeActivity. This will allow us to pass BrowsingModeManager into other application components more easily as well.

The Bugbug bot thinks this bug should belong to the 'Firefox for Android::Homepage' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: General → Homepage
Depends on: 1979823
Depends on: 1979928

Converting this to a meta bug because there will be many individual pieces where we want to remove this casting to HomeActivity or passing HomeActivity as parameter in order to access certain properties that can be retrieved elsewhere.

Keywords: meta
Summary: Remove (activity as HomeActivity) casts → [meta] Remove (activity as HomeActivity) casts
Depends on: 1986714
Depends on: 1992720
Depends on: 1992729
Depends on: 1995327
Depends on: 1996618
Depends on: 1996632
Depends on: 1996635
Depends on: 1996806
Depends on: 1997167
Depends on: 1997999
Depends on: 1999268
Depends on: 1999696
Depends on: 1999778
Depends on: 1999990
Depends on: 2000676
Depends on: 2001208
Depends on: 2001398
Depends on: 2001704
Depends on: 2002631
Depends on: 2002632
Depends on: 2002818
Depends on: 2003584
Depends on: 2003590
Depends on: 2003592
Depends on: 2003831
Depends on: 2003851
Depends on: 2006631
Depends on: 2007391
Depends on: 2009823
Depends on: 2013271
Depends on: 2013275
Depends on: 2013312
Depends on: 2013317
Depends on: 2013322
Depends on: 2013328
Depends on: 2015525
Depends on: 2015545
Depends on: 2015613
Depends on: 2016953
See Also: → 2016953
Depends on: 2016954
You need to log in before you can comment on or make changes to this bug.