Commit Graph

261 Commits

Author SHA1 Message Date
Gijs Kruitbosch
c58b8f6ff2 Bug 1631358 - remove CPOW support in the message manager, r=mccr8
This commit:

- removes sendRpcMessage, which was unused;
- removes the CPOW argument to sendAsyncMessage, broadcastAsyncMessage, and
  sendSyncMessage;
- removes the aIsSync argument used internally to distinguish sendRpcMessage
  and sendSyncMessage;
- removes CPOW tests;
- updates the few remaining callsites that use more than 2 arguments in
  sendAsyncMessage for the removal of the cpows argument.

Differential Revision: https://phabricator.services.mozilla.com/D71514
2020-04-21 14:07:57 +00:00
Kris Maglione
1d79fbe4d7 Bug 1614462: Part 1 - Remove unused message principals. r=nika
These were added for the sake of app browsers, and all of the code which
actually needed them has since been removed.

Differential Revision: https://phabricator.services.mozilla.com/D70741
2020-04-20 22:15:19 +00:00
Ciure Andrei
a5ac2a8bbc Backed out 10 changesets (bug 1614462) for causing test_ipc_messagemanager_blob.js failures CLOSED TREE
Backed out changeset bf4f8253c708 (bug 1614462)
Backed out changeset c61b797d63e9 (bug 1614462)
Backed out changeset 284002de7137 (bug 1614462)
Backed out changeset 7f604ee5731c (bug 1614462)
Backed out changeset a73ef8167cd4 (bug 1614462)
Backed out changeset ecc3477ed34e (bug 1614462)
Backed out changeset 2106f3ccc4b5 (bug 1614462)
Backed out changeset e68c38a7741d (bug 1614462)
Backed out changeset 93b3bacdbb34 (bug 1614462)
Backed out changeset 0cf4898ae08d (bug 1614462)
2020-04-21 01:11:37 +03:00
Kris Maglione
4660e2ccc6 Bug 1614462: Part 1 - Remove unused message principals. r=nika
These were added for the sake of app browsers, and all of the code which
actually needed them has since been removed.

Differential Revision: https://phabricator.services.mozilla.com/D70741
2020-04-20 20:11:29 +00:00
Ciure Andrei
c15dcac93b Backed out 10 changesets (bug 1614462) for causing xpcshell failures CLOSED TREE
Backed out changeset 34d4a86530b4 (bug 1614462)
Backed out changeset dbc2e2556d08 (bug 1614462)
Backed out changeset 512bbab4730c (bug 1614462)
Backed out changeset cd6b8d630f4c (bug 1614462)
Backed out changeset e4ad5037658f (bug 1614462)
Backed out changeset 0ffed1dc4296 (bug 1614462)
Backed out changeset 90ed81cbfe34 (bug 1614462)
Backed out changeset 6d2137eb1d52 (bug 1614462)
Backed out changeset b4819c99e16e (bug 1614462)
Backed out changeset b7deaed376ed (bug 1614462)
2020-04-17 02:26:14 +03:00
Kris Maglione
0cbfb2510e Bug 1614462: Part 1 - Remove unused message principals. r=nika
These were added for the sake of app browsers, and all of the code which
actually needed them has since been removed.

Differential Revision: https://phabricator.services.mozilla.com/D70741
2020-04-16 16:58:08 +00:00
Eric Rahm
3d161d547c Bug 1626446 - Remove nsAutoPtr usage from dom/messagechannel. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D69117

--HG--
extra : moz-landing-system : lando
2020-04-03 21:05:17 +00:00
Andrew Sutherland
940bf90242 Bug 1545345 - Improve worker shutdown. r=baku,smaug
Differential Revision: https://phabricator.services.mozilla.com/D65132

--HG--
extra : moz-landing-system : lando
2020-03-27 22:40:58 +00:00
Ciure Andrei
2c62d81ee6 Backed out changeset 1911a0d1e751 (bug 1545345) for causing CallbackObject.cpp bustages CLOSED TREE 2020-03-27 21:47:15 +02:00
Andrew Sutherland
40755c31a8 Bug 1545345 - Improve worker shutdown. r=baku,smaug
Differential Revision: https://phabricator.services.mozilla.com/D65132

--HG--
extra : moz-landing-system : lando
2020-03-27 17:36:20 +00:00
Csoregi Natalia
cb7b1f507b Backed out changeset e608cbaf20d4 (bug 1545345) for assertion failures on WorkerPrivate.cpp. CLOSED TREE 2020-03-27 07:55:21 +02:00
Andrew Sutherland
2c52fdcd48 Bug 1545345 - Improve worker shutdown. r=baku,smaug
Differential Revision: https://phabricator.services.mozilla.com/D65132

--HG--
extra : moz-landing-system : lando
2020-03-13 18:22:37 +00:00
Perry Jiang
3d1637251d Bug 1622924 - destroy CheckedUnsafePtr before pointee deletes itself r=dom-workers-and-storage-reviewers,asuth
Differential Revision: https://phabricator.services.mozilla.com/D67427

--HG--
extra : moz-landing-system : lando
2020-03-23 14:51:59 +00:00
Simon Giesecke
7e9a7de895 Bug 1620632 - Rename confusingly named types/macros for relocation handling of nsTArray. r=froydnj
Specifically, this renames
* nsTArray_CopyChooser to nsTArray_RelocationStrategy
* the Copy template argument of nsTArray_base to RelocationStrategy
* nsTArray_CopyWithConstructors to nsTArray_RelocateUsingMoveConstructor
* nsTArray_CopyWithMemutils to nsTArray_RelocateUsingMemutils
* DECLARE_USE_COPY_CONSTRUCTORS to MOZ_DECLARE_RELOCATE_USING_MOVE_CONSTRUCTOR

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

--HG--
extra : moz-landing-system : lando
2020-03-20 17:04:27 +00:00
Simon Giesecke
f15d11445a Bug 1613985 - Use default for equivalent-to-default constructors/destructors in dom/messagechannel. r=smaug
Depends on D66018

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

--HG--
extra : moz-landing-system : lando
2020-03-09 15:20:42 +00:00
Mark Banner
15cfe23b88 Bug 1620542 - Automatically fix ESLint errors in .eslintrc.js files. r=mossop
# ignore-this-changeset

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

--HG--
extra : moz-landing-system : lando
2020-03-07 10:09:44 +00:00
Simon Giesecke
9350e6b741 Bug 1613985 - Use MOZ_COUNTED_DEFAULT_CTOR_*/MOZ_COUNTED_DTOR_* macros. r=froydnj
This removes the need for explicit #ifdef NS_BUILD_REFCNT_LOGGING without
introducing user-defined destructors when it is not defined.

Also, some uses of virtual for declaring destructors are replaced by the
appropriate override declaration through these changes.

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

--HG--
extra : moz-landing-system : lando
2020-02-20 11:40:14 +00:00
Dorel Luca
d5f9df8ee1 Backed out 2 changesets (bug 1613985) for Build bustage on Windows2012. CLOSED TREE
Backed out changeset fd177b40b561 (bug 1613985)
Backed out changeset fb6d62b7f28d (bug 1613985)
2020-02-19 22:22:41 +02:00
Simon Giesecke
59b23375c0 Bug 1613985 - Use MOZ_COUNTED_DEFAULT_CTOR_*/MOZ_COUNTED_DTOR_* macros. r=froydnj
This removes the need for explicit #ifdef NS_BUILD_REFCNT_LOGGING without
introducing user-defined destructors when it is not defined.

Also, some uses of virtual for declaring destructors are replaced by the
appropriate override declaration through these changes.

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

--HG--
extra : moz-landing-system : lando
2020-02-19 18:05:38 +00:00
Andrea Marchesini
57e537d532 Bug 1613909 - remove wasm and SharedArrayBuffers tests for BroadcastChannel and MessagePort, r=annevk
Differential Revision: https://phabricator.services.mozilla.com/D63083

--HG--
extra : moz-landing-system : lando
2020-02-17 17:13:14 +00:00
Andrea Marchesini
3efc616139 Bug 1613909 - Enable shared-memory for SAP + postMessage() tests, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D62036

--HG--
extra : moz-landing-system : lando
2020-02-07 16:08:05 +00:00
Andrea Marchesini
5ee8116920 Bug 1611855 - Worklet must be part of the same parent's agentCluster - part 5 - more tests, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D61187

--HG--
extra : moz-landing-system : lando
2020-02-06 13:48:30 +00:00
Andrea Marchesini
175bac3a30 Bug 1611855 - Worklet must be part of the same parent's agentCluster - part 1, r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D61136

--HG--
extra : moz-landing-system : lando
2020-02-06 13:45:47 +00:00
Narcis Beleuzu
d259fe38d8 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)

--HG--
rename : dom/base/test/test_postMessages_workers.html => dom/base/test/test_postMessages.html
2020-02-06 12:31:36 +02:00
Andrea Marchesini
e23b403e32 Bug 1611855 - Worklet must be part of the same parent's agentCluster - part 5 - more tests, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D61187

--HG--
extra : moz-landing-system : lando
2020-02-05 22:08:46 +00:00
Andrea Marchesini
2106c7dcda Bug 1611855 - Worklet must be part of the same parent's agentCluster - part 1, r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D61136

--HG--
extra : moz-landing-system : lando
2020-02-05 22:07:04 +00:00
Simon Giesecke
b7632583c7 Bug 1539498 - Make SerializedStructuredCloneBuffer move-only. r=asuth,jld,baku
Replace all implicit copies by moves, or explicit clone operations.

Fixed a bug in /home/simon/work/ipdl/ipc/ipdl/ipdl/lower.py _cxxConstRefType,
which caused the const accessor to miss const on its return type for a moveonly
struct member.

Removed unused using directives for SerializedStructuredCloneBuffer in ipdl files.

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

--HG--
extra : moz-landing-system : lando
2020-02-01 15:16:43 +00:00
Oana Pop Rus
3e5b57f2d3 Backed out 3 changesets (bug 1539498, bug 1545196) for build bustages failures in DOMTypes.h on a CLOSED TREE
Backed out changeset 0f906da3634a (bug 1539498)
Backed out changeset ccc2f1aad57a (bug 1545196)
Backed out changeset 15e8d9547568 (bug 1545196)
2020-02-01 17:06:28 +02:00
Simon Giesecke
3c2df87890 Bug 1539498 - Make SerializedStructuredCloneBuffer move-only. r=asuth,jld,baku
Replace all implicit copies by moves, or explicit clone operations.

Fixed a bug in /home/simon/work/ipdl/ipc/ipdl/ipdl/lower.py _cxxConstRefType,
which caused the const accessor to miss const on its return type for a moveonly
struct member.

Removed unused using directives for SerializedStructuredCloneBuffer in ipdl files.

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

--HG--
extra : moz-landing-system : lando
2020-02-01 14:31:56 +00:00
Andrea Marchesini
4ddc1cf3a9 Bug 1609990 - AgentCluster comparison in MessagePort and BroadcastChannel - part 2 - MessageDataType, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D60428

--HG--
extra : moz-landing-system : lando
2020-01-24 16:19:59 +00:00
Andrea Marchesini
6829eab59f Bug 1609990 - AgentCluster comparison in MessagePort and BroadcastChannel - part 1 - No JS exceptions, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D60484

--HG--
extra : moz-landing-system : lando
2020-01-24 16:19:57 +00:00
Noemi Erli
e4b712dcb8 Backed out 4 changesets (bug 1609990) for causing Spidermonkey rust bustage CLOSED TREE
Backed out changeset 81a77bb3772c (bug 1609990)
Backed out changeset d4524885cb97 (bug 1609990)
Backed out changeset c95aac908332 (bug 1609990)
Backed out changeset bae3e50ab64d (bug 1609990)
2020-01-24 18:13:24 +02:00
Andrea Marchesini
b1846b3da4 Bug 1609990 - AgentCluster comparison in MessagePort and BroadcastChannel - part 2 - MessageDataType, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D60428

--HG--
extra : moz-landing-system : lando
2020-01-24 15:26:23 +00:00
Andrea Marchesini
4c90eea6f3 Bug 1609990 - AgentCluster comparison in MessagePort and BroadcastChannel - part 1 - No JS exceptions, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D60484

--HG--
extra : moz-landing-system : lando
2020-01-24 15:25:56 +00:00
Andrea Marchesini
c4d5364f80 Bug 1610020 - BroadcastChannel + wasm - part 5 - RefMessageBody for BroadcastChannels, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D60321

--HG--
extra : moz-landing-system : lando
2020-01-24 08:00:08 +00:00
Andrea Marchesini
a77cc322ba Bug 1610020 - BroadcastChannel + wasm - part 3 - Move MessageData IPC struct into DOMTypes, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D60319

--HG--
extra : moz-landing-system : lando
2020-01-24 07:59:43 +00:00
Andrea Marchesini
f5408828e0 Bug 1610020 - BroadcastChannel + wasm - part 2 - Move SharedMessagePortMessage into dom/ipc, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D60318

--HG--
rename : dom/messagechannel/SharedMessagePortMessage.cpp => dom/ipc/SharedMessageBody.cpp
rename : dom/messagechannel/SharedMessagePortMessage.h => dom/ipc/SharedMessageBody.h
extra : moz-landing-system : lando
2020-01-24 07:59:36 +00:00
Andrea Marchesini
1d307811b9 Bug 1610020 - BroadcastChannel + wasm - part 1 - Move RefMessageBodyService into dom/ipc, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D60317

--HG--
rename : dom/messagechannel/RefMessageBodyService.cpp => dom/ipc/RefMessageBodyService.cpp
rename : dom/messagechannel/RefMessageBodyService.h => dom/ipc/RefMessageBodyService.h
extra : moz-landing-system : lando
2020-01-24 07:59:34 +00:00
Andrea Marchesini
2b5eb657d7 Bug 1605566 - MessagePort + wasm - part 5 - tests, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D59616

--HG--
extra : moz-landing-system : lando
2020-01-24 07:59:31 +00:00
Andrea Marchesini
ce553d0097 Bug 1605566 - MessagePort + wasm - part 4 - Implement RefMessageBodyService, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D59615

--HG--
extra : moz-landing-system : lando
2020-01-24 07:58:34 +00:00
Andrea Marchesini
94ac5ab147 Bug 1605566 - MessagePort + wasm - part 3 - MessagePort serializes objects using MessageData union, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D59614

--HG--
extra : moz-landing-system : lando
2020-01-24 07:58:21 +00:00
Narcis Beleuzu
cb54b0227b Backed out 5 changesets (bug 1605566) for wpt failures on shared.html . CLOSED TREE
Backed out changeset 622939cef438 (bug 1605566)
Backed out changeset ab98304e6c84 (bug 1605566)
Backed out changeset 7eab8fd2b62e (bug 1605566)
Backed out changeset 99f61f25ed86 (bug 1605566)
Backed out changeset 77bdf4f86052 (bug 1605566)
2020-01-22 12:58:13 +02:00
Andrea Marchesini
47ee255c20 Bug 1605566 - MessagePort + wasm - part 5 - tests, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D59616

--HG--
extra : moz-landing-system : lando
2020-01-22 09:34:37 +00:00
Andrea Marchesini
6c0733d2e8 Bug 1605566 - MessagePort + wasm - part 4 - Implement RefMessageBodyService, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D59615

--HG--
extra : moz-landing-system : lando
2020-01-22 09:33:29 +00:00
Andrea Marchesini
4da71e81af Bug 1605566 - MessagePort + wasm - part 3 - MessagePort serializes objects using MessageData union, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D59614

--HG--
extra : moz-landing-system : lando
2020-01-22 09:33:11 +00:00
Mihai Alexandru Michis
4345a38d0d Backed out 9 changesets (bug 1607791, bug 1605566) for causing multiple wpt failures.
CLOSED TREE

Backed out changeset 39f34852842e (bug 1605566)
Backed out changeset 3427a92445c8 (bug 1605566)
Backed out changeset 36631ec96f1f (bug 1605566)
Backed out changeset 554b2bdce66c (bug 1605566)
Backed out changeset 37026beadbd8 (bug 1605566)
Backed out changeset f15835338319 (bug 1607791)
Backed out changeset 4c92f506cf62 (bug 1607791)
Backed out changeset 80707bcc8427 (bug 1607791)
Backed out changeset 75bc7533c899 (bug 1607791)
2020-01-15 13:45:33 +02:00
Andrea Marchesini
7592af5a41 Bug 1605566 - MessagePort + wasm - part 5 - tests, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D59616

--HG--
extra : moz-landing-system : lando
2020-01-15 10:01:44 +00:00
Andrea Marchesini
3ad8ed45ed Bug 1605566 - MessagePort + wasm - part 4 - Implement RefMessageBodyService, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D59615

--HG--
extra : moz-landing-system : lando
2020-01-15 10:01:24 +00:00
Andrea Marchesini
a7fa32643f Bug 1605566 - MessagePort + wasm - part 3 - MessagePort serializes objects using MessageData union, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D59614

--HG--
extra : moz-landing-system : lando
2020-01-15 10:01:11 +00:00
Tom Schuster
989660da15 Bug 1605854 - Remove uneval/toSource from DOM tests. r=smaug
Using JSON.stringify in dom/tests/mochitest/chrome/test_clonewrapper.xhtml might not be the best solution, because
the testObject contains ImageData objects.

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

--HG--
extra : moz-landing-system : lando
2020-01-06 13:09:27 +00:00