[HNT] Paste & go on homepage opens a new tab
Categories
(Firefox for Android :: Homepage, defect)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox158 | --- | verified |
People
(Reporter: npoon, Assigned: npoon)
References
(Blocks 1 open bug)
Details
(Whiteboard: [fxdroid] [group5])
Attachments
(1 file, 1 external file)
|
2.36 MB,
video/mp4
|
Details |
Steps to reproduce
- Copy a link to your clipboard
- Open a new homepage tab
- Long press the search bar
- Press paste & go
Expected behavior
The clipboard link opens in the current homepage tab
Actual behavior
The clipboard link opens in a new tab
Updated•2 months ago
|
| Assignee | ||
Updated•2 months ago
|
Comment 1•2 months ago
|
||
| frontend-triage | ||
The homepage toolbar's Paste & Go handler in BrowserToolbarMiddleware.kt hard-codes newTab = true, so FenixBrowserUseCases.loadUrlOrSearch takes the tabsUseCases.addTab branch in FenixBrowserUseCases.kt and the existing about:home tab is left behind. The equivalent search path gates that value on settings.enableHomepageAsNewTab in BrowserToolbarSearchMiddleware.kt, which is why Paste followed by Enter reuses the home tab but Paste & Go does not.
Fix: In the LoadFromClipboardClicked branch pass newTab = !settings.enableHomepageAsNewTab (settings is already injected and used for this purpose at #313), and split the test at BrowserToolbarMiddlewareTest.kt, which currently asserts newTab = true, into HNT-on and HNT-off cases.
Suggested severity: S3. An extra tab accumulates on a mainline homepage action with HNT enabled, but nothing is lost and the user can close the leftover tab or use Paste plus Enter instead.
If you'd like to provide feedback on this comment, please use the 👍 or 👎 reaction.
If you want to categorize your feedback you can add one of the following tags: ai-triage-wrong-file, ai-triage-wrong-cause, ai-triage-hallucination, ai-triage-out-of-scope, ai-triage-wrong-fix, ai-triage-shallow-fix.
Needinfo hackbot@mozilla.tld to have a patch generated for this bug, include any questions or directions as needed in your comment.
| Assignee | ||
Comment 2•2 months ago
|
||
Comment 4•2 months ago
|
||
| bugherder | ||
| Assignee | ||
Updated•2 months ago
|
Comment 5•2 months ago
|
||
Verified as fixed on the latest Nightly build (158.0a1 from 2026-09-23T21:39:29).
When tapping on +, a tab is added in the tab counter and when a copied link is pasted in the search field, the link then opens in the same tab.
Tested devices:
- Samsung Galaxy S25 Ultra (Android 16);
- OnePlus Pad 3 (Android 15);
- Vivo X80 Lite G5 (Android 13);
- Xiaomi Mi11 Lite (Android 11);
- Motorola Nexus 6 (Android 8).
Marking the ticket as verified.
Updated•2 months ago
|
| Assignee | ||
Comment 6•2 months ago
|
||
Hey Lorand,
Can we also confirm that the behaviour for homepage as new tab off hasn't changed? Thanks
Comment 7•2 months ago
|
||
Hey Nick,
Yes, I've looked into the behavior with homepage as new tab off, and it's the same as before, so the pasted link opens in a new tab.
Description
•