Commit Graph

60 Commits

Author SHA1 Message Date
Tooru Fujisawa
cc098a5033 Bug 1771092 - Part 1: Add esModuleURI key to ProcessActorSidedOptions/WindowActorSidedOptions and support loading system ESM. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D147422
2022-06-17 09:11:13 +00:00
criss
20943ab4b3 Backed out 8 changesets (bug 1771092, bug 1768870, bug 1771097, bug 1769002, bug 1768819) for causing mochitest failures on browser_sendQuery.js. CLOSED TREE
Backed out changeset 8a4d712f819a (bug 1771092)
Backed out changeset f4e27a35c83c (bug 1771092)
Backed out changeset 072323bc72cc (bug 1771092)
Backed out changeset 2ccf2a00fff7 (bug 1769002)
Backed out changeset ba7086fd9b1f (bug 1768819)
Backed out changeset 6205d3e2c666 (bug 1771097)
Backed out changeset 960f0aee97d5 (bug 1768870)
Backed out changeset 5f53760c5637 (bug 1768870)
2022-06-17 05:44:37 +03:00
Tooru Fujisawa
9ad6d3ae43 Bug 1771092 - Part 1: Add esModuleURI key to ProcessActorSidedOptions/WindowActorSidedOptions and support loading system ESM. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D147422
2022-06-17 01:30:24 +00:00
Molnar Sandor
ca093dfdcc Backed out 9 changesets (bug 1769002, bug 1768870, bug 1771097, bug 1771092, bug 1768819) for causing lint failures. CLOSED TREE
Backed out changeset 829df1dfad70 (bug 1769002)
Backed out changeset f0537d333adc (bug 1771092)
Backed out changeset 25b43856bc00 (bug 1771092)
Backed out changeset a49f754ca73f (bug 1771092)
Backed out changeset 164f85686a32 (bug 1769002)
Backed out changeset ef5cf9ceb915 (bug 1768819)
Backed out changeset c64e6c1fbfe7 (bug 1771097)
Backed out changeset f85393f988a8 (bug 1768870)
Backed out changeset fe708d13cc1d (bug 1768870)
2022-06-16 20:15:14 +03:00
Tooru Fujisawa
079e7274c0 Bug 1771092 - Part 1: Add esModuleURI key to ProcessActorSidedOptions/WindowActorSidedOptions and support loading system ESM. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D147422
2022-06-16 16:20:38 +00:00
Nika Layzell
aa3a4189be Bug 1722880 - Part 2: Expose windowContext getter to JSWindowActors, r=smaug
This will be used by the Pdfjs actor to get isInBFCache

Differential Revision: https://phabricator.services.mozilla.com/D124099
2021-09-03 15:26:13 +00:00
Nika Layzell
0d1885321e Bug 1708734 - Part 2: Allow specifying that an actor should not be created when event is fired, r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D114792
2021-05-11 17:29:25 +00:00
Kagami Sascha Rosylight
553fe13dd2 Bug 1631581 - Part 1: Rename NoInterfaceObject to LegacyNoInterfaceObject r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D111209
2021-04-11 03:13:30 +00:00
Gijs Kruitbosch
abefafe9cd Bug 1686947 - fix jsactor documentation links in code comments, r=nika DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D101929
2021-01-15 16:28:07 +00:00
Nika Layzell
5f45e08c22 Bug 1650163 - Part 1: Switch native remoteType values to nsCString, r=farre,geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D82104
2020-07-08 20:15:59 +00:00
Mihai Alexandru Michis
e53e708b23 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
d627e924a9 Bug 1650163 - Part 1: Switch native remoteType values to nsCString, r=farre,geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D82104
2020-07-08 14:54:48 +00:00
Narcis Beleuzu
ff8a3cf3a3 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
1332ec8539 Bug 1650163 - Part 1: Switch native remoteType values to nsCString, r=farre
Differential Revision: https://phabricator.services.mozilla.com/D82104
2020-07-06 20:30:58 +00:00
David Teller
71c0c25335 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
a3c166eb82 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
381055231c 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
3fd511f9b5 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
24737a9f47 Bug 1580448 - Rename JSWindowActor into JSActor;r=nika
Differential Revision: https://phabricator.services.mozilla.com/D70038
2020-04-30 07:33:28 +00:00
nika
ec45daa8f7 Bug 1557118, add support for filtering actor creation based on the messagemanagergroup attribute set on browser elements, r=farre
Differential Revision: https://phabricator.services.mozilla.com/D68780
2020-04-01 12:59:19 +00:00
David Teller
5231582873 Bug 1580447 - Expose Content{Parent, Child} to JS;r=nika
Differential Revision: https://phabricator.services.mozilla.com/D65344
2020-03-20 09:11:32 +00:00
Arthur Iakab
82ab2601cb Backed out changeset 0b8ffd5fed51 (bug 1580447) for causing build bustages.
CLOSED TREE
2020-03-19 14:53:26 +02:00
David Teller
54df589923 Bug 1580447 - Expose Content{Parent, Child} to JS;r=nika
Differential Revision: https://phabricator.services.mozilla.com/D65344
2020-03-19 09:13:48 +00:00
Gijs Kruitbosch
a106095ae5 Bug 1593487 - tighten up registerWindowActor's handling of nonsensical actor specifications and remove cruft, r=nika,mconley
Differential Revision: https://phabricator.services.mozilla.com/D52002
2019-11-08 11:59:37 +00:00
Boris Zbarsky
99559d89e9 Bug 1214364 part 4. Only output full-featured Init methods for dictionaries that need them. r=peterv
Dictionaries that we never initialize with JS values don't need a full-featured
Init() method.  Instead, we output a cut-down Init() method that doesn't even
take a JSContext and Value as argument, and skips as much work as it can.  It
uses constant-false for "is the value present?", but also, to avoid compilation
errors due to use of `cx` and `val` in now-dead conversion code, it tells the
native-to-JS conversion machinery that the value is always missing, which lets
it skip most of the the work it would normally try to do and just output
initialization to the default value.  We only need to do this for members that
have default values; the others either remain no-passed or are required members
with no default-initialization behavior.

This saves about 330KB of codesize on Linux64 without PGO and 285KB with PGO.

Differential Revision: https://phabricator.services.mozilla.com/D48007
2019-10-28 20:24:31 +00:00
Nika Layzell
4000819d64 Bug 1581925 - Part 1: Capture parent process JSWindowActor events at InProcessBrowserChildMessageManager, r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D46864
2019-10-07 19:35:06 +00:00
Brindusan Cristian
818d44c1d7 Backed out 2 changesets (bug 1581925) for devtools failures at browser_toolbox_textbox_context_menu.js. CLOSED TREE
Backed out changeset f79a5830bfef (bug 1581925)
Backed out changeset 2e3b0b1cebea (bug 1581925)
2019-10-02 03:04:43 +03:00
Nika Layzell
ee05f8f46f Bug 1581925 - Part 1: Capture parent process JSWindowActor events at InProcessBrowserChildMessageManager, r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D46864
2019-09-26 21:09:34 +00:00
Boris Zbarsky
58694c23f2 Bug 1423562 part 3. Remove [PrimaryGlobal] and require explicit [Exposed] annotations on everything. r=edgar
For review purposes, the important changes are in dom/bindings/Configuration.py
and dom/bindings/parser.

The changes to the IDL files were done by running these in dom/webidl
and dom/bindings/test:

  perl -pi -e 's/^interface ([A-Za-z0-9_]+)($| [:{])/[Exposed=Window]\ninterface \1\2/' *.webidl

  perl -pi -e 'BEGIN { $/ = undef; } s/\[HTMLConstructor\]\n\[Exposed=Window\]/[HTMLConstructor,\n Exposed=Window]/g' *.webidl

  perl -pi -e 'BEGIN { $/ = undef; } s/\[NoInterfaceObject\]\n\[Exposed=Window\]/[NoInterfaceObject,\n Exposed=Window]/g' *.webidl

  perl -pi -e 'BEGIN { $/ = undef; } s/\[ChromeOnly\]\n\[Exposed=Window\]/[ChromeOnly,\n Exposed=Window]/g' *.webidl

And running this in dom/chrome-webidl:

  perl -pi -e 'BEGIN { $/ = undef; } s/\[ChromeOnly\]\ninterface/[ChromeOnly, Exposed=Window]\ninterface/g' *.webidl

and then fixing all the resulting parser failures.  I then verified that the
generated code is the same as before this change.

Differential Revision: https://phabricator.services.mozilla.com/D46697
2019-09-27 15:26:14 +00:00
Bogdan Tara
9f1dfb5ad5 Backed out changeset ac6d8297cdc4 (bug 1581925) for test_bug89419.xul & test_MozDomFullscreen_event.xul failures CLOSED TREE 2019-09-24 21:56:18 +03:00
Boris Zbarsky
0a4ac9b638 Bug 1574195 part 4. Switch remaining users of IDL "implements" over to mixin syntax. r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D46523
2019-09-24 15:22:26 +00:00
Nika Layzell
6982b45605 Bug 1581925 - Capture parent process JSWindowActor events at InProcessBrowserChildMessageManager, r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D46864
2019-09-23 22:31:05 +00:00
John Dai
af05aadf28 Bug 1580907 - Remove transferables attribute for SendAsyncMessage and SendQuery in JSWindowActor; r=nika
Differential Revision: https://phabricator.services.mozilla.com/D45809
2019-09-13 16:51:23 +00:00
John Dai
bcc89e871c Bug 1579218 - Fix JSWindowActorProtocol::Matches() doesn't properly handle webIsolated remote types; r=nika
Differential Revision: https://phabricator.services.mozilla.com/D45535
2019-09-13 09:51:34 +00:00
Boris Zbarsky
c21ac232dc Bug 1578173 part 2. Convert chrome-webidl bits to constructor operations. r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D45389
2019-09-11 20:55:26 +00:00
Kris Maglione
54401f8c9d Bug 1561705: Part 1 - Add JSWindowActor.actorCreated callback. r=jdai
The JSWindowActor constructor is called before the actor is fully initialized,
which means it can't do things like send messages or access its content
window. This patch adds a new callback which can do those things immediately
after the actor is created.

Differential Revision: https://phabricator.services.mozilla.com/D42178
2019-08-14 16:13:13 -07:00
John Dai
c6802b4e62 Bug 1563597 - Support nsGlobalWindowOuter as observer notification's subject; r=nika
Differential Revision: https://phabricator.services.mozilla.com/D39029
2019-07-23 16:09:27 +00:00
Boris Zbarsky
a9b8199b26 Bug 1562680. Implement the new syntax for Web IDL dictionary defaulting. r=peterv
`= {}` can now be used to indicate that an optional dictionary should have the
default value of 'default-initialized dictionary'

Differential Revision: https://phabricator.services.mozilla.com/D36504
2019-07-03 07:52:35 +00:00
Cosmin Sabou
53d2610450 Backed out changeset 8e16f13a88c8 (bug 1562680) for colliding with Bug 1366738 that was backed out. CLOSED TREE 2019-07-03 10:46:39 +03:00
Boris Zbarsky
fd31f0dc38 Bug 1562680. Implement the new syntax for Web IDL dictionary defaulting. r=peterv
`= {}` can now be used to indicate that an optional dictionary should have the
default value of 'default-initialized dictionary'

Differential Revision: https://phabricator.services.mozilla.com/D36504
2019-07-03 06:44:36 +00:00
Mihai Alexandru Michis
236fb712ba Backed out changeset 12653dd76667 (bug 1562680) for causing bustages in FuzzingFunctions.webidl CLOSED TREE 2019-07-03 09:34:48 +03:00
Boris Zbarsky
88bde97de1 Bug 1562680. Implement the new syntax for Web IDL dictionary defaulting. r=peterv
`= {}` can now be used to indicate that an optional dictionary should have the
default value of 'default-initialized dictionary'

Differential Revision: https://phabricator.services.mozilla.com/D36504
2019-07-03 06:15:54 +00:00
John Dai
140803e1a2 Bug 1556686 - Add more comments on JSWindowActor; r=nika
Differential Revision: https://phabricator.services.mozilla.com/D33619
2019-06-06 10:13:30 +00:00
John Dai
ef65db68ff Bug 1557062 - Add browsingContext on JSWindowActorParent; r=nika
Differential Revision: https://phabricator.services.mozilla.com/D33809
2019-06-05 16:59:56 +00:00
John Dai
d695eb9fad Bug 1555301 - Fix JSWindowActor.webidl comments; r=nika
Differential Revision: https://phabricator.services.mozilla.com/D33026
2019-05-31 14:32:47 +00:00
John Dai
059cb849b5 Bug 1552554 - Move JSWindowActor config dictionaries into JSWindowActor.webidl; r=nika
Differential Revision: https://phabricator.services.mozilla.com/D32325
2019-05-24 18:44:43 +00:00
John Dai
fec9d27c3e Bug 1552263 - Add docShell attribute to JSWindowActorChild; r=nika
Differential Revision: https://phabricator.services.mozilla.com/D31614
2019-05-17 19:01:21 +00:00
John Dai
8db170e75d Bug 1538979 - Part 2: Add WillDestroy and DidDestroy lifecycle methods on JSWindowActor; r=nika
Differential Revision: https://phabricator.services.mozilla.com/D30196
2019-05-10 15:01:40 +00:00
Csoregi Natalia
22b1920370 Backed out 3 changesets (bug 1538979) for bustage on JSWindowActor.cpp. CLOSED TREE
Backed out changeset a098226e4211 (bug 1538979)
Backed out changeset 8e065761738c (bug 1538979)
Backed out changeset 9df2b856b655 (bug 1538979)
2019-05-10 12:44:22 +03:00
John Dai
80c112414a Bug 1538979 - Part 2: Add WillDestroy and DidDestroy lifecycle methods on JSWindowActor; r=nika
Differential Revision: https://phabricator.services.mozilla.com/D30196
2019-05-10 09:19:30 +00:00