Homepage-as-newtab breaks custom tabs
Categories
(Firefox for Android :: Homepage, defect, P1)
Tracking
()
People
(Reporter: tcampbell, Assigned: gl)
References
(Blocks 1 open bug)
Details
(Whiteboard: [fxdroid] [group5])
Attachments
(1 file, 1 external file)
|
350.06 KB,
image/png
|
Details |
Steps to reproduce
- Enable homepage-as-newtab (or get enrolled in currently nimbus experiment)
- Click a web link in 3rd party app (like Slack) to trigger custom tab
Expected behavior
- page loads in custom tab mode
Actual behavior
- fenix app opens to homepage without desired page
- hitting back button returns to a custom tab where we expected to be in first place
| Reporter | ||
Comment 1•1 year ago
|
||
Additionally, the browser that does start is in some broken state where clicking the mask icon to toggle privatebrowsing does creates private browsing tabs in the normal tab tray. If I manually use the tab tray to switch, I get a broken homepage with a mix of private and normal UI.
| Reporter | ||
Comment 2•1 year ago
|
||
Comment 3•1 year ago
|
||
I hit this as well, but I think there's one thing missing from the STR: you need to have a new tab open as the last tab in the tab tray (in Nightly, open in the background).
If you close that new tab (or navigate it to some website), then the issue goes away and subsequently-opened custom tabs behave as expected. (That's how this behaves for me at least.)
| Assignee | ||
Updated•1 year ago
|
Updated•1 year ago
|
Comment 5•11 months ago
|
||
The severity field is not set for this bug.
:gl, could you have a look please?
For more information, please visit BugBot documentation.
| Assignee | ||
Updated•10 months ago
|
Comment 6•10 months ago
|
||
The tracking requests were added since this was triaged as S1
I'm not sure is S1 is correct, but :gl please request tracking with a reason if needed
https://firefox-source-docs.mozilla.org/bug-mgmt/guides/severity.html
| Assignee | ||
Updated•4 months ago
|
| Assignee | ||
Comment 7•4 months ago
|
||
The cause is AboutHomeBinding (bug 1928585) was registered unconditionally in HomeActivity.onCreate. ExternalAppBrowserActivity which is responsible for custom tabs extends HomeActivity, and inherits this registration. The AboutHomeBinding observes the BrowserStore and will navigate to the homepage when the selected tab is "about:home", which aligns with dholbert's STR that we must have a new tab opened.
Solution
AboutHomeBinding should only run in the main HomeActivity and not be registered in ExternalAppBrowserActivity. This type of guard against ExternalAppBrowserActivity is already fairly common in HomeActivity.
| Assignee | ||
Updated•4 months ago
|
| Assignee | ||
Comment 8•4 months ago
|
||
The cause is AboutHomeBinding (bug 1928585) was registered unconditionally in HomeActivity.onCreate. ExternalAppBrowserActivity which is responsible for custom tabs extends HomeActivity, and inherits this registration. The AboutHomeBinding observes the BrowserStore and will navigate to the homepage when the selected tab is "about:home".
Solution
AboutHomeBinding should only run in the main HomeActivity and not be registered in ExternalAppBrowserActivity.
| Assignee | ||
Comment 9•4 months ago
|
||
STR:
- Enable Homepage as a New Tab (Secret Settings)
- Open a new tab so an about:home tab is the last/selected tab in the tabs tray.
- From a 3rd-party app (Slack/Gmail), tap a web link to trigger a custom tab.
Comment 10•4 months ago
|
||
(In reply to Gabriel Luong [:gl] (ΦωΦ) from comment #9)
STR:
- Enable Homepage as a New Tab (Secret Settings)
- Open a new tab so an about:home tab is the last/selected tab in the tabs tray.
- From a 3rd-party app (Slack/Gmail), tap a web link to trigger a custom tab.
This issue is still reproducible on the latest NIghtly 154.0a1 from 14.07.2026 with Google Pixel 10 (Android 16).
| Assignee | ||
Comment 11•4 months ago
|
||
(In reply to Adina Petridean QA [:apetridean] from comment #10)
(In reply to Gabriel Luong [:gl] (ΦωΦ) from comment #9)
STR:
- Enable Homepage as a New Tab (Secret Settings)
- Open a new tab so an about:home tab is the last/selected tab in the tabs tray.
- From a 3rd-party app (Slack/Gmail), tap a web link to trigger a custom tab.
This issue is still reproducible on the latest NIghtly 154.0a1 from 14.07.2026 with Google Pixel 10 (Android 16).
Patch hasn't landed yet so we should only test this after the bug is closed.
| Assignee | ||
Updated•4 months ago
|
Comment 12•4 months ago
|
||
Comment 13•4 months ago
|
||
| bugherder | ||
Comment 15•4 months ago
|
||
Verified as fixed on the latest Firefox for Android Nightly 155.0a1 from 7/21 using a Samsung Galaxy Z Fold 4 (Android 16), and a Xiaomi Poco X7 Pro (Android 16).
Description
•