Open
Bug 1835988
Opened 2 years ago
Updated 1 year ago
Removing unnecessary raw-pointer of WorkerPrivate
Categories
(Core :: DOM: Workers, enhancement)
Core
DOM: Workers
Tracking
()
NEW
People
(Reporter: edenchuang, Assigned: edenchuang)
Details
According to the discussion of https://phabricator.services.mozilla.com/D177511#5922550, some already-known unnecessary raw-pointer of WorkerPrivate should be removed, such as PerformanceWorker, WebScheduler, and objects which are bound with a GlobalObject(WorkerGlobalScope) and using the WorkerPrivate methods.
We gave a partial solution in https://phabricator.services.mozilla.com/D177511 by getting the WorkerPrivate through GetCurrentThreadWorkerPrivate().
The corresponding of WorkerPrivate methods should be exposed by WorkerGlobalScope(Base) for those objects. And those objects should get the WorkerGlobalScope(Base) by a static downcasting from GetParentObject()/GetOwnerGlobal().
Assignee | ||
Updated•1 year ago
|
Assignee: nobody → echuang
You need to log in
before you can comment on or make changes to this bug.
Description
•