Opened 4 years ago

Last modified 2 years ago

#16335 new task

Investigate whether the Symbol data type can store global identifiers accessible to content

Reported by: gk Owned by: tbb-team
Priority: High Milestone:
Component: Applications/Tor Browser Version:
Severity: Normal Keywords: ff52-esr, tbb-linkability
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description (last modified by gk)

"To create symbols available across files and in a global scope-like environment, use the methods Symbol.for() and Symbol.keyFor() to set and retrieve symbols from the global symbol registry." (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol)

If we need to disable this feature https://bugzilla.mozilla.org/show_bug.cgi?id=1066322 shows a way Mozilla used.

Child Tickets

Change History (5)

comment:1 Changed 4 years ago by gk

Description: modified (diff)

comment:2 Changed 4 years ago by gk

Keywords: tbb-5.0a3-essential added

This scares me. I think we should at least try to understand what this is for and how it works until 5.0a3 is coming out.

comment:3 Changed 4 years ago by gk

Keywords: tbb-5.0a3-essential removed

Might be not scary enough for the remaining time we have. :-(

comment:4 Changed 4 years ago by bugzilla

Severity: Normal

Jason Orendorff can definitely help you, 'cause he is the implementer of it in FF ;)
His good article: https://hacks.mozilla.org/2015/06/es6-in-depth-symbols/
At first sight: Symbols are UIDs by themselves with some sort of "globality".

comment:5 Changed 2 years ago by cypherpunks

Keywords: ff52-esr added; ff38-esr removed
Note: See TracTickets for help on using tickets.