Closed Bug 1918437 Opened 2 months ago Closed 1 month ago

Switch to tab visits URL instead of switching to tab

Categories

(Firefox :: Address Bar, defect, P2)

defect

Tracking

()

VERIFIED FIXED
133 Branch
Tracking Status
firefox133 --- verified

People

(Reporter: mcheang, Assigned: daleharvey)

References

Details

(Whiteboard: [sng])

Attachments

(3 files, 1 obsolete file)

Attached video bug1.mov

This is a regression from secondary actions button.
This bug is happening with browser.urlbar.scotchBonnet.enableOverride PREF true and when it's false.

Steps To Reproduce:

  1. Visit https://en.wikipedia.org/wiki/Kitten
  2. Open a new tab in the same window.
  3. Activate tabs search mode in the address bar for the new tab.
  4. Click the wikipedia kitten switch to tab result
  5. After selecting the switch to tab result, the tab visits the URL instead of switching to the tab.

Expected:
Switched to tab with the https://en.wikipedia.org/wiki/Kitten page

Actual:
Stayed on the same tab and visited https://en.wikipedia.org/wiki/Kitten

Attached video bug1-PREF-OFF.mov

I've attached two videos of this bug:

  1. when the urlbar.scotchBonnet.enableOverride PREF is TRUE and using @tabs to activate tabs search mode.
  2. when the urlbar.scotchBonnet.enableOverride is FALSE and using % to active tabs search mode.
Blocks: 1916679
Duplicate of this bug: 1918229
Whiteboard: [sng]

Based on Dale's comments in Bug 1918446, it has not regressed Nightly with the pref off.

When I was testing it with the urlbar.scotchBonnet.enableOverride OFF, the urlbar.secondaryActions.featureGate was ON for me. That's why it seemed like it regressed Nightly, but if secondaryActions is OFF the behaviour is fine and switch to tabs works normally.

However, we still need to fix this and we want switch to tabs working properly before release.
It is still a blocker for Bug 1916679.

Hey Mandy

It looks like we mostly agree that the secondary action that does switch to tab should be remobed and the behaviour reverted back to the current way switch to tab works. Is this something you want to do? Happy to take it over or either way.

Flags: needinfo?(mcheang)

Chris mentioned you had some active work at the moment and this is the next bug up for enabling in nightly so I will take it on if thats ok, cheers

Assignee: mcheang → dharvey
Flags: needinfo?(mcheang)

I'm ok with that. Thank you for taking this ticket 👍

Duplicate of this bug: 1919535
Blocks: 1918651
Pushed by dharvey@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/b9ff9648c7c5 Disable secondary actions based switch to tab. r=daisuke,desktop-theme-reviewers,urlbar-reviewers,dao
Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 133 Branch

Reproducible on a 2024-09-12 Nightly build on Windows 10.
Verified as fixed on Firefox Nightly 133.0a1 on Windows 10, Ubuntu 22, macOS 14.

Status: RESOLVED → VERIFIED
Attachment #9424447 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: