Commit Graph

403 Commits

Author SHA1 Message Date
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
Bogdan Szekely
f202b51354 Bug 1752374 - fixed lint failures r=lint-fix CLOSED TREE 2022-06-23 15:52:52 +03:00
Julien Wajsberg
bee5e18654 Bug 1752374 - [devtools documentation] Remove the documentation about the old performance panel r=jdescottes DONTBUILD
This replaces the documentation by a link to the online documentation to
the Firefox Profiler.

Differential Revision: https://phabricator.services.mozilla.com/D150005
2022-06-23 12:20:01 +00:00
Nicolas Chevobbe
d0ec19672d Bug 1770899 - [devtools] Use RemoteSettings devtools-devices collection. r=jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D149405
2022-06-17 06:44:18 +00:00
Julian Descottes
edc9af2bff Bug 1773203 - [devtools] Improve failure message and documentation for devtools-bundle job r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D148607
2022-06-08 07:47:25 +00:00
Julian Descottes
dbae8b1743 Bug 1770882 - [devtools] Documentation: fix unit for throttling profiles r=nchevobbe
Depends on D147131

As mentioned on https://bugzilla.mozilla.org/show_bug.cgi?id=1471539#c8

Differential Revision: https://phabricator.services.mozilla.com/D147147
2022-05-24 13:10:02 +00:00
Nicolas Chevobbe
eab2a86cbe Bug 1668219 - [devtools] Remove now unused performance actor and front. r=julienw,devtools-backward-compat-reviewers.
Differential Revision: https://phabricator.services.mozilla.com/D145463
2022-05-06 17:16:28 +00:00
Tooru Fujisawa
8c9eb71d74 Bug 1765167 - Part 2: Stop using Cu.import in devtools/. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D144095
2022-05-03 06:32:29 +00:00
Alexandre Poirot
ee871dd92b Bug 1764505 - [devtools] Migrate Tool's definition isTargetSupport to isToolSupported. r=nchevobbe
And pass a toolbox instead of only the toplevel target.
It helps identify the browser toolbox and easily enable/disable tools for it.

Differential Revision: https://phabricator.services.mozilla.com/D143628
2022-04-20 15:15:06 +00:00
Nicolas Chevobbe
70b0d12ee4 Bug 1765240 - [devtools] Remove ObjectActor#decompile. r=ochameau,devtools-backward-compat-reviewers,jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D143972
2022-04-20 08:05:35 +00:00
Julian Descottes
7ae3393b2f Bug 1762837 - [devtols] Update DAMP docs to suggest --suite instead of --activeTests r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D143981
2022-04-19 11:56:45 +00:00
a153
1624d06d6b Bug 1762483 - Spelling mistake: 'DOM notes' -> 'DOM nodes' r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D143550
2022-04-14 05:33:36 +00:00
osBins
3199694f9f Bug 1755656 - [devtools] Updated fixing-bugs doc for CSS changes. r=Honza
added `mach build faster` command to doc to show local changes.

Differential Revision: https://phabricator.services.mozilla.com/D139228
2022-02-21 10:32:24 +00:00
Sylvestre Ledru
caaedeee98 Bug 1753413 - fx doc: Remove whitespaces, trailing lines & windows CR r=andi,perftest-reviewers,sparky
Differential Revision: https://phabricator.services.mozilla.com/D137741
2022-02-03 18:34:58 +00:00
Julian Descottes
b5d88e3cb3 Bug 1752796 - [devtools] Fix image links in devtools/docs/user/page_inspector/ui_tour/index.rst r=Honza
Missing semicolon in some image links

Differential Revision: https://phabricator.services.mozilla.com/D137403
2022-02-03 15:55:03 +00:00
Julian Descottes
5c16e42779 Bug 1743618 - [devtools] Update links in release tasks page to show up as actual links r=Honza
Depends on D137282

Not sure if this regressed after a sphinx update, but the links are not clickable at the moment.

Differential Revision: https://phabricator.services.mozilla.com/D137283
2022-01-31 12:32:33 +00:00
Julian Descottes
0f17c8c689 Bug 1743618 - [devtools] Fix link to service worker test page in release tasks docs r=Honza
This link has not been working for a while, switching to an MDN example page.
We should still come up with example pages hosted on a domain owned by devtools team if possible
(and not on the personal github account of a team member :) )

Depends on D137141

Differential Revision: https://phabricator.services.mozilla.com/D137282
2022-01-31 12:32:33 +00:00
Jan Odvarko
82482e661f Bug 1752319 - [devtools] Fix MDN links in DevTools contributor docs r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D137141
2022-01-28 09:02:26 +00:00
Jan Odvarko
21b3090758 Bug 1750190 - [devtools] Fix MDN links in DevTools user docs r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D135992
2022-01-18 12:34:57 +00:00
Hubert Boma Manilla
651cc06518 Bug 1750560 - Update the code to run damp on try r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D136126
2022-01-17 18:18:04 +00:00