Commit Graph
26 Commits
Author SHA1 Message Date
Julian Descottes 24db7b4175 Bug 1856481 - [devtools] Stop destroying webextension descriptor on actor destroy r=ochameau,devtools-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D216533
2024-08-06 15:05:13 +00:00
Alexandre Poirot a441733f0e Bug 1866818 - [devtools] Enable the JS tracer on remote debugging. r=devtools-reviewers,devtools-backward-compat-reviewers,nchevobbe
Display a warning message in the tracer sidebar when there could be a backward compat issue.

Differential Revision: https://phabricator.services.mozilla.com/D217745
2024-07-31 12:48:21 +00:00
Iulian Moraru de2e453ec4 Backed out changeset 23621642a445 (bug 1856481) for causing dt failures on browser_aboutdebugging_addons_remote_runtime_close_reopen.js. CLOSED TREE 2024-07-27 01:35:51 +03:00
Julian Descottes 2b230531c0 Bug 1856481 - [devtools] Stop destroying webextension descriptor on actor destroy r=ochameau,devtools-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D216533
2024-07-26 21:51:29 +00:00
Tamas Szentpeteri 7122ed4562 Backed out changeset 6f51dab4589d (bug 1856481) for causing mochitest failures on browser_aboutdebugging_addons_remote_runtime_close_reopen.js. CLOSED TREE. 2024-07-26 17:44:12 +03:00
Julian Descottes b8734f71b8 Bug 1856481 - [devtools] Stop destroying webextension descriptor on actor destroy r=ochameau,devtools-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D216533
2024-07-26 13:23:50 +00:00
Alexandre Poirot f7ea591929 Bug 1500000 - [devtools] Remove now-unused DevToolsClient.release method. r=devtools-reviewers,nchevobbe
This is no longer used, not even in tests.

Differential Revision: https://phabricator.services.mozilla.com/D198808
2024-01-17 16:40:12 +00:00
Alexandre Poirot c158bae2fa Bug 1836856 - [devtools] Drop support of DevToolsClient.request's second onResponse argument. r=devtools-reviewers,bomsy
This is no longer used. The returned promise should be used instead.

There was also some old lefovers in WebConsole Front related to network events.
As we no longer have legacy listeners, this is no longer used.
The frontend code now uses DevToolsClient.request directly to query the NetworkEventActor's.

Differential Revision: https://phabricator.services.mozilla.com/D180980
2023-06-26 11:08:46 +00:00
Sandor Molnar 49cbc9e36b Backed out 3 changesets (bug 1836856) for causing mochitest failures in devtools/shared/webconsole/test/chrome/test_network_security-hsts.html CLOSED TREE
Backed out changeset 636272515c00 (bug 1836856)
Backed out changeset 0fe632ebb487 (bug 1836856)
Backed out changeset 6850948b14c0 (bug 1836856)
2023-06-23 14:36:31 +03:00
Alexandre Poirot e92e641b51 Bug 1836856 - [devtools] Drop support of DevToolsClient.request's second onResponse argument. r=devtools-reviewers,bomsy
This is no longer used. The returned promise should be used instead.

There was also some old lefovers in WebConsole Front related to network events.
As we no longer have legacy listeners, this is no longer used.
The frontend code now uses DevToolsClient.request directly to query the NetworkEventActor's.

Differential Revision: https://phabricator.services.mozilla.com/D180980
2023-06-23 08:22:04 +00:00
Mark Banner 91fde42f7b Bug 1826062 - Automatic fixes for Prettier 2.0.5 upgrade. r=mossop,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,denschub,devtools-reviewers,sparky,owlish
Differential Revision: https://phabricator.services.mozilla.com/D177025
2023-05-20 12:26:49 +00:00
Nicolas Chevobbe f95ae7ee9a Bug 1828511 - [devtools] Add custom formatter support in Scopes panel. r=devtools-reviewers,sebo,ochameau.
The scopes data we get in Scopes panel (from `FrameFront#getEnvironment`) don't
contain any object front, only grips.
As the setup is already complex, I didn't want to change that, so I went the
way we already do in some other places and passed the client to the ObjectInspector
we render; this way the CustomFormatter element can call `createObjectFront` from
it when it does not receive a proper front.
This revealed an issue in how we were passing the `front` prop from `renderJsonMl`,
as we weren't doing any check on it, and as a result it might have been a simple grip.
We also decrement the `autoExpandDepth` in `toggleBody` so we don't get auto expand
"regular" objects that might be inside custom formatter body.

Differential Revision: https://phabricator.services.mozilla.com/D175900
2023-05-11 13:19:55 +00:00
Alexandre Poirot 59fe57c052 Bug 1793396 - [devtools] Use absolute URLs in all usages of loader.lazyRequireGetter. r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D158489
2022-10-03 18:57:13 +00:00
Alexandre Poirot 94e1d33108 Bug 1792847 - [devtools] Use absolute URLs to import modules in devtools/client. r=jdescottes,nchevobbe
Everywhere but:
* the debugger (to be done independently)
* jsonview (uses custom resource:// URLs)
* dependencies of jsonview in client/shared (reps, react, and two components)
* one dependency of performance-new (fluent-react)

This will greatly help migrating to ES Modules which don't support path and only URLs or relatives.

Differential Revision: https://phabricator.services.mozilla.com/D158324
2022-09-30 15:17:34 +00:00
Alexandre Poirot 1eb54723b4 Bug 1699111 - [devtools] Rename DevToolsClient._closed to _transportClosed. r=jdescottes
This better highlight that may only be the transport that is closed and not the whole client.
But at the end, both should follow the same lifecycle and be destroyed altogether.

Differential Revision: https://phabricator.services.mozilla.com/D108813
2021-04-13 13:44:24 +00:00
Alexandre Poirot 3c4356b16b Bug 1699111 - [devtools] Rename transports onClosed callback to onTransportClosed. r=jdescottes
This will better highlight what is closing. Not the DevToolsClient, but just the transport class.

Differential Revision: https://phabricator.services.mozilla.com/D108812
2021-04-13 13:44:24 +00:00
Alexandre Poirot 5e2d7f0d78 Bug 1699432 - [devtools] Bail out if DevToolsClient.close becomes reentrant. r=nchevobbe
Close method may be called by the transport on close.
This was highlighted by browser_target_from_url.js
Surprisingly devtools/shared/tests/xpcshell/test_debugger_client.js
tries quite hard to cover such issue, but we seem to get yet another type of reentrancy.
This probably depends on WebSocketTransport, which is a bit hard to get covered.
No test seems to be spawning a WebSocket DevToolsServer...

Differential Revision: https://phabricator.services.mozilla.com/D107988
2021-03-18 16:28:27 +00:00
Cosmin Sabou 8ad0f269bc Backed out 8 changesets (bug 1631451, bug 1698842) for xpcshell failures on test_breakpoint-25.js. CLOSED TREE
Backed out changeset 0d9035ed5c50 (bug 1698842)
Backed out changeset 55166c719cd2 (bug 1698842)
Backed out changeset 8cc10a259de1 (bug 1631451)
Backed out changeset bc9072114706 (bug 1631451)
Backed out changeset b5cb78fd1f61 (bug 1631451)
Backed out changeset da765754e3a8 (bug 1631451)
Backed out changeset d7a1c44ea37c (bug 1631451)
Backed out changeset 810bdfa0d899 (bug 1631451)
2021-03-18 02:35:30 +02:00
Alexandre Poirot 7d0fd2effd Bug 1631451 - [devtools] Bail out if DevToolsClient.close becomes reentrant. r=nchevobbe
Close method may be called by the transport on close.
This was highlighted by browser_target_from_url.js
Surprisingly devtools/shared/tests/xpcshell/test_debugger_client.js
tries quite hard to cover such issue, but we seem to get yet another type of reentrancy.
This probably depends on WebSocketTransport, which is a bit hard to get covered.
No test seems to be spawning a WebSocket DevToolsServer...

Differential Revision: https://phabricator.services.mozilla.com/D107988
2021-03-17 23:46:36 +00:00
Nicolas Chevobbe 8dc6e35736 Bug 1680202 - [devtools] Remove bulk traits on Root actor. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D98445
2020-12-08 10:55:41 +00:00
Alexandre Poirot e9904f8f2d Bug 1672826 - [devtools] Unmanage fronts when we purge a whole prefix. r=nchevobbe
Previous `purgeRequestForDestroy` method was only rejecting all pending requests.
The new `syncFrontDestroy` allows to fully destroy the front, including
unregistering it/unmanage it. So that if we receive a packet from a brand new
actor, with the same prefix and actor ID, DevToolsClient.getFront doesn't return
the old destroyed front.
This issue was making pending requests that were never resolved.

Differential Revision: https://phabricator.services.mozilla.com/D94718
2020-11-09 12:29:53 +00:00
Alexandre Poirot a7258b6b58 Bug 1664438 - Destroy pending protocol.js requests when a remote connector closes. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D90236
2020-09-16 08:15:01 +00:00
Julian Descottes 104a567eab Bug 1656825 - Fix duplicate calls to lazyRequireGetter r=nchevobbe
Depends on D85288

Differential Revision: https://phabricator.services.mozilla.com/D85720
2020-08-03 07:53:50 +00:00
Nicolas Chevobbe 6d31eeb842 Bug 1623283 - Rename Pool#actor into getActorByID. r=jdescottes.
We take this opportunity to remove Pool.get as well,
which was doing exactly the same thing as Pool.actor

This highlighted a couple issues in Reps:
- LongString were relying on the isGrip function, which was only checking that
  the actor property was truthy. So it was matching LongStringFront which had
  the actor method. This is modified by using the isLongString helper instead.
- The Object rep was building all the reps for the object properties, even in
  TINY mode, where the result was only used to check the length. In the Accessibility
  panel, it can happen that an plain object containing front properties is passed
  to Rep. It was fine before because this was short-circuited by the Accessor rep
  which was only checking the truthiness of a `get` property. With `get` being
  removed, the default Rep was used, which is Object, and we were hitting a
  recursion loop, as some of the properties of fronts are cycle references.
  There should be a fix in the Accessibility panel to _not_ pass fronts, but we
  also "fix" it from here by simply not building sub-properties for the object
  when we're in TINY mode.

Differential Revision: https://phabricator.services.mozilla.com/D81971
2020-07-02 15:07:12 +00:00
Nicolas Chevobbe a1d55c9cf5 Bug 1495728 - Remove unused ActorPool class. r=ochameau.
This class isn't used anymore, and it's safe to remove it.
We take this as an opportunity to remove Pool#cleanup and
Pool#isEmpty, which each only had one callsite.
Some comments are updated to not mention ActorPool.

Differential Revision: https://phabricator.services.mozilla.com/D80602
2020-06-24 07:39:06 +00:00
Julian Descottes edb7e1459b Bug 1625495 - Remove devtools/shared/client folder r=daisuke,ochameau,nchevobbe
Depends on D68599

This changeset moves devtools-client.js and constants.js to devtools/client and removes devtools/shared/client

Differential Revision: https://phabricator.services.mozilla.com/D68600
2020-03-31 08:36:29 +00:00