Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Desktop / Bug] Unable to access Tor private window‘s tabs with chrome.tabs API of chrome extensions #14544

Open
minamotorin opened this issue Mar 7, 2021 · 0 comments

Comments

@minamotorin
Copy link

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, but chrome.tabs.onSomething will work.

Steps to Reproduce

  1. Add the following the test extension to Brave Browser
  2. 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
  3. 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.
    
    function printTabInfo(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).

description

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:

  • Can you reproduce this issue with the current release? - Yes
  • Can you reproduce this issue with the beta channel?
  • Can you reproduce this issue with the nightly channel? - Yes

Other Additional Information:

  • Does the issue resolve itself when disabling Brave Shields? - No
  • Does the issue resolve itself when disabling Brave Rewards? - No
  • Is the issue reproducible on the latest version of Chrome? - No, Chrome doesn‘t have Tor private window.

Miscellaneous Information:

My workaround is using Tor proxy but not good at security

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants