Tom Ritter
6fb74fab49
Bug 1851816: Pass PBM Status into RFPIsEnabledFor r=timhuang
...
Differential Revision: https://phabricator.services.mozilla.com/D192501
2023-12-18 18:39:33 +00:00
Noemi Erli
3ebc359ec4
Backed out 2 changesets (bug 1851816) for causing private browsing related failures CLOSED TREE
...
Backed out changeset d2f63b3f6342 (bug 1851816)
Backed out changeset 7d0d2fe95e67 (bug 1851816)
2023-11-07 00:18:54 +02:00
Tom Ritter
d8e7355533
Bug 1851816: Pass PBM Status into RFPIsEnabledFor r=timhuang
...
Differential Revision: https://phabricator.services.mozilla.com/D192501
2023-11-06 21:02:40 +00:00
Tim Huang
1489ae7488
Bug 1824222 - Add OverriddenFingerprintingSettings to worklet implementation. r=tjr,dom-worker-reviewers,smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D185015
2023-10-17 22:02:29 +00:00
Tom Schuster
591c5f154e
Bug 1834737 - Make RFPTarget parameter of nsIGlobalObject::ShouldResistFingerprinting non-optional. r=tjr,media-playback-reviewers,aosmond
...
Differential Revision: https://phabricator.services.mozilla.com/D178924
2023-05-31 09:46:53 +00:00
Yoshi Cheng-Hao Huang
200920a335
Bug 1572644 - Part 2: Init WorkletModuleLoader when WorkletGlobalScope is created. r=jonco,yulia
...
Depends on D167042
Differential Revision: https://phabricator.services.mozilla.com/D166540
2023-03-13 22:59:36 +00:00
Nika Layzell
1f4d96a53f
Bug 1804093 - Part 3: Stop asserting main thread when reading WorkletImpl::Principal, r=asuth
...
Differential Revision: https://phabricator.services.mozilla.com/D163854
2022-12-12 22:08:35 +00:00
Tom Ritter
affa6b423f
Bug 1778510: Add RTPCallerType to GlobalObject r=asuth
...
This centralizes the logic in one place.
In order to do this, we will need to check the principal
off-main thread. (Well, we need to know if it's System
Principal.) Worker and Worklet need special ways to do
this, so create a virtual method for it and let them
override it. This is analogous to the ShouldRFP method
on GlobalObject.
Differential Revision: https://phabricator.services.mozilla.com/D157564
2022-11-29 13:34:15 +00:00
Tom Ritter
e45b064ae1
Bug 1778510: Add a ShouldRFP boolean to Worklets r=asuth
...
This will be needed when we set the Javascript Realm options
for Worklets.
Depends on D151283
Differential Revision: https://phabricator.services.mozilla.com/D151297
2022-11-29 13:34:13 +00:00
Butkovits Atila
b5d69ff02c
Backed out 33 changesets (bug 1778510) for causing build bustages at nsIGlobalObject.h. CLOSED TREE
...
Backed out changeset f2a53c9e497c
Backed out changeset 59350ca6f3f2 (bug 1778510)
Backed out changeset abbba7e72b57 (bug 1778510)
Backed out changeset 6cf7473afae8 (bug 1778510)
Backed out changeset 74fb5fed93ea (bug 1778510)
Backed out changeset 5b5dc70cdd0a (bug 1778510)
Backed out changeset ff93191cafd2 (bug 1778510)
Backed out changeset 39cc006b610c (bug 1778510)
Backed out changeset dfaef3ad17a9 (bug 1778510)
Backed out changeset 8fbabeb8244b (bug 1778510)
Backed out changeset 45051b62e3f1 (bug 1778510)
Backed out changeset 86c0923fd81f (bug 1778510)
Backed out changeset a49c0f69d519 (bug 1778510)
Backed out changeset cfad733d4aaf (bug 1778510)
Backed out changeset df6d0fe89d5b (bug 1778510)
Backed out changeset 704db76eab17 (bug 1778510)
Backed out changeset 0651c128e369 (bug 1778510)
Backed out changeset 1e650de647c0 (bug 1778510)
Backed out changeset fa15a3572741 (bug 1778510)
Backed out changeset 4ceffd409eae (bug 1778510)
Backed out changeset 47db43142c62 (bug 1778510)
Backed out changeset ebb21153aaac (bug 1778510)
Backed out changeset a87eaaec3f9c (bug 1778510)
Backed out changeset 43ad5ee21f79 (bug 1778510)
Backed out changeset 5f20af8e1263 (bug 1778510)
Backed out changeset b78576875db0 (bug 1778510)
Backed out changeset d801fdeac90b (bug 1778510)
Backed out changeset 5af032c628c0 (bug 1778510)
Backed out changeset 86aa59de11b4 (bug 1778510)
Backed out changeset 58642357a19c (bug 1778510)
Backed out changeset c575e824e291 (bug 1778510)
Backed out changeset 32a358de4843 (bug 1778510)
Backed out changeset 40e0708c01e7 (bug 1778510)
2022-11-28 23:14:52 +02:00
Tom Ritter
bbaff951ca
Bug 1778510: Add RTPCallerType to GlobalObject r=asuth
...
This centralizes the logic in one place.
In order to do this, we will need to check the principal
off-main thread. (Well, we need to know if it's System
Principal.) Worker and Worklet need special ways to do
this, so create a virtual method for it and let them
override it. This is analogous to the ShouldRFP method
on GlobalObject.
Differential Revision: https://phabricator.services.mozilla.com/D157564
2022-11-28 18:04:07 +00:00
Tom Ritter
3042400353
Bug 1778510: Add a ShouldRFP boolean to Worklets r=asuth
...
This will be needed when we set the Javascript Realm options
for Worklets.
Depends on D151283
Differential Revision: https://phabricator.services.mozilla.com/D151297
2022-11-28 18:04:06 +00:00
Cosmin Sabou
9251c6ec90
Backed out 33 changesets (bug 1778510) for causing bp-hybrid bustages on nsIPrincipal.h. CLOSED TREE
...
Backed out changeset 282f589ede4a
Backed out changeset e23d03ba5a89 (bug 1778510)
Backed out changeset cbdb34cf7c8d (bug 1778510)
Backed out changeset d9a54521f3fb (bug 1778510)
Backed out changeset f5b7f8ce38b0 (bug 1778510)
Backed out changeset eb64607765a9 (bug 1778510)
Backed out changeset 18291e692834 (bug 1778510)
Backed out changeset bb71cc94a8be (bug 1778510)
Backed out changeset 507e84e1dafe (bug 1778510)
Backed out changeset 6d42e7a083ac (bug 1778510)
Backed out changeset 53799e6a46dd (bug 1778510)
Backed out changeset ff20d709839a (bug 1778510)
Backed out changeset 328d4d2df591 (bug 1778510)
Backed out changeset 9ba44fd8a440 (bug 1778510)
Backed out changeset eb1b7e30e519 (bug 1778510)
Backed out changeset c0927de6153b (bug 1778510)
Backed out changeset 02a306acd093 (bug 1778510)
Backed out changeset 2c5eecc4ad4c (bug 1778510)
Backed out changeset 38a9f45c9621 (bug 1778510)
Backed out changeset 35b7c7df62ce (bug 1778510)
Backed out changeset 187d71f42593 (bug 1778510)
Backed out changeset 450f4ccd6cd0 (bug 1778510)
Backed out changeset 915149e27da0 (bug 1778510)
Backed out changeset 9c6e85369f15 (bug 1778510)
Backed out changeset c6a9fe0ce713 (bug 1778510)
Backed out changeset a2f00462157e (bug 1778510)
Backed out changeset 5278e40b80c3 (bug 1778510)
Backed out changeset dba220581d93 (bug 1778510)
Backed out changeset 17a63044b0dc (bug 1778510)
Backed out changeset 68d607aaa121 (bug 1778510)
Backed out changeset e93004f91f6f (bug 1778510)
Backed out changeset 41d6d9f889e1 (bug 1778510)
Backed out changeset 28ac62019086 (bug 1778510)
2022-11-28 07:34:46 +02:00
Tom Ritter
b9083946f3
Bug 1778510: Add RTPCallerType to GlobalObject r=asuth
...
This centralizes the logic in one place.
In order to do this, we will need to check the principal
off-main thread. (Well, we need to know if it's System
Principal.) Worker and Worklet need special ways to do
this, so create a virtual method for it and let them
override it. This is analogous to the ShouldRFP method
on GlobalObject.
Differential Revision: https://phabricator.services.mozilla.com/D157564
2022-11-28 04:21:26 +00:00
Tom Ritter
114437feb3
Bug 1778510: Add a ShouldRFP boolean to Worklets r=asuth
...
This will be needed when we set the Javascript Realm options
for Worklets.
Depends on D151283
Differential Revision: https://phabricator.services.mozilla.com/D151297
2022-11-28 04:21:26 +00:00
Emilio Cobos Álvarez
c7c5de6781
Bug 1759163 - Add origin trial support for worklets. r=asuth
...
Move the trial getter to nsIGlobalObject, make every implementation
provide a reasonable value, and add a test.
Differential Revision: https://phabricator.services.mozilla.com/D140848
2022-03-15 23:16:14 +00:00
Marian-Vasile Laza
b328ae122e
Backed out changeset 558e256fcb31 (bug 1759163) for causing mochitest failures on test_header_simple.html.
2022-03-15 15:23:04 -07:00
Emilio Cobos Álvarez
7b2db77ff1
Bug 1759163 - Add origin trial support for worklets. r=asuth
...
Move the trial getter to nsIGlobalObject, make every implementation
provide a reasonable value, and add a test.
Differential Revision: https://phabricator.services.mozilla.com/D140848
2022-03-15 17:50:03 +00:00
Simon Giesecke
46908cfb51
Bug 1660470 - Add missing include directives/forward declarations. r=nika
...
Differential Revision: https://phabricator.services.mozilla.com/D87865
2020-11-23 16:21:38 +00:00
Andi-Bogdan Postelnicu
602c06fa0c
Bug 1626555 - Add dom/worklet to the list of non-unified-build-compatible directories. r=sg
...
Differential Revision: https://phabricator.services.mozilla.com/D97175
2020-11-16 19:57:25 +00:00
Karl Tomlinson
173d26b6c0
Bug 1634200 don't create a new global when the Worklet is finished r=padenot
...
When the worklet has already received the notification to shut down, there
will be no further notfication to release another global.
Differential Revision: https://phabricator.services.mozilla.com/D85975
2020-08-06 01:06:03 +00:00
Andrea Marchesini
9f33c0dbe7
Bug 1611855 - Worklet must be part of the same parent's agentCluster - part 7 - nsIGlobalObject::IsSharedMemoryAllowed(), r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D61277
2020-02-06 13:50:11 +00:00
Andrea Marchesini
a7b6ab4728
Bug 1611855 - Worklet must be part of the same parent's agentCluster - part 1, r=padenot
...
Differential Revision: https://phabricator.services.mozilla.com/D61136
2020-02-06 13:45:47 +00:00
Narcis Beleuzu
f00579517d
Backed out 13 changesets (bug 1611855) for wpt failures on /audioworklet-postmessage-sharedarraybuffer.https.html . CLOSED TREE
...
Backed out changeset 2b661d588f96 (bug 1611855)
Backed out changeset 16094fc92bc9 (bug 1611855)
Backed out changeset 3f89bbcaff92 (bug 1611855)
Backed out changeset a906501b6d92 (bug 1611855)
Backed out changeset 54738b88425d (bug 1611855)
Backed out changeset d27de910a6c0 (bug 1611855)
Backed out changeset 261902f6336d (bug 1611855)
Backed out changeset 380d83b61e62 (bug 1611855)
Backed out changeset 39aac60ebf5e (bug 1611855)
Backed out changeset 5ea099787376 (bug 1611855)
Backed out changeset d0f58871f838 (bug 1611855)
Backed out changeset e1be102310a9 (bug 1611855)
Backed out changeset 633357835540 (bug 1611855)
2020-02-06 12:31:36 +02:00
Andrea Marchesini
e20d41ba65
Bug 1611855 - Worklet must be part of the same parent's agentCluster - part 7 - nsIGlobalObject::IsSharedMemoryAllowed(), r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D61277
2020-02-05 22:09:44 +00:00
Andrea Marchesini
f2879cfdda
Bug 1611855 - Worklet must be part of the same parent's agentCluster - part 1, r=padenot
...
Differential Revision: https://phabricator.services.mozilla.com/D61136
2020-02-05 22:07:04 +00:00
Karl Tomlinson
e45c8f81f7
Bug 1594632 acquire ownership of already_AddRefed runnable parameter with RefPtr r=baku
...
which will release the runnable on failure.
Differential Revision: https://phabricator.services.mozilla.com/D52614
2019-12-06 01:40:49 +00:00
Karl Tomlinson
2aa41981a7
Bug 1578623 remove OriginAttributes duplication by reading from PrincipalInfo r=baku
...
Differential Revision: https://phabricator.services.mozilla.com/D44918
2019-09-09 00:41:59 +00:00
Karl Tomlinson
0c75e6f247
bug 1578623 store PrincipalInfo on WorkletImpl for off-main-thread use r=baku
...
Differential Revision: https://phabricator.services.mozilla.com/D44603
2019-09-09 00:41:57 +00:00
Karl Tomlinson
a1fa248bf4
Bug 1578623 use an opaque origin for WorkletGlobalScope r=baku
...
The environment settings object for a WorkletGlobalScope derives from the
relevant settings object of the main-thread Worklet object, but the origin is
a unique opaque origin.
https://drafts.css-houdini.org/worklets/#set-up-a-worklet-environment-settings-object
Depends on D44775
Differential Revision: https://phabricator.services.mozilla.com/D44776
2019-09-09 00:42:01 +00:00
Karl Tomlinson
2bdc629621
Bug 1578623 move principal-related data from LoadInfo to WorkletImpl r=baku
...
The principals used in worklet scripts derive from the relevant settings object
of the main thread Worklet object, rather than the network loads of the scripts.
Moving the data off LoadInfo removes any implication that the principals might
depend on script module loads.
Differential Revision: https://phabricator.services.mozilla.com/D44775
2019-09-09 00:42:05 +00:00
Noemi Erli
cb793818c1
Backed out 9 changesets (bug 1578623) for causing Windows build bustages CLOSED TREE
...
Backed out changeset 52a86c60c866 (bug 1578623)
Backed out changeset e4fddd3d24b4 (bug 1578623)
Backed out changeset 65a7c4daec27 (bug 1578623)
Backed out changeset 3badf9215788 (bug 1578623)
Backed out changeset 71e58ee8f684 (bug 1578623)
Backed out changeset 0128e12a910f (bug 1578623)
Backed out changeset 8242877392bd (bug 1578623)
Backed out changeset 6d7be8a22f8b (bug 1578623)
Backed out changeset 3be609a9be36 (bug 1578623)
2019-09-09 03:37:09 +03:00
Karl Tomlinson
b8d877b62c
Bug 1578623 remove OriginAttributes duplication by reading from PrincipalInfo r=baku
...
Differential Revision: https://phabricator.services.mozilla.com/D44918
2019-09-08 23:44:05 +00:00
Karl Tomlinson
13a663f397
bug 1578623 store PrincipalInfo on WorkletImpl for off-main-thread use r=baku
...
Differential Revision: https://phabricator.services.mozilla.com/D44603
2019-09-08 23:44:05 +00:00
Karl Tomlinson
8d881a28d4
Bug 1578623 use an opaque origin for WorkletGlobalScope r=baku
...
The environment settings object for a WorkletGlobalScope derives from the
relevant settings object of the main-thread Worklet object, but the origin is
a unique opaque origin.
https://drafts.css-houdini.org/worklets/#set-up-a-worklet-environment-settings-object
Depends on D44775
Differential Revision: https://phabricator.services.mozilla.com/D44776
2019-09-06 02:10:33 +00:00
Karl Tomlinson
1ae12cd821
Bug 1578623 move principal-related data from LoadInfo to WorkletImpl r=baku
...
The principals used in worklet scripts derive from the relevant settings object
of the main thread Worklet object, rather than the network loads of the scripts.
Moving the data off LoadInfo removes any implication that the principals might
depend on script module loads.
Differential Revision: https://phabricator.services.mozilla.com/D44775
2019-09-06 02:10:33 +00:00
Karl Tomlinson
ab68bdfc5a
Bug 1539039 keep WorkletGlobalScope as long as its Worklet is usable r=baku
...
Depends on D25353
Differential Revision: https://phabricator.services.mozilla.com/D25354
2019-04-01 16:54:58 +00:00
Karl Tomlinson
f25ce6985d
bug 1539039 notify WorkletImpl before WorkletThread shutdown on xpcom shutdown r=baku
...
This gives WorkletImpl a chance to send a message to release worklet thread
objects.
This is used only for PaintWorklet until PaintWorklet uses its own threads.
Differential Revision: https://phabricator.services.mozilla.com/D25353
2019-04-01 16:51:18 +00:00
Sylvestre Ledru
e5a134f73a
Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format
...
# ignore-this-changeset
2018-11-30 11:46:48 +01:00
Karl Tomlinson
8a9e3cdcb1
bug 1476514 use a distinct method to send runnables from parent to worklet thread r=baku
...
and create the worklet thread on demand from there.
Differential Revision: https://phabricator.services.mozilla.com/D13213
2018-11-28 23:47:01 +00:00
Karl Tomlinson
efd7e0e976
bug 1476514 rename WorkletImpl::TerminateThread to NotifyWorkletFinished r=baku
...
This is more appropriate when WorkletImpl will not necessarily create a thread.
Differential Revision: https://phabricator.services.mozilla.com/D13212
2018-11-28 23:45:04 +00:00
Karl Tomlinson
33a00cab0b
Bug 1492014 replace WorkletLoadInfo::mDumpEnabled with StaticPrefs r=baku
...
Depends on D6382
Differential Revision: https://phabricator.services.mozilla.com/D6383
2018-09-24 17:19:09 +00:00
Karl Tomlinson
b43ddf75c4
Bug 1492014 add AudioWorkletImpl/PaintWorkletImpl subclasses r=baku
...
This will be useful for AudioWorklet-specific storage and behavior.
PaintWorkletImpl is in layout/style, because it will be referenced
from CSS.cpp in the same directory.
Depends on D6108
Differential Revision: https://phabricator.services.mozilla.com/D6109
2018-09-20 11:34:01 +00:00
Karl Tomlinson
1c94158cbd
Bug 1492014 remove now-unused WorkletThread::mWorkletLoadInfo r=baku
...
Depends on D6107
Differential Revision: https://phabricator.services.mozilla.com/D6108
2018-09-18 09:28:28 +00:00
Karl Tomlinson
80fcb9a59c
Bug 1492014 get WorkletLoadInfo from global instead of thread in Console r=baku
...
Depends on D6106
Differential Revision: https://phabricator.services.mozilla.com/D6107
2018-09-18 09:29:15 +00:00
Karl Tomlinson
0590cb153a
Bug 1492014 reference WorkletImpl from WorkletGlobalScope r=baku
...
Depends on D6102
Differential Revision: https://phabricator.services.mozilla.com/D6103
2018-09-18 09:33:49 +00:00
Karl Tomlinson
30fac7ada8
Bug 1492014 document WorkletLoadInfo thread safety and relax destructor thread assertion r=baku
...
Depends on D6101
Differential Revision: https://phabricator.services.mozilla.com/D6102
2018-09-18 09:34:11 +00:00
Karl Tomlinson
27e2eae356
Bug 1492014 introduce WorkletImpl as an object to identify a worklet from parent and execution threads r=baku
...
Depends on D6100
Differential Revision: https://phabricator.services.mozilla.com/D6101
2018-09-18 09:36:38 +00:00
Narcis Beleuzu
876af606df
Backed out 13 changesets (bug 1492014) for multiple failures. a=backout
...
Backed out changeset f629b66a235f (bug 1492014)
Backed out changeset 0a8510efbba3 (bug 1492014)
Backed out changeset 2798792623cf (bug 1492014)
Backed out changeset 8818f5ae0d13 (bug 1492014)
Backed out changeset 0c6b469c9618 (bug 1492014)
Backed out changeset d1654231ffb8 (bug 1492014)
Backed out changeset 5a3967f37d3f (bug 1492014)
Backed out changeset ac095c2fdd8b (bug 1492014)
Backed out changeset 4d1ba44e30ab (bug 1492014)
Backed out changeset e34938a11fab (bug 1492014)
Backed out changeset 3e142ea44140 (bug 1492014)
Backed out changeset b0f2fafdba8c (bug 1492014)
Backed out changeset d77330a1cbfa (bug 1492014)
2018-09-25 16:26:04 +03:00
Karl Tomlinson
7f012e5a5c
Bug 1492014 replace WorkletLoadInfo::mDumpEnabled with StaticPrefs r=baku
...
Depends on D6382
Differential Revision: https://phabricator.services.mozilla.com/D6383
2018-09-24 17:19:09 +00:00