diff --git a/lib/browser/api/extensions.js b/lib/browser/api/extensions.js index abc11a82ac..0063db228a 100644 --- a/lib/browser/api/extensions.js +++ b/lib/browser/api/extensions.js @@ -344,6 +344,11 @@ const tabsQuery = function (queryInfo = {}, useCurrentWindowId = false) { var result = [] tabIds.forEach((tabId) => { + // never add the master Brave container window + if (tabValues[tabId].url.startsWith('chrome://brave')) { + return + } + // delete tab from the list if any key doesn't match if (!queryKeys.map((queryKey) => (tabValues[tabId][queryKey] === queryInfo[queryKey])).includes(false)) { result.push(tabValues[tabId])