From 63fca7e1528f138ba8386f10afcb1ee45d543ce6 Mon Sep 17 00:00:00 2001 From: Marcel Klehr Date: Mon, 26 Aug 2024 15:32:52 +0200 Subject: [PATCH] fix: Filter out file: URLs when syncing tabs on firefox fixes #1627 Signed-off-by: Marcel Klehr --- src/lib/LocalTabs.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib/LocalTabs.ts b/src/lib/LocalTabs.ts index accf08e598..dbca1acefb 100644 --- a/src/lib/LocalTabs.ts +++ b/src/lib/LocalTabs.ts @@ -52,6 +52,10 @@ export default class LocalTabs implements IResource { Logger.log('Parent is "tabs", ignoring this one.') return } + if (self.location.protocol === 'moz-extension:' && new URL(bookmark.url).protocol === 'file:') { + Logger.log('URL is a file URL and we are on firefox, ignoring this one.') + return + } const node = await this.queue.add(() => browser.tabs.create({ windowId: typeof bookmark.parentId === 'string' ? parseInt(bookmark.parentId) : bookmark.parentId,