Commit Graph
24 Commits
Author SHA1 Message Date
Alexandre Poirot 0c4e317914 Bug 1789980 - [devtools] Migrate all callsites using require("chrome") to use Components.* global symbols. r=jdescottes,perftest-reviewers,AlexandruIonescu
This will help transition to ES Modules as we won't be able to expose a magic "chrome" ESM.
Also, most of these symbols are exposed as global already.
All but:
* `components` which is `Components`,
* `CC` which is `Components.Constructor`,
* `Cm` which is `Components.manager`.

$ sed -ie "/require(.chrome.)/d" $(git grep -l 'require("chrome")' devtools/)
+ manual edits for all three exceptions

Differential Revision: https://phabricator.services.mozilla.com/D156936
2022-09-20 12:52:27 +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
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
Nicolas Chevobbe 290ba5cb21 Bug 1568779 - Remove editors settings comments in devtools files. r=pbro.
Differential Revision: https://phabricator.services.mozilla.com/D42300
2019-08-19 12:48:16 +00:00
Nicolas Chevobbe ba939ca6ed Bug 1465149 - Remove old jsterm code. r=jdescottes.
Since we modified the Editor to be accessible, we got
the green light to remove the old JsTerm code.
This means we can remove the preference for the codeMirror
input, and clean the WebConsole react app a bit.
This also mean we can avoid running a lot of our tests
twice.
Finally, some test helpers had to take argument with
specific shape to work against old jsterm (e.g. checkInputCompletionValue),
that we can now remove to make tests easier to read.

Differential Revision: https://phabricator.services.mozilla.com/D40172
2019-08-04 09:38:25 +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
Nicolas Chevobbe 076bb3c248 Bug 1526883 - Cleanup devtools/client/webconsole/utils.js; r=bgrins.
Some functions or properties are not used anymore in the
codebase, so we can safely delete them.
Other ones are only used in Scratchpad or VariableView,
which we want to get rid off in the next months. We move
those functions directly in Scratchpad/VariableView.

Differential Revision: https://phabricator.services.mozilla.com/D19377
2019-02-11 17:29:24 +00:00
Mark Banner 3d6aaad3f5 Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D8389
2018-10-19 12:55:39 +00: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
Boris Zbarsky 8a166e6246 Bug 1455676 part 17. Stop using nsIDOMNode in devtools/. r=jdescottes 2018-05-29 22:58:50 -04:00
Jan Odvarko f550f61eb4 Bug 1425538 - Use NotificationBox as regular React element; r=nchevobbe
MozReview-Commit-ID: AHvRWfRd1XY
2018-05-16 17:38:06 +02:00
Andreea Pavel fd5c74a55a Backed out changeset 8d0caf759080 (bug 1425538) for failing devtools/client/webconsole/test/mochitest/browser_jsterm_selfxss.js on a CLOSED TREE 2018-05-16 09:49:32 +03:00
Jan Odvarko 64e674c770 Bug 1425538 - Use NotificationBox as regular React element; r=nchevobbe
MozReview-Commit-ID: DRbxfnqMMvV
2018-05-16 07:12:40 +02:00
Boris Zbarsky c9145e654e Bug 1455674 part 19. Get rid of JS uses of nsIDOMElement. r=qdot
In nsBlocklistService.js we know we're dealing with actual nodes, so .nodeType
checks should be fine.
2018-04-26 23:37:34 -04:00
J. Ryan Stinnett 8d1c817851 Bug 1443081 - Apply spacing via eslint --fix for DevTools. r=jdescottes
MozReview-Commit-ID: 2RVNt140Zte
2018-03-12 13:44:41 -05:00
Emilio Cobos Álvarez 8b5df725d4 Bug 1444036: Remove trivial uses of getPropertyCSSValue. rs=johannh
getPropertyCSSValue("foo").cssText is the same as getPropertyValue("foo").

MozReview-Commit-ID: HxdSr4749hi
2018-03-08 12:39:36 +01:00
Brian Grinstead 206adbd95f Bug 1364047 - Pull WebConsoleUtils.l10n into its own module;r=Honza
MozReview-Commit-ID: LI5Hrs33CVS
2017-05-17 14:07:03 -07:00
Julian Descottes da00d952d7 Bug 1340205 - cleanup and unignore from eslintdevtools/client/webconsole/utils.js;r=nchevobbe
MozReview-Commit-ID: 2goPtQVSsLF
2017-02-16 18:08:30 +01:00
Florian Quèze 361ec85a2e Bug 1329182 - remove trailing newURI null parameters in devtools/, r=jaws. 2017-01-09 20:27:26 +01:00
Jared Wein 5edec1c0d9 Bug 1315013 - part 1, remove unnecessary double-slash comments that don't add value and look out of place with the spaced-comment eslint rule. r=mossop
MozReview-Commit-ID: HIUTSdkXxbY
2016-11-03 14:42:06 -04:00
Julian Descottes 3479010529 Bug 1298012 - update references to devtools/client/shared/l10n -> devtools/shared/l10n;r=bgrins
MozReview-Commit-ID: 6p5ADjlbsHu
2016-08-25 17:02:50 +02:00
Julian Descottes 9bd9cb2ea3 Bug 1295609 - Migrate devtools/client/webconsole to use l10n.js instead of Services.string;r=bgrins
MozReview-Commit-ID: 65AyxZ68GHt
2016-08-19 20:31:50 +02:00
Brian Grinstead 29bef48212 Bug 1288475 - Remove code unused in client and server versions of webconsole utils;r=tromey
MozReview-Commit-ID: GcNg9nEI9d4
2016-08-05 10:44:42 -07:00
Brian Grinstead 4e42260d3e Bug 1288475 - Split webconsole utils.js into separate client and server parts;r=MattN,tromey
MozReview-Commit-ID: HlpiRvuMF1H
2016-08-05 10:44:38 -07:00