Граф коммитов

422 Коммитов

Автор SHA1 Сообщение Дата
Alexandre Poirot 1efc237714 Bug 1810095 - [devtools] Remove now-unused Storage target scoped actor. r=devtools-reviewers,devtools-backward-compat-reviewers,jdescottes
This actor was only used by the legacy listener.
Its main method was listStores which exposed all the storage type actors.
Now they are exposed via storage Resource watchers.

This requires to tweak the decision making to show the storage panel
as the actor no longer exists... Unfortunately we can't check for
resource traits on the watcher actor as the browser toolbox
on older runtime won't expose it.

Note that this.front wasn't used for a little while in ui.js.

I had to keep a few things in the frontend in order to still be able
to connect to old servers. But I put lots of comments to do proper cleanup later.

Differential Revision: https://phabricator.services.mozilla.com/D166770
2023-01-29 20:50:48 +00:00
Alexandre Poirot ff6deaa55d Bug 1578975 - [devtools] Remove now-unused setupInParent code. r=devtools-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D166695
2023-01-29 20:50:48 +00:00
ogiorgis 5fa906d358 Bug 1749473 - fix all pygments warnings r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D167915
2023-01-27 13:41:10 +00:00
Nicolas Chevobbe 212403c985 Bug 1811207 - [devtools] Remove debugger-tests task and run debugger jest test via devtools-tests. r=jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D167241
2023-01-19 14:55:40 +00:00
Alexandre Poirot c984f94118 Bug 1809848 - [devtools] Remove TargetMixin.isLocalTab/localTab attributes. r=devtools-reviewers,nchevobbe
They should rather be queried on the descriptor front.

Differential Revision: https://phabricator.services.mozilla.com/D166647
2023-01-18 12:32:03 +00:00
Butkovits Atila 4b6832ec0c Backed out 4 changesets (bug 1809848) for causing failures at browser_toolbox_options_disable_js. CLOSED TREE
Backed out changeset 7dfd8676b3c7 (bug 1809848)
Backed out changeset 78375e26bffe (bug 1809848)
Backed out changeset 17b823d1492e (bug 1809848)
Backed out changeset 05e57c08310f (bug 1809848)
2023-01-17 20:23:43 +02:00
Alexandre Poirot f105170dd5 Bug 1809848 - [devtools] Remove TargetMixin.isLocalTab/localTab attributes. r=devtools-reviewers,nchevobbe
They should rather be queried on the descriptor front.

Differential Revision: https://phabricator.services.mozilla.com/D166647
2023-01-17 16:34:01 +00:00
Marian-Vasile Laza c4e8bd42d6 Backed out 4 changesets (bug 1809848) for causing damp failures on browser-toolbox.js. CLOSED TREE
Backed out changeset 14b861cccbeb (bug 1809848)
Backed out changeset 92d5cc5ee69e (bug 1809848)
Backed out changeset 9bb5167ebc4b (bug 1809848)
Backed out changeset cdd531783324 (bug 1809848)
2023-01-17 11:16:20 +02:00
Alexandre Poirot 993faf67d5 Bug 1809848 - [devtools] Remove TargetMixin.isLocalTab/localTab attributes. r=devtools-reviewers,nchevobbe
They should rather be queried on the descriptor front.

Differential Revision: https://phabricator.services.mozilla.com/D166647
2023-01-16 22:25:07 +00:00
Alexandre Poirot 7aeac8d1a1 Bug 1807898 - [devtools] Set Telemetry sessionID by the Telemetry helper. r=devtools-reviewers,nchevobbe
This will help simplify all callsites manually setting this attribute.
I inlined simplification of all toolOpened/toolClosed in this changeset,
but all usages of recordEvent will be simplified in the next changeset.

Toolbox.sessionId is now only used by console performance markers in
order to help differentiate toolbox instances.

Note that about:debugging was also using a dedicated sessionId.

Differential Revision: https://phabricator.services.mozilla.com/D165935
2023-01-04 18:28:33 +00:00
Alexandre Poirot ee7ed1e669 Bug 1808309 - [devtools] Remove web console actor's sendHttpRequest method. r=devtools-reviewers,devtools-backward-compat-reviewers,nchevobbe
This is no longer used by the DevTools frontend.
NetworkContent.sendHTTPRequest should be used instead.

Differential Revision: https://phabricator.services.mozilla.com/D165865
2023-01-04 18:27:22 +00:00
Alexandre Poirot 4597b94bcd Bug 1808308 - [devtools] Remove unused getPreferences and setPreferences of the console actor. r=devtools-reviewers,devtools-backward-compat-reviewers,nchevobbe
These preferences ended up being specifics to network observation.
The only one lastly supported is now set via NetworkParentActor.setSaveRequestAndResponseBodies.

Differential Revision: https://phabricator.services.mozilla.com/D165864
2023-01-04 18:27:22 +00:00
Alexandre Poirot 6340009cb3 Bug 1721592 - [devtools] Remove old server codebase to listen to network events. r=devtools-reviewers,devtools-backward-compat-reviewers,jdescottes
With the removal of the old non-fission browser toolbox,
we removed the last usage of this old codebase.
We used to be able to listen to network events via WebConsole's actor's startListeners method.
Nowadays we should rather use the Watcher actor's watchResources method and listen to
NETWORK_EVENT resource.
(or migrate to WebDriver Bidi which will soon allow to listen to network requests see bug 1790369)

This patch also removed all now unused block* requests from webconsole actor,

Differential Revision: https://phabricator.services.mozilla.com/D165603
2023-01-04 18:27:21 +00:00
Sylvestre Ledru 317aabf25e Bug 1750450 - Fix 'Non-consecutive header level increase' DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D165655
2022-12-31 16:33:30 +00:00
Sandor Molnar e91c05aeeb Bug 1807899 - Fix lint failures. a=fix. CLOSED TREE 2022-12-30 17:47:28 +02:00
Otto Länd ccb0da99e9 Bug 1807899, 1807899: apply code formatting via Lando
# ignore-this-changeset
2022-12-30 15:26:10 +00:00
Sylvestre Ledru e2b52a1324 Bug 1807899 - Remove the trailing whitespace and Windows CR on md files r=linter-reviewers,necko-reviewers,marco,jesup
Differential Revision: https://phabricator.services.mozilla.com/D165662
2022-12-30 15:23:21 +00:00
Sylvestre Ledru ab6806623e Bug 1802906 - Browser Console documentation: remove artifact r=devtools-reviewers,ochameau DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D164968
2022-12-19 11:47:52 +00:00
Nicolas Chevobbe a49c3bce45 Bug 1788033 - [devtools] Update StyleEditor documentation for at-rules sidebar. r=jdescottes.
We take this as an opportunity to update the existing
screenshots of the page as the previous one were quite
outdated.

Differential Revision: https://phabricator.services.mozilla.com/D161684
2022-11-09 16:29:51 +00:00
Mark Banner 02271244d0 Bug 1795322 - Update toolkit module references in devtools. r=devtools-reviewers,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D160025
2022-10-26 08:06:33 +00:00
Csoregi Natalia 5f9da7b301 Backed out 12 changesets (bug 1795322) for causing multiple failures e.g. test_deletion_request_ping.py. CLOSED TREE
Backed out changeset aba25cbcda51 (bug 1795322)
Backed out changeset a4a35005ada9 (bug 1795322)
Backed out changeset 8e8d790eb0f4 (bug 1795322)
Backed out changeset db8903454bd3 (bug 1795322)
Backed out changeset 60cc71c61cad (bug 1795322)
Backed out changeset bc6a674994ad (bug 1795322)
Backed out changeset 6ac8a611f8c7 (bug 1795322)
Backed out changeset 9fb873ecfb31 (bug 1795322)
Backed out changeset c8a7a40c2a2f (bug 1795322)
Backed out changeset f2c118b6c6ce (bug 1795322)
Backed out changeset 38df43b4a70f (bug 1795322)
Backed out changeset 89aea8373411 (bug 1795322)
2022-10-25 23:47:58 +03:00
Mark Banner e97576127a Bug 1795322 - Update toolkit module references in devtools. r=devtools-reviewers,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D160025
2022-10-25 19:49:23 +00:00
Alexandre Poirot a6539ba47e Bug 1793604 - [devtools] Convert Loader.jsm to ESM. r=perftest-reviewers,geckoview-reviewers,preferences-reviewers,owlish,kshampur,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D158582
2022-10-14 12:19:42 +00:00
Alexandre Poirot f2210e7cfb Bug 1700909 - [devtools] Migrate gDevTools.showToolbox from descriptor to commands. r=jdescottes,extension-reviewers,willdurand
This migrate gDevTools.showToolbox, but also the Toolbox now receives a commands right away,
and no longer need to create commands out of the descriptor front.

I'm removing browser_two_tabs as it is focusing on testing Tab Descriptors (RootFront.listTabs+getTab)
and Tab targets (TabDescriptor.getTarget).
Using getTarget on descriptor is legacy codepath for a while now.
We should now rather cover commands instead of these low level RDP methods.

Differential Revision: https://phabricator.services.mozilla.com/D157796
2022-10-11 20:33:53 +00:00
Cristian Tuns 169dfc929e Backed out 5 changesets (bug 1700909) for causing mochitest failures CLOSED TREE
Backed out changeset a49f15f66ed4 (bug 1700909)
Backed out changeset 5a6b15eb1e12 (bug 1700909)
Backed out changeset 67b12d0e350b (bug 1700909)
Backed out changeset 4e6312ea547a (bug 1700909)
Backed out changeset c49eab385e1c (bug 1700909)
2022-10-10 10:38:03 -04:00
Alexandre Poirot 0f9e47bbec Bug 1700909 - [devtools] Migrate gDevTools.showToolbox from descriptor to commands. r=jdescottes,extension-reviewers,willdurand
This migrate gDevTools.showToolbox, but also the Toolbox now receives a commands right away,
and no longer need to create commands out of the descriptor front.

I'm removing browser_two_tabs as it is focusing on testing Tab Descriptors (RootFront.listTabs+getTab)
and Tab targets (TabDescriptor.getTarget).
Using getTarget on descriptor is legacy codepath for a while now.
We should now rather cover commands instead of these low level RDP methods.

Differential Revision: https://phabricator.services.mozilla.com/D157796
2022-10-10 11:28:08 +00:00
Alexandre Poirot 76aed8f004 Bug 1793575 - [devtools] Convert jsdebugger.jsm to jsdebugger.sys.mjs. r=Honza,webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D158571
2022-10-06 14:21:22 +00:00
Julian Descottes 1d51c801d1 Bug 1790583 - DevTools release task service worker test page link is outdated. r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D157201
2022-10-04 05:52:53 +00:00
Andreea Pavel ce81b30f6f Backed out 5 changesets (bug 1700909) for failing browser_ext_addon_debugging_netmonitor.js on a CLOSED TREE
Backed out changeset 9bc3e4820f59 (bug 1700909)
Backed out changeset 998c0ec4f9d3 (bug 1700909)
Backed out changeset 6f6fe066fc38 (bug 1700909)
Backed out changeset e53aaf8ffe5b (bug 1700909)
Backed out changeset 3dbeffe25878 (bug 1700909)
2022-09-29 19:40:43 +03:00
Alexandre Poirot bf8918c2e9 Bug 1700909 - [devtools] Migrate gDevTools.showToolbox from descriptor to commands. r=jdescottes
This migrate gDevTools.showToolbox, but also the Toolbox now receives a commands right away,
and no longer need to create commands out of the descriptor front.

I'm removing browser_two_tabs as it is focusing on testing Tab Descriptors (RootFront.listTabs+getTab)
and Tab targets (TabDescriptor.getTarget).
Using getTarget on descriptor is legacy codepath for a while now.
We should now rather cover commands instead of these low level RDP methods.

Differential Revision: https://phabricator.services.mozilla.com/D157796
2022-09-29 14:43:26 +00:00
Jan Odvarko 33bd75ff69 Bug 1782431 - Documentation issue on devtools-user/about_colon_debugging/index r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D157783
2022-09-28 01:47:01 +00:00
Jan Odvarko 4fbb9f2072 Bug 1792177 - Fix layout and typos on Keyboard shortcuts doc page r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D158016
2022-09-28 01:42:18 +00:00
Alexandre Poirot 8020b268c4 Bug 1791828 - [devtools] Remove devtools lazyImporter in favor of ChromeUtils.defineModuleGetter. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D157910
2022-09-26 10:48:04 +00:00
Ted Campbell 69dfb519c2 Bug 1790912 - Use globalThis instead of this with jsdebugger.jsm. r=jandem,ochameau
Use 'globalThis' instead of 'this' when trying to attach a debugger to the
current global to avoid subtle footguns with the varied definitions of 'this'.
The debugger interface needs a true GlobalObject so this is much clearer. In
particular, this is a problem in test_nativewrappers.js when the test runs in
strict mode since the 'this' in the test function is no long implicitly the
global.

Differential Revision: https://phabricator.services.mozilla.com/D157544
2022-09-25 09:03:33 +00:00
Jan Odvarko 455a50c929 Bug 1761367 - Firefox DevTools User Docs mention removed Web Developer submenu r=jdescottes,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D157789
2022-09-23 12:06:14 +00:00
Jan Odvarko 6dca238bf4 Bug 1789150 - Keyboard shortcuts missing most of shortcuts for Style Editor r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D157709
2022-09-20 13:35:24 +00:00
Jan Odvarko 8d87ce546f Bug 1790578 - Fix links pointing to examples repos r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D157704
2022-09-20 08:33:11 +00:00
Alexandre Poirot 7f9229d43d Bug 1789201 - [devtools] Expose Services as a global to all DevTools modules. r=perftest-reviewers,nchevobbe,julienw,AlexandruIonescu
This will help transition to ES Modules as this symbol is exposed to them.

$ sed -ie "/require(.Services.)/d" $(git grep -l 'require("Services")' devtools/)
$ sed -ie "/loader.lazyRequireGetter(this, .Services./d" $(git grep -l 'loader.lazyRequireGetter(this, "Services"' devtools/)
+ the edition of builtin-modules.js + eslintrc.js
+ manual eslint fixes
+ removal of devtools-services in the debugger, except for jest tests

Differential Revision: https://phabricator.services.mozilla.com/D156401
2022-09-09 07:22:51 +00:00
Sylvestre Ledru a37ab669ff Bug 1530945 - doc: remove an old and unused doc r=Honza DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D156431
2022-09-05 12:50:13 +00:00
Julian Descottes cfa35e439a Bug 1770415 - [devtools] Update documentation about sw debugging r=devtools-reviewers,nchevobbe
Outdated information and screenshots about sw debugging from the application panel.

Differential Revision: https://phabricator.services.mozilla.com/D152158
2022-08-04 12:09:29 +00:00
Julian Descottes 44d25cad52 Bug 1780396 - [devtools] fix typo in docs for devtools throttling speeds r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D152380
2022-07-21 16:29:17 +00:00
Julian Descottes d068c092b3 Bug 1778270 - [devtools] Remove outdated WebIDE documentation r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D152172
2022-07-20 06:55:57 +00:00
Sylvestre Ledru cfaffe8d11 Bug 1765645 - devtools/docs - fix the link to the toolbox r=nchevobbe DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D152148
2022-07-19 09:06:23 +00:00
Sylvestre Ledru 0afc24e913 Bug 1773598 - devtools/docs: remove a html artifact DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D152092
2022-07-19 07:37:46 +00:00
Sylvestre Ledru 76fd00fb39 Bug 1770589 - devtools/doc: fix a typo DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D152086
2022-07-19 07:37:01 +00:00
Sylvestre Ledru 07e3132653 no bug - devtools/doc - remove firefox 68 docs r=nchevobbe DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D152103
2022-07-19 06:58:56 +00:00
Sylvestre Ledru a2e2e9b72e Bug 1765029 - devtools/docs: remove an old link r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D152085
2022-07-19 06:58:27 +00:00
Tooru Fujisawa c26c3f5551 Bug 1667455 - Part 14: Stop importing Services.jsm in documents. r=kmag,necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D150903
2022-07-11 12:41:54 +00:00
Nicolas Chevobbe 5f379dc0b9 Bug 1776145 - [devtools] Remove WebConsoleConnectionProxy. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D150087
2022-07-04 13:27:52 +00:00
Nicolas Chevobbe c6f171a8b1 Bug 1776145 - [devtools] Remove unnecessary WebConsoleUI additionalProxies. r=ochameau,devtools-backward-compat-reviewers,jdescottes.
`WebConsoleConnectionProxy` is now only used for:
- listening to `lastPrivateContextExited`, which can be done from the top-level
  console front instead
- setting `NetworkMonitor.saveRequestAndResponseBodies` for toolbox we don't have
  network resource support for, which would be better done in `startWatchingNetworkResources`.

This means we don't need to keep a Map of additional proxies.
The only impact is on `clearMessagesCache`, where we now fetch all fronts with
`getAllFronts` instead of looping through the Map of additional proxies.
This change highlighted some race condition in tests, as it's now slightly slower.
So we add a new `clearMessagesCacheAsync` function, which is doing the same thing
as `clearMessagesCache`, except it's not `oneway`, so we can know when the cache
was indeed cleared, and we emit an event to indicate when the cache was cleared.
We can't simply remove `oneway` from `clearMessagesCache` as it causes backward
compatibility issues we can't avoid.
This also highlighted an issue with the cache not being cleared on `console.clear`
when it is batched, so we fix this (a test was failing without it).

The next patch in the queue will completely remove `WebConsoleConnectionProxy`.

Differential Revision: https://phabricator.services.mozilla.com/D150085
2022-07-04 13:27:51 +00:00