From 7549610fcda810f1937caee3e4aaef485f50bd57 Mon Sep 17 00:00:00 2001 From: Michael Hauser-Raspe Date: Sun, 22 Dec 2024 11:09:22 +0000 Subject: [PATCH] Support query keyword in activateBookmark. --- content_scripts/vomnibar.js | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/content_scripts/vomnibar.js b/content_scripts/vomnibar.js index 1e1efcee2..0127405d3 100644 --- a/content_scripts/vomnibar.js +++ b/content_scripts/vomnibar.js @@ -24,19 +24,23 @@ const Vomnibar = { }); }, - activateBookmarks(sourceFrameId) { - this.open(sourceFrameId, { - completer: "bookmarks", - selectFirst: true, - }); + activateBookmarks(sourceFrameId, registryEntry) { + let options = Object.assign({}, registryEntry.options, + { + completer: "bookmarks", + selectFirst: true, + }); + this.open(sourceFrameId, options); }, - activateBookmarksInNewTab(sourceFrameId) { - this.open(sourceFrameId, { - completer: "bookmarks", - selectFirst: true, - newTab: true, - }); + activateBookmarksInNewTab(sourceFrameId, registryEntry) { + let options = Object.assign({}, registryEntry.options, + { + completer: "bookmarks", + selectFirst: true, + newTab: true, + }); + this.open(sourceFrameId, options); }, activateEditUrl(sourceFrameId) {