--- comm/suite/components/places/PlacesUIUtils.jsm.orig 2023-06-10 13:42:19.000000000 +0300 +++ comm/suite/components/places/PlacesUIUtils.jsm 2023-06-18 02:01:16.861936616 +0300 @@ -921,17 +921,18 @@ var PlacesUIUtils = { createInstance(Ci.nsIMutableArray); args.appendElement(uriList); browserWindow = Services.ww.openWindow(aWindow, "chrome://navigator/content/navigator.xul", null, "chrome,dialog=no,all", args); return; } - var loadInBackground = where == "tabshifted"; + var loadInBackground = Services.prefs.getBoolPref("browser.tabs.avoidBrowserFocus") ? + (where == "current" || where == "tab") : (where == "tabshifted"); // For consistency, we want all the bookmarks to open in new tabs, instead // of having one of them replace the currently focused tab. Hence we call // loadTabs with aReplace set to false. browserWindow.gBrowser.loadTabs(urls, { inBackground: loadInBackground, replace: false, triggeringPrincipal: Services.scriptSecurityManager.getSystemPrincipal(), });