Commit Graph
150 Commits
Author SHA1 Message Date
Victor Porof 2221048633 Bug 1561435 - Format devtools/server/, a=automatic-formatting
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D35891
2019-07-05 11:26:00 +02:00
Nicolas Chevobbe 4f10e6ef5e Bug 1526886 - Convert evaluateJsAsync from Promise to an async function. r=yulia.
We take this as an opportunity to clean-up the function that
waits for the evaluation result.
This change was causing an issue in main.js `_queueResponse`.
Previously, since `evaluateJsAsync` wasn't returning anything,
`_queueResponse` wouldn't be called (See https://searchfox.org/mozilla-central/rev/928742d3ea30e0eb4a8622d260041564d81a8468/devtools/server/main.js#1305-1308).
But now `ret` isn't falsy (the async function always return a
Promise), which means we ended up trying to send a response.
To fix this, we simply check if the response isn't falsy, or we
bail out.

Differential Revision: https://phabricator.services.mozilla.com/D35985
2019-06-26 15:28:04 +00:00
Nicolas Chevobbe 5f8fec613d Bug 1526886 - Fix nits in main.js error messages. r=yulia.
Differential Revision: https://phabricator.services.mozilla.com/D35984
2019-06-26 15:27:16 +00:00
Cosmin Sabou 2e8c6cbdb0 Merge mozilla-inbound to mozilla-central. a=merge 2019-02-28 12:57:50 +02:00
Julian Descottes 735ce921e3 Bug 1528276 - Do not destroy the DebuggerServer in non-e10s when last frame connection is closed r=ochameau
When reviewing https://bugzilla.mozilla.org/show_bug.cgi?id=1521052 I did not think about Firefox for Android which is not using e10s.
This means the main DebuggerServer will be killed when there are no connections left. Happy to discuss more about the preferred solution.
This is a regression in 66 and I hope to uplift a fix for this.

Differential Revision: https://phabricator.services.mozilla.com/D20830
2019-02-27 19:17:37 +00:00
Brian Hackett 7485928909 Bug 1527203 Part 2 - Prevent worker debuggee execution until the thread actor has attached, r=ochameau. 2019-02-12 13:05:34 -10:00
Alexandre Poirot 09d0a333ab Bug 1521052 - Add DebuggerServer.hasConnection to track if it still has active connections. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D16961
2019-01-23 14:46:10 +00:00
Julian Descottes eeec044773 Bug 1497264 - Remove references to AddonTargetActor setAddonOptions;r=ochameau,yulia
Depends on D15383

Differential Revision: https://phabricator.services.mozilla.com/D15384
2019-01-08 18:42:44 +00:00
Daisuke Akatsuka 7abda417de Bug 1497448: Rename closeAllListener to closeAllSocketListeners. r=ochameau,jdescottes
Depends on D10868

Differential Revision: https://phabricator.services.mozilla.com/D11150
2018-11-07 17:46:05 +00:00
Daisuke Akatsuka d36d4b73fd Bug 1497448: Rename _addListener/_removeListener of DebuggerServer to addSocketListener/removeSocketListener. r=ochameau,jdescottes
Depends on D10867

Differential Revision: https://phabricator.services.mozilla.com/D10868
2018-11-07 16:56:34 +00:00
Daisuke Akatsuka 1a0e92e8c8 Bug 1497448: Use SocketListener directly. r=ochameau,jdescottes
Depends on D10865

Differential Revision: https://phabricator.services.mozilla.com/D10867
2018-11-08 00:41:18 +00:00
Daisuke Akatsuka 74c995461c Bug 1497448: Close connections that were accepted in ServerSocketListener. r=ochameau,jdescottes
Yet another approach. In the previous D9889 approach, both DebuggerSerever and
SocketServerListener retain the connections duplicately, it will be possible to
be difficult for the management. In this approach, only DebuggerSerever retains
the connections, then when ServerSocketListener was removed, removes the
connections as well that were linked the ServerSocketListener.

Differential Revision: https://phabricator.services.mozilla.com/D10864
2018-11-07 02:18:02 +00:00
Mark Banner 3d6aaad3f5 Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D8389
2018-10-19 12:55:39 +00:00
Alexandre Poirot 503dfa4476 Bug 1497226 - Rename WebExtensionActor/WebExtensionTargetActor/AddonTargetActor.id to addonId. r=jdescottes
MozReview-Commit-ID: 1frhYk1M9sC

Differential Revision: https://phabricator.services.mozilla.com/D8001
2018-10-08 20:34:45 +00:00
yulia 6746bca3cc Bug 1473513 - move ActorRegistry module to server/actors/utils; r=ochameau
Summary: Depends on D6477

Reviewers: ochameau

Reviewed By: ochameau

Bug #: 1473513

Differential Revision: https://phabricator.services.mozilla.com/D6479
2018-09-26 10:09:15 +02:00
yulia 3afc6be307 Bug 1473513 - refactor main.js to use protocol.js pools; r=ochameau
Summary:
MozReview-Commit-ID: FNMK4f553yI

Depends on D6474

Reviewers: ochameau

Reviewed By: ochameau

Bug #: 1473513

Differential Revision: https://phabricator.services.mozilla.com/D6475
2018-09-26 10:07:27 +02:00
yulia 48c56bd0e3 Bug 1473513 - separate registerModule behavior from DebuggerServer; r=ochameau
Summary:
MozReview-Commit-ID: 3GsXRxcIKfx

Depends on D6473

Reviewers: ochameau

Reviewed By: ochameau

Subscribers: reviewbot

Bug #: 1473513

Differential Revision: https://phabricator.services.mozilla.com/D6474
2018-09-26 10:06:43 +02:00
yulia e2298cb0fa Bug 1473513 - create LazyActorClass based off ObservedActorFactory and RegisterdFactory classes for use in RootActor and BrowsingContextActor; r=ochameau
Summary:
create LazyActorClass based off ObservedActorFactory and RegisterdFactory classes for use in RootActor and BrowsingContextActor;

Depends on D6468

Reviewers: ochameau

Reviewed By: ochameau

Bug #: 1473513

Differential Revision: https://phabricator.services.mozilla.com/D6470
2018-09-26 10:03:33 +02:00
yulia 78ff13b10c Bug 1485378 - Replace CallWatcher actor with helper; r=jdescottes
creates a CallWatcherActor only for tests and migrates other functionality to the helper

Differential Revision: https://phabricator.services.mozilla.com/D5534
2018-09-20 13:41:26 +00:00
Julian Descottes 8a7e3540a2 Bug 1487284 - Update message manager in actors spawned in parent after browserSwap;r=yulia
Differential Revision: https://phabricator.services.mozilla.com/D5028
2018-09-06 16:06:34 +00:00
yulia 1de07c7b75 Bug 1429421 - remove gcli code; r=jdescottes,julienw,ochameau
Remove remaining GCLI code

Differential Revision: https://phabricator.services.mozilla.com/D3618
2018-09-06 11:42:57 +00:00
arthur.iakab f3a400f189 Backed out changeset 5e21be5fdf9d (bug 1429421)for build busteges CLOSED TREE 2018-09-06 12:12:40 +03:00
yulia d6ccb9ca41 Bug 1429421 - remove gcli code; r=jdescottes,julienw,ochameau
Remove remaining GCLI code

Differential Revision: https://phabricator.services.mozilla.com/D3618
2018-09-06 08:55:50 +00:00
yulia 3074f9dd2e Bug 1483173 - introduce screenshot actor; r=ochameau
This patch introduces a screenshot actor, which allows the screenshot functionality to be
shared across tools, and also implements it for the toolbox itself

Differential Revision: https://phabricator.services.mozilla.com/D3341
2018-08-27 15:14:10 +00:00
arthur.iakab e63ddb4794 Backed out 7 changesets (bug 1473513) for failing devtools e.g. leakcheck | default process: 1618727 bytes leaked
Backed out changeset deb8812556ef (bug 1473513)
Backed out changeset 5bf38cfa04f9 (bug 1473513)
Backed out changeset 6e157bea362a (bug 1473513)
Backed out changeset 12eb1139a802 (bug 1473513)
Backed out changeset ce86ea60a31c (bug 1473513)
Backed out changeset 7acc52a7f81f (bug 1473513)
Backed out changeset 4e1e283b347e (bug 1473513)
2018-08-22 18:23:46 +03:00
yulia d153df3003 Bug 1473513 - refactor main.js to use protocol.js pools; r=ochameau
MozReview-Commit-ID: FNMK4f553yI
2018-08-09 11:45:00 +02:00
yulia 7fe9469272 Bug 1473513 - separate registerModule behavior from DebuggerServer; r=ochameau
MozReview-Commit-ID: 3GsXRxcIKfx
2018-07-13 18:03:28 +02:00
yulia f54f6a4266 Bug 1473513 - create LazyActorClass based off ObservedActorFactory and RegisterdFactory classes for use in RootActor and BrowsingContextActor; r=ochameau
MozReview-Commit-ID: LRuhNzBLrZh
2018-07-11 18:34:22 +02:00
Ciure Andrei 24922ea123 Backed out changeset 4f7d58a640b8 (bug 1483173) for browser_jsterm_screenshot_command_clipboard.js failures CLOSED TREE 2018-08-21 22:03:10 +03:00
yulia 4c4b78c21a Bug 1483173 - introduce screenshot actor; r=ochameau
This patch introduces a screenshot actor, which allows the screenshot functionality to be
shared across tools, and also implements it for the toolbox itself

Differential Revision: https://phabricator.services.mozilla.com/D3341
2018-08-21 13:10:52 +00:00
Kris Maglione 00113973f5 Bug 1481025: Fix devtools code which calls message manager methods with a null target. r=ochameau
MozReview-Commit-ID: KJeQjwhfJbw
2018-08-04 15:51:56 -07:00
Alexandre Poirot f2b8180efc Bug 1477988 - Implements DebuggerServer.spawnActorInParentProcess. r=jryans
This new API allows to instanciate an actor in the parent process from actors running in the parent process.
The created actors are returned to the client from the actors running in content,
but after that, the client communicates directly with the created actors running in the parent process.

MozReview-Commit-ID: 5B3wRQ94UEx
2018-07-16 09:53:28 -07:00
Alexandre Poirot d825162763 Bug 1474980 - Stop exporting ActorPool/OriginalLocation from server/main.js. r=jryans
MozReview-Commit-ID: Gsef6U1g46r
2018-07-11 10:49:45 -07:00
Alexandre Poirot 7431a299fd Bug 1474980 - Remove deprecated DebuggerServer.addActors(). r=jryans
MozReview-Commit-ID: 8J1wucp1G0p
2018-07-11 10:41:27 -07:00
Alexandre Poirot abcef2cc7a Bug 1000814 - Move WorkerDebuggerTransport to its own module. r=jryans
MozReview-Commit-ID: I1eFQCDLaDh
2018-07-11 08:44:55 -07:00
Alexandre Poirot 0aebdf0546 Bug 1000814 - Move ChildDebuggerTransport to its own module. r=jryans
MozReview-Commit-ID: FgTVee7NLyC
2018-07-11 08:38:53 -07:00
Alexandre Poirot bd711d0f3e Bug 1000814 - Move LocalDebuggerTransport to its own module. r=jryans
MozReview-Commit-ID: 3rV5TGPPKq6
2018-07-11 08:35:44 -07:00
Alexandre Poirot 6fa8d73159 Bug 1000814 - Use loader helpers to import symbols lazily. r=jryans
MozReview-Commit-ID: v20oLp5Azm
2018-07-11 08:21:13 -07:00
Alexandre Poirot dbb1325080 Bug 1473578 - Remove deprecated synchronous DebuggerServer.registerModule feature. r=jryans
MozReview-Commit-ID: DTAEJyfICNz
2018-07-05 07:13:52 -07:00
J. Ryan Stinnett f489c5464f Bug 1465637 - Rename tab-scoped actors to target-scoped actors. r=ochameau
The term "tab actor" was used ambiguously to mean either the "target actor
representing a tab" or "a child actor of the tab target actor" (such as the
console actor).  Here we rename the second case to "target-scoped actor".

Differential Revision: https://phabricator.services.mozilla.com/D1760
2018-06-26 13:27:57 +00:00
arthur.iakab c92ab366d1 Backed out changeset 88960670cf9f (bug 1465637) for failing talos damp tests on server/protocol.js: Error: Can't manage front without an actor ID on a CLOSED TREE 2018-06-25 21:56:27 +03:00
J. Ryan Stinnett f1a1ed11e7 Bug 1465637 - Rename tab-scoped actors to target-scoped actors. r=ochameau
The term "tab actor" was used ambiguously to mean either the "target actor
representing a tab" or "a child actor of the tab target actor" (such as the
console actor).  Here we rename the second case to "target-scoped actor".

Differential Revision: https://phabricator.services.mozilla.com/D1760
2018-06-25 17:53:40 +00:00
J. Ryan Stinnett 035161b7df Bug 1172897 - Rename BrowserAddonActor to AddonTargetActor. r=ochameau
MozReview-Commit-ID: 4iI6BQaleJS
2018-06-04 18:37:02 -05:00
J. Ryan Stinnett 3b10cc3277 Bug 1172897 - Move DevTools addon modules to subdir. r=ochameau
MozReview-Commit-ID: D61WJnoYQe3
2018-06-04 18:12:11 -05:00
J. Ryan Stinnett f77bb71a84 Bug 1172897 - Remove deprecated eager actor construction path. r=ochameau
MozReview-Commit-ID: ALnbhoh0Nzj
2018-05-30 19:19:11 -05:00
J. Ryan Stinnett ec84a30d2a Bug 1172897 - Rename ContentActor to FrameTargetActor. r=ochameau
MozReview-Commit-ID: 3Rgvftpea8g
2018-05-30 14:09:45 -05:00
J. Ryan Stinnett c6fd8c950e Bug 1172897 - Rename TabActor to BrowsingContextTargetActor. r=ochameau
MozReview-Commit-ID: LPTEx2h4F1o
2018-05-25 18:20:28 -05:00
Julian Descottes 9456167901 Bug 1454696 - Fix leftover issues for prefer-const;r=yulia
MozReview-Commit-ID: JwOXoqw2mks
2018-06-01 12:19:35 +02:00
Julian Descottes 82711b9a8f Bug 1454696 - Run eslint --fix for prefer-const;r=yulia
MozReview-Commit-ID: F6xUXCgdRE4
2018-06-01 12:36:09 +02:00
Boris Zbarsky c9145e654e Bug 1455674 part 19. Get rid of JS uses of nsIDOMElement. r=qdot
In nsBlocklistService.js we know we're dealing with actual nodes, so .nodeType
checks should be fine.
2018-04-26 23:37:34 -04:00