You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I‘m developing a Chrome Extension. chrome.tabs.someMethod API doesn‘t work with Tor private window if I allow to the extension to access private window, but chrome.tabs.onSomething will work.
Steps to Reproduce
Add the following the test extension to Brave Browser
Open brave://extensions/ and move to the test extension page and allow to the test extension to access private window and see the background page
Open Tor private window and access some page (or reloading)
manifest.json:
{
"description": "Example of chrome.tabs API with Tor private windo.",
"manifest_version": 2,
"name": "Tor private window example",
"version": "0.0.1",
"permissions": [
"tabs"
],
"background": {
"scripts": [
"background.js"
]
}
}
background.js:
// Example of chrome.tabs API with Tor private window.functionprintTabInfo(id,info,tab){console.log(`tab id is ${id}, tab url is ${tab.url}`);chrome.tabs.getZoomSettings(id,zoomSettings=>console.log(`Zoom settings of tab id ${id}: ${zoomSettings}`));// Dosen‘t work with Tor private window.}chrome.tabs.onUpdated.addListener(printTabInfo);// onUpdated is work.
Actual result:
Error occured. Unable to access Tor private window‘s tabs with chrome.tabs.getZoomSettings and log said Zoom settings of tab id 318: undefined. Work fine with private window (not Tor).
Expected result:
No error occured and log says Zoom settings of tab id 318: [object Object] just like private window and normal window.
Description
I‘m developing a Chrome Extension.
chrome.tabs.someMethod
API doesn‘t work with Tor private window if I allow to the extension to access private window, butchrome.tabs.onSomething
will work.Steps to Reproduce
brave://extensions/
and move to the test extension page and allow to the test extension to access private window and see the background pagemanifest.json:
background.js:
Actual result:
Error occured. Unable to access Tor private window‘s tabs with
chrome.tabs.getZoomSettings
and log saidZoom settings of tab id 318: undefined
. Work fine with private window (not Tor).Expected result:
No error occured and log says
Zoom settings of tab id 318: [object Object]
just like private window and normal window.Reproduces how often:
Easily reproduced
Brave version (brave://version info)
Version/Channel Information:
Other Additional Information:
Miscellaneous Information:
My workaround is using Tor proxy but not good at security
The text was updated successfully, but these errors were encountered: