Commit Graph
164 Commits
Author SHA1 Message Date
Sylvestre Ledru 074b376055 Bug 2023419 - Remove Emacs/Vim modelines from devtools/ r=emilio,devtools-backward-compat-reviewers,devtools-reviewers,nchevobbe
replaced by .editorconfig
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D287841
2026-03-28 10:21:10 +00:00
Alexandru Marc 630e6cf0e8 Revert "Bug 2023419 - Remove Emacs/Vim modelines from devtools/ r=emilio,devtools-backward-compat-reviewers,devtools-reviewers,nchevobbe" for causing devtools failures
This reverts commit ed535dace9.
2026-03-17 12:46:01 +00:00
Sylvestre Ledru ed535dace9 Bug 2023419 - Remove Emacs/Vim modelines from devtools/ r=emilio,devtools-backward-compat-reviewers,devtools-reviewers,nchevobbe
replaced by .editorconfig

Differential Revision: https://phabricator.services.mozilla.com/D287841
2026-03-17 12:03:34 +00:00
Mark Banner b38cd3110b Bug 1999554 - Automatically fix ESLint rule jsdoc/check-types for devtools/. r=devtools-reviewers,devtools-backward-compat-reviewers,profiler-reviewers,canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D272173
2025-11-21 16:16:08 +00:00
Mark Banner 2542790f53 Bug 1998787 - Automatic fixes for enabling ESLint jsdoc/tag-line rule everywhere. r=frontend-codestyle-reviewers,mtigley,perftest-reviewers,nchevobbe,home-newtab-reviewers,Gijs,mconley,sparky
Differential Revision: https://phabricator.services.mozilla.com/D271745
2025-11-10 21:27:12 +00:00
Florian Quèze 723ed202c0 Bug 1901215 - bucket long arrays in the JSON viewer, r=devtools-reviewers,ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D270516
2025-11-04 14:47:23 +00:00
Nicolas Chevobbe 6bb59cc042 Bug 1821876 - [devtools] Change color of colon after property name in JSON viewer. r=devtools-reviewers,ochameau.
This makes it consistent with what we do in Reps.

Differential Revision: https://phabricator.services.mozilla.com/D270804
2025-11-04 12:54:21 +00:00
Mark Banner e4d3bbab0b Bug 1881270 - Fix no-case-declarations in devtools/ code. r=devtools-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D266006
2025-09-25 18:33:14 +00:00
agoloman f0289ea0d2 Revert "Bug 1881270 - Fix no-case-declarations in devtools/ code. r=devtools-reviewers,jdescottes" for causing mochitest failures @test_suppressed_events_nested_iframe.html.
This reverts commit 8e7d559526.

Revert "Bug 1881270 - Fix no-case-declarations issues in extensions code. r=extension-reviewers,willdurand"

This reverts commit 2a0800455d.

Revert "Bug 1881270 - Fix ESLint no-case-declarations issues in various files. r=frontend-codestyle-reviewers,necko-reviewers,media-playback-reviewers,layout-reviewers,dom-worker-reviewers,padenot,mossop,asuth,TYLin"

This reverts commit 3c05c4bfee.
2025-09-25 15:04:21 +00:00
Mark Banner 8e7d559526 Bug 1881270 - Fix no-case-declarations in devtools/ code. r=devtools-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D266006
2025-09-25 10:34:16 +00:00
hannajones ebb4af9656 Bug 1606785 - Format devtools CSS files with Prettier r=devtools-reviewers,nchevobbe,frontend-codestyle-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D249174
2025-05-28 02:08:02 +00:00
agoloman 63c83deb26 Revert "Bug 1606785 - Enable Prettier for CSS files r=desktop-theme-reviewers,Standard8,frontend-codestyle-reviewers,emilio" for causing multiple failures.
This reverts commit ec5fa1d4c0.

Revert "Bug 1606785 - Format Firefox CSS files with Prettier r=desktop-theme-reviewers,perftest-reviewers,places-reviewers,translations-reviewers,omc-reviewers,backup-reviewers,browser-installer-reviewers,sparky,dao,pdahiya,nrishel,kpatenio"

This reverts commit baa5d72bbd.

Revert "Bug 1606785 - Format browser/themes and toolkit/themes CSS files with Prettier r=desktop-theme-reviewers,pip-reviewers,tabbrowser-reviewers,places-reviewers,dao,mconley"

This reverts commit 9604b0a8ae.

Revert "Bug 1606785 - Format browser/themes/preferences CSS files with Prettier r=settings-reviewers,desktop-theme-reviewers,dao,mconley"

This reverts commit 686c1cf85f.

Revert "Bug 1606785 - Format urlbar CSS files with Prettier r=urlbar-reviewers,desktop-theme-reviewers,dao"

This reverts commit a7a4f31251.

Revert "Bug 1606785 - Format webcompat CSS files with Prettier r=webcompat-reviewers,denschub"

This reverts commit 41bc4d5237.

Revert "Bug 1606785 - Format search CSS files with Prettier r=search-reviewers,jteow"

This reverts commit 7bb7f82374.

Revert "Bug 1606785 - Format dom CSS files with Prettier r=emilio"

This reverts commit c22e910235.

Revert "Bug 1606785 - Format android CSS files with Prettier r=geckoview-reviewers,hiro"

This reverts commit c08e43fc3d.

Revert "Bug 1606785 - Format layout CSS files with Prettier r=layout-reviewers,dholbert"

This reverts commit 4f2a32d1a4.

Revert "Bug 1606785 - Format devtools CSS files with Prettier r=devtools-reviewers,nchevobbe,frontend-codestyle-reviewers"

This reverts commit c05f675ddf.

Revert "Bug 1606785 - Format recomp CSS files with Prettier r=reusable-components-reviewers,desktop-theme-reviewers,dao,mkennedy"

This reverts commit b10c7de8d0.

Revert "Bug 1606785 - Format sidebar CSS files with Prettier r=sidebar-reviewers,desktop-theme-reviewers,dao,nsharpley"

This reverts commit d32c555e37.

Revert "Bug 1606785 - Format shopping CSS files with Prettier r=shopping-reviewers,desktop-theme-reviewers,dao,rking"

This reverts commit 965887a708.

Revert "Bug 1606785 - Format profiles CSS files with Prettier r=profiles-reviewers,desktop-theme-reviewers,dao,mossop"

This reverts commit 8338860f74.

Revert "Bug 1606785 - Format genai and ml CSS files with Prettier r=firefox-ai-ml-reviewers,Mardak"

This reverts commit d66681f553.

Revert "Bug 1606785 - Format firefoxview CSS files with Prettier r=fxview-reviewers,desktop-theme-reviewers,dao,jsudiaman"

This reverts commit 530b815cad.

Revert "Bug 1606785 - Format aboutlogins, megalist, and form autofill CSS files with Prettier r=credential-management-reviewers,mtigley,desktop-theme-reviewers,dao"

This reverts commit 813c864381.
2025-05-21 04:49:28 +00:00
hannajones c05f675ddf Bug 1606785 - Format devtools CSS files with Prettier r=devtools-reviewers,nchevobbe,frontend-codestyle-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D249174
2025-05-21 03:54:40 +00:00
Alexandre Poirot b035bae609 Bug 1952190 - [devtools] Fix PropTypes imports. r=devtools-reviewers,jdescottes
PropTypes exports a default value, which is `PropTypes` object,
so let's use this. It isn't clear why the dev version introduce any difference.

Differential Revision: https://phabricator.services.mozilla.com/D240614
2025-03-06 14:01:29 +00:00
Alexandre Poirot cef5570dd0 Bug 1929387 - [devtools] Prevent sharing default props objects between TreeView instances. r=devtools-reviewers,nchevobbe
The previous setup was spawning the TreeView once per DOM Panel instantiation,
so that defaultProps would be shared across all subsequent instances of TreeView
for a given DOM Panel instance.
The new setup makes it now shared across toolbox restart and makes
the expanded node be remembered across toolbox reboot.

But we were actually reliable on that unexpected sharing of expandedNodes Set
on TreeView props... so I had to ensure setting a stable expandedNodes props
from DomTree so that it isn't reset on each new receivingProps!

Differential Revision: https://phabricator.services.mozilla.com/D239054
2025-03-05 17:06:03 +00:00
Alexandre Poirot abae55ed07 Bug 1929387 - [devtools] Convert scroll module to ES Module. r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D229001
2025-03-05 17:06:01 +00:00
Alexandre Poirot 6fda8456bd Bug 1929387 - [devtools] Convert focus to ES Module. r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D229000
2025-03-05 17:06:00 +00:00
Alexandre Poirot cdb2b5a101 Bug 1929387 - [devtools] Rename Tree shared component modules to .mjs. r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D240348
2025-03-05 17:06:00 +00:00
Alexandre Poirot f9515764a5 Bug 1929387 - [devtools] Convert Tree shared component to ES Modules. r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D228999
2025-03-05 17:05:59 +00:00
Nicolas Chevobbe 8291b45522 Bug 1948719 - [devtools] Bump up string crop limit in JSON Viewer. r=devtools-reviewers,jdescottes.
The string length limit was set in 2 places:
- when creating the Rep, with the `cropLimit` prop
- but it was also hardcoded in the `TreeView`, in `isLongString`

So here we bump up `cropLimit`, and we add a new `maxStringLength`
prop in `TreeView` that will control the length at which
a given string should get a twisty.

Differential Revision: https://phabricator.services.mozilla.com/D238558
2025-02-18 08:03:39 +00:00
krishpdev cfd16e7c13 Bug 1267242 - Remove underline declaration for when cursor hovers DOM. r=nchevobbe,devtools-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D236556
2025-02-04 06:34:38 +00:00
Nicolas Chevobbe cbbb34f212 Bug 1431808 - [devtools] Display JSON source number when it's different from JS parsed value in JsonViewer. r=devtools-reviewers,bomsy.
This uses a reviver function in JSON.parse that checks if parsed numbers are
different from their source, and in such case, display both the actual source
as well as the JS parsed value next to it as a "warning", with a title explaining
that the JS parsed value is different from the source.

Under the hood, this is using a new Rep that checks for the specific type
we set in the parse function for such numbers. This also means the ObjectProvider
had to be updated to not render the object "grip" we're constructing as having
child properties.

A test is added to cover those different things.

Differential Revision: https://phabricator.services.mozilla.com/D234328
2025-01-17 11:32:46 +00:00
Alexandre Poirot e534a6bd5e Bug 1929388 - [devtools] Move JSONViewer to absolute URLs. r=devtools-reviewers,nchevobbe
This also required to migrate external dependencies to absolute URLs.

Differential Revision: https://phabricator.services.mozilla.com/D228993
2024-11-14 21:43:33 +00:00
James Teh aa6433b484 Bug 1898661: In the Dev Tools tree LabelCell and TreeCell components, don't aria-labelledby the span with the column header. r=devtools-reviewers,nchevobbe
Now that the a11y engine correctly traverses aria-labelledby during name computation per the spec, the aria-labelledby overrides the content of the cell when computing the name for the tree item.
Strictly speaking, putting aria-labelledby on a span is a spec violation these days anyway.

Differential Revision: https://phabricator.services.mozilla.com/D211503
2024-05-27 06:40:35 +00:00
Dave Townsend 2af4d349f3 Bug 1864896: Autofix unused function arguments (devtools). r=profiler-reviewers,devtools-reviewers,nchevobbe,julienw
Differential Revision: https://phabricator.services.mozilla.com/D202959
2024-03-05 14:21:15 +00:00
Hubert Boma Manilla 27535ff27d Bug 1864905 - [devtools] Use strict inequality for comparing member props r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D193785
2023-11-16 16:57:19 +00:00
Nicolas Chevobbe 27a299dc67 Bug 1855200 - [devtools] Fix and harmonize focus indicator across the toolbox. r=devtools-reviewers,ochameau.
The new focus indicator is bigger and has a better contrast, making it more accessible
than the thin dotted line we had previously.
It also includes a white box-shadow so even on our blue "active/selected" backgrounds,
the indicator is still visible (e.g. in the markup view, for a selected node, with
focus on badges / text inputs).

Finally, I tried to go over the elements of the shared components and most used
panels to adjust the outline offset when it was not visible/clipped, or when
it could be conflated with the focused element border/background.

Differential Revision: https://phabricator.services.mozilla.com/D192185
2023-11-03 10:05:53 +00:00
Zachary Svoboda 824d105a3d Bug 1673582 - Introduce theme-link-color for better contrast on devtools links r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D187863
2023-09-19 07:00:47 +00:00
Hubert Boma Manilla 5a5b77aebb Bug 1849946 - [devtools] Switch to do strict inequality check r=devtools-reviewers,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D187102
2023-09-05 10:51:12 +00:00
Mark Banner 0666077666 Bug 1826062 - Automatic fixes for upgrading Prettier to 2.8.8. r=mossop,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,denschub,devtools-reviewers,sparky,calu
Differential Revision: https://phabricator.services.mozilla.com/D177027
2023-05-20 12:26:53 +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
Zachary Svoboda 1fb9894515 Bug 1537712 - Listen for key modifiers in json view hotkeys r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D160148
2022-10-26 19:08:18 +00:00
Mark Banner 3387a89bc7 Bug 1786197 - Turn on ESLint rule for prefer-boolean-length-check for devtools. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D155167
2022-08-26 13:39:34 +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
Tetsuharu Ohzeki 7c92bd768e Bug 1508688 - Add UNSAFE_ prefix to React deprecated lifecycle methods in devtools/client/shared/. r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D149483
2022-06-16 10:03:11 +00:00
Sebastian Zartner b7be1d93cb Bug 1746824 - Added JsonML Rep. r=nchevobbe,devtools-backward-compat-reviewers
This Rep hooks into the default display of objects and outputs a JsonML (http://www.jsonml.org) representation of them if custom formatters are enabled and a custom formatter is defined for them.
It handles headers and bodies of custom formatters. Bodies are handled asynchronously from their corresponding headers.

Because custom formatters allow a website to provide CSS styles to be used for formatting an object within the DevTools, those styles are filtered first to avoid breaking their layout.

It is currently only applied to the output of the Webconsole and within the variable value popup and the watch expressions within the Debugger.

***

Differential Revision: https://phabricator.services.mozilla.com/D140119
2022-04-28 18:50:30 +00:00
Kartik Gautam 98f23747dc Bug 1679452 - Replace :not(X):not(Y) with :not(X, Y) r=ntim
Differential Revision: https://phabricator.services.mozilla.com/D100147
2020-12-19 11:24:13 +00:00
Ricky Stewart 31b8ca9716 Bug 1654103: Standardize on Black for Python code in mozilla-central.
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Make some ad-hoc manual updates to `testing/marionette/client/setup.py`, `testing/marionette/harness/setup.py`, and `testing/firefox-ui/harness/setup.py`, which have hard-coded regexes that break after the reformat.

5. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-26 18:34:53 +00:00
Bogdan Tara 612312a64c Backed out 10 changesets (bug 1654103, bug 1672023, bug 1518999) for PanZoomControllerTest.touchEventForResult gv-junit failures CLOSED TREE
Backed out changeset ff3fb0b4a512 (bug 1672023)
Backed out changeset e7834b600201 (bug 1654103)
Backed out changeset 807893ca8069 (bug 1518999)
Backed out changeset 13e6b92440e9 (bug 1518999)
Backed out changeset 8b2ac5a6c98a (bug 1518999)
Backed out changeset 575748295752 (bug 1518999)
Backed out changeset 65f07ce7b39b (bug 1518999)
Backed out changeset 4bb80556158d (bug 1518999)
Backed out changeset 8ac8461d7bd7 (bug 1518999)
Backed out changeset e8ba13ee17f5 (bug 1518999)
2020-10-24 03:36:18 +03:00
Ricky Stewart 065d2eb893 Bug 1654103: Standardize on Black for Python code in mozilla-central. r=remote-protocol-reviewers,marionette-reviewers,webdriver-reviewers,perftest-reviewers,devtools-backward-compat-reviewers,jgilbert,preferences-reviewers,sylvestre,maja_zf,webcompat-reviewers,denschub,ntim,whimboo,sparky
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Make some ad-hoc manual updates to `testing/marionette/client/setup.py`, `testing/marionette/harness/setup.py`, and `testing/firefox-ui/harness/setup.py`, which have hard-coded regexes that break after the reformat.

5. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-23 20:40:42 +00:00
Dorel Luca 95b44c982f Backed out changeset 7558c8821a07 (bug 1654103) for multiple failures. CLOSED TREE 2020-10-22 03:51:06 +03:00
Ricky Stewart 43baed3c18 Bug 1654103: Standardize on Black for Python code in mozilla-central. r=remote-protocol-reviewers,marionette-reviewers,webdriver-reviewers,perftest-reviewers,devtools-backward-compat-reviewers,jgilbert,preferences-reviewers,sylvestre,maja_zf,webcompat-reviewers,denschub,ntim,whimboo,sparky
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-21 21:27:27 +00:00
Christoph Kerschbaumer 161f7ad113 Bug 1652997: Package all devtools css files and load them using the internal chrome: protocol. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D83656
2020-07-15 16:02:28 +00:00
Sebastian Hengst 2a2459f031 Backed out 3 changesets (bug 1145314) on request from ckerschb for regressions (e.g. bug 1650951)
Backed out changeset 664cc562ddf3 (bug 1145314)
Backed out changeset 9640a9d093c7 (bug 1145314)
Backed out changeset 5492ac0e42f7 (bug 1145314)
2020-07-07 09:32:27 +02:00
Christoph Kerschbaumer 6d9b9085ff Bug 1145314: Package all devtools css files and load them using the internal chrome: protocol. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D78896
2020-07-03 08:12:22 +00:00
Narcis Beleuzu f439b0e9c9 Backed out 2 changesets (bug 1145314) for mochitest failures on test_bug995943.xhtml . CLOSED TREE
Backed out changeset 0500cb344e6f (bug 1145314)
Backed out changeset f524ffe669ca (bug 1145314)
2020-07-02 20:50:46 +03:00
Christoph Kerschbaumer 0745716ac3 Bug 1145314: Package all devtools css files and load them using the internal chrome: protocol. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D78896
2020-07-02 15:03:52 +00:00
Csoregi Natalia 178189064a Backed out 2 changesets (bug 1145314) for node debugger failure. CLOSED TREE
Backed out changeset 550f9596f16b (bug 1145314)
Backed out changeset 93dbc3fe146a (bug 1145314)
2020-07-02 12:37:06 +03:00
Christoph Kerschbaumer dc83bf1b46 Bug 1145314: Package all devtools css files and load them using the internal chrome: protocol. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D78896
2020-07-02 08:17:17 +00:00
Zibi Braniecki cdb0561a12 Bug 1641719 - Don`t set 0 state in TreeView on first click. r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D79322
2020-06-26 00:14:23 +00:00