Commit Graph
260 Commits
Author SHA1 Message Date
Emilio Cobos Álvarez f7551929f8 Bug 1916098 - Remove appcontent box. r=dao,desktop-theme-reviewers,devtools-reviewers,tabbrowser-reviewers,nchevobbe
gNotificationBox doesn't go there anymore (it goes inside the toolbox),
so we have really no use for that.

Simplify how the devtools theme is set on the browser, so that it is set
on the root.

Differential Revision: https://phabricator.services.mozilla.com/D220769
2024-09-02 13:47:45 +00:00
Alexandre Poirot 3396c9add0 Bug 1867603 - [devtools] Introduce a tracer command to toggle tracing without the debugger. r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D195125
2023-12-02 08:53:38 +00:00
Magnus Melin d85a9133fd Bug 1861492 - don't try to set devtools menus etc. for non-Firefox apps. r=devtools-reviewers,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D192000
2023-10-30 16:48:02 +00:00
Alexandre Poirot 140d755231 Bug 1845768 - [devtools] Only try to open URL as JS files in debugger/view-source if DevTools are opened in the current tab. r=devtools-reviewers,perftest-reviewers,jdescottes,sparky
This will prevent opening any links with the ":\d+" suffix anytime devtools were opened in the past.

Differential Revision: https://phabricator.services.mozilla.com/D185826
2023-08-21 08:01:36 +00:00
Julian Descottes 35583e201f Bug 1704521 - [devtools] Add a preference to disable the F12 shortcut r=devtools-reviewers,fluent-reviewers,nchevobbe,flod
Depends on D143835

Differential Revision: https://phabricator.services.mozilla.com/D179463
2023-05-31 15:26:36 +00:00
Julian Descottes d1edae7574 Bug 1704521 - [devtools] Remove F12 experiment preference r=devtools-reviewers,nchevobbe
Depends on D143833

Differential Revision: https://phabricator.services.mozilla.com/D143835
2023-05-31 15:26:36 +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
Alexandre Poirot 8193dd095a Bug 1824725 - [devtools] Add a global key shortcut to toggle JavaScript tracing. r=devtools-reviewers,fluent-reviewers,flod,nchevobbe
This key will be trigerred even when devtools aren't focused.
We are willing to trigger this key especially when the page is focused.
But the shortcut will only do something when the debugger is opened.

This feature highlights that JS tracing may as well work solely based
on the WebConsole... we may want to followup to make this feature work
across console and debugger.

Differential Revision: https://phabricator.services.mozilla.com/D174097
2023-04-12 14:54:55 +00:00
Alexandre Poirot 8f56a367c2 Bug 1593753 - [devtools] Remove the "Browser Content Toolbox". r=jdescottes
The Browser Toolbox should be handy enough now with parent versus multiprocess modes
to debug the content process. The context selector in the right of the console evaluation
of the browser console and toolbox allow to select the content processes.
The thread selector in the debugger also allow to distinguish content processes.

Differential Revision: https://phabricator.services.mozilla.com/D164704
2022-12-21 13:57:49 +00:00
Alexandre Poirot 6cfca638f1 Bug 1797730 - [devtools] Rename gDevTools._toolboxes to gDevTools._toolboxesPerCommands. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D160618
2022-10-29 07:48:08 +00:00
Alexandre Poirot ffd7345b1f Bug 1797730 - [devtools] Fix typo preventing to close devtools on browser toolbox closing. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D160562
2022-10-29 07:48:07 +00:00
Alexandre Poirot c6d540d7d3 Bug 1794773 - [devtools] gDevTools.showToolbox should wait for toolbox to be "raised". r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D159142
2022-10-20 10:10:37 +00:00
Alexandre Poirot 0a2f14ed30 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 c136da03a9 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 0ad9d97fbc 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 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 9beeb07755 Bug 1792847 - [devtools] Use absolute URLs to import modules in devtools/client/framework. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D158373
2022-09-30 15:17:36 +00:00
Andreea Pavel 734e00a91f 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 2fa2a439ea 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
Alexandre Poirot 52cc15a830 Bug 1791055 - [devtools] Migrate to CommandsFactory to instantiate all descriptors. r=jdescottes,perftest-reviewers,AlexandruIonescu
This help factorise all code trying to instantiate a server and a client everywhere.
This will also help migrate from descriptor to commands in Toolbox constructor.

A good way to track all leftover manual instantiation of descriptors is to look for mainRoot.get*.
There should only be tests now, and descriptor-from-url, which I would to convert once
we migrate toolbox constructor from descriptor to commands.

Differential Revision: https://phabricator.services.mozilla.com/D157737
2022-09-24 07:14:58 +00:00
Nicolas Chevobbe 48647cab11 Bug 1788601 - [devtools] Fix ESLint consistent-return failures in devtools/client/framework. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D156159
2022-09-12 17:41:33 +00:00
Alexandre Poirot 86c7a14e62 Bug 1789202 - [devtools] Expose ChromeUtils as a global to all DevTools modules. r=perftest-reviewers,nchevobbe,AlexandruIonescu
This will help transition to ES Modules as this symbol is exposed to them.

$ sed -ie "/require(.ChromeUtils.)/d" $(git grep -l 'require("ChromeUtils")' devtools/)
$ sed -ie "/loader.lazyRequireGetter(this, .ChromeUtils./d" $(git grep -l 'loader.lazyRequireGetter(this, "ChromeUtils"' devtools/)
+ the edition of builtin-modules.js + eslintrc.js + manual eslint fixes

Differential Revision: https://phabricator.services.mozilla.com/D156402
2022-09-09 07:22:51 +00:00
Alexandre Poirot 0f32f335e3 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
Alexandre Poirot b1ec4a4679 Bug 1783821 - [devtools] Manual rewrites r=bomsy
In md files and code comments and mostly from common js files.

I'm moving away from require to load sys.mjs files so that we are closer
to what we do in mozilla-central.

Differential Revision: https://phabricator.services.mozilla.com/D154073
2022-09-05 12:29:57 +00:00
Ben Hearsum 8003e73146 Bug 1766636: ensure Browser Content Toolbox groups with the correct Windows taskbar icon r=nchevobbe,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D152461
2022-08-08 15:59:38 +00:00
Mark Banner 6d03c63e2d Bug 1330099 - Enable object-shorthand eslint rule. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D153567
2022-08-03 14:57:05 +00:00
Alexandre Poirot ee6c6aa574 Bug 1774937 - [devtools] Allow to debug slow script without having devtools opened beforehand. r=jdescottes
The test doesn't really cover this fix as mochitest head files will force loading gDevTools...
To properly cover that we would have to have this test in another file and folder without any head.
This will make it hard to reuse Debugger test helpers. Let's assume we cover the modified feature
while not covering the very precise regression I fix here.

Differential Revision: https://phabricator.services.mozilla.com/D150155
2022-06-30 17:18:55 +00:00
Alexandre Poirot 18a6abf5ae Bug 1774937 - [devtools] Fix breaking on slow scripts. r=jdescottes
We weren't waiting for interrupt to have fully paused the thread
before trying to resume when the state was "attached".

Differential Revision: https://phabricator.services.mozilla.com/D150154
2022-06-30 17:18:54 +00:00
Emilio Cobos Álvarez 8f19ad4e7a Bug 1670480 - Add an "auto" theme for devtools which follows the browser's color scheme. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D128093
2021-10-12 09:25:05 +00:00
Mike Kaply 8da3bdfee4 Bug 1716630 - Test for developer tools on app menu when developer tools are disabled is set. r=emalysz
Differential Revision: https://phabricator.services.mozilla.com/D117933
2021-06-15 21:41:41 +00:00
Mike Kaply dab76eee97 Bug 1715777 - Hide individual developer menuitems if devtools disabled by policy. r=emalysz?
Differential Revision: https://phabricator.services.mozilla.com/D117548
2021-06-14 14:04:44 +00:00
Alexandre Poirot c66a185fac Bug 1712686 - [devtools] Pull DevToolsClient from commands object instead of target fronts. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D115862
2021-05-26 08:23:34 +00:00
Julian Descottes f98c0a05c5 Bug 1695046 - [devtools] Use the same signature for showToolbox and showToolboxForTab r=ochameau,nchevobbe,rpl
Depends on D107100

Differential Revision: https://phabricator.services.mozilla.com/D106539
2021-03-11 06:32:15 +00:00
Julian Descottes 1aa706cbd5 Bug 1694906 - [devtools] Use descriptors instead of targets in all toolbox APIs r=ochameau,nchevobbe,rpl,perftest-reviewers,sparky
Depends on D107051

Differential Revision: https://phabricator.services.mozilla.com/D106426
2021-03-10 18:22:02 +00:00
Narcis Beleuzu fe8e6266b2 Backed out 5 changesets (bug 1694906) for dt failures on browser_target_list_frames.js . CLOSED TREE
Backed out changeset bd5cb6f8b41f (bug 1694906)
Backed out changeset c23343373584 (bug 1694906)
Backed out changeset 02428006de51 (bug 1694906)
Backed out changeset 284e000deded (bug 1694906)
Backed out changeset 3b5269fe0113 (bug 1694906)
2021-03-10 04:52:56 +02:00
Julian Descottes d50a0b5cb7 Bug 1694906 - [devtools] Use descriptors instead of targets in all toolbox APIs r=ochameau,nchevobbe,rpl
Depends on D107051

Differential Revision: https://phabricator.services.mozilla.com/D106426
2021-03-09 20:50:42 +00:00
Alexandre Poirot c1476632a9 Bug 1695929 - [devtools] Remove redundant TargetFrontMixin's close event, in favor of target-destroyed. r=jdescottes,nchevobbe
This is mostly used by tests and we do not really benefit from having two distinct events.
We are not using the fact that close is emitted immediately.

Differential Revision: https://phabricator.services.mozilla.com/D107062
2021-03-09 08:56:58 +00:00
Dorel Luca a20ce84a39 Backed out 3 changesets (bug 1695929) for Devtool failures in devtools/client/shared/test/browser_dbg_listtabs-03.js. CLOSED TREE
Backed out changeset 0fb780c2319a (bug 1695929)
Backed out changeset c716d7eeb478 (bug 1695929)
Backed out changeset afd5ecd702da (bug 1695929)
2021-03-08 13:38:28 +02:00
Alexandre Poirot d5d5de8cb1 Bug 1695929 - [devtools] Remove redundant TargetFrontMixin's close event, in favor of target-destroyed. r=jdescottes,nchevobbe
This is mostly used by tests and we do not really benefit from having two distinct events.
We are not using the fact that close is emitted immediately.

Differential Revision: https://phabricator.services.mozilla.com/D107062
2021-03-08 10:30:52 +00:00
smolnar d0ec233778 Backed out changeset 59da0caf4b8e (bug 1694906) for causing browser-chrome failures in browser_ext_addon_debugging_netmonitor. CLOSED TREE 2021-03-03 12:40:50 +02:00
Julian Descottes 9998b462ef Bug 1694906 - [devtools] Use descriptors instead of targets in all toolbox APIs r=ochameau,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D106426
2021-03-03 09:10:48 +00:00
Jens Stutte 9a46720c62 Bug 1678330: Ensure nested SpinEventLoopUntil(OrShutdown) calls are traceable to the originating source in case of crash. r=nika,extension-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D106839
2021-03-02 22:11:58 +00:00
Cosmin Sabou 8ec6cda9d8 Backed out changeset 03cae7800b41 (bug 1678330) for mochitest plain failures on test_window_open_discarded_bc.html. CLOSED TREE 2021-03-02 20:18:21 +02:00
Jens Stutte 7ef53cdaed Bug 1678330: Ensure nested SpinEventLoopUntil(OrShutdown) calls are traceable to the originating source in case of crash. r=nika,extension-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D106839
2021-03-02 15:15:20 +00:00
Julian Descottes 4e9b4716e5 Bug 1694140 - [devtools] Stop using TargetFactory.forTab in devtools code r=perftest-reviewers,ochameau
Depends on D105998

Differential Revision: https://phabricator.services.mozilla.com/D105999
2021-02-25 18:02:51 +00:00
Brindusan Cristian ae215d4017 Backed out 10 changesets (bug 1694140, bug 1694886, bug 1688688) for devtools failures on browser_CORS-console-warnings.js. CLOSED TREE
Backed out changeset 1b7367a27d9a (bug 1694886)
Backed out changeset d5a70a3143ad (bug 1694140)
Backed out changeset 74adaced5c0a (bug 1694140)
Backed out changeset 0b8f857e3f90 (bug 1694140)
Backed out changeset 45a8dc952aba (bug 1694140)
Backed out changeset 299f17e9cb6f (bug 1694140)
Backed out changeset 6beb9dd48ef3 (bug 1694140)
Backed out changeset 5f6688e8fe4c (bug 1694140)
Backed out changeset ae1fa0484c91 (bug 1688688)
Backed out changeset 8a0f5c24ed9a (bug 1688688)
2021-02-25 16:07:39 +02:00
Julian Descottes 459e76a1f4 Bug 1694140 - [devtools] Stop using TargetFactory.forTab in devtools code r=perftest-reviewers,ochameau
Depends on D105998

Differential Revision: https://phabricator.services.mozilla.com/D105999
2021-02-25 12:58:14 +00:00
Julian Descottes 9747b9ef20 Bug 1600291 - [devtools] Remove gDevToolsBrowser.openWorkerToolbox r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D105780
2021-02-22 13:40:42 +00:00
Gabriel Luong 2f4e2f1d27 Bug 1690340 - Part 1: Hide all the panel tools in the developer tools menu. r=jdescottes
For now, we hide all the individual panel tools from the developer tools menu.

We will want to evaluate whether or not to remove all the logic for adding all
the tools to the menu in the future if we see a permanent need for no longer
having it.

See https://searchfox.org/mozilla-central/rev/d3343662ce0aced933b30e053b33c93f759292eb/devtools/client/framework/browser-menus.js#197

Differential Revision: https://phabricator.services.mozilla.com/D104868
2021-02-16 22:37:22 +00:00
Tim Nguyen 76421f8b69 Bug 1692097 - Remove remaining X.setAttribute("hidden", "true") references from devtools/client. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D104774
2021-02-11 09:45:09 +00:00