Commit Graph
103 Commits
Author SHA1 Message Date
Chris H-C d89527a234 Bug 2039650 - Remove Legacy Telemetry devtools probes r=jdescottes,devtools-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D300855
2026-05-28 16:32:18 +00:00
Emilio Cobos Álvarez f20ae1194a Bug 2017307 - Implement CSS revert-rule. r=firefox-style-system-reviewers,dshin,devtools-reviewers,nchevobbe
As per https://drafts.csswg.org/css-cascade-5/#revert-rule-keyword

The remaining test failure is about
https://github.com/w3c/csswg-drafts/issues/9131 and affects all other
revert* keywords, so I don't think it's worth blocking on that.

Differential Revision: https://phabricator.services.mozilla.com/D285848
2026-03-04 13:39:09 +00:00
Sandor Molnar 628e055e69 Revert "Bug 2017307 - Implement CSS revert-rule. r=firefox-style-system-reviewers,dshin,devtools-reviewers,nchevobbe" for causing mochitest failures @ test_bug877690.html
This reverts commit 93a63205c6.
2026-03-04 12:07:24 +00:00
Emilio Cobos Álvarez 93a63205c6 Bug 2017307 - Implement CSS revert-rule. r=firefox-style-system-reviewers,dshin,devtools-reviewers,nchevobbe
As per https://drafts.csswg.org/css-cascade-5/#revert-rule-keyword

The remaining test failure is about
https://github.com/w3c/csswg-drafts/issues/9131 and affects all other
revert* keywords, so I don't think it's worth blocking on that.

Differential Revision: https://phabricator.services.mozilla.com/D285848
2026-03-04 10:34:43 +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
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
Nicolas Chevobbe f68887fd32 Bug 1990181 - [devtools] Use proper private fields in AutocompletePopup. r=devtools-reviewers,jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D265763
2025-09-24 08:49:04 +00:00
Hubert Boma Manilla 0eec3a8c60 Bug 1978284 - [devtools] Add language support for styling and markup content r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D258553
2025-09-23 08:44:19 +00:00
Sandor Molnar 0c6a4f627a Revert "Bug 1978284 - [devtools] Add language support for styling and markup content r=devtools-reviewers,nchevobbe" for causing dt failures @ browser_dbg-editor-scroll.js
This reverts commit 2c5508429f.
2025-09-01 19:24:31 +00:00
Hubert Boma Manilla 2c5508429f Bug 1978284 - [devtools] Add language support for styling and markup content r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D258553
2025-09-01 13:44:02 +00:00
Julian Descottes c1dbbd3a81 Bug 1974700 - [devtools] Try to reset all devtools preferences in shared-head's registerCleanupFunction r=devtools-reviewers,nchevobbe,profiler-reviewers,canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D255493
2025-07-01 11:54:39 +00:00
Nicolas Chevobbe 2ce6dfa245 Bug 1327973 - [devtools] Remove count/score sort in markup/style editor autocomplete suggestions. r=devtools-reviewers,jdescottes.
The suggestions were sorted by the number of element matching the item, which could
be confusing and get in the way of the user when they wanted to search for the
least used version.
We now sort the suggestions by "type" (id, class, tag, …), and then, within those
groups, alphabetically.

Differential Revision: https://phabricator.services.mozilla.com/D249768
2025-05-24 08:30:53 +00:00
Joel Maher 76447d27c5 Bug 1957258 - cleanup devtools-chrome .toml manifest, enable many tests! r=aryx,devtools-reviewers,profiler-reviewers,julienw,ochameau,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D243603
2025-04-04 15:06:02 +00:00
Nicolas Chevobbe 163f096030 Bug 1069183 - [devtools] Don't mutate upper-scope variable in traverseForward. r=ochameau,devtools-reviewers.
Differential Revision: https://phabricator.services.mozilla.com/D242686
2025-03-25 13:27:05 +00:00
Nicolas Chevobbe 0a294ef861 Bug 1069183 - [devtools] Turn CSSCompleter state constant into static Symbol property for faster lookups. r=devtools-reviewers,ochameau
For some reason, having those as top level const in the module was triggering
a slow path (`GetNameIC` would show up a lot in profile).
This is way faster when those are used as static properties.

Having the state constants as symbol means that we can't use a json file for
the browser_css_statemachine.js test cases, so we move the data back in the test file.
We take this as an opportunity to re-arrange the test a bit (e.g. we don't need
to display results in the tab).

Differential Revision: https://phabricator.services.mozilla.com/D241947
2025-03-25 13:27:05 +00:00
Nicolas Chevobbe 87728ad3cc Bug 1069183 - [devtools] Avoid too many tokenization in CSSCompleter. r=devtools-reviewers,ochameau.
`resolveState` now directly accepts an array of tokens so it won't do the tokenization,
and we take advantage of this in `traverseBackwards`, where we can pass the tokens
we computed at the top of `getInfoAt` and pop the last token from the stack until
we found the start of the "expression" we're interested in.

`browser_css_statemachine.js` is updated to test the 2 ways resolveState can be
called (with source + line + column, or with tokens).

Differential Revision: https://phabricator.services.mozilla.com/D241946
2025-03-25 13:27:05 +00:00
Nicolas Chevobbe e9f541875f Bug 1069183 - [devtools] CSSCompleter code cleanups. r=devtools-reviewers,ochameau.
resolveState now takes separate line and column parameters rather than a caret object
to make it clear the object isn't modified in resolveState.
Reduce the number of calls to the limit function, as well as the number of
split operation we do on the source.
Removes a confusing case involving empty lines in traverseForward.

Differential Revision: https://phabricator.services.mozilla.com/D241943
2025-03-25 13:27:04 +00:00
Nicolas Chevobbe 30a9f37057 Bug 1846465 - [devtools] Make codemirror 5 built-in search UI persistent. r=devtools-reviewers,ochameau.
Overriding the search shortcut allows us to execute the findPersistent command,
which prevents the search input to be closed when the user hit Enter.

A test is added to cover the new functionality.

Differential Revision: https://phabricator.services.mozilla.com/D237232
2025-02-27 09:11:53 +00:00
David Shin 9e4b5e71a5 Bug 1900232: Part 6 - Adjust test expectations for anchor-size. r=firefox-style-system-reviewers,devtools-reviewers,nchevobbe,emilio
1. WPT tests now accept `anchor-size()` property for sizing, inset, and
   margin properties [1].
2. Adjust test expectations for `anchor-size()` fallbacks containing
   `anchor-size()` - This will need to be followed up once [2] is resolved.
3. Adjust expectations for devtools' auto-completion related mochitests.
4. We don't yet handle `anchor-size()` in `calc()`.

[1] https://github.com/w3c/csswg-drafts/issues/9827
[2] https://github.com/w3c/csswg-drafts/issues/10831

Differential Revision: https://phabricator.services.mozilla.com/D222535
2024-09-23 13:58:39 +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
Tom Marble 6c1231e2e8 Bug 1853244 - convert .ini manifests to .toml: batch 6 {caps,devtools,dom}/**/browser.ini r=jmaher,media-playback-reviewers,devtools-reviewers,profiler-reviewers,alwu,nchevobbe,canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D188856
2023-09-22 20:42:14 +00:00
Alexandre Poirot 27f68e6323 Bug 1320607 - [devtools] Remove the generated CSS Properties database. r=devtools-reviewers,nchevobbe
This wasn't really used anymore.
We are fetching the database from the server runtime in order to support
remote debugging correctly, where frontend CSS may be different from debuggee CSS.

Differential Revision: https://phabricator.services.mozilla.com/D187492
2023-09-07 20:59:34 +00:00
Butkovits Atila 76e7dfa668 Backed out changeset fb19de542f01 (bug 1320607) for causing python failures complaining about test_devtools_database_parsing . CLOSED TREE 2023-09-07 18:58:05 +03:00
Alexandre Poirot 7198ba3de1 Bug 1320607 - [devtools] Remove the generated CSS Properties database. r=devtools-reviewers,nchevobbe
This wasn't really used anymore.
We are fetching the database from the server runtime in order to support
remote debugging correctly, where frontend CSS may be different from debuggee CSS.

Differential Revision: https://phabricator.services.mozilla.com/D187492
2023-09-07 13:08:37 +00:00
Mark Banner 806a90f3f1 Bug 1846570 - Convert more jsm style imports to ES modules (devtools). r=devtools-reviewers,nchevobbe
Depends on D185071

Differential Revision: https://phabricator.services.mozilla.com/D185072
2023-08-02 13:43:07 +00:00
Alexandre Poirot c42905da36 Bug 1838443 - [devtools] Move preview data from redux store to react state. r=devtools-reviewers,perftest-reviewers,sparky,bomsy
This data is transient and only specific to the Editor's index react component.
There is no need to share nor persist this data in Redux,
this would avoid unecessary complexity/layers and avoid a few state updates.

Note that the target.match(:hover) was probably a poorly documented way to prevent
rending preview for token that are no longer hovered (the comment about whitespace sounds weird).

Also tweak waitForSelectedSource to also wait for CodeMirror to be updated.
Otherwise, we might try to hover tokens while CodeMirror is still udpating...
While doing that, use the L10N string instead of the final localized string.

Differential Revision: https://phabricator.services.mozilla.com/D180992
2023-06-19 17:18:27 +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
Mark Banner 0fadbc1ec4 Bug 1829618 - Enable Prettier on json files (automatic fixes). r=perftest-reviewers,webcompat-reviewers,extension-reviewers,andi,desktop-theme-reviewers,pip-reviewers,devtools-reviewers,sync-reviewers,mossop,denschub,dao,sparky,robwu,geckoview-reviewers,owlish
Differential Revision: https://phabricator.services.mozilla.com/D176336
2023-05-09 16:14:51 +00:00
Emilio Cobos Álvarez cdff2ecc8e Bug 1820534 - Move front-end to modern flexbox. r=Gijs,dao,settings-reviewers,credential-management-reviewers,sgalich,devtools-reviewers,nchevobbe
Done mostly automatically via find/replace following the conversions
specified here:

  https://groups.google.com/a/mozilla.org/g/firefox-dev/c/9sGpF1TNbLk/m/QpU3oTUuAgAJ

For the most part I think the "flex: N N" usage could be simplified to
just "flex: N", but I wanted to preserve behavior (-moz-box-flex sets
both flex-grow and flex-shrink).

I changed legacy layout to also look at the order property rather than
-moz-box-ordinal-group because it made splitters and treecols easier (we
don't need to deal with both orders).

Differential Revision: https://phabricator.services.mozilla.com/D171715
2023-03-08 16:13:57 +00:00
Stanca Serban 5d57898ee6 Backed out changeset c25af897c9bc (bug 1820534) for causing reftests and mochitests failures. 2023-03-08 17:34:42 +02:00
Emilio Cobos Álvarez e15feb465b Bug 1820534 - Move front-end to modern flexbox. r=Gijs,dao,settings-reviewers,credential-management-reviewers,sgalich,devtools-reviewers,nchevobbe
Done mostly automatically via find/replace following the conversions
specified here:

  https://groups.google.com/a/mozilla.org/g/firefox-dev/c/9sGpF1TNbLk/m/QpU3oTUuAgAJ

For the most part I think the "flex: N N" usage could be simplified to
just "flex: N", but I wanted to preserve behavior (-moz-box-flex sets
both flex-grow and flex-shrink).

I changed legacy layout to also look at the order property rather than
-moz-box-ordinal-group because it made splitters and treecols easier (we
don't need to deal with both orders).

Differential Revision: https://phabricator.services.mozilla.com/D171715
2023-03-08 14:11:35 +00:00
Mark Banner b3474f4614 Bug 1812977 - Remove now unnecessary import-globals-from statements in devtools. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D168071
2023-01-30 19:33:38 +00:00
Alexandre Poirot a85b82697f Bug 1792847 - [devtools] Use absolute URLs to import modules in devtools/client/shared. r=jdescottes,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D158379
2022-09-30 15:17:39 +00:00
Alexandre Poirot adf29caacd Bug 1788032 - [devtools] Convert devtools/client JSM to ES Modules. r=bomsy
This is the result of:
$ ./mach esmify devtools/client/

Differential Revision: https://phabricator.services.mozilla.com/D156181
2022-09-06 18:37:10 +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
Mark Banner 1e3410cbdd Bug 1782008 - Remove now unnecessary .eslintrc.js files. r=webcompat-reviewers,extension-reviewers,media-playback-reviewers,pip-reviewers,denschub,rpl,alwu,mossop
Differential Revision: https://phabricator.services.mozilla.com/D152736
2022-08-03 11:16:20 +00:00
Nicolas Chevobbe a64d1b5b08 Bug 1777787 - [devtools] Display non-printable chars in CodeMirror. r=jdescottes.
This adds some character (e.g. right-to-left override) to CodeMirror default list of
special characters (see https://codemirror.net/5/doc/manual.html#option_specialChar).
We also take this opportunity to show the unicode value for those, instead of the
default red dot CodeMirror provides.

Differential Revision: https://phabricator.services.mozilla.com/D152421
2022-07-22 16:25:00 +00:00
Cristian Tuns 7c304dab35 Backed out changeset b5ed92b74381 (bug 1777787) for causing mochitest failures on browser_styleeditor_filesave.js CLOSED TREE 2022-07-22 05:27:11 -04:00
Nicolas Chevobbe f31d2d5493 Bug 1777787 - [devtools] Display non-printable chars in CodeMirror. r=jdescottes.
This adds some character (e.g. right-to-left override) to CodeMirror default list of
special characters (see https://codemirror.net/5/doc/manual.html#option_specialChar).
We also take this opportunity to show the unicode value for those, instead of the
default red dot CodeMirror provides.

Differential Revision: https://phabricator.services.mozilla.com/D152421
2022-07-22 05:53:44 +00:00
Emilio Cobos Álvarez 8e5a6310b1 Bug 1699220 - Add support for the revert-layer keyword. r=boris
This patch looks bigger than it is, but it's mostly because
of plumbing.

To implement revert-layer we need not only the cascade origin of the
declaration, but the whole cascade level, plus also the layer order.

In order to do this, encapsulate these two things inside a 32-bit
`CascadePriority` struct and plumb it through the rule tree and so on.
This allows us to remove the packing and unpacking of CascadeLevel,
though I kept the ShadowCascadeOrder limit for now in case we need to
reintroduce it.

Fix `!important` behavior of layers while at it (implementing it in
`CascadeLevel::cmp`, spec quote included since it was tricky to find)
since some revert-layer tests were depending on it.

The style attribute test is failing now, but follow-up commit fixes
it, see spec issue.

In terms of the actual keyword implementation, it's sort of
straight-forward: We implement revert and revert-layer in a shared
way, by storing the cascade priority that reverted it.

Differential Revision: https://phabricator.services.mozilla.com/D133372
2021-12-14 15:38:34 +00:00
Alexandre Poirot aa4c30771b Bug 1700106 - [devtools] Remove now-useless eslint files related to mochitests. r=jdescottes,Standard8
I kept a few having some overrides. But they may be irrelevant.
And I kept some eslint files for all folder that aren't matching the pattern matching "**/test*/**/browser*/".
Ideally we would rename these folder to match.

Last but not least, I identified one case where we were using mochitest file for xpcshell tests!

Differential Revision: https://phabricator.services.mozilla.com/D109481
2021-03-23 15:51:18 +00:00
Julian Descottes 8ab5293a02 Bug 1694886 - [devtools] Extract test helper getTargetForTab(tab) to shared-head.js r=nchevobbe
Depends on D106037

Differential Revision: https://phabricator.services.mozilla.com/D106405
2021-02-25 18:02:54 +00:00
Julian Descottes 4496a88997 Bug 1694140 - [devtools] Rename TargetFactory to TabTargetFactory and update filename r=ochameau
Depends on D106032

Differential Revision: https://phabricator.services.mozilla.com/D106037
2021-02-25 18:02:53 +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 ba68832a5b Bug 1694886 - [devtools] Extract test helper getTargetForTab(tab) to shared-head.js r=nchevobbe
Depends on D106037

Differential Revision: https://phabricator.services.mozilla.com/D106405
2021-02-25 12:58:16 +00:00
Julian Descottes 3ff17f8b3c Bug 1694140 - [devtools] Rename TargetFactory to TabTargetFactory and update filename r=ochameau
Depends on D106032

Differential Revision: https://phabricator.services.mozilla.com/D106037
2021-02-25 12:58:16 +00:00