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,