Граф коммитов

150 Коммитов

Автор SHA1 Сообщение Дата
Nicolas Chevobbe ef6c673ba7 Bug 1835250 - [devtools] Migrate compatibility constants and helpers to dedicated modules. r=jdescottes,devtools-reviewers,Standard8.
Differential Revision: https://phabricator.services.mozilla.com/D179222
2023-05-31 04:55:22 +00:00
Alexandre Poirot 33687e166a Bug 1812646 - [devtools] Convert base-loader JSM to ESM. r=devtools-reviewers,jdescottes
Having it be a JSM make it so that part of the loader is still using the
shared loader global, which can cause various troubles in the browser toolbox.

Differential Revision: https://phabricator.services.mozilla.com/D167962
2023-01-31 13:46:48 +00:00
Alexandre Poirot ff6deaa55d Bug 1578975 - [devtools] Remove now-unused setupInParent code. r=devtools-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D166695
2023-01-29 20:50:48 +00:00
Alexandre Poirot 8b2a94432f Bug 1806404 - [devtools] Remove code related to content process message forwarding. r=nchevobbe
This was legacy code and isn't used by today's browser toolbox.
Instead we retrieve the content process messages directly from ContentProcess or BrowsingContext targets.

Differential Revision: https://phabricator.services.mozilla.com/D165025
2022-12-20 19:30:30 +00:00
Alexandre Poirot 94b0ede386 Bug 1793604 - [devtools] Inject JSM/ESM globals directly from Loader.jsm/sys.mjs. r=jdescottes
ESM can't be loaded while loading.
So that Loader.jsm/sys.mjs can't load builtin-modules.js with itself loading Loader.jsm/sys.mjs.
We do that in order to inject JSM/ESM globals from builtin-modules.js.
Let's instead inject the few globals of JSM/ESM directly from Loader.

This isn't ideal, but as Loader is meant to be removed when moving to ESM...

Differential Revision: https://phabricator.services.mozilla.com/D158583
2022-10-14 12:19:42 +00:00
Alexandre Poirot f2bc8a3148 Bug 1276347 - [devtools] Remove "reportError" from devtools module globals. r=jdescottes
This might have only be useful from the source actor.
In workers, you don't have access to Cu, so nor have access to Cu.reportError.
Otherwise from the main thread, you can safely use Cu.reportError.

In couple of places I'm removing the usage of reportError.
Hopefully throwing an exception is enough to get the error displayed!

Differential Revision: https://phabricator.services.mozilla.com/D157909
2022-09-26 10:48:04 +00:00
Nicolas Chevobbe 5bfeb8f498 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
Nicolas Chevobbe fa06502ad1 Bug 1788594 - [devtools] Fix ESLint consistent-return failures in devtools/client/debugger/. r=bomsy.
Differential Revision: https://phabricator.services.mozilla.com/D156156
2022-09-12 17:41:33 +00:00
Alexandre Poirot e26a356c6b 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
Nicolas Chevobbe 3074bcadc6 Bug 1787389 - [devtools] Fix ESLint consistent-return failures in devtools/client/debugger/src/actions. r=bomsy.
Differential Revision: https://phabricator.services.mozilla.com/D155824
2022-08-31 11:40:15 +00:00
Nicolas Chevobbe 65f7672999 Bug 1786699 - [devtools] Fix ESLint consistent-return failures in devtools/client/debugger/src/selectors. r=bomsy.
Differential Revision: https://phabricator.services.mozilla.com/D155452
2022-08-25 11:00:10 +00:00
Nicolas Chevobbe dfb1d40244 Bug 1786241 - [devtools] Fix ESLint consistent-return failures in devtools/client/debugger/src/workers. r=bomsy.
Differential Revision: https://phabricator.services.mozilla.com/D155196
2022-08-23 12:18:13 +00:00
Nicolas Chevobbe 39880dc213 Bug 1784073 - [devtools] Fix ESLint consistent-return failures in devtools/client/debugger/src/utils/. r=bomsy.
Depends on D154244

Differential Revision: https://phabricator.services.mozilla.com/D154245
2022-08-12 07:00:36 +00:00
Nicolas Chevobbe a77c3be794 Bug 1784071 - [devtools] Remove debugger specific eslint override for consistent-return rule. r=bomsy.
Instead, we put all the failing file into devtools eslintrc.js.

Differential Revision: https://phabricator.services.mozilla.com/D154244
2022-08-12 07:00:36 +00:00
Mark Banner a6855db57e 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 4cb7265185 Bug 1782819 - Enable some ESLint rules for devtools to be consistent with the rest of mozilla-central. r=jdescottes
Depends on D153536

Differential Revision: https://phabricator.services.mozilla.com/D153537
2022-08-03 08:24:21 +00:00
Mark Banner 795c5f035b Bug 1782819 - Remove ESlint rules from devtools/.eslintrc.js where they are already turned off or obsolete. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D153536
2022-08-03 08:24:20 +00:00
Tetsuharu Ohzeki e88ac8dc9f Bug 1508688 - Enable 'react/no-deprecated' ESLint rule for devtools/. r=devtools-reviewers,nchevobbe
This enables https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/no-deprecated.md

Differential Revision: https://phabricator.services.mozilla.com/D149485
2022-06-16 10:03:12 +00:00
Tetsuharu Ohzeki 8895997060 Bug 1508688 - Add 'UNSAFE_' lifecycle methods to 'react/sort-comp' rule for devtools/. r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D149475
2022-06-16 10:03:08 +00:00
Alexandre Poirot 78e1056d4c Bug 1771088 - [devtools] Disable react-hooks/rules-of-hooks eslint rule. r=jdescottes
This rule was matching any function prefixed with `use`, even in modules
that weren't React components.
In addition to that, DevTools aren't using React hooks, so this rule is uncessary.

Differential Revision: https://phabricator.services.mozilla.com/D147283
2022-06-01 14:38:35 +00:00
Mark Banner 3b0258336e Bug 1769569 - Enable ESLint rule no-define-cc-etc for devtools sjs files. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D146449
2022-05-18 08:13:18 +00:00
Sebastian Hengst c552340e0c Backed out 5 changesets (bug 1769569) for causing devtools' browser/browser_page_redirection.js to fail. CLOSED TREE
Backed out changeset 66a42eb3a366 (bug 1769569)
Backed out changeset d3cc9629cd9a (bug 1769569)
Backed out changeset edcd3dade079 (bug 1769569)
Backed out changeset 29d8dd058b7a (bug 1769569)
Backed out changeset 1aed34fdf2d3 (bug 1769569)
2022-05-17 19:49:17 +02:00
Mark Banner 55789cb268 Bug 1769569 - Enable ESLint rule no-define-cc-etc for devtools sjs files. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D146449
2022-05-17 16:50:31 +00:00
Mark Banner 7a084ed84c Bug 1725952 - Upgrade ESLint to v8.x. r=Mardak
Differential Revision: https://phabricator.services.mozilla.com/D144002
2022-04-22 11:23:30 +00:00
Mark Banner f3012297a4 Bug 1762601 - Migrate all of devtools from Cu.import to ChromeUtils.import. r=jdescottes,perftest-reviewers,sparky
Differential Revision: https://phabricator.services.mozilla.com/D142693
2022-04-04 13:41:02 +00:00
Julian Descottes d049bb7498 Bug 1609100 - [devtools] Remove unused about:devtools page r=devtools-reviewers,fluent-reviewers,flod,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D141464
2022-03-28 11:12:06 +00:00
Norisz Fay 66797d7700 Backed out 5 changesets (bug 1609100) for causing mochitest failures on browser_check_identity_state.js CLOSED TREE
Backed out changeset 521cbbae0914 (bug 1609100)
Backed out changeset e22daee724f0 (bug 1609100)
Backed out changeset e5c4afe5dd66 (bug 1609100)
Backed out changeset e6ae2c01908e (bug 1609100)
Backed out changeset 3e59351660ab (bug 1609100)
2022-03-28 13:11:58 +03:00
Julian Descottes db5d601b00 Bug 1609100 - [devtools] Remove unused about:devtools page r=devtools-reviewers,fluent-reviewers,flod,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D141464
2022-03-28 08:57:36 +00:00
Alexandre Poirot abdf9aa97b Bug 1757397 - [devtools] Enable consistant return eslint rule in the debugger. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D139844
2022-02-28 17:59:32 +00:00
Alexandre Poirot 26c5ba2c1a Bug 1757397 - [devtools] Enable strict eslint rule in the debugger. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D139843
2022-02-28 17:59:32 +00:00
Alexandre Poirot 4f6825b177 Bug 1755907 - [devtools] Enable eslint on debugger tests (except their test pages). r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D139366
2022-02-23 18:38:26 +00:00
Julian Descottes 212faeb0c3 Bug 1741369 - [devtools] Update paths to loader files in devtools/ r=ochameau
Depends on D131216

Differential Revision: https://phabricator.services.mozilla.com/D131217
2021-11-17 12:43:26 +00:00
Julian Descottes 5502682b68 Bug 1714527 - [devtools] Remove unused serviceworker actor code in DevTools server r=nchevobbe,devtools-backward-compat-reviewers
The actor code for attaching/detaching service worker targets and to push/start workers should no longer be used when parentintercept is disabled because all the UI triggering this is disabled in that case.
Consequently we can remove the server side code supporting this. We still have to be able to list service worker targets when parentintercept is disabled, so there are still some codepaths using isParentInterceptEnabled in the server.

Differential Revision: https://phabricator.services.mozilla.com/D116850
2021-06-07 20:13:26 +00:00
Julian Descottes cb230e8e99 Bug 1705536 - [devtools] Add linter errors when using componentDidUnmount r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D112272
2021-04-16 14:00:37 +00:00
Alexandre Poirot 349e77181c Bug 1700106 - [devtools] Exclude tests from general DevTools camelcase eslint rule. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D109478
2021-03-23 15:51:17 +00:00
Alexandre Poirot 8efc49e6bd Bug 1700106 - [devtools] Exclude tests from general reject-some-requires eslint rule. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D109477
2021-03-23 15:51:17 +00:00
Julian Descottes e0fea8d6ee Bug 1652690 - Remove outdated eslint rule for devtools/shared/platform r=nchevobbe,perftest-reviewers,sparky
Small cleanup of eslint rules.

Differential Revision: https://phabricator.services.mozilla.com/D83477
2020-07-15 14:59:19 +00:00
Neil Deakin d566f06f12 Bug 1651135, remove framescript and message manager usage from devtools json tests, r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D82571
2020-07-10 00:51:20 +00:00
Neil Deakin 5cf56b802f Bug 1650690, remove frame scripts from devtools animation tests, and use SpecialPowers.spawn instead, r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D82307
2020-07-07 11:35:15 +00:00
Neil Deakin 36c00b6af2 Bug 1650690, remove frame scripts from inspector tests, and use SpecialPowers.spawn instead, r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D82306
2020-07-07 11:35:03 +00:00
Kris Maglione e4f51c32b7 Bug 1645237: Lazily load JSONView components via static registration. r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D79385
2020-06-12 18:48:47 +00:00
Julian Descottes fdec3e7197 Bug 1625495 - Remove devtools/shared/client folder r=daisuke,ochameau,nchevobbe
Depends on D68599

This changeset moves devtools-client.js and constants.js to devtools/client and removes devtools/shared/client

Differential Revision: https://phabricator.services.mozilla.com/D68600

--HG--
rename : devtools/shared/client/constants.js => devtools/client/constants.js
rename : devtools/shared/client/devtools-client.js => devtools/client/devtools-client.js
extra : moz-landing-system : lando
2020-03-31 08:36:29 +00:00
Julian Descottes 9d8fb569a8 Bug 1604539 - Update eslint reject-some-requires "devtools/client" configuration r=nchevobbe
Depends on D67605

The eslint rule prevent devtools/client requires can now target all shared/** files
We also exclude devtools-client specifically, since it imports the object-front despite being in devtools/shared.
This file is always used from devtools/client at runtime but is used in many shared & server test suites

Differential Revision: https://phabricator.services.mozilla.com/D67606

--HG--
extra : moz-landing-system : lando
2020-03-20 13:58:57 +00:00
Bogdan Tara b03ab7d69b Backed out 5 changesets (bug 1604539) for xpc failures complanining about test_encryption.js CLOSED TREE
Backed out changeset 8455e50002a9 (bug 1604539)
Backed out changeset fb410a1bf9aa (bug 1604539)
Backed out changeset da94f7d503a1 (bug 1604539)
Backed out changeset b4b54335ee2d (bug 1604539)
Backed out changeset 866d6794bbba (bug 1604539)

--HG--
rename : devtools/client/fronts/accessibility.js => devtools/shared/fronts/accessibility.js
rename : devtools/client/fronts/addon/addons.js => devtools/shared/fronts/addon/addons.js
rename : devtools/client/fronts/addon/moz.build => devtools/shared/fronts/addon/moz.build
rename : devtools/client/fronts/addon/webextension-inspected-window.js => devtools/shared/fronts/addon/webextension-inspected-window.js
rename : devtools/client/fronts/animation.js => devtools/shared/fronts/animation.js
rename : devtools/client/fronts/array-buffer.js => devtools/shared/fronts/array-buffer.js
rename : devtools/client/fronts/changes.js => devtools/shared/fronts/changes.js
rename : devtools/client/fronts/content-viewer.js => devtools/shared/fronts/content-viewer.js
rename : devtools/client/fronts/css-properties.js => devtools/shared/fronts/css-properties.js
rename : devtools/client/fronts/descriptors/frame.js => devtools/shared/fronts/descriptors/frame.js
rename : devtools/client/fronts/descriptors/moz.build => devtools/shared/fronts/descriptors/moz.build
rename : devtools/client/fronts/descriptors/process.js => devtools/shared/fronts/descriptors/process.js
rename : devtools/client/fronts/descriptors/tab.js => devtools/shared/fronts/descriptors/tab.js
rename : devtools/client/fronts/descriptors/webextension.js => devtools/shared/fronts/descriptors/webextension.js
rename : devtools/client/fronts/device.js => devtools/shared/fronts/device.js
rename : devtools/client/fronts/environment.js => devtools/shared/fronts/environment.js
rename : devtools/client/fronts/frame.js => devtools/shared/fronts/frame.js
rename : devtools/client/fronts/framerate.js => devtools/shared/fronts/framerate.js
rename : devtools/client/fronts/highlighters.js => devtools/shared/fronts/highlighters.js
rename : devtools/client/fronts/inspector.js => devtools/shared/fronts/inspector.js
rename : devtools/client/fronts/inspector/moz.build => devtools/shared/fronts/inspector/moz.build
rename : devtools/client/fronts/inspector/rule-rewriter.js => devtools/shared/fronts/inspector/rule-rewriter.js
rename : devtools/client/fronts/layout.js => devtools/shared/fronts/layout.js
rename : devtools/client/fronts/manifest.js => devtools/shared/fronts/manifest.js
rename : devtools/client/fronts/memory.js => devtools/shared/fronts/memory.js
rename : devtools/client/fronts/moz.build => devtools/shared/fronts/moz.build
rename : devtools/client/fronts/node.js => devtools/shared/fronts/node.js
rename : devtools/client/fronts/object.js => devtools/shared/fronts/object.js
rename : devtools/client/fronts/perf.js => devtools/shared/fronts/perf.js
rename : devtools/client/fronts/performance-recording.js => devtools/shared/fronts/performance-recording.js
rename : devtools/client/fronts/performance.js => devtools/shared/fronts/performance.js
rename : devtools/client/fronts/preference.js => devtools/shared/fronts/preference.js
rename : devtools/client/fronts/property-iterator.js => devtools/shared/fronts/property-iterator.js
rename : devtools/client/fronts/reflow.js => devtools/shared/fronts/reflow.js
rename : devtools/client/fronts/responsive.js => devtools/shared/fronts/responsive.js
rename : devtools/client/fronts/root.js => devtools/shared/fronts/root.js
rename : devtools/client/fronts/screenshot.js => devtools/shared/fronts/screenshot.js
rename : devtools/client/fronts/source.js => devtools/shared/fronts/source.js
rename : devtools/client/fronts/storage.js => devtools/shared/fronts/storage.js
rename : devtools/client/fronts/string.js => devtools/shared/fronts/string.js
rename : devtools/client/fronts/styles.js => devtools/shared/fronts/styles.js
rename : devtools/client/fronts/stylesheets.js => devtools/shared/fronts/stylesheets.js
rename : devtools/client/fronts/symbol-iterator.js => devtools/shared/fronts/symbol-iterator.js
rename : devtools/client/fronts/targets/browsing-context.js => devtools/shared/fronts/targets/browsing-context.js
rename : devtools/client/fronts/targets/content-process.js => devtools/shared/fronts/targets/content-process.js
rename : devtools/client/fronts/targets/local-tab.js => devtools/shared/fronts/targets/local-tab.js
rename : devtools/client/fronts/targets/moz.build => devtools/shared/fronts/targets/moz.build
rename : devtools/client/fronts/targets/target-mixin.js => devtools/shared/fronts/targets/target-mixin.js
rename : devtools/client/fronts/targets/worker.js => devtools/shared/fronts/targets/worker.js
rename : devtools/client/fronts/thread.js => devtools/shared/fronts/thread.js
rename : devtools/client/fronts/walker.js => devtools/shared/fronts/walker.js
rename : devtools/client/fronts/webconsole.js => devtools/shared/fronts/webconsole.js
rename : devtools/client/fronts/websocket.js => devtools/shared/fronts/websocket.js
rename : devtools/client/fronts/worker/moz.build => devtools/shared/fronts/worker/moz.build
rename : devtools/client/fronts/worker/push-subscription.js => devtools/shared/fronts/worker/push-subscription.js
rename : devtools/client/fronts/worker/service-worker-registration.js => devtools/shared/fronts/worker/service-worker-registration.js
rename : devtools/client/fronts/worker/service-worker.js => devtools/shared/fronts/worker/service-worker.js
2020-03-20 15:53:23 +02:00
Julian Descottes d20f09db58 Bug 1604539 - Update eslint reject-some-requires "devtools/client" configuration r=nchevobbe
Depends on D67605

The eslint rule prevent devtools/client requires can now target all shared/** files
We also exclude devtools-client specifically, since it imports the object-front despite being in devtools/shared.
This file is always used from devtools/client at runtime but is used in many shared & server test suites

Differential Revision: https://phabricator.services.mozilla.com/D67606

--HG--
extra : moz-landing-system : lando
2020-03-20 11:34:23 +00:00
Sylvestre Ledru be18fd4dba Bug 1622328 - add license info to all eslintrc files r=Standard8,webcompat-reviewers,miketaylr
Differential Revision: https://phabricator.services.mozilla.com/D67319

--HG--
extra : moz-landing-system : lando
2020-03-19 13:47:51 +00:00
Julian Descottes e540d28f07 Bug 1621576 - Apply mozilla/balanced-observers eslint rule in devtools r=ochameau
Depends on D66378

Differential Revision: https://phabricator.services.mozilla.com/D66379

--HG--
extra : moz-landing-system : lando
2020-03-16 12:48:56 +00:00
Mark Banner 15cfe23b88 Bug 1620542 - Automatically fix ESLint errors in .eslintrc.js files. r=mossop
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D65703

--HG--
extra : moz-landing-system : lando
2020-03-07 10:09:44 +00:00
Jason Laster 897b14485f Bug 1609815 - Remove Web Replay UI. r=loganfsmyth
Differential Revision: https://phabricator.services.mozilla.com/D60679

--HG--
extra : source : cfe2388a674e024d1920245e867f9982087c8164
2020-02-10 21:03:28 +00:00
Noemi Erli 85558b46c4 Backed out changeset cfe2388a674e (bug 1609815) for causing TypeError in browserContext CLOSED TREE 2020-02-11 00:35:52 +02:00