Commit Graph
41 Commits
Author SHA1 Message Date
Lorenz A fe243978fb Bug 2004240 - [devtools] Turn devtools/server/performance/memory.js into an ES class. r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D276558
2025-12-16 08:05:35 +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
Nicolas Chevobbe da35303962 Bug 1599082 - [devtools] Remove external usage of static EventEmitter methods. r=devtools-reviewers,jdescottes.
Replace those with inheritance/decorations, extends classes that needed it.
Next patch in stack will remove the static methods alltogether.

Differential Revision: https://phabricator.services.mozilla.com/D267589
2025-10-07 05:37:53 +00:00
Florian Quèze 16b346576d Bug 1983606 - replace Cu.now() calls with ChromeUtils.now() calls, r=Gijs,perftest-reviewers,geckoview-reviewers,devtools-reviewers,sync-reviewers,places-reviewers,dom-storage-reviewers,translations-reviewers,backup-reviewers,home-newtab-reviewers,urlbar-reviewers,janv,nalexander,skhamis,nchevobbe,timhuang,mconley,sparky.
Patch generated using this command: rg "Cu\.now\(\)" --files-with-matches | grep -v "obj-" | xargs sed -i 's/Cu\.now()/ChromeUtils.now()/g'

Differential Revision: https://phabricator.services.mozilla.com/D261474
2025-08-26 06:38:11 +00:00
Tooru Fujisawa 571e7ae7b8 Bug 1875639 - Part 2: Explicitly use contextual loader in files loaded into DevTools global. r=ochameau,devtools-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D199467
2024-02-20 04:49:57 +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 5407bdffa8 Bug 1792341 - Migrate more toolkit/modules consumers to use direct ES module import. r=Gijs,webdriver-reviewers,perftest-reviewers,necko-reviewers,geckoview-reviewers,preferences-reviewers,application-update-reviewers,pip-reviewers,credential-management-reviewers,sgalich,owlish,bytesized,AlexandruIonescu,whimboo,mconley,mixedpuppy
Mainly automated changes. Some manual ESLint fixes and whitespace cleanup.

Differential Revision: https://phabricator.services.mozilla.com/D158452
2022-10-18 11:21:26 +00:00
Alexandre Poirot 59fe57c052 Bug 1793396 - [devtools] Use absolute URLs in all usages of loader.lazyRequireGetter. r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D158489
2022-10-03 18:57:13 +00:00
Alexandre Poirot 28d340da28 Bug 1792849 - [devtools] Use absolute URLs to import modules in devtools/server. r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D158487
2022-10-03 18:57:12 +00:00
Alexandre Poirot acb64f5211 Bug 1791969 - [devtools] Migrate lazyRequireGetter for JSM to ChromeUtils.defineModuleGetter. r=jdescottes
There was some imports of sys.mjs which I migrated to `ChromeUtils.defineESModuleGetters`.

Differential Revision: https://phabricator.services.mozilla.com/D158129
2022-09-28 16:20:08 +00:00
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 86c7a14e62 Bug 1789202 - [devtools] Expose ChromeUtils as a global to all DevTools modules. r=perftest-reviewers,nchevobbe,AlexandruIonescu
This will help transition to ES Modules as this symbol is exposed to them.

$ sed -ie "/require(.ChromeUtils.)/d" $(git grep -l 'require("ChromeUtils")' devtools/)
$ sed -ie "/loader.lazyRequireGetter(this, .ChromeUtils./d" $(git grep -l 'loader.lazyRequireGetter(this, "ChromeUtils"' devtools/)
+ the edition of builtin-modules.js + eslintrc.js + manual eslint fixes

Differential Revision: https://phabricator.services.mozilla.com/D156402
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
Alexandre Poirot 96997f4d74 Bug 1729500 - [devtools] Fix stack recording in the memory panel. r=jdescottes
Without this, server side target were breaking stack record in the memory panel.
We have to ensure toggling stack record ON before the page starts loading.

Differential Revision: https://phabricator.services.mozilla.com/D124823
2021-09-14 12:46:48 +00:00
Jason Laster a18e297e7b Bug 1564168 - [jsdbg2] Debugger.prototype.enabled should be removed (part 1). r=jimb
Differential Revision: https://phabricator.services.mozilla.com/D37929
2019-07-16 00:56:19 +00:00
Victor Porof 2221048633 Bug 1561435 - Format devtools/server/, a=automatic-formatting
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D35891
2019-07-05 11:26:00 +02: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
Alexandre Poirot 9ab3b05084 Bug 1264873 - Ensure exposing memory actor for the browser content toolbox. r=yulia
MozReview-Commit-ID: 3duHXef13M4
2018-07-18 09:00:44 -07:00
J. Ryan Stinnett f489c5464f Bug 1465637 - Rename tab-scoped actors to target-scoped actors. r=ochameau
The term "tab actor" was used ambiguously to mean either the "target actor
representing a tab" or "a child actor of the tab target actor" (such as the
console actor).  Here we rename the second case to "target-scoped actor".

Differential Revision: https://phabricator.services.mozilla.com/D1760
2018-06-26 13:27:57 +00:00
arthur.iakab c92ab366d1 Backed out changeset 88960670cf9f (bug 1465637) for failing talos damp tests on server/protocol.js: Error: Can't manage front without an actor ID on a CLOSED TREE 2018-06-25 21:56:27 +03:00
J. Ryan Stinnett f1a1ed11e7 Bug 1465637 - Rename tab-scoped actors to target-scoped actors. r=ochameau
The term "tab actor" was used ambiguously to mean either the "target actor
representing a tab" or "a child actor of the tab target actor" (such as the
console actor).  Here we rename the second case to "target-scoped actor".

Differential Revision: https://phabricator.services.mozilla.com/D1760
2018-06-25 17:53:40 +00:00
J. Ryan Stinnett 8ac68bca20 Bug 1172897 - Rename ChildProcessActor to ContentProcessTargetActor. r=ochameau
MozReview-Commit-ID: 60kELwh0N3f
2018-06-04 17:30:06 -05:00
J. Ryan Stinnett d609a92077 Bug 1172897 - Rename ChromeActor to ParentProcessTargetActor. r=ochameau
MozReview-Commit-ID: JM17h5ArYub
2018-06-01 17:31:48 -05: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
Kris Maglione b3990a2d91 Bug 1456686: Part 1 - Fix unused and shadowed explicit imports. r=standard8
These issues were previously ignored due to the nature of our global import
rules. They need to be fixed before that rule can be updated.

MozReview-Commit-ID: DCChktTc5TW
2018-04-24 20:18:09 -07:00
Alexandre Poirot cd8f8a21a3 Bug 1453385 - Fix actors using something else than RetVal in response's spec. r=jryans
MozReview-Commit-ID: 2fRciZoqQSY
2018-04-13 02:56:46 -07: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
Boris Zbarsky 5e2f01813d Bug 1415389. Make ChromeUtils a WebIDL namespace. Remove ThreadSafeChromeUtils. r=kmag
MozReview-Commit-ID: 9ysAeaBMNVt
2017-11-08 00:25:33 -05:00
Kris Maglione d7f8583c5a Bug 1391707: Follow-up: Skip idle in more places that incorrectly expect strict timing. r=me CLOSED TREE
MozReview-Commit-ID: BbMB5qk4F4e
2017-09-11 21:26:04 -07:00
Julian Descottes 2530599593 Bug 1391562 - use obj.on/off/emit rather than static methods from devtools event-emitter;r=zer0
MozReview-Commit-ID: I50W8zGB9d0
2017-08-18 17:05:04 +02:00
Jan Odvarko b99e856911 Bug 1378856 - Stop using sdk/core/heritage in DevTools performance server; r=zer0
MozReview-Commit-ID: DCECaZzAEDU
2017-08-24 08:50:05 +02:00
Julian Descottes 90d2742710 Bug 1137935 - remove usage of sdk event-target in devtools;r=ochameau
MozReview-Commit-ID: 2lPCVNq7wN0
2017-08-16 15:17:24 +02:00
Andrew McCreight df7cef86b2 Bug 1350435 - Compute snapshot ID in the parent process. r=fitzgen,smaug
The parent and content processes can have different temp directories
when sandboxing is enabled, so the process that creates the file for a
heap snapshot must also determine the snapshot ID.

MozReview-Commit-ID: 2UuncT54NXc
2017-03-24 10:34:44 -07:00
Sebastian Hengst c6d9ef3e98 Backed out changeset 6bc38f188ef2 (bug 1330099) for devtools failures. r=backout 2017-01-11 23:21:56 +01:00
Tim Nguyen 548b6bdbef Bug 1330099 - Enable object-shorthand eslint rule. r=jryans
MozReview-Commit-ID: 3wA25rfznBv
2017-01-11 21:22:15 +00:00
Tim Nguyen 88b740d826 Bug 1325191 - Fix test_memory_allocations_* failures. r=bustage
MozReview-Commit-ID: ISRQwIxnsHz
2016-12-23 18:43:29 +01:00
Tim Nguyen d9e7d16501 Bug 1325191 - Fix ESLint errors in devtools/server/performance/. r=jryans
MozReview-Commit-ID: Imv1Ntr7E1x
2016-12-23 16:45:33 +01:00
Nick Fitzgerald 29461839ae Bug 1261869 - Fix leaks in devtools; r=ejpbruel
There are two leaks addressed in this commit:

1. The thread actor's `_debuggerSourcesSeen` set was never cleared. This set
exists only as a performance optimization to speed up `_addSource` in cases
where we've already added the source. Unfortunately, this set wasn't getting
cleared when we cleared debuggees out and it ended up keeping the
`Debugger.Source`, its referent, and transitively its referent's global alive. I
figured it was simpler to make it a `WeakSet` than to add it as a special case
in `ThreadActor.prototype._clearDebuggees` and manage the lifetimes by hand. I
think this fits well with its intended use as an ephemeral performance
optimization.

2. Due to a logic error, we were not clearing debuggees in the memory actor's
`Debugger` instance on navigations. This isn't really a "proper" leak, in that
if you forced a GC, the old debuggees would go away as `Debugger` holds them
weakly, however if there was no GC between navigations, then you could still see
the old windows (and everything they "retained") as roots in the snapshot. This
issue is straightforward to fix once identified: ensure that `_clearDebuggees`
is actually called on navigation.

Finally, this commit adds a test that we don't leak Window objects when devtools
are open and we keep refreshing a tab. When it fails, it prints out the leaking
window's retaining paths.
2016-07-06 08:37:57 -07: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
Nick Fitzgerald fbfd9b35a0 Bug 1224077 - Scope the boundaries of full runtime heap snapshots taken from the MemoryActor properly; r=jsantell 2015-11-13 11:46:07 -08:00
J. Ryan Stinnett 6511a6c240 Bug 1196047 - Move shared/shared perf files to server/performance. r=jsantell 2015-10-09 18:26:09 -05:00