Commit Graph
94 Commits
Author SHA1 Message Date
Nicolas Chevobbe c45cffa7d6 Bug 1602769 - Remove unused DebuggerClient.connect onConnected param. r=ladybenko.
Differential Revision: https://phabricator.services.mozilla.com/D56564
2019-12-13 13:26:29 +00:00
Nicolas Chevobbe 3b5f03a0f6 Bug 1602709 - Remove unused DebuggerClient.close onClosed parameter. r=ladybenko.
Differential Revision: https://phabricator.services.mozilla.com/D56562
2019-12-13 13:11:45 +00:00
Nicolas Chevobbe 6715a6f9bc Bug 1579090 - Make WebConsoleFront, PropertyIteratorFront, SymbolIteratorFront and ObjectFront return adhoc fronts (or primitive) when needed. r=jlast.
This is the first part of a bigger patch to make WebConsoleFront methods
consumers handle fronts instead of plain grips.
The main challenge with most of console methods is that the server
can return either a primitive, an object that represent a primitive
(undefined, null, Infinity, ...), a longString grip or an object grip.

Since this would be complex to map as a protocol.js type, this patch
either override the methods where we want to return fronts, or intercept
events with the `before` method on them.

The response is then handled to a function that will iteratore of the
result object in a recursive manner, and create fronts when needed.

Differential Revision: https://phabricator.services.mozilla.com/D54506
2019-12-04 09:02:24 +00:00
Nicolas Chevobbe 059bde8b04 Bug 1579090 - Change how ObjectFront is exported. r=rcaliman.
We export it as a named property to match other fronts, and
also because we plan to add a helper function in the file
that will need to be exported as well.

Differential Revision: https://phabricator.services.mozilla.com/D54136
2019-12-04 09:01:57 +00:00
Alexandre Poirot 093b0f63ee Bug 1591961 - Use short syntax for functions of DebuggerClient. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D54206
2019-11-29 09:03:54 +00:00
Alexandre Poirot fe6e7cf638 Bug 1591961 - Remove now unused DebuggerClient.requester. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D54204
2019-11-29 09:03:44 +00:00
Julian Descottes ff9415624c Bug 1591410 - Remove devtools/shared/client/deprecated-thread-client.js r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D50605
2019-10-29 08:36:03 +00:00
Nicolas Chevobbe e3359be848 Bug 1588999 - Rename ObjectClient to ObjectFront. r=ochameau.
The object-client.js file is now a proper protocol.js front,
but is still named after a client.
This is confusing, so we rename and move the file next to other
fronts, and update all consumers to the new terminology.

Differential Revision: https://phabricator.services.mozilla.com/D49878
2019-10-21 12:07:10 +00:00
Gabriel Luong 712d5539c3 Bug 1500142 - Remove inspector bindings from toolbox. r=yulia,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D40320
2019-09-16 17:39:42 +00:00
Julian Descottes cd155c69f3 Bug 1578361 - removed unused localTransport getter on debugger-client r=ladybenko
This was initially added in Bug 907755 for old telemetry probes.

Differential Revision: https://phabricator.services.mozilla.com/D44444
2019-09-04 11:15:40 +00:00
Alexandre Poirot 7d5acaeab1 Bug 1570604 - Rename DebuggerClient.getActor to getFrontByID. r=jdescottes,yulia
Differential Revision: https://phabricator.services.mozilla.com/D40785
2019-08-07 10:35:02 +00:00
Panos Astithas 373489a094 Bug 1406915 - Convert uses of defer to DOM promises in devtools/shared/client/. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D37747
2019-07-12 14:37:29 +00:00
yulia 7eba825d59 Bug 1559819 - rename threadClient to threadFront; r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D32848
2019-07-11 09:45:32 +00:00
Panos Astithas f3ad8a7772 Bug 1233891 - Use DOM promises instead of deprecated sync promises in devtools/. r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D37138
2019-07-09 17:26:32 +00:00
Victor Porof 435f7b056d Bug 1561435 - Format remaining devtools/, a=automatic-formatting, CLOSED TREE
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D35894
2019-07-05 11:29:32 +02:00
yulia 9427385061 Bug 1494796 - Delete registerClient functionality; r=jdescottes
The webConsoleFront and the threadClient front both used to depend on the debugger-client
to destroy them via registered clients. This is no longer the case, and this code can be deleted

Differential Revision: https://phabricator.services.mozilla.com/D32699
2019-06-14 04:24:11 +00:00
yulia 7da265a443 Bug 1494796 - maintain backwards compatibility r=jdescottes
Introduce a flag to maintain backwards compatibility with old servers

Differential Revision: https://phabricator.services.mozilla.com/D34184
2019-06-14 04:23:59 +00:00
yulia 15de8591f0 Bug 1494796 - use getFront to retrieve threadClient; r=jdescottes
In order for a front to be available to getFront on a given target, it must be first --
registered on the target scope, and second -- set on the target's targetForm. This makes that update
for both browsing context and worker targets. This works as part of a work around until we can get
the server into better shape.

Differential Revision: https://phabricator.services.mozilla.com/D32698
2019-06-14 04:24:13 +00:00
yulia faa7359b7b Bug 1494796 - Convert ThreadClient into a Front; r=jdescottes
This is the first part of the threadClient refactor. It only moves the methods to the new
front. and does some basic fixes.

Differential Revision: https://phabricator.services.mozilla.com/D32692
2019-06-14 04:24:19 +00:00
Narcis Beleuzu c896be1b25 Backed out 13 changesets (bug 1494796) for dt failures on browser_dbg-navigation.js . CLOSED TREE
Backed out changeset 5db908b26d50 (bug 1494796)
Backed out changeset c48f00f0df72 (bug 1494796)
Backed out changeset 591453b88e8b (bug 1494796)
Backed out changeset a14e820311bc (bug 1494796)
Backed out changeset 0e214d450b35 (bug 1494796)
Backed out changeset 1a4ab8b35a85 (bug 1494796)
Backed out changeset fe1559f5f1d4 (bug 1494796)
Backed out changeset 35d967de4223 (bug 1494796)
Backed out changeset 1d21a55cae15 (bug 1494796)
Backed out changeset 33eec873a43e (bug 1494796)
Backed out changeset 25e69c21dc2e (bug 1494796)
Backed out changeset b900d41c8ae8 (bug 1494796)
Backed out changeset c2a034e34fa6 (bug 1494796)
2019-06-14 07:20:42 +03:00
yulia 4cec70f40d Bug 1494796 - Delete registerClient functionality; r=jdescottes
The webConsoleFront and the threadClient front both used to depend on the debugger-client
to destroy them via registered clients. This is no longer the case, and this code can be deleted

Differential Revision: https://phabricator.services.mozilla.com/D32699
2019-06-14 00:18:32 +00:00
yulia afda0801fb Bug 1494796 - maintain backwards compatibility r=jdescottes
Introduce a flag to maintain backwards compatibility with old servers

Differential Revision: https://phabricator.services.mozilla.com/D34184
2019-06-14 00:18:25 +00:00
yulia eb046c6c5f Bug 1494796 - use getFront to retrieve threadClient; r=jdescottes
In order for a front to be available to getFront on a given target, it must be first --
registered on the target scope, and second -- set on the target's targetForm. This makes that update
for both browsing context and worker targets. This works as part of a work around until we can get
the server into better shape.

Differential Revision: https://phabricator.services.mozilla.com/D32698
2019-06-14 00:18:19 +00:00
yulia 1b198288ef Bug 1494796 - Convert ThreadClient into a Front; r=jdescottes
This is the first part of the threadClient refactor. It only moves the methods to the new
front. and does some basic fixes.

Differential Revision: https://phabricator.services.mozilla.com/D32692
2019-06-14 00:14:58 +00:00
yulia d6c65c3294 Bug 1042642 - use EventEmitter instead of eventSource on the DebuggerClient; r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D29371
2019-05-29 15:51:28 +00:00
Oriol Brufau af587a16bb Bug 1392760 - Avoid exponential behavior when inspecting nested proxies. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D28214
2019-05-14 06:46:30 +00:00
Daniel Varga cbda4e2a61 Backed out changeset a0a023dac829 (bug 1392760) for debugger failure at object-inspector/types 2019-05-06 03:14:57 +03:00
Oriol Brufau 01524204d5 Bug 1392760 - Avoid exponential behavior when inspecting nested proxies. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D28214
2019-04-26 15:32:50 +00:00
Alexandre Poirot 4053f5e684 Bug 1520835 - Removed now-useless front pool from DebuggerClient. r=jdescottes
Depends on D20704

Differential Revision: https://phabricator.services.mozilla.com/D20705
2019-02-22 18:32:38 +00:00
Alexandre Poirot be5e0d7b58 Bug 1520835 - Remove unused attachTarget methods. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D20704
2019-02-22 18:32:52 +00:00
yulia 791e7cdc1a Bug 1485664 - remove attachConsole from the debugger client; r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D20150
2019-02-20 10:27:50 +00:00
yulia bc499bbbbd Bug 1485664 - move webconsole client to front directory; r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D18838
2019-02-19 16:00:45 +00:00
yulia 81cf2f5bdb Bug 1485664 - Change "attachConsole" in the debuggerClient so that it is compatible with a front; r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D18837
2019-02-19 16:04:30 +00:00
Julian Descottes ae4af794cf Bug 1525654 - Move version compatibility check to dedicated module and add unit-tests;r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D18934
2019-02-12 18:20:40 +00:00
yulia e3006ee5d9 Bug 1518777 - move webConsoleClient.detach to destroy; r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D16681
2019-01-24 11:50:36 +00:00
Alexandre Poirot 5cf17eecc4 Bug 1520773 - Prevent infinite loops in DebuggerClient.close. r=yulia
If any callback fired by DebuggerClient.close ends up calling close again, it will introduce an infinite loop.

Depends on D15826

Differential Revision: https://phabricator.services.mozilla.com/D15827
2019-01-21 11:04:08 +00:00
Alexandre Poirot 662d5ebb84 Bug 1508285 - Refactor RootFront.listTabs to return BrowsingContextTargetFront instead of JSON form. r=yulia,jdescottes
MozReview-Commit-ID: 4CMHJ3tV7Rc

Depends on D14174

Differential Revision: https://phabricator.services.mozilla.com/D14175
2018-12-17 11:56:30 +00:00
Alexandre Poirot c2c92214da Bug 1508285 - Refactor RootFront.getTab to return BrowsingContextTargetFront instead of JSON form. r=yulia
MozReview-Commit-ID: 6TOInM5BmYe

Differential Revision: https://phabricator.services.mozilla.com/D14173
2018-12-17 11:56:26 +00:00
Logan Smyth 21369e75a2 Bug 1513655 - Remove source-map module and usage from the debugger server. r=jlast
Differential Revision: https://phabricator.services.mozilla.com/D14296
2018-12-14 19:49:08 +00:00
Cosmin Sabou 29a6a69f29 Backed out changeset 4d61e1b695c9 (bug 1513655) for ESlint failure on devtools/server/actors/thread.js. CLOSED TREE 2018-12-14 21:37:34 +02:00
Logan Smyth 0a7c3e0a7f Bug 1513655 - Remove source-map module and usage from the debugger server. r=jlast
Differential Revision: https://phabricator.services.mozilla.com/D14296
2018-12-14 19:09:15 +00:00
Alexandre Poirot 2c7d0fee4e Bug 1509315 - Pass the full target form to all BrowsingContextTargetFront instances. r=yulia
For now, we only pass { actor } for all tab target fronts created via DebuggerClient.attachTarget,
whereas parent process target fronts were passing the full form from RootFront.getProcess.

MozReview-Commit-ID: 1H2NxFv8glY

Differential Revision: https://phabricator.services.mozilla.com/D12730
2018-11-27 21:47:52 +00:00
Alexandre Poirot 6d6a725f9b Bug 1506546 - Refactor listAddons call sites. r=yulia
Adapt to the new returned value of listAddons
and also always call it from RootFront instead of DebuggerClient.
Fix the spec in order to expose reload on the front (it was a miss from a previous patch).

MozReview-Commit-ID: AQ5EOQEqnxX

Depends on D12575

Differential Revision: https://phabricator.services.mozilla.com/D12576
2018-11-27 19:17:48 +00:00
Alexandre Poirot 05559ce854 Bug 1506546 - Change the spec type of listAddons and accomodate using the front rather than the form. r=yulia
MozReview-Commit-ID: 4MAjszUiGUZ

Depends on D12573

Differential Revision: https://phabricator.services.mozilla.com/D12574
2018-11-27 19:18:28 +00:00
Andreea Pavel 2e1438afd5 Backed out 7 changesets (bug 1506546) fo failing devtools at devtools/client/aboutdebugging-new/test/browser/browser_aboutdebugging_system_addons.js on a CLOSED TREE
Backed out changeset fbe3f2183f32 (bug 1506546)
Backed out changeset 8972a2f14015 (bug 1506546)
Backed out changeset 00fe26234b3d (bug 1506546)
Backed out changeset 7d8e650e25c2 (bug 1506546)
Backed out changeset a293a37483b9 (bug 1506546)
Backed out changeset 7b75250a4f12 (bug 1506546)
Backed out changeset 23ad29cb776e (bug 1506546)
2018-11-27 14:37:14 +02:00
Alexandre Poirot 215fe5609a Bug 1506546 - Refactor listAddons call sites. r=yulia
Adapt to the new returned value of listAddons
and also always call it from RootFront instead of DebuggerClient.
Fix the spec in order to expose reload on the front (it was a miss from a previous patch).

MozReview-Commit-ID: AQ5EOQEqnxX

Depends on D12575

Differential Revision: https://phabricator.services.mozilla.com/D12576
2018-11-27 11:23:22 +00:00
Alexandre Poirot 8df5a146e5 Bug 1506546 - Change the spec type of listAddons and accomodate using the front rather than the form. r=yulia
MozReview-Commit-ID: 4MAjszUiGUZ

Depends on D12573

Differential Revision: https://phabricator.services.mozilla.com/D12574
2018-11-27 11:23:18 +00:00
Alexandre Poirot e1d0ca7c1b Bug 1506548 - Return WorkerTargetFront from listWorkers instead of form. r=yulia
MozReview-Commit-ID: 4CBQNwC8tKq

Depends on D11762

Differential Revision: https://phabricator.services.mozilla.com/D11763
2018-11-15 10:23:50 +00:00
Alexandre Poirot 21259d0507 Bug 1506545 - Instantiate Target for ContentProcessTargetActor via its front. r=yulia
MozReview-Commit-ID: EE4d0YULRBU

Depends on D11614

Differential Revision: https://phabricator.services.mozilla.com/D11615
2018-11-13 20:39:58 +00:00
Alexandre Poirot 8b98126041 Bug 1497467 - Convert AddonClient to protocol.js front. r=yulia
MozReview-Commit-ID: 78Oqsq4mGqW

Differential Revision: https://phabricator.services.mozilla.com/D10391
2018-11-05 16:16:37 +00:00