mirror of
https://github.com/zen-browser/desktop.git
synced 2025-10-05 17:36:34 +00:00
Fix: bookmark items not opening
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
diff --git a/browser/components/places/PlacesUIUtils.sys.mjs b/browser/components/places/PlacesUIUtils.sys.mjs
|
diff --git a/browser/components/places/PlacesUIUtils.sys.mjs b/browser/components/places/PlacesUIUtils.sys.mjs
|
||||||
index fbdd6a34b12d4d957f7a2d9d95df0bfd65ba3f61..4d27f7fc108ca76e071707a737209bf5ea4ea07e 100644
|
index fbdd6a34b12d4d957f7a2d9d95df0bfd65ba3f61..6021901b427d426078d9bf713d6995ad6332dbfa 100644
|
||||||
--- a/browser/components/places/PlacesUIUtils.sys.mjs
|
--- a/browser/components/places/PlacesUIUtils.sys.mjs
|
||||||
+++ b/browser/components/places/PlacesUIUtils.sys.mjs
|
+++ b/browser/components/places/PlacesUIUtils.sys.mjs
|
||||||
@@ -58,6 +58,7 @@ class BookmarkState {
|
@@ -58,6 +58,7 @@ class BookmarkState {
|
||||||
@@ -157,12 +157,20 @@ index fbdd6a34b12d4d957f7a2d9d95df0bfd65ba3f61..4d27f7fc108ca76e071707a737209bf5
|
|||||||
/**
|
/**
|
||||||
* Append transactions to update tags by given information.
|
* Append transactions to update tags by given information.
|
||||||
*
|
*
|
||||||
@@ -902,7 +1011,7 @@ export var PlacesUIUtils = {
|
@@ -902,8 +1011,15 @@ export var PlacesUIUtils = {
|
||||||
aNode,
|
aNode,
|
||||||
aWhere,
|
aWhere,
|
||||||
aWindow,
|
aWindow,
|
||||||
- { aPrivate = false, userContextId = 0 } = {}
|
- { aPrivate = false, userContextId = 0 } = {}
|
||||||
+ { aPrivate = false, userContextId = aWindow.ZenWorkspaces.getDefaultContainer() } = {}
|
+ { aPrivate = false, userContextId } = {}
|
||||||
) {
|
) {
|
||||||
|
+ if (!userContextId) {
|
||||||
|
+ try {
|
||||||
|
+ let browserWindow = getBrowserWindow(aWindow);
|
||||||
|
+ userContextId = browserWindow.ZenWorkspaces.getDefaultContainer();
|
||||||
|
+ } catch {}
|
||||||
|
+ }
|
||||||
|
+
|
||||||
if (
|
if (
|
||||||
aNode &&
|
aNode &&
|
||||||
|
lazy.PlacesUtils.nodeIsURI(aNode) &&
|
||||||
|
Reference in New Issue
Block a user