gecko-dev/dom/workers
Tom Ritter cdd2029b79 Bug 1576254 - Cut WorkerPrincipal over to a real object and implement isSystemOrAddonPrincipal r=baku
Unlike WorkletPrincipal, a WorkerPrincipal had been a simple static object shared by
all Workers. We never needed to consult it about an individual Worker before. Now we
do. So we cut it over from a static object to individual objects for each Worker.

We have an off main thread access problem for the Principal however, WorkerPrivate
has a method UsesSystemPrincipal that returns a bool that was initialized from the
Principal on the main thread. We copy that pattern and add a
UsesAddonOrExpandedAddonPrincipal method that will be called by the
isSystemOrAddonPrincipal method we must implement so we can inheirt from JSPrincipal.

Differential Revision: https://phabricator.services.mozilla.com/D47476

--HG--
extra : moz-landing-system : lando
2019-10-04 17:37:09 +00:00
..
remoteworkers Bug 1579835, part 5 - Fix remote type matching in SelectTargetActorForServiceWorker. r=asuth 2019-09-25 22:40:49 +00:00
sharedworkers Bug 1562663 - P3 - Have agent cluster Ids for workers; r=perry,nika 2019-09-23 09:57:23 +00:00
test Bug 1581710 - Update WebGPU IDL bindings r=jgilbert,bzbarsky 2019-10-02 16:46:03 +00:00
ChromeWorker.cpp
ChromeWorker.h
ChromeWorkerScope.cpp
ChromeWorkerScope.h
JSSettings.h Bug 1569564 - Remove the original malloc counter infrastructure r=sfink 2019-07-31 09:13:36 +00:00
MessageEventRunnable.cpp
MessageEventRunnable.h
moz.build Bug 1231213 - Implement cross-process ServiceWorkerGlobalScope.skipWaiting(). r=asuth 2019-08-15 17:27:28 +00:00
nsIWorkerDebugger.idl Bug 1539328: Introduce new unique id for normal worker actor. r=jdescottes,bhackett 2019-04-18 00:47:24 +00:00
nsIWorkerDebuggerManager.idl
Principal.cpp Bug 1576254 - Cut WorkerPrincipal over to a real object and implement isSystemOrAddonPrincipal r=baku 2019-10-04 17:37:09 +00:00
Principal.h Bug 1576254 - Cut WorkerPrincipal over to a real object and implement isSystemOrAddonPrincipal r=baku 2019-10-04 17:37:09 +00:00
Queue.h
RegisterBindings.cpp Bug 1559468 part 2. Move JS_DefineProfilingFunctions into dom::CreateGlobal. r=mccr8 2019-06-20 23:07:40 +00:00
RuntimeService.cpp Bug 1576254 - Cut WorkerPrincipal over to a real object and implement isSystemOrAddonPrincipal r=baku 2019-10-04 17:37:09 +00:00
RuntimeService.h Bug 1560931 - Set JS engine low memory state based on memory pressure notifications r=smaug 2019-06-24 18:24:47 +01:00
ScriptLoader.cpp Bug 1581315 part 1. Adjust MOZ_MUST_RETURN_FROM_CALLER to only apply to method calls on arguments. r=nika 2019-09-20 02:17:01 +00:00
ScriptLoader.h Bug 1557636 Use Referrer info in worker and fix sharedworker's wrong referrer r=baku 2019-06-13 20:37:34 +00:00
Worker.cpp Bug 1562663 - P4a - Deny sharing memery by default for DataClonePolicy; r=nika,lth 2019-09-26 13:27:25 +00:00
Worker.h Bug 1529345 - Part 2: Add Gecko infrastructure for receiving notifications about debugger-related events. r=jimb,smaug 2019-06-17 04:36:29 +00:00
WorkerCommon.h
WorkerCSPEventListener.cpp
WorkerCSPEventListener.h Bug 1565249: Remove self inclusion of WorkerCSPEventListener. r=baku 2019-07-11 16:48:51 +00:00
WorkerDebugger.cpp Bug 1559414 - Rename unaudited pre-fission methods with SameProcess for future audit burndown. r=nika 2019-07-26 16:48:31 +00:00
WorkerDebugger.h
WorkerDebuggerManager.cpp
WorkerDebuggerManager.h
WorkerError.cpp Bug 1231213 - Implement cross-process ServiceWorkerGlobalScope.skipWaiting(). r=asuth 2019-08-15 17:27:28 +00:00
WorkerError.h Bug 1392408 Part 2 - Encapsulate threadsafe main/worker stacks in WorkerStackHolder, r=bzbarsky. 2019-05-02 08:25:43 -10:00
WorkerEventTarget.cpp
WorkerEventTarget.h
WorkerLoadInfo.cpp Bug 1576254 - Cut WorkerPrincipal over to a real object and implement isSystemOrAddonPrincipal r=baku 2019-10-04 17:37:09 +00:00
WorkerLoadInfo.h Bug 1576254 - Cut WorkerPrincipal over to a real object and implement isSystemOrAddonPrincipal r=baku 2019-10-04 17:37:09 +00:00
WorkerLocation.cpp
WorkerLocation.h
WorkerNavigator.cpp Bug 1581710 - Update WebGPU IDL bindings r=jgilbert,bzbarsky 2019-10-02 16:46:03 +00:00
WorkerNavigator.h Bug 1581710 - Update WebGPU IDL bindings r=jgilbert,bzbarsky 2019-10-02 16:46:03 +00:00
WorkerPrivate.cpp Bug 1576254 - Move Clamping and Jittering from RealmCreationOptions to Behaviors r=luke 2019-10-04 17:35:26 +00:00
WorkerPrivate.h Bug 1576254 - Cut WorkerPrincipal over to a real object and implement isSystemOrAddonPrincipal r=baku 2019-10-04 17:37:09 +00:00
WorkerRef.cpp Bug 1559919 - Finish the WorkerHolder cleanup - part 11 - WorkerHolder replaced by WorkerRef, r=asuth 2019-07-12 11:18:17 +00:00
WorkerRef.h Bug 1559919 - Finish the WorkerHolder cleanup - part 11 - WorkerHolder replaced by WorkerRef, r=asuth 2019-07-12 11:18:17 +00:00
WorkerRunnable.cpp Bug 1575204. Fix crash when trying to run worker runnables on a not-ready-for-it worker thread. r=baku 2019-08-29 07:40:58 +00:00
WorkerRunnable.h Bug 1559919 - Finish the WorkerHolder cleanup - part 11 - WorkerHolder replaced by WorkerRef, r=asuth 2019-07-12 11:18:17 +00:00
WorkerScope.cpp Bug 1576254 - Cut WorkerPrincipal over to a real object and implement isSystemOrAddonPrincipal r=baku 2019-10-04 17:37:09 +00:00
WorkerScope.h Bug 1529345 - Part 2: Add Gecko infrastructure for receiving notifications about debugger-related events. r=jimb,smaug 2019-06-17 04:36:29 +00:00
WorkerStatus.h Bug 1559919 - Finish the WorkerHolder cleanup - part 11 - WorkerHolder replaced by WorkerRef, r=asuth 2019-07-12 11:18:17 +00:00
WorkerThread.cpp Bug 1563139 - Remove StaticPrefs.h. r=glandium 2019-07-26 01:10:23 +00:00
WorkerThread.h