Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
Trac
Trac
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 246
    • Issues 246
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Create a new issue
  • Issue Boards

GitLab is used only for code review, issue tracking and project management. Canonical locations for source code are still https://gitweb.torproject.org/ https://git.torproject.org/ and git-rw.torproject.org.

  • Legacy
  • TracTrac
  • Issues
  • #15688

Closed (moved)
Open
Opened Apr 14, 2015 by Trac@tracbot

sdk/tabs

I am writing a small Addon for the Tor Browser. I noticed that sdk/tabs is not working (Tor Browser 4.0.8 on Linux x64).

This small code example returns the number of all open tabs:

// main.js

var tabs = require("sdk/tabs"); console.log(tabs.length);

When started in Vanilla Firefox with one open tab, it returns "1". In Tor Browser it always gives 0, no matter how many tabs are open.

I came to this simple example after I noticed that attaching content scripts to tabs didn't work either, which did in Vanilla Firefox just fine. It seems that the whole sdk/tabs class is not working at all.

Trac:
Username: mabe

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: legacy/trac#15688