Closed Bug 1997038 Opened 5 months ago Closed 5 months ago

Opens links from external applications or PWA in a new window instead of the existing one

Categories

(Core :: Widget: Win32, defect)

Firefox 144
defect

Tracking

()

RESOLVED DUPLICATE of bug 1994825

People

(Reporter: freijon, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:144.0) Gecko/20100101 Firefox/144.0

Steps to reproduce:

On Windows, open a link e.g. from MS Teams or a tab added to taskbar (PWA?)

I already tried to set the following options in about:config

  • browser.link.open_newwindow = 3
  • browser.link.open_newwindow.override.external = 3
  • browser.link.open_newwindow.restriction = 3

I also tried launching Firefox without Extensions and using a fresh profile - Same behavior.

This worked fine until very recently (after upgrading to 144.0) - Maybe it's a regression?

Actual results:

A new window is opened

Expected results:

The existing window should have been used

The Bugbug bot thinks this bug should belong to the 'Core::Widget: Win32' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Widget: Win32
Product: Firefox → Core

I wonder if this is related to bug 1423768. I can't reproduce this on a single desktop.

:jonas - are you using multiple virtual desktops? That bug makes it so links that open from an external application will only look at Firefox windows that are on the current desktop, and if there are none it will open a new one. Bug 1994825 adds a pref to disable this behavior (and return it to the previous behavior), but that won't be available until Firefox 145.

Flags: needinfo?(freijon)
See Also: → 1423768
Severity: -- → S3

You nailed it!
I'm indeed using multiple virtual desktops and I just tested: When I move the PWA (or Teams) to the same virtual desktop where the main Firefox window lies, then the links open fine in the main window.

I guess I'll have to wait for Firefox 145. The setting will be called widget.prefer_windows_on_current_virtual_desktop (must be false), did I read that correct?

Flags: needinfo?(freijon)

Ah, great!

Yes, that's correct. Sorry for the trouble - I should have thought of adding a pref when I made the original change.

I'm going to close this as a duplicate of the bug to add the pref.

Status: UNCONFIRMED → RESOLVED
Closed: 5 months ago
Duplicate of bug: 1994825
Resolution: --- → DUPLICATE
See Also: 1423768
You need to log in before you can comment on or make changes to this bug.