Commit Graph

393 Commits

Author SHA1 Message Date
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
Nicolas Chevobbe
19bf4f97d1 Bug 1749449 - [devtools] Cleanup hasNativeConsoleAPI state through the codebase. r=jdescottes,devtools-backward-compat-reviewers.
This removes all the mention of this property which aren't
actually used to display the warning message in the end.

Differential Revision: https://phabricator.services.mozilla.com/D135587
2022-01-11 15:17:24 +00:00
James Graham
1501d682e7 Bug 1748845 - Update source-relative links in devtools docs, r=firefox-source-docs-reviewers,Honza,sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D135382
2022-01-11 10:48:20 +00:00
Sebastian Zartner
3a67d45dd3 Bug 1743107 - Added support for HWB colors. r=jdescottes,kpatenio
This change doesn't cover auto-completion for "hwb" yet because it isn't added automatically when generating the properties-db.js.

Differential Revision: https://phabricator.services.mozilla.com/D132992
2021-12-19 12:56:01 +00:00
Emilio Cobos Álvarez
44e44eaf46 Bug 1743310 - Remove paint flashing support from DevTools. r=nchevobbe,devtools-backward-compat-reviewers
It doesn't do anything useful except on a niche WebRender fallback code-path,
so it's confusing.

Differential Revision: https://phabricator.services.mozilla.com/D132311
2021-11-30 11:46:07 +00:00
Alexandre Poirot
487d9677f3 Bug 1740292 - [devtools] Stop calling target front attach method. r=nchevobbe
Previous patches made attach method become a no-op, so all these callsites can be removed.

Differential Revision: https://phabricator.services.mozilla.com/D130913
2021-11-18 10:57:01 +00:00
Julian Descottes
b9f00defcc Bug 1736321 - [devtools] Document DevTools Sheriffing process r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D128717
2021-11-17 16:16:43 +00:00
Jan Odvarko
90968a4061 Bug 1740964 - [devtools] The link for yarn is outdated r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D131330
2021-11-17 14:21:41 +00:00
Julian Descottes
212faeb0c3 Bug 1741369 - [devtools] Update paths to loader files in devtools/ r=ochameau
Depends on D131216

Differential Revision: https://phabricator.services.mozilla.com/D131217
2021-11-17 12:43:26 +00:00
Sylvestre Ledru
39a2e463ea Bug 1714788 - doc: Fix a Pygments warning r=firefox-source-docs-reviewers,championshuttler DONTBUILD
Warning:
lexer name 'bz_comment_text' is not known

Depends on D131047

Differential Revision: https://phabricator.services.mozilla.com/D131095
2021-11-16 07:59:49 +00:00
Sylvestre Ledru
1df999712f Bug 1714788 - doc: do not provide the language if the code isn't valid r=firefox-source-docs-reviewers,championshuttler DONTBUILD
Otherwise, the warning is displayed:
```
WARNING: Could not lex literal_block as "json". Highlighting skipped.
```

Depends on D131092

Differential Revision: https://phabricator.services.mozilla.com/D131093
2021-11-16 07:59:48 +00:00