Closed Bug 1880069 Opened 1 year ago Closed 1 year ago

Switch-to-tab in a regular tab loads the url already opened in container tabs

Categories

(Firefox :: Address Bar, defect, P2)

Desktop
All
defect

Tracking

()

VERIFIED FIXED
125 Branch
Tracking Status
firefox125 --- verified

People

(Reporter: oardelean, Assigned: mak)

References

(Blocks 1 open bug)

Details

(Whiteboard: [sng])

Attachments

(1 file)

Notes

Found in

  • Firefox Nightly 124.0a1;

Affected versions

  • Firefox Nightly 124.0a1;

Tested platforms

  • Windows 10;
  • Ubuntu 22;
  • macOS 12;

Affected platforms

  • Windows 10;
  • Ubuntu 22;
  • macOS 12;

Unaffected platforms

  • N/A;

Preconditions

  • browser.urlbar.switchTabs.searchAllContainers set to true

Steps to reproduce

  1. Launch Firefox with the profile from preconditions.
  2. Open a website in a container tab(eg. Personal).
  3. Open a new regular tab and write the title of the previously opened website until the suggestion is present in the address bar.
  4. Click on the Switch to tab - Personal button.
  5. Open a new regular tab and write the title of the previously opened website.
  6. Click on the switch-to-tab(non-container) button from Firefox Suggest section in the address bar.

Expected result

  • There should be no switch to tab option present for a non-container tab, since the url is opened only in a container tab.

Actual result

  • The website loads in the regular tab.

Regression range

  • Not a regression.

:oardelean, if you think that's a regression, could you try to find a regression range using for example mozregression?

Priority: -- → P2
Whiteboard: [sng]
Assignee: nobody → mseibert
Status: NEW → ASSIGNED

The bug is due to deduping not working correctly, both the Places and the InputHistory provider are returning a switch tab result, but InputHistory is not returning the appropriate userContextId, so the Muxer doesn't dedupe them. Taking the bug as Mark is finishing other work.

Assignee: mseibert → mak

The InputHistory (adaptive) provider is not properly reporting the open tab
userContextId, thus the Muxer is unable to dedupe results properly.
This cleans up the query a little bit avoiding numeric indices and fields that
are unused later.

Attachment #9388158 - Attachment description: Bug 1880069 - Switch-to-tab in a regular tab loads the url already opened in container tabs. r=jteow → Bug 1880069 - Switch-to-tab result sometimes appears twice with wrong container. r=jteow
Pushed by mak77@bonardo.net: https://hg.mozilla.org/integration/autoland/rev/d6bac75c3b64 Switch-to-tab result sometimes appears twice with wrong container. r=jteow
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 125 Branch
Regressions: 1883205

Issue is verified as fixed on Firefox Nightly 125.0a1 on macOS 12, Windows 10 and Ubuntu 22.

Status: RESOLVED → VERIFIED
Blocks: 1713324
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: