Граф коммитов

3535 Коммитов

Автор SHA1 Сообщение Дата
Jan Rio Krause b554820c29 Bug 1770786 - Replace `QM_TRY` with `QM_WARNONLY_TRY`. r=dom-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D148149
2022-06-07 14:27:45 +00:00
Kagami Sascha Rosylight 6abe98f452 Bug 1769290 - Part 8: Apply mozilla-js-handle-rooted-typedef against dom/canvas,crypto,fetch,gamepad,geolocation,indexedDB,ipc r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D148281
2022-06-05 20:54:59 +00:00
Andreea Pavel 2be1e8212c Bug 1602927 - disable test_names_sorted.html on linux64 opt r=intermittent-reviewers,gbrown DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D147625
2022-06-01 19:17:31 +00:00
Jan Rio Krause 05bdca31bf Bug 1770787 - Replace `QM_TRY` with `QM_WARNONLY_TRY`. r=dom-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D147678
2022-06-01 15:21:21 +00:00
Serge Guelton 804d415fde Bug 1769311 - Cleanup dom/indexedDB headers r=sylvestre DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D146339
2022-05-30 10:02:39 +00:00
Nika Layzell 95a883d65d Bug 1754004 - Part 3: Move RemoteLazyInputStream to its own toplevel protocol, r=asuth,necko-reviewers,dragana
This is a complete rewrite of RemoteLazyInputStream to run off of its own
toplevel protocol, rather than being managed by other protocols like
PBackground or PContent. This should improve performance thanks to no longer
needing to operate on a main or worker thread, and due to no longer needing the
migration step for the stream actor.

This also acts as a step towards no longer requiring a manager actor to
serialize input streams, as the type is now actor-agnostic, and should support
being sent over IPC between any pair of processes.

Differential Revision: https://phabricator.services.mozilla.com/D141040
2022-05-13 14:16:10 +00:00
Nika Layzell 2b307c5cea Bug 1754004 - Part 2: Remove the PFileDescriptorSet interface, r=asuth,necko-reviewers,kershaw
This interface should no longer be required due to the changes in part 1
limiting the complexity of IPCStream instances and limiting the number of file
descriptors which a single stream can attach to a message.

Removing this interface is necessary to serialize nsIInputStream instances over
arbitrary toplevel protocols and non-protocol IPC in the future.

Differential Revision: https://phabricator.services.mozilla.com/D141039
2022-05-13 14:16:09 +00:00
Nika Layzell ef3794b3c5 Bug 1754004 - Part 1: Switch IPCStream to use DataPipe instead of P{ChildToParent,ParentToChild}Stream, r=asuth,necko-reviewers,kershaw
This gives us various positive benefits, such as using a shared memory ring
buffer for faster communication, not having data streaming being bound to the
thread which transferred the nsIInputStream (which is often the main thread),
and the ability for some backpressure to be applied to data streaming.

After this change, the "delayed start" parameter for IPCStream serialization is
less relevant, as backpressure will serve a similar purpose. It will still be
used to determine whether or not to use RemoteLazyInputStream when serializing
from the parent process.

Differential Revision: https://phabricator.services.mozilla.com/D141038
2022-05-13 14:16:09 +00:00
Noemi Erli 45276205df Backed out 22 changesets (bug 1696894, bug 1759569, bug 1754031, bug 1759563, bug 1759572, bug 1754004) for causing leack failures CLOSED TREE
Backed out changeset 673ecd5337e1 (bug 1754004)
Backed out changeset ecbf5f3c51de (bug 1754004)
Backed out changeset fc6c39f56d21 (bug 1754004)
Backed out changeset 5b3d58fbaf9d (bug 1696894)
Backed out changeset 2e56c89cf55d (bug 1754004)
Backed out changeset b7723490f025 (bug 1754004)
Backed out changeset 1dfbf61ff5dd (bug 1754004)
Backed out changeset e73abb071bb3 (bug 1754004)
Backed out changeset f9abe4fbf501 (bug 1754004)
Backed out changeset ee7aeb631cd9 (bug 1754004)
Backed out changeset d66aacfcf983 (bug 1754004)
Backed out changeset 5c2872ad6912 (bug 1754004)
Backed out changeset e1ae48f30d2c (bug 1754004)
Backed out changeset 849b63707d7f (bug 1754004)
Backed out changeset 36563e3b1e04 (bug 1754004)
Backed out changeset ccb4be659107 (bug 1754004)
Backed out changeset 659581d4159b (bug 1754004)
Backed out changeset 611ea76d7a9c (bug 1754004)
Backed out changeset 9b24b561698c (bug 1759572)
Backed out changeset f820e0f209ff (bug 1759563)
Backed out changeset 8d82066fa181 (bug 1759569)
Backed out changeset a2835afab1ad (bug 1754031)
2022-05-11 06:16:25 +03:00
Nika Layzell 76cdaba44a Bug 1754004 - Part 3: Move RemoteLazyInputStream to its own toplevel protocol, r=asuth,necko-reviewers,dragana
This is a complete rewrite of RemoteLazyInputStream to run off of its own
toplevel protocol, rather than being managed by other protocols like
PBackground or PContent. This should improve performance thanks to no longer
needing to operate on a main or worker thread, and due to no longer needing the
migration step for the stream actor.

This also acts as a step towards no longer requiring a manager actor to
serialize input streams, as the type is now actor-agnostic, and should support
being sent over IPC between any pair of processes.

Differential Revision: https://phabricator.services.mozilla.com/D141040
2022-05-10 22:27:42 +00:00
Nika Layzell 728ba534f6 Bug 1754004 - Part 2: Remove the PFileDescriptorSet interface, r=asuth,necko-reviewers,kershaw
This interface should no longer be required due to the changes in part 1
limiting the complexity of IPCStream instances and limiting the number of file
descriptors which a single stream can attach to a message.

Removing this interface is necessary to serialize nsIInputStream instances over
arbitrary toplevel protocols and non-protocol IPC in the future.

Differential Revision: https://phabricator.services.mozilla.com/D141039
2022-05-10 22:27:42 +00:00
Nika Layzell f9f3cc6138 Bug 1754004 - Part 1: Switch IPCStream to use DataPipe instead of P{ChildToParent,ParentToChild}Stream, r=asuth,necko-reviewers,kershaw
This gives us various positive benefits, such as using a shared memory ring
buffer for faster communication, not having data streaming being bound to the
thread which transferred the nsIInputStream (which is often the main thread),
and the ability for some backpressure to be applied to data streaming.

After this change, the "delayed start" parameter for IPCStream serialization is
less relevant, as backpressure will serve a similar purpose. It will still be
used to determine whether or not to use RemoteLazyInputStream when serializing
from the parent process.

Differential Revision: https://phabricator.services.mozilla.com/D141038
2022-05-10 22:27:41 +00:00
Andreea Pavel 390f7009e9 Merge autoland to mozilla-central a=merge 2022-05-10 12:54:35 +03:00
Kagami Sascha Rosylight 1cc88b6a9a Bug 1764771 - Disable IDBMutableHandle support by default r=janv,smaug
Differential Revision: https://phabricator.services.mozilla.com/D143728
2022-05-10 01:21:22 +00:00
Marian-Vasile Laza 023b0f58d1 Backed out changeset 88f605efb204 (bug 1764771) for causing xpcshell failures on test_mutableFileUpgrade.js. 2022-05-10 00:22:08 +03:00
Marian-Vasile Laza 6dc0eaed70 Backed out changeset 88f605efb204 (bug 1764771) for causing xpcshell failures on test_mutableFileUpgrade.js. CLOSED TREE 2022-05-10 00:22:08 +03:00
Kagami Sascha Rosylight d8e2b075a8 Bug 1768189 - Part 15: Apply modernize-concat-nested-namespaces to dom/html/nsHTMLDocument.h ... r=andi
Depends on D145748

Differential Revision: https://phabricator.services.mozilla.com/D145749
2022-05-09 20:41:09 +00:00
Kagami Sascha Rosylight fdb6e6f9d3 Bug 1764771 - Disable IDBMutableHandle support by default r=janv,smaug
Differential Revision: https://phabricator.services.mozilla.com/D143728
2022-05-09 15:57:50 +00:00
Kagami Sascha Rosylight b5451a2b91 Bug 1620560 - Part 5: Mark BlobImpl::CreateSlice as const r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D145671
2022-05-06 09:00:29 +00:00
Kagami Sascha Rosylight c1b379141c Bug 1620560 - Part 3: Mark BlobImpl::CreateInputStream as const r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D145668
2022-05-06 09:00:28 +00:00
Noemi Erli 39469989c9 Backed out 22 changesets (bug 1759572, bug 1759563, bug 1754004, bug 1754031, bug 1759569, bug 1696894) for causing multiple failures CLOSED TREE
Backed out changeset d69647a725a1 (bug 1754004)
Backed out changeset 09fc506865d7 (bug 1754004)
Backed out changeset 648e3dd4b62f (bug 1754004)
Backed out changeset 3465158ee230 (bug 1696894)
Backed out changeset b08475bbfbd9 (bug 1754004)
Backed out changeset dfabce587a56 (bug 1754004)
Backed out changeset cebe8d5dda34 (bug 1754004)
Backed out changeset 55b4b0c9a504 (bug 1754004)
Backed out changeset e8649de9dd22 (bug 1754004)
Backed out changeset 0f480fc861c0 (bug 1754004)
Backed out changeset e515b7edd1c8 (bug 1754004)
Backed out changeset fe90db9158ac (bug 1754004)
Backed out changeset c6388d682d48 (bug 1754004)
Backed out changeset 2374420d9fed (bug 1754004)
Backed out changeset 44dfd76472aa (bug 1754004)
Backed out changeset 000fb99de0cf (bug 1754004)
Backed out changeset 0ca1856b5fc9 (bug 1754004)
Backed out changeset 10c3683b998b (bug 1754004)
Backed out changeset 4abc98ed6b99 (bug 1759572)
Backed out changeset cdd271a5af42 (bug 1759563)
Backed out changeset fadb6cc0d81c (bug 1759569)
Backed out changeset 44be9709a93e (bug 1754031)
2022-05-06 04:28:47 +03:00
Nika Layzell 2f296a7b38 Bug 1754004 - Part 3: Move RemoteLazyInputStream to its own toplevel protocol, r=asuth,necko-reviewers,dragana
This is a complete rewrite of RemoteLazyInputStream to run off of its own
toplevel protocol, rather than being managed by other protocols like
PBackground or PContent. This should improve performance thanks to no longer
needing to operate on a main or worker thread, and due to no longer needing the
migration step for the stream actor.

This also acts as a step towards no longer requiring a manager actor to
serialize input streams, as the type is now actor-agnostic, and should support
being sent over IPC between any pair of processes.

Differential Revision: https://phabricator.services.mozilla.com/D141040
2022-05-05 23:34:21 +00:00
Nika Layzell 0308ac11a4 Bug 1754004 - Part 2: Remove the PFileDescriptorSet interface, r=asuth,necko-reviewers,kershaw
This interface should no longer be required due to the changes in part 1
limiting the complexity of IPCStream instances and limiting the number of file
descriptors which a single stream can attach to a message.

Removing this interface is necessary to serialize nsIInputStream instances over
arbitrary toplevel protocols and non-protocol IPC in the future.

Differential Revision: https://phabricator.services.mozilla.com/D141039
2022-05-05 23:34:21 +00:00
Nika Layzell 3ef777a45c Bug 1754004 - Part 1: Switch IPCStream to use DataPipe instead of P{ChildToParent,ParentToChild}Stream, r=asuth,necko-reviewers,kershaw
This gives us various positive benefits, such as using a shared memory ring
buffer for faster communication, not having data streaming being bound to the
thread which transferred the nsIInputStream (which is often the main thread),
and the ability for some backpressure to be applied to data streaming.

After this change, the "delayed start" parameter for IPCStream serialization is
less relevant, as backpressure will serve a similar purpose. It will still be
used to determine whether or not to use RemoteLazyInputStream when serializing
from the parent process.

Differential Revision: https://phabricator.services.mozilla.com/D141038
2022-05-05 23:34:20 +00:00
Kagami Sascha Rosylight 38896528d7 Bug 1767989 - Apply readability-make-member-function-const on dom/indexedDB r=dom-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D145624
2022-05-05 18:11:55 +00:00
Sebastian Hengst 7ddbeea9d6 Backed out 17 changesets (bug 1696894, bug 1754004) for causing crashes e.g. bug 1767808, and hanging Gmail (bug 1767918). a=backout DONTBUILD
Backed out changeset 63f17a06eba9 (bug 1754004)
Backed out changeset 017e1552d549 (bug 1754004)
Backed out changeset 010dfd821cf3 (bug 1696894)
Backed out changeset 96a39c2ba7a3 (bug 1754004)
Backed out changeset a147df47a0e3 (bug 1754004)
Backed out changeset 9018dd592230 (bug 1754004)
Backed out changeset 234ff9e092c2 (bug 1754004)
Backed out changeset c4f1e86992b6 (bug 1754004)
Backed out changeset 51bd50b57dd5 (bug 1754004)
Backed out changeset d95e7ad0eafa (bug 1754004)
Backed out changeset 35a69828091c (bug 1754004)
Backed out changeset 6802a4326963 (bug 1754004)
Backed out changeset e40e810e18fc (bug 1754004)
Backed out changeset 82b38c12b298 (bug 1754004)
Backed out changeset 0a6cf0817bf5 (bug 1754004)
Backed out changeset 6d8e51b3e8d7 (bug 1754004)
Backed out changeset 2059c2d0d880 (bug 1754004)
2022-05-05 11:27:42 +02:00
Nika Layzell fa60fb91de Bug 1754004 - Part 3: Move RemoteLazyInputStream to its own toplevel protocol, r=asuth,necko-reviewers,dragana
This is a complete rewrite of RemoteLazyInputStream to run off of its own
toplevel protocol, rather than being managed by other protocols like
PBackground or PContent. This should improve performance thanks to no longer
needing to operate on a main or worker thread, and due to no longer needing the
migration step for the stream actor.

This also acts as a step towards no longer requiring a manager actor to
serialize input streams, as the type is now actor-agnostic, and should support
being sent over IPC between any pair of processes.

Differential Revision: https://phabricator.services.mozilla.com/D141040
2022-05-03 23:30:33 +00:00
Nika Layzell 310e31989e Bug 1754004 - Part 2: Remove the PFileDescriptorSet interface, r=asuth,necko-reviewers,kershaw
This interface should no longer be required due to the changes in part 1
limiting the complexity of IPCStream instances and limiting the number of file
descriptors which a single stream can attach to a message.

Removing this interface is necessary to serialize nsIInputStream instances over
arbitrary toplevel protocols and non-protocol IPC in the future.

Differential Revision: https://phabricator.services.mozilla.com/D141039
2022-05-03 23:30:32 +00:00
Nika Layzell a14f23b6d7 Bug 1754004 - Part 1: Switch IPCStream to use DataPipe instead of P{ChildToParent,ParentToChild}Stream, r=asuth,necko-reviewers,kershaw
This gives us various positive benefits, such as using a shared memory ring
buffer for faster communication, not having data streaming being bound to the
thread which transferred the nsIInputStream (which is often the main thread),
and the ability for some backpressure to be applied to data streaming.

After this change, the "delayed start" parameter for IPCStream serialization is
less relevant, as backpressure will serve a similar purpose. It will still be
used to determine whether or not to use RemoteLazyInputStream when serializing
from the parent process.

Differential Revision: https://phabricator.services.mozilla.com/D141038
2022-05-03 23:30:32 +00:00
Butkovits Atila d0dadcb6f5 Backed out 19 changesets (bug 1759569, bug 1754004, bug 1759563, bug 1754031, bug 1696894, bug 1759572) for causing wpt failures. CLOSED TREE
Backed out changeset 110a8dce4b5d (bug 1696894)
Backed out changeset a62dab05c6cd (bug 1754004)
Backed out changeset 7cf122f6e19f (bug 1754004)
Backed out changeset 2aa9a0a9adbc (bug 1754004)
Backed out changeset cde16b2cdbfb (bug 1754004)
Backed out changeset 452fe0a15c99 (bug 1754004)
Backed out changeset eace8d4756ef (bug 1754004)
Backed out changeset 5e1fad91e935 (bug 1754004)
Backed out changeset eb6de0b1ab8e (bug 1754004)
Backed out changeset 1ac1908ed3d0 (bug 1754004)
Backed out changeset 473cad5b22ab (bug 1754004)
Backed out changeset 1923922be138 (bug 1754004)
Backed out changeset c7966d91f89e (bug 1754004)
Backed out changeset df5ce1f6712c (bug 1754004)
Backed out changeset a3f3f9761ada (bug 1754004)
Backed out changeset c8ec86e0a33b (bug 1759572)
Backed out changeset 6c102f8e3d4a (bug 1759563)
Backed out changeset bd3a2fcf4f0c (bug 1759569)
Backed out changeset 2541d8face65 (bug 1754031)
2022-05-03 06:00:22 +03:00
Nika Layzell a0d4a06e24 Bug 1754004 - Part 3: Move RemoteLazyInputStream to its own toplevel protocol, r=asuth,necko-reviewers,dragana
This is a complete rewrite of RemoteLazyInputStream to run off of its own
toplevel protocol, rather than being managed by other protocols like
PBackground or PContent. This should improve performance thanks to no longer
needing to operate on a main or worker thread, and due to no longer needing the
migration step for the stream actor.

This also acts as a step towards no longer requiring a manager actor to
serialize input streams, as the type is now actor-agnostic, and should support
being sent over IPC between any pair of processes.

Differential Revision: https://phabricator.services.mozilla.com/D141040
2022-05-02 20:44:23 +00:00
Nika Layzell 7cb1970841 Bug 1754004 - Part 2: Remove the PFileDescriptorSet interface, r=asuth,necko-reviewers,kershaw
This interface should no longer be required due to the changes in part 1
limiting the complexity of IPCStream instances and limiting the number of file
descriptors which a single stream can attach to a message.

Removing this interface is necessary to serialize nsIInputStream instances over
arbitrary toplevel protocols and non-protocol IPC in the future.

Differential Revision: https://phabricator.services.mozilla.com/D141039
2022-05-02 20:44:22 +00:00
Nika Layzell ac6a0491c8 Bug 1754004 - Part 1: Switch IPCStream to use DataPipe instead of P{ChildToParent,ParentToChild}Stream, r=asuth,necko-reviewers,kershaw
This gives us various positive benefits, such as using a shared memory ring
buffer for faster communication, not having data streaming being bound to the
thread which transferred the nsIInputStream (which is often the main thread),
and the ability for some backpressure to be applied to data streaming.

After this change, the "delayed start" parameter for IPCStream serialization is
less relevant, as backpressure will serve a similar purpose. It will still be
used to determine whether or not to use RemoteLazyInputStream when serializing
from the parent process.

Differential Revision: https://phabricator.services.mozilla.com/D141038
2022-05-02 20:44:22 +00:00
Nika Layzell 052cba0853 Bug 1738106 - Part 3: Switch to TaskQueue::Create, r=xpcom-reviewers,necko-reviewers,media-playback-reviewers,dragana,alwu,barret
In future parts, TaskQueue will require extra initialization to be performed
which cannot happen in a constructor, as it takes references to the TaskQueue
object itself, which will require the introduction of a helper method. This
patch switches all callers of the TaskQueue constructor to use the new method.

Differential Revision: https://phabricator.services.mozilla.com/D142604
2022-05-02 20:37:34 +00:00
Jens Stutte 3e359115e6 Bug 1765336: Add IPC_FAIL conditions to RecvBlocked. r=dom-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D144164
2022-04-29 08:34:31 +00:00
Andrew McCreight 5ec46e3cef Bug 1764370 - Use NS_GET_IID instead of NS_DEFINE_IID for PRIVATE_IDBREQUEST_IID. r=dom-workers-and-storage-reviewers,asuth
Create a new fake class so that NS_GET_IID can be used instead of
NS_DEFINE_IID.

Differential Revision: https://phabricator.services.mozilla.com/D143509
2022-04-20 21:09:27 +00:00
Harveer Singh da93efac85 Bug 1754844 - Addressed code review comments. r=dom-storage-reviewers,janv
Depends on D143644

Differential Revision: https://phabricator.services.mozilla.com/D143735
2022-04-19 13:42:57 +00:00
Harveer Singh fe9022de94 Bug 1754844 - changing default size for compressed local var to 4k in GetStructuredCloneReadInfoFromBlob func. r=dom-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D143644
2022-04-19 13:42:57 +00:00
Jens Stutte 9b8f88efa9 Bug 1726714: Remove shutdown state from quota clients. r=dom-storage-reviewers,janv
Depends on D140802

Differential Revision: https://phabricator.services.mozilla.com/D140805
2022-04-14 15:05:37 +00:00
Jens Stutte 81409924e8 Bug 1726714: Move IsShuttingDownOn(Non)BackgroundThread functions to Client base class. r=dom-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D140802
2022-04-14 15:05:36 +00:00
Nika Layzell 4fccdde58f Bug 1761511 - Part 5: Fix gtest deprecation warnings, r=ahal
The TEST_CASE_P macros are deprecated in newer versions of gtest.

Differential Revision: https://phabricator.services.mozilla.com/D142612
2022-04-14 02:09:22 +00:00
Cosmin Sabou 97d21fa167 Backed out 5 changesets (bug 1761511) for causing build bustages. CLOSED TREE
Backed out changeset 687de8c00013 (bug 1761511)
Backed out changeset 88e6cf5c70e5 (bug 1761511)
Backed out changeset 4c40758f54f1 (bug 1761511)
Backed out changeset 8a18abcccda4 (bug 1761511)
Backed out changeset 1afb1f32a6a4 (bug 1761511)
2022-04-07 00:13:00 +03:00
Nika Layzell f1c3a8f87c Bug 1761511 - Part 5: Fix gtest deprecation warnings, r=ahal
The TEST_CASE_P macros are deprecated in newer versions of gtest.

Differential Revision: https://phabricator.services.mozilla.com/D142612
2022-04-06 20:45:08 +00:00
Frederik Braun 86ba751d18 Bug 1577122 - mozJSComponentLoader::Import() should only work for internal URLs, and update some tests r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D140058
2022-04-06 14:36:47 +00:00
Jan Rio Krause 057785b6d5 Bug 1519200 - Remove `NS_ERROR_FILE_TARGET_DOES_NOT_EXIST` in favor of `NS_ERROR_FILE_NOT_FOUND`. r=xpcom-reviewers,nika,dom-storage-reviewers,jstutte
Differential Revision: https://phabricator.services.mozilla.com/D77575
2022-04-05 15:17:03 +00:00
Emilio Cobos Álvarez 2b25e0298a Bug 1758702 - Avoid including RemoteWorkerChild in WorkerPrivate.h. r=asuth
This avoids having to include PRemoteBrowser* headers etc, which are not
exported otherwise.

Differential Revision: https://phabricator.services.mozilla.com/D140659
2022-03-17 19:06:51 +00:00
Jens Stutte badfdfa019 Bug 595368: Explicitly disable test_writer_starvation.html. r=dom-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D141347
2022-03-17 13:01:36 +00:00
Randell Jesup fcaf70841e Bug 1207753 - Add MOZ_UNANNOTATED to all Mutexes/Monitors r=nika,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D140849
2022-03-16 18:47:08 +00:00
Noemi Erli 2390d257e6 Backed out changeset 12a59e5a50bf (bug 1207753) for causing build bustage CLOSED TREE 2022-03-16 18:32:51 +02:00
Randell Jesup 4b033a5256 Bug 1207753 - Add MOZ_UNANNOTATED to all Mutexes/Monitors r=nika,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D140849
2022-03-16 16:16:14 +00:00
Butkovits Atila 927ad62c6a Backed out changeset a68ee4b09f92 (bug 1207753) for causing Hazard bustages. CLOSED TREE 2022-03-16 14:38:14 +02:00
Randell Jesup 7d4b5fae04 Bug 1207753 - Add MOZ_UNANNOTATED to all Mutexes/Monitors r=nika,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D140849
2022-03-16 12:01:14 +00:00
criss cc323f558f Backed out 2 changesets (bug 1577122) for causing xpcshell failures. CLOSED TREE
Backed out changeset d2ec4915e725 (bug 1577122)
Backed out changeset 63a236bcd713 (bug 1577122)
2022-03-14 17:19:01 +02:00
Gijs Kruitbosch 5022553169 Bug 1577122 - fix tests, r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D139861
2022-03-14 14:00:22 +00:00
Jens Stutte a272641640 Bug 1751371: Transform remaining MOZ_CRASH_UNLESS_FUZZING to normal assertions where appropriate. r=dom-storage-reviewers,jesup,janv
Differential Revision: https://phabricator.services.mozilla.com/D136599
2022-03-11 15:42:08 +00:00
Jens Stutte 3d0caaee90 Bug 1750525: Give IPC_FAIL a reason and remove obsolete MOZ_CRASH_UNLESS_FUZZING in Utils::RecvGetFileReferences. r=dom-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D136592
2022-03-11 15:42:08 +00:00
Jens Stutte 2e2cd2d694 Bug 1750525: Do not IPC_FAIL on dispatch failure in Utils::RecvDeleteMe. r=dom-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D136591
2022-03-11 15:42:08 +00:00
Jens Stutte 9d53f0a23b Bug 1750525: Give IPC_FAIL a reason and remove obsolete MOZ_CRASH_UNLESS_FUZZING in MutableFile::RecvGetFileId. r=dom-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D136590
2022-03-11 15:42:07 +00:00
Jens Stutte 1ff23e096d Bug 1750525: Give IPC_FAIL a reason and remove obsolete MOZ_CRASH_UNLESS_FUZZING in Cursor<CursorType>::RecvContinue. r=dom-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D136589
2022-03-11 15:42:07 +00:00
Jens Stutte 043102c5ac Bug 1750525: Give IPC_FAIL a reason but do not fail on dispatch failure in Cursor<CursorType>::RecvDeleteMe. r=dom-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D136588
2022-03-11 15:42:06 +00:00
Jens Stutte 753d662656 Bug 1750525: Give IPC_FAIL a reason in VersionChangeTransaction::RecvPBackgroundIDBCursorConstructor. r=dom-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D136587
2022-03-11 15:42:06 +00:00
Jens Stutte 62e7ea4221 Bug 1750525: Give IPC_FAIL a reason in VersionChangeTransaction::RecvPBackgroundIDBRequestConstructor. r=dom-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D136586
2022-03-11 15:42:06 +00:00
Jens Stutte 8255808312 Bug 1750525: Give IPC_FAIL a reason and remove obsolete MOZ_CRASH_UNLESS_FUZZING in VersionChangeTransaction::RecvRenameIndex. r=dom-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D136585
2022-03-11 15:42:05 +00:00
Jens Stutte 05460d6a66 Bug 1750525: Give IPC_FAIL a reason and remove obsolete MOZ_CRASH_UNLESS_FUZZING in VersionChangeTransaction::RecvDeleteIndex. r=dom-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D136584
2022-03-11 15:42:05 +00:00
Jens Stutte 152b3606f2 Bug 1750525: Give IPC_FAIL a reason and remove obsolete MOZ_CRASH_UNLESS_FUZZING in VersionChangeTransaction::RecvCreateIndex. r=dom-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D136583
2022-03-11 15:42:05 +00:00
Jens Stutte 0fbc89454a Bug 1750525: Give IPC_FAIL a reason and remove obsolete MOZ_CRASH_UNLESS_FUZZING in VersionChangeTransaction::RecvRenameObjectStore. r=dom-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D136582
2022-03-11 15:42:04 +00:00
Jens Stutte 3f0ab76f99 Bug 1750525: Give IPC_FAIL a reason and remove obsolete MOZ_CRASH_UNLESS_FUZZING in VersionChangeTransaction::RecvDeleteObjectStore. r=dom-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D136581
2022-03-11 15:42:04 +00:00
Jens Stutte 4a4f140b1c Bug 1750525: Give IPC_FAIL a reason and remove obsolete MOZ_CRASH_UNLESS_FUZZING in VersionChangeTransaction::RecvCreateObjectStore. r=dom-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D136580
2022-03-11 15:42:03 +00:00
Jens Stutte 303ba8a0f4 Bug 1750525: Do not IPC_FAIL in Database::RecvDeleteMe on Send__delete__ failure. r=dom-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D136161
2022-03-11 15:42:03 +00:00
Jens Stutte bc1da6b595 Bug 1750525: Do not IPC_FAIL in VersionChangeTransaction::RecvDeleteMe on Send__delete__ failure. r=dom-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D136144
2022-03-11 15:42:03 +00:00
Jens Stutte 16a5c5862d Bug 1750525: Add reason to IPC_FAIL in NormalTransaction::RecvPBackgroundIDBCursorConstructor. r=dom-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D136143
2022-03-11 15:42:02 +00:00
Jens Stutte ddecb67872 Bug 1750525: Add reason to IPC_FAIL in NormalTransaction::RecvPBackgroundIDBRequestConstructor. r=dom-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D136142
2022-03-11 15:42:02 +00:00
Jens Stutte 3c0eb5b832 Bug 1750525: Do not MOZ_CRASH_UNLESS_FUZZING for TransactionBase::RecvAbort failures. r=dom-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D136141
2022-03-11 15:42:02 +00:00
Jens Stutte 3fbae37159 Bug 1750525: Do not MOZ_CRASH_UNLESS_FUZZING for TransactionBase::RecvCommit failures. r=dom-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D136140
2022-03-11 15:42:01 +00:00
Jens Stutte b241ced8a1 Bug 1750525: Do not IPC_FAIL in NormalTransaction::RecvDeleteMe on Send__delete__ failure. r=dom-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D136139
2022-03-11 15:42:01 +00:00
Jens Stutte edcbbaa686 Bug 1750525: Give IPC_FAIL a reason in Database::RecvClose and rely on IPC to crash when appropriate. r=dom-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D136137
2022-03-11 15:42:00 +00:00
Jens Stutte ea0324073b Bug 1750525: Add reason to IPC_FAIL in Database::RecvBlocked if already closed. r=dom-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D136136
2022-03-11 15:42:00 +00:00
Jens Stutte 79032bbc1b Bug 1750525: Do not IPC_FAIL in Factory::RecvDeleteMe on send failure. r=dom-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D136135
2022-03-11 15:41:59 +00:00
Jens Stutte 6a6cf01877 Bug 1750525: Do not IPC_FAIL in BackgroundRequestChild::RecvPreprocess on SendContinue dispatch failure. r=dom-storage-reviewers,janv
If SendContinue(rv) fails, our channel is already dead so there is no need for another IPC_FAIL.

Differential Revision: https://phabricator.services.mozilla.com/D136134
2022-03-11 15:41:59 +00:00
Jens Stutte e6ac5384f1 Bug 1750525: Adjust comment in BackgroundDatabaseChild::RecvPBackgroundIDBVersionChangeTransactionConstructor. r=dom-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D136133
2022-03-11 15:41:59 +00:00
Jens Stutte 1acb0bafd7 Bug 1750525: Adjust BackgroundFactoryRequestChild::RecvPermissionChallenge IPC_FAIL cases. r=dom-storage-reviewers,janv
IPC_FAIL only when we see serious permission problems. Ignore dispatch failures as those already indicate dead actors.

Differential Revision: https://phabricator.services.mozilla.com/D136132
2022-03-11 15:41:58 +00:00
Barret Rennie 71030266fb Bug 1757846 - Treat BackstagePass as Window when checking for unexposed globals r=nika
Differential Revision: https://phabricator.services.mozilla.com/D140124
2022-03-09 20:55:36 +00:00
Nika Layzell 05dc5e0d76 Bug 1754037 - Part 3c: Automatically update all ParamTraits implementations, r=ipc-reviewers,media-playback-reviewers,bryce,mccr8
Automatically generated rewrites of all ParamTraits and IPDLParamTraits
implementations in-tree to use IPC::Message{Reader,Writer}.

Differential Revision: https://phabricator.services.mozilla.com/D140004
2022-03-04 15:39:41 +00:00
Jens Stutte d3dde1f608 Bug 1750525: Recv__delete__ should IPC_FAIL only on impossible parameters. r=dom-storage-reviewers,janv
All HandleResponse variants never return false and some Recv__delete__ already ignored their return values. Let's harmonize this (should not change anything during runtime). The only remaining failure case is "Unknwon response type!" which we want to IPC_FAIL, not to MOZ_CRASH. This moves the decision about crashing into the IPC layer, depending on process type and fuzzing status.

Differential Revision: https://phabricator.services.mozilla.com/D136131
2022-03-03 08:33:15 +00:00
Jari Jalkanen 972848b50f Bug 1736844 - Add interrupt flag to storage service methods opening database; r=dom-storage-reviewers,mak,janv
Differential Revision: https://phabricator.services.mozilla.com/D129023
2022-02-17 06:22:27 +00:00
Marian-Vasile Laza 1004df96d4 Backed out changeset 0ef0b43b28f1 (bug 1736844) for causing gtest failures. CLOSED TREE 2022-02-16 09:27:30 +02:00
Haiyang Xu 4f8cc77665 Bug 1736844 - Add interrupt flag to storage service methods opening database; r=dom-storage-reviewers,mak,janv
* The same flags can be used to enable other features such as extented error codes

Differential Revision: https://phabricator.services.mozilla.com/D129023
2022-02-16 06:08:11 +00:00
Sylvestre Ledru 98949ee751 Bug 1754767 - Remove duplicate includes r=media-playback-reviewers,padenot
Differential Revision: https://phabricator.services.mozilla.com/D138441
2022-02-11 10:01:15 +00:00
Nika Layzell dabb46c84d Bug 1736371 - Default new actors to be refcounted, r=alwu,media-playback-reviewers,mccr8
The changes to ipdl actors were mechanical, and largely automated using
a script.

Differential Revision: https://phabricator.services.mozilla.com/D137237
2022-02-09 17:29:47 +00:00
Nika Layzell 91ec85c593 Bug 1752444 - Part 2: Rewrite direct_call.py protocols to use {Parent,Child}Impl attributes, r=ipc-reviewers,media-playback-reviewers,alwu,mccr8
This is a mechanical change which was performed by a script based on the
contents of direct_call.py, and then manually checked over to fix
various rewriting bugs caused by my glorified sed script. See the
previous part for more context on the change.

Differential Revision: https://phabricator.services.mozilla.com/D137227
2022-02-09 17:29:46 +00:00
Jari Jalkanen bf6553c969 Bug 1708705 - Check new requests are rejected during structured cloning. r=dom-storage-reviewers,janv
The check is restored from the previous implementation.

Differential Revision: https://phabricator.services.mozilla.com/D137031
2022-02-02 12:42:10 +00:00
Benjamin VanderSloot 98ff74c145 Bug 1750008 - Make tests in dom/indexedDB/test/ dFPI compatible, r=timhuang,dom-storage-reviewers,asuth
We are fixing mochitests that fail when network.cookie.cookieBehavior = 5, i.e. when we enable Total Cookie Protection.
This is most often due to the test assuming that an origin will always have access to its storage state when embedded as
a third party.

In this case I had to request storage access to unpartition storage and allow the storage manager to see the estimates of storage size.
I also changed the clearStorage code to use the effectiveStoragePrincipal, which is the one that needs clearing.

Differential Revision: https://phabricator.services.mozilla.com/D136928
2022-01-31 17:58:34 +00:00
Jari Jalkanen a60d89964e Bug 1708705 - Handle transaction abort during value clone. r=dom-storage-reviewers,jstutte
Differential Revision: https://phabricator.services.mozilla.com/D125509
2022-01-26 09:18:24 +00:00
Nika Layzell 09d88e5fd2 Bug 1749059 - Remove Quantum DOM support from IPDL, r=ipc-reviewers,mccr8
This is no longer necessary as the Quantum DOM project is no longer
happening, and removing support simplifies various components inside of
IPDL.

As some code used the support to get a `nsISerialEventTarget` for an
actor's worker thread, that method was replaced with a method which
instead pulls the nsISerialEventTarget from the MessageChannel and
should work on all actors.

Differential Revision: https://phabricator.services.mozilla.com/D135411
2022-01-25 20:29:46 +00:00
Eden Chuang 2266b31d41 Bug 1744025 - Replace include "mozilla/dom/WorkerPrivate.h" with include "mozilla/dom/WorkerScope.h" where WorkerPrivate->GlobalScope() is called. r=dom-worker-reviewers,smaug,jstutte
#include "mozilla/dom/WorkerScope.h" is removed from WorkerPrivate.h, where calling WorkerPrivate::GlobalScope() without include "WorkerScope.h" makes WorkerScope as an incomplete type.


Depends on 132800

Depends on D132800

Differential Revision: https://phabricator.services.mozilla.com/D133483
2022-01-25 08:53:03 +00:00
Jens Stutte ab7030d6e5 Bug 1735191: Transition IDBTransaction to Finished state on actor abort and failed creation. r=dom-storage-reviewers,jari
Differential Revision: https://phabricator.services.mozilla.com/D135999
2022-01-15 10:12:45 +00:00
Randell Jesup c075d29d20 Bug 1625161: Move ASSERT_UNLESS_FUZZING() to mfbt and hook into FUZZING r=glandium,decoder
Differential Revision: https://phabricator.services.mozilla.com/D133166
2021-12-16 04:13:48 +00:00
Norisz Fay 5edb88e27a Backed out 9 changesets (bug 1744025) for causing wpt failures on CheckedUnsafePtr.h CLOSED TREE
Backed out changeset 89dca4fc5940 (bug 1744025)
Backed out changeset 7aa395dcdbe4 (bug 1744025)
Backed out changeset 1580a4ea1a85 (bug 1744025)
Backed out changeset af171636a87f (bug 1744025)
Backed out changeset a5edfa1c9cd6 (bug 1744025)
Backed out changeset 8abd6ba69815 (bug 1744025)
Backed out changeset cfb822df5b3f (bug 1744025)
Backed out changeset 5598943a94fd (bug 1744025)
Backed out changeset 43186fbbf8b4 (bug 1744025)
2021-12-15 18:46:01 +02:00
Eden Chuang 4146950108 Bug 1744025 - Replace include "mozilla/dom/WorkerPrivate.h" with include "mozilla/dom/WorkerScope.h" where WorkerPrivate->GlobalScope() is called. r=dom-worker-reviewers,smaug,jstutte
#include "mozilla/dom/WorkerScope.h" is removed from WorkerPrivate.h, where calling WorkerPrivate::GlobalScope() without include "WorkerScope.h" makes WorkerScope as an incomplete type.


Depends on 132800

Depends on D132800

Differential Revision: https://phabricator.services.mozilla.com/D133483
2021-12-15 13:48:19 +00:00
Kagami Sascha Rosylight 7233e2e6a4 Bug 1743439 - Part 2: Mark callers in dom/indexedDB and dom/workers as MOZ_CAN_RUN_SCRIPT_BOUNDARY r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D133361
2021-12-09 19:56:08 +00:00