Open Bug 1835988 Opened 1 year ago Updated 10 months ago

Removing unnecessary raw-pointer of WorkerPrivate

Categories

(Core :: DOM: Workers, enhancement)

enhancement

Tracking

()

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