Commit Graph
36 Commits
Author SHA1 Message Date
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
Nicolas Chevobbe 3a3ae50758 Bug 1915872 - [devtools] Make getColor rely on CSS variables computed values. r=devtools-reviewers,ochameau.
The function used to parse the variables.css file and do some regex matching
on the light/dark theme rules to extract the declaration value of a variable.

This patch makes the function simpler by getting the computed value of the
CSS variable, which automatically adapt to the current theme since we do set
`color-scheme` value properly when setting a theme.

In order for this to work properly, the variables that might be used in this
function need to be registered so the engine know they are colors.

We take this as an opportunity to rename the function to `getCssVariableColor`,
which is more explicit, and also make it take the actual CSS variable name,
and not only the suffix part that comes after `--theme-` for better grep-ability.

The test in browser_theme.js is adapted to reflect those changes.

Differential Revision: https://phabricator.services.mozilla.com/D220718
2024-09-03 15:00:54 +00:00
Nicolas Chevobbe de20d29dd9 Bug 1904765 - [devtools] Support High Contrast Mode in toolbox when theme is auto. r=devtools-reviewers,ochameau.
This adds a `forced-colors-active` attribute on documentElements when:
- `devtools.high-contrast-mode-support` is set to true
- the selected theme is "auto"
- and high contrast mode is enabled.

This way we can style specifically for HCM with `:root[forced-colors-active]`.
`browser_theme_switching.js` is extended to run assertion on this attribute.

Differential Revision: https://phabricator.services.mozilla.com/D214937
2024-06-28 15:33:56 +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
Emilio Cobos Álvarez 1867997094 Bug 1736141 - Remove unneeded observer in devtools theme code. r=jdescottes
The toolbar pref change triggers eventually a look-and-feel-changed
notification, so no need to observe that directly.

Depends on D128674

Differential Revision: https://phabricator.services.mozilla.com/D128675
2021-10-19 10:48:53 +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
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
Florens Verschelde bfdf7101f1 Bug 1575827 - Remove references to outdated DevToolsColors MDN page; r=pbro
Differential Revision: https://phabricator.services.mozilla.com/D43227
2019-08-27 10:21:34 +00:00
Victor Porof b7732ae890 Bug 1561435 - Format devtools/client/, a=automatic-formatting
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D35884
2019-07-05 11:24:38 +02:00
Julian Descottes 82711b9a8f Bug 1454696 - Run eslint --fix for prefer-const;r=yulia
MozReview-Commit-ID: F6xUXCgdRE4
2018-06-01 12:36:09 +02:00
Brian Grinstead 3ffee913fc Bug 1378108 - Part 2 - Remove Firebug theme;r=gl
MozReview-Commit-ID: 930pvUVLsiP
2018-04-04 12:32:54 -07:00
Jan Odvarko 043de7eb4d Bug 1395834 - Implement theme loader; r=nchevobbe
MozReview-Commit-ID: 5AR0AX5tTnB
2017-09-14 10:03:26 +02:00
Gabriel Luong 00590a9724 Bug 1391003 - Use the new photon line selection and hover background colors in devtool. r=bgrins 2017-09-01 10:47:11 -04:00
Bob Silverberg 5e5cec2d2c Bug 1349896 - Part 1: Expose devtools theme via gDevTools, r=ochameau
Added gDevTools.getTheme() to provide the theme name, and a gDevTools "theme-changed"
event to provide a notification when the theme is changed.

MozReview-Commit-ID: EeUAmtyPpUy
2017-05-09 13:03:19 -04:00
Tom Tromey 8a93d4e955 Bug 1316630 - don't emit pref-changed event on gDevTools; r=jdescottes
MozReview-Commit-ID: CCqAf8dBFSY
2016-11-21 08:47:10 -07:00
Sebastian Zartner 3d13e3f345 Bug 1088305 - Allowed to customize the text color of the font preview tooltip; r=jdescottes
MozReview-Commit-ID: 4dESdQNgwRA
2016-10-06 22:43:57 +02:00
Carsten "Tomcat" Book bb132b568c Backed out changeset 76efdf921d79 (bug 1088305) for ES Failures 2016-10-10 15:27:54 +02:00
Sebastian Zartner 76acd4731e Bug 1088305 - Allowed to customize the text color of the font preview tooltip; r=jdescottes
MozReview-Commit-ID: 4dESdQNgwRA
2016-10-06 22:43:57 +02:00
Tom Tromey d88bf1970a Bug 1287915 - support webpack "raw!" requires in devtools loader; r=jryans
MozReview-Commit-ID: 1H6ogaMrZPV
2016-07-28 12:11:42 -06:00
Christoph Kerschbaumer 2c9d1aa9e0 Bug 1280204 - Convert devtools/client/shared/theme.js to use channel.open2(). r=grinstead 2016-06-15 13:19:31 +01:00
Tom Tromey 8f1292bce5 Bug 1270994 - Fix ESLint errors in devtools/client/shared/*.js; r=jryans
MozReview-Commit-ID: 1od43gBnUq1
2016-05-19 08:35:45 -06:00
J. Ryan Stinnett 530b903fcf Bug 1271084 - Apply ESLint autofixes to ignored /devtools files. r=tromey
For simple rules like function spacing, we can auto-fix these across the code
base so they are followed in a consistent way.

To generate this patch, I ran:

./mach eslint devtools --no-ignore --fix

After this, I reverted any changes to third party files that we really do want
to ignore.

MozReview-Commit-ID: 6Q8BApkAW20
2016-05-18 12:49:23 -05:00
Alexandre Poirot bb787b541e Bug 1245530 - Use require(Services) instead of Cu.import(Services.jsm). r=jryans 2016-02-27 04:51:10 -08:00
Alexandre Poirot c278a0c6db Bug 1245462 - Replace usages of gDevTools.jsm by module imports. r=jryans 2016-02-11 04:29:47 -08:00
J. Ryan Stinnett 4e51063c4a Bug 1207976 - Remove /themes from DevTools URLs. r=ochameau 2015-11-04 12:04:20 -06:00
J. Ryan Stinnett 687866dde2 Bug 1203159 - Rewrite DevTools resource URLs. r=ochameau 2015-10-21 12:48:53 -05:00
Brian Grinstead eb9bb8720a Bug 1210954 - Move devtools variables into a single variables.css file;r=jryans;r=jsantell 2015-10-07 08:19:44 -07:00
J. Ryan Stinnett cc48864b1a Bug 912121 - Package DevTools client themes in devtools.jar. rs=devtools
Break DevTools theme files out of browser.jar and move to a new DevTools
specific jar.  Update all paths of the form:

chrome://browser/skin/devtools/<X>

to

chrome://devtools/skin/<Y>

where <Y> is the source tree path that comes after /devtools/client.
2015-09-21 12:04:31 -05:00
J. Ryan Stinnett 2dada8f365 Bug 912121 - Rewrite require / import to match source tree. rs=devtools
In a following patch, all DevTools moz.build files will use DevToolsModules to
install JS modules at a path that corresponds directly to their source tree
location.  Here we rewrite all require and import calls to match the new
location that these files are installed to.
2015-09-21 12:04:18 -05:00
J. Ryan Stinnett a3073e0420 Bug 912121 - Migrate major DevTools directories. rs=devtools
Move major DevTools files to new directories using the following steps:

hg mv browser/devtools devtools/client
hg mv toolkit/devtools/server devtools/server
hg mv toolkit/devtools devtools/shared

No other changes are made.
2015-09-21 12:02:24 -05:00