Open Bug 1835988 Opened 11 months ago Updated 4 months ago

Removing unnecessary raw-pointer of WorkerPrivate


(Core :: DOM: Workers, enhancement)





(Reporter: edenchuang, Assigned: edenchuang)


According to the discussion of, 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 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: nobody → echuang
You need to log in before you can comment on or make changes to this bug.