Nika Layzell
1c71a222fc
Bug 1653729 - Part 1: Generalize do_QueryActor API, r=kmag
...
This changes the set of types which can be passed as the second argument to
do_QueryActor to ones which can be unambiguously converted to a JSActorManager,
and combines nsCOMPtr_helper implementations.
Differential Revision: https://phabricator.services.mozilla.com/D84067
2020-08-04 21:34:29 +00:00
Simon Giesecke
fea9dab7f2
Bug 1651714 - Reduce expensive includes for TabMessageUtils.h. r=smaug
...
With these changes, on my Linux analysis with ClangBuildAnalyzer, the
top two expensive headers, DOMTypes.h and TabMessageUtils.h are no longer
among the 30 most expensive headers.
Differential Revision: https://phabricator.services.mozilla.com/D82935
2020-07-15 13:24:20 +00:00
Nika Layzell
27320bcf81
Bug 1650163 - Part 3: Move REMOTE_TYPE defines to a separate header, r=farre
...
Differential Revision: https://phabricator.services.mozilla.com/D82107
2020-07-08 20:16:06 +00:00
Mihai Alexandru Michis
1ba2a3f6f6
Backed out 3 changesets (bug 1650163) for causing bustages in nsContentSecurityManager.cpp
...
CLOSED TREE
Backed out changeset 51d7c644a1e6 (bug 1650163)
Backed out changeset 3d2b6908447a (bug 1650163)
Backed out changeset 79141707d47b (bug 1650163)
2020-07-08 21:18:44 +03:00
Nika Layzell
48c6c034ee
Bug 1650163 - Part 3: Move REMOTE_TYPE defines to a separate header, r=farre
...
Differential Revision: https://phabricator.services.mozilla.com/D82107
2020-07-08 01:13:43 +00:00
Nika Layzell
b141d76834
Bug 1649477 - Part 1: Move JSActor related files into their own directory, r=kmag
...
Differential Revision: https://phabricator.services.mozilla.com/D82100
2020-07-08 14:22:22 +00:00
Narcis Beleuzu
8359f16846
Backed out 7 changesets (bug 1650163, bug 1649477) for bustages on JSActor.cpp . CLOSED TREE
...
Backed out changeset 4a21afb65254 (bug 1650163)
Backed out changeset c41753a56f5a (bug 1650163)
Backed out changeset 5fb444c35764 (bug 1650163)
Backed out changeset 830aa93d2b0c (bug 1649477)
Backed out changeset eca6e9dce450 (bug 1649477)
Backed out changeset 5b217aa88289 (bug 1649477)
Backed out changeset 8959d02b840f (bug 1649477)
2020-07-08 04:09:27 +03:00
Nika Layzell
7a7a796fc2
Bug 1650163 - Part 3: Move REMOTE_TYPE defines to a separate header, r=farre
...
Differential Revision: https://phabricator.services.mozilla.com/D82107
2020-07-06 20:28:01 +00:00
Nika Layzell
64f3c5ba9e
Bug 1649477 - Part 1: Move JSActor related files into their own directory, r=kmag
...
Differential Revision: https://phabricator.services.mozilla.com/D82100
2020-07-06 20:27:04 +00:00
Nika Layzell
c7f85b7fac
Bug 1633379 - Part 2: Add support for in-process JSWindowActors, r=kmag,Yoric
...
This switches the `nsIContent{Parent,Child}` interface to be
`nsIDOMProcess{Parent,Child}`, and also implements it on
`InProcess{Parent,Child}`, along with the `ProcessActor` interface.
Differential Revision: https://phabricator.services.mozilla.com/D80582
2020-06-25 20:35:18 +00:00
Nika Layzell
9c12bdf9af
Bug 1633379 - Part 1: Move PInProcess into dom/ipc, r=kmag,Yoric
...
This moves it near the cross-process `PContent` actor, and makes it more clear
that this actor is only intended to be used for DOM things.
Differential Revision: https://phabricator.services.mozilla.com/D80581
2020-06-25 17:50:51 +00:00
Cosmin Sabou
4d79f57fed
Backed out 2 changesets (bug 1633379) for windows build bustages on ContentChild.obj. CLOSED TREE
...
Backed out changeset a26037f3225b (bug 1633379)
Backed out changeset efef0b59bcd8 (bug 1633379)
2020-06-25 20:47:03 +03:00
Nika Layzell
0fefabd35b
Bug 1633379 - Part 2: Add support for in-process JSWindowActors, r=kmag,Yoric
...
This switches the `nsIContent{Parent,Child}` interface to be
`nsIDOMProcess{Parent,Child}`, and also implements it on
`InProcess{Parent,Child}`, along with the `ProcessActor` interface.
Differential Revision: https://phabricator.services.mozilla.com/D80582
2020-06-25 16:28:11 +00:00
Nika Layzell
508260e158
Bug 1633379 - Part 1: Move PInProcess into dom/ipc, r=kmag,Yoric
...
This moves it near the cross-process `PContent` actor, and makes it more clear
that this actor is only intended to be used for DOM things.
Differential Revision: https://phabricator.services.mozilla.com/D80581
2020-06-25 15:49:15 +00:00
Matt Woodrow
ea21b3dd8e
Bug 1646582 - Remove RemoteWebProgressManager. r=nika,Gijs
...
Differential Revision: https://phabricator.services.mozilla.com/D80129
2020-06-24 19:59:04 +00:00
Matt Woodrow
a637ca6c0d
Bug 1646582 - Remove nsIRemoteWebProgressRequest since it's not being used anywhere. r=barret
...
Differential Revision: https://phabricator.services.mozilla.com/D80127
2020-06-24 19:57:30 +00:00
Dorel Luca
90a64f0da1
Backed out 4 changesets (bug 1646582) for Browser-chrome failures on nsIWebProgress.addProgressListener. CLOSED TREE
...
Backed out changeset 2111dd0d6dc0 (bug 1646582)
Backed out changeset e6c496c5a4b1 (bug 1646582)
Backed out changeset 49b4ae8c8be0 (bug 1646582)
Backed out changeset 9d42ec89240c (bug 1646582)
2020-06-24 07:50:07 +03:00
Matt Woodrow
acd97f7b2c
Bug 1646582 - Remove RemoteWebProgressManager. r=nika,Gijs
...
Differential Revision: https://phabricator.services.mozilla.com/D80129
2020-06-24 03:25:09 +00:00
Matt Woodrow
6924cb49df
Bug 1646582 - Remove nsIRemoteWebProgressRequest since it's not being used anywhere. r=barret
...
Differential Revision: https://phabricator.services.mozilla.com/D80127
2020-06-24 03:23:38 +00:00
Narcis Beleuzu
b894acb874
Backed out 4 changesets (bug 1646582) for mochitest failures on test_ext_tabs_create.html . CLOSED TREE
...
Backed out changeset ce5cdfc5d7cf (bug 1646582)
Backed out changeset 2ac69a2b6708 (bug 1646582)
Backed out changeset 74d89cb24414 (bug 1646582)
Backed out changeset 7de0ff1af560 (bug 1646582)
2020-06-23 06:30:03 +03:00
Matt Woodrow
f851c6be5b
Bug 1646582 - Remove RemoteWebProgressManager. r=nika,Gijs
...
Differential Revision: https://phabricator.services.mozilla.com/D80129
2020-06-23 01:23:59 +00:00
Matt Woodrow
899c6f8198
Bug 1646582 - Remove nsIRemoteWebProgressRequest since it's not being used anywhere. r=barret
...
Differential Revision: https://phabricator.services.mozilla.com/D80127
2020-06-23 01:22:21 +00:00
Matt Woodrow
2083b054bd
Bug 1631405 - Make sure we initialize all fields of WindowGlobalParent in the constructor. r=nika
...
Previously we only set some fields as part of WindowGlobalInit, but WindowGlobalParent sets itself as the current window global on the CanonicalBrowsingContext.
This exposes a period of time where only part of the document state was set, and this was observable to consumers.
This makes OnNewDocument only run when there is a new Document for the same WindowGlobal.
Differential Revision: https://phabricator.services.mozilla.com/D75446
2020-05-27 00:27:30 +00:00
Bogdan Tara
a54ec3073f
Backed out 4 changesets (bug 1631405) for multiple mochitest failures CLOSED TREE
...
Backed out changeset 9963cc0b23cb (bug 1631405)
Backed out changeset 469ac933ed7c (bug 1631405)
Backed out changeset 0c5f55864268 (bug 1631405)
Backed out changeset 20dcbcc2f3b8 (bug 1631405)
2020-05-27 01:30:20 +03:00
Matt Woodrow
5b64e9bae2
Bug 1631405 - Make sure we initialize all fields of WindowGlobalParent in the constructor. r=nika
...
Previously we only set some fields as part of WindowGlobalInit, but WindowGlobalParent sets itself as the current window global on the CanonicalBrowsingContext.
This exposes a period of time where only part of the document state was set, and this was observable to consumers.
This makes OnNewDocument only run when there is a new Document for the same WindowGlobal.
Differential Revision: https://phabricator.services.mozilla.com/D75446
2020-05-26 21:15:42 +00:00
Gijs Kruitbosch
38b061ef45
Bug 1638373
- remove js/ipc now that CPOWs are dead, r=mccr8
...
Depends on D76597
Differential Revision: https://phabricator.services.mozilla.com/D76598
2020-05-24 18:47:04 +00:00
Nika Layzell
2454ade94e
Bug 1633820 - Part 3: Get rid of PBrowserOrId, r=mattwoodrow,necko-reviewers,dragana
...
The 'Id' variant was only used with b2g for remote `mozbrowser`s, and is no
longer relevant. The new code instead uses `PBrowser` directly in all cases.
Differential Revision: https://phabricator.services.mozilla.com/D72933
2020-05-07 22:49:06 +00:00
Razvan Maries
7a5b66f9b6
Backed out 5 changesets (bug 1633820) for build bustages at TabContext.cpp. CLOSED TREE
...
Backed out changeset 0a20dd1935d7 (bug 1633820)
Backed out changeset 626e834293ed (bug 1633820)
Backed out changeset 14cc454a8cbc (bug 1633820)
Backed out changeset 7bbcb9266b87 (bug 1633820)
Backed out changeset ef99672bd2af (bug 1633820)
2020-05-08 00:59:20 +03:00
Nika Layzell
dd35cc6b02
Bug 1633820 - Part 3: Get rid of PBrowserOrId, r=mattwoodrow,necko-reviewers,dragana
...
The 'Id' variant was only used with b2g for remote `mozbrowser`s, and is no
longer relevant. The new code instead uses `PBrowser` directly in all cases.
Differential Revision: https://phabricator.services.mozilla.com/D72933
2020-05-07 17:45:12 +00:00
Bogdan Tara
7fce40912d
Backed out 5 changesets (bug 1633820) for bustages complaining about TabContext CLOSED TREE
...
Backed out changeset 4982d41d5e6b (bug 1633820)
Backed out changeset 9803c41e42f9 (bug 1633820)
Backed out changeset 2475bbab03a8 (bug 1633820)
Backed out changeset 762f0b2c154c (bug 1633820)
Backed out changeset f9ea871a0227 (bug 1633820)
2020-05-06 22:39:46 +03:00
Nika Layzell
da2aae6af5
Bug 1633820 - Part 3: Get rid of PBrowserOrId, r=mattwoodrow,necko-reviewers,dragana
...
The 'Id' variant was only used with b2g for remote `mozbrowser`s, and is no
longer relevant. The new code instead uses `PBrowser` directly in all cases.
Differential Revision: https://phabricator.services.mozilla.com/D72933
2020-05-06 17:42:41 +00:00
David Teller
ded0c0d4ee
Bug 1580448 - JSProcessActor tests;r=nika
...
Differential Revision: https://phabricator.services.mozilla.com/D69819
2020-04-30 16:45:14 +00:00
David Teller
3da6e17db2
Bug 1580448 - JSProcessActor API;r=nika
...
This patch introduces the bulk of JSProcessActor{Child, Parent}.
Differential Revision: https://phabricator.services.mozilla.com/D64595
2020-04-30 16:49:50 +00:00
David Teller
cd067d3c2e
Bug 1580448 - Rename JSWindowActor into JSActor;r=nika
...
Differential Revision: https://phabricator.services.mozilla.com/D70038
2020-04-30 16:42:53 +00:00
Stefan Hindli
e22cd35728
Backed out 9 changesets (bug 1580448) for linux build bustages in /builds/worker/workspace/obj-build/dist/include/mozilla/dom/JSWindowActorChild.h CLOSED TREE
...
Backed out changeset 6b4db1a501df (bug 1580448)
Backed out changeset 677257a41457 (bug 1580448)
Backed out changeset 6db8de5fc125 (bug 1580448)
Backed out changeset fd7527c86239 (bug 1580448)
Backed out changeset bfbd3330b0a5 (bug 1580448)
Backed out changeset dafa80c63322 (bug 1580448)
Backed out changeset 2a1701831a6a (bug 1580448)
Backed out changeset 9b548bd38671 (bug 1580448)
Backed out changeset 358f764ae48b (bug 1580448)
2020-04-30 10:58:27 +03:00
David Teller
f700c5624c
Bug 1580448 - JSProcessActor tests;r=nika
...
Differential Revision: https://phabricator.services.mozilla.com/D69819
2020-04-30 07:36:29 +00:00
David Teller
942da6a70f
Bug 1580448 - JSProcessActor API;r=nika
...
This patch introduces the bulk of JSProcessActor{Child, Parent}.
Differential Revision: https://phabricator.services.mozilla.com/D64595
2020-04-30 07:35:17 +00:00
David Teller
e3ac58091c
Bug 1580448 - Rename JSWindowActor into JSActor;r=nika
...
Differential Revision: https://phabricator.services.mozilla.com/D70038
2020-04-30 07:33:28 +00:00
Andrea Marchesini
13481ea877
Bug 1363541 - Modernize the PermissionManager - part 4 - mozilla namespace, r=timhuang
...
Differential Revision: https://phabricator.services.mozilla.com/D70040
--HG--
rename : extensions/permissions/nsPermissionManager.cpp => extensions/permissions/PermissionManager.cpp
rename : extensions/permissions/nsPermissionManager.h => extensions/permissions/PermissionManager.h
extra : moz-landing-system : lando
2020-04-11 13:42:12 +00:00
Razvan Maries
b74e338c98
Backed out 6 changesets (bug 1363541) for perma failures. CLOSED TREE
...
Backed out changeset a775f6e9eb41 (bug 1363541)
Backed out changeset 9212bfd89eca (bug 1363541)
Backed out changeset bf41b0c139f6 (bug 1363541)
Backed out changeset aa7c6668b249 (bug 1363541)
Backed out changeset 9f413a8a47bb (bug 1363541)
Backed out changeset 827a9a2866bd (bug 1363541)
--HG--
rename : extensions/permissions/Permission.cpp => extensions/permissions/nsPermission.cpp
rename : extensions/permissions/Permission.h => extensions/permissions/nsPermission.h
rename : extensions/permissions/PermissionManager.cpp => extensions/permissions/nsPermissionManager.cpp
rename : extensions/permissions/PermissionManager.h => extensions/permissions/nsPermissionManager.h
2020-04-10 11:31:20 +03:00
Andrea Marchesini
b523b552a4
Bug 1363541 - Modernize the PermissionManager - part 4 - mozilla namespace, r=timhuang
...
Differential Revision: https://phabricator.services.mozilla.com/D70040
--HG--
rename : extensions/permissions/nsPermissionManager.cpp => extensions/permissions/PermissionManager.cpp
rename : extensions/permissions/nsPermissionManager.h => extensions/permissions/PermissionManager.h
extra : moz-landing-system : lando
2020-04-09 22:08:02 +00:00
Coroiu Cristina
d37de5ed78
Backed out 6 changesets (bug 1363541) for browser-chrome failures at browser/base/content/test/performance/browser_startup_mainthreadio.js on a CLOSED TREE
...
Backed out changeset 947073be919f (bug 1363541)
Backed out changeset 1f397b686c11 (bug 1363541)
Backed out changeset d2ba944a47a3 (bug 1363541)
Backed out changeset 80d4d1f0c921 (bug 1363541)
Backed out changeset 9d6b9052f413 (bug 1363541)
Backed out changeset aeaa10789071 (bug 1363541)
--HG--
rename : extensions/permissions/Permission.cpp => extensions/permissions/nsPermission.cpp
rename : extensions/permissions/Permission.h => extensions/permissions/nsPermission.h
rename : extensions/permissions/PermissionManager.cpp => extensions/permissions/nsPermissionManager.cpp
rename : extensions/permissions/PermissionManager.h => extensions/permissions/nsPermissionManager.h
2020-04-10 01:00:15 +03:00
Andrea Marchesini
8764c55c53
Bug 1363541 - Modernize the PermissionManager - part 4 - mozilla namespace, r=timhuang
...
Differential Revision: https://phabricator.services.mozilla.com/D70040
--HG--
rename : extensions/permissions/nsPermissionManager.cpp => extensions/permissions/PermissionManager.cpp
rename : extensions/permissions/nsPermissionManager.h => extensions/permissions/PermissionManager.h
extra : moz-landing-system : lando
2020-04-09 13:27:35 +00:00
David Teller
c781dd8809
Bug 1580447 - Expose Content{Parent, Child} to JS;r=nika
...
Differential Revision: https://phabricator.services.mozilla.com/D65344
--HG--
extra : moz-landing-system : lando
2020-03-20 09:11:32 +00:00
Arthur Iakab
768dcd08ae
Backed out changeset 0b8ffd5fed51 (bug 1580447) for causing build bustages.
...
CLOSED TREE
2020-03-19 14:53:26 +02:00
David Teller
96c856d32a
Bug 1580447 - Expose Content{Parent, Child} to JS;r=nika
...
Differential Revision: https://phabricator.services.mozilla.com/D65344
--HG--
extra : moz-landing-system : lando
2020-03-19 09:13:48 +00:00
Nika Layzell
77393e07dd
Bug 1615403 - Part 1: Introduce a new MaybeDiscarded type, r=farre
...
Adds a new MaybeDiscarded wrapper type which allows sending a maybe-discarded
BrowsingContext over IPC to another process which must be explicitly checked for
nullness and discarded status before being used.
Differential Revision: https://phabricator.services.mozilla.com/D62832
--HG--
extra : moz-landing-system : lando
2020-02-20 23:30:33 +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
Kris Maglione
a71c8e64ff
Bug 1588839 - Part 1 - Add helper to allow structured cloning Error/Exception objects. r=bzbarsky
...
In order to be able to reasonably debug error results from things like
JSWindowActor.sendQuery, we need to be able to clone errors across process
boundaries, so that they can be propagated to the caller that initiated a
query. The standard for the structured clone algorithm does not allow cloning
errors directly, so this patch instead adds a chrome-only wrapper object which
supports structured clone writing, and on reading, automatically decodes to
the error object it wraps. Callers who wish to clone an Error or Exception
object simply need to wrap it in a ClonedErrorHolder before sending.
Differential Revision: https://phabricator.services.mozilla.com/D50881
--HG--
extra : moz-landing-system : lando
2019-12-07 18:59:14 +00:00