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

59 Коммитов

Автор SHA1 Сообщение Дата
Jason Laster 6d4b358fc8 Bug 1564168 - [jsdbg2] Debugger.prototype.enabled should be removed (part 1). r=jimb
Differential Revision: https://phabricator.services.mozilla.com/D37929

--HG--
extra : moz-landing-system : lando
2019-07-16 00:56:19 +00:00
Victor Porof 24d2c75470 Bug 1561435 - Format devtools/server/, a=automatic-formatting
# ignore-this-changeset

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

--HG--
extra : source : d2dc183b9bf9086d4b862e0e9a0cfa0bf773193f
2019-07-05 11:26:00 +02:00
Boris Zbarsky e03bc405fa Bug 1551106 part 2. Stop using [array] in profiler's GetFeatures/GetAllFeatures. r=gerald
Differential Revision: https://phabricator.services.mozilla.com/D30968

--HG--
extra : moz-landing-system : lando
2019-05-21 14:43:10 +00:00
Boris Zbarsky dbdb74ad56 Bug 1551106 part 1. Stop using [array] in StartProfiler. r=gerald
Differential Revision: https://phabricator.services.mozilla.com/D30967

--HG--
extra : moz-landing-system : lando
2019-05-21 14:42:57 +00:00
Julien Wajsberg edc9fbc30b Bug 1489745 - Convert the preference sample-frequency-khz to hz r=ochameau,mstange
The int preference profiler.sample-frequency-khz didn't make it possible
to reduce the overhead in tests, because we could have intervals bigger
than 1ms. With this change we can now do it.

Depends on D8547

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

--HG--
extra : moz-landing-system : lando
2018-10-24 12:09:37 +00:00
Mark Banner ceaeb93550 Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D8389

--HG--
extra : moz-landing-system : lando
2018-10-19 12:55:39 +00:00
Kris Maglione 9a8a840c9d Bug 1484496: Part 5d - Convert devtools/ nsISimpleEnumerator users to use JS iteration. r=bgrins
Differential Revision: https://phabricator.services.mozilla.com/D3732

--HG--
extra : rebase_source : 0154c72286ce0ca3ade84c5c360122861a36c7b0
extra : histedit_source : 83a8b267becbf86db5f8789d3673bd529da35286
2018-08-18 19:28:37 -07:00
Boris Zbarsky 79181a1a13 Bug 1446940 part 3. Stop getting docshells from windows via getInterface in devtools. r=bgrins 2018-08-01 13:07:10 -04:00
Alexandre Poirot 6a298fd038 Bug 1264873 - Ensure exposing memory actor for the browser content toolbox. r=yulia
MozReview-Commit-ID: 3duHXef13M4

--HG--
extra : rebase_source : 8f372fedbbfe59ec7c2756bde61450e67f46345a
2018-07-18 09:00:44 -07:00
J. Ryan Stinnett ca90a5ef7b 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

--HG--
rename : devtools/client/debugger/test/mochitest/browser_dbg_tabactor-01.js => devtools/client/debugger/test/mochitest/browser_dbg_target-scoped-actor-01.js
rename : devtools/client/debugger/test/mochitest/browser_dbg_tabactor-02.js => devtools/client/debugger/test/mochitest/browser_dbg_target-scoped-actor-02.js
2018-06-26 13:27:57 +00:00
arthur.iakab ff23802cfd 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
--HG--
rename : devtools/client/debugger/test/mochitest/browser_dbg_target-scoped-actor-01.js => devtools/client/debugger/test/mochitest/browser_dbg_tabactor-01.js
rename : devtools/client/debugger/test/mochitest/browser_dbg_target-scoped-actor-02.js => devtools/client/debugger/test/mochitest/browser_dbg_tabactor-02.js
2018-06-25 21:56:27 +03:00
J. Ryan Stinnett 8433b7ff9f 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

--HG--
rename : devtools/client/debugger/test/mochitest/browser_dbg_tabactor-01.js => devtools/client/debugger/test/mochitest/browser_dbg_target-scoped-actor-01.js
rename : devtools/client/debugger/test/mochitest/browser_dbg_tabactor-02.js => devtools/client/debugger/test/mochitest/browser_dbg_target-scoped-actor-02.js
2018-06-25 17:53:40 +00:00
Sebastian Hengst 82bbb42c90 Bug 1469872 - update bugzilla products and components in moz.build files: devtools. r=nalexander
MozReview-Commit-ID: 6bs0jkTP6rP

--HG--
extra : rebase_source : 4e554f8e710aea1fb372a0f21d7539cf568baa17
2018-06-20 21:34:40 +03:00
J. Ryan Stinnett 2d8cc5a3cb Bug 1172897 - Rename ChildProcessActor to ContentProcessTargetActor. r=ochameau
MozReview-Commit-ID: 60kELwh0N3f

--HG--
rename : devtools/server/actors/child-process.js => devtools/server/actors/targets/content-process.js
extra : rebase_source : 87af1aebbeeaf5a0649566a1f7cca37f88a7d5fe
2018-06-04 17:30:06 -05:00
J. Ryan Stinnett 70dc511eef Bug 1172897 - Rename ChromeActor to ParentProcessTargetActor. r=ochameau
MozReview-Commit-ID: JM17h5ArYub

--HG--
rename : devtools/server/actors/chrome.js => devtools/server/actors/targets/parent-process.js
extra : rebase_source : 2eae9440b9fac9ae1b42e910ac6cc5abf14105de
2018-06-01 17:31:48 -05:00
J. Ryan Stinnett eaa4969e77 Bug 1172897 - Rename TabActor to BrowsingContextTargetActor. r=ochameau
MozReview-Commit-ID: LPTEx2h4F1o

--HG--
rename : devtools/server/actors/tab.js => devtools/server/actors/targets/browsing-context.js
rename : devtools/shared/specs/tab.js => devtools/shared/specs/targets/browsing-context.js
extra : rebase_source : e62720693ad492cdfb68ab21af1f54d78e85123a
2018-05-25 18:20:28 -05:00
Julian Descottes 7fdc2c153f Bug 1454696 - Fix leftover issues for prefer-const;r=yulia
MozReview-Commit-ID: JwOXoqw2mks

--HG--
extra : rebase_source : a3f07665a42c2779a85b7901a07206266a9d1616
extra : source : ae946f375e0d0f4f0f0fc859c54040fef42cbc2c
2018-06-01 12:19:35 +02:00
Julian Descottes 640fe52298 Bug 1454696 - Run eslint --fix for prefer-const;r=yulia
MozReview-Commit-ID: F6xUXCgdRE4

--HG--
extra : rebase_source : 65de1b0aba412d9044b5196115f74276caa058f2
2018-06-01 12:36:09 +02:00
Kris Maglione a7b308c3a2 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

--HG--
extra : rebase_source : cffb1c9762191c579d1397c8169e6e7635d229da
extra : histedit_source : dea59ddd2daaae52069c5faceae9149a4f08dd73
2018-04-24 20:18:09 -07:00
Alexandre Poirot 0594f50321 Bug 1453385 - Fix actors using something else than RetVal in response's spec. r=jryans
MozReview-Commit-ID: 2fRciZoqQSY

--HG--
extra : rebase_source : 77de1f39294b78816d62de60f948a3b2e0660482
2018-04-13 02:56:46 -07:00
J. Ryan Stinnett 23ff4cc75d Bug 1443081 - Apply spacing via `eslint --fix` for DevTools. r=jdescottes
MozReview-Commit-ID: 2RVNt140Zte
2018-03-12 13:44:41 -05:00
Mark Banner 21e6e270a4 Bug 1438489 - Enable ESLint rule mozilla/use-services for devtools/. r=jdescottes
MozReview-Commit-ID: FZscEA6Q3Kb

--HG--
extra : rebase_source : b1b8699288a3595e52bcff3c7684bfe095f41dd1
2018-02-15 12:00:17 +00:00
Alexandre Poirot 6ecbf50249 Bug 1437828 - Convert Task.jsm to async/await in devtools/server. r=jryans
MozReview-Commit-ID: I1GlhEdco3H

--HG--
extra : rebase_source : faa17e2cd6e985ada67ede46a11464e62f0f818f
2018-02-13 03:36:40 -08:00
Alexandre Poirot 793ced87e6 Bug 1436978 - Stop using Promise.jsm in devtools/server in favor of DOM Promises. r=jdescottes
MozReview-Commit-ID: Hv7uYZKZGIO

--HG--
extra : rebase_source : 95455a3c13b608d96f9a1f3c4a3071c04c7480f8
2018-02-13 02:31:14 -08:00
Florian Quèze 2b1c8dccb6 Bug 1339461 - script-generated patch to convert foo.indexOf(...) == -1 to foo.includes(), r=Mossop. 2018-02-01 20:45:22 +01:00
Alexandre Poirot 25665eee8e Bug 1422061 - Prevent performance actor from stopping profiler started by Talos. r=gregtatum
MozReview-Commit-ID: 7PrI9ZwUMtX

--HG--
extra : rebase_source : ea112949c363a216fe51df196524a1b00c8c8ad1
2018-01-16 08:26:30 -08:00
Boris Zbarsky 97828fce1d 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 e3f6c844ae 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
Kris Maglione 80178f8d4d Bug 1391707: Part 1 - Use idle dispatch in DeferredTask. r=florian
MozReview-Commit-ID: Ktlu71aIcRZ

--HG--
extra : rebase_source : f1bd118a1d869deddb5fe9107641f848cf4165e3
2017-09-01 16:39:14 -07:00
sole 221402c06d Bug 1395903 - Stop using sdk/core/heritage in devtools performance server recorder.js.r=jdescottes
MozReview-Commit-ID: BdYVlQVvClN

--HG--
extra : rebase_source : c4851c0d9fb227f14b00f8107aa40e11478d58b6
2017-09-01 13:49:20 +01:00
Julian Descottes ffc364ee02 Bug 1391562 - use obj.on/off/emit rather than static methods from devtools event-emitter;r=zer0
MozReview-Commit-ID: I50W8zGB9d0

--HG--
extra : rebase_source : 31b687343461a65fc6a40eece461bc2367d596d7
2017-08-18 17:05:04 +02:00
Jan Odvarko 0f6bf8173e Bug 1378856 - Stop using sdk/core/heritage in DevTools performance server; r=zer0
MozReview-Commit-ID: DCECaZzAEDU

--HG--
extra : rebase_source : 6f335a20aa7e9a27312205f0f1a8eab607bda0d0
2017-08-24 08:50:05 +02:00
Julian Descottes a483c4620c Bug 1137935 - remove usage of sdk event-target in devtools;r=ochameau
MozReview-Commit-ID: 2lPCVNq7wN0

--HG--
extra : rebase_source : f18375b8b6d4138897d1707c489b5bce4f68f906
2017-08-16 15:17:24 +02:00
Julian Descottes 19c4c8493a Bug 1137935 - remove all usage of sdk/event/core/ in devtools;r=ochameau
MozReview-Commit-ID: 2ab0Ol4Mq64

--HG--
extra : rebase_source : 22d0003b40e0fc49e309187ea3c943a6f5048db5
2017-08-16 15:11:21 +02:00
Julian Descottes 8f7083a841 Bug 1361332 - replace sdk/util/object by Object.assign in devtools;r=zer0
MozReview-Commit-ID: 3IREzyuAjAF

--HG--
extra : rebase_source : 758d431d809f0ac7bf70a1a39c2f38c83361e8f6
2017-07-31 19:53:37 +02:00
Markus Stange 89bf2bcbfc Bug 1350503 - Wrap the performance actor's sharedLibraries value inside an object so that it can be transferred through the debugger protocol. r=gregtatum
MozReview-Commit-ID: 3cXfaSrWFJW

--HG--
extra : rebase_source : 7dca681aa1b43e9351e398966416614e656f78e0
2017-04-20 16:10:47 -04:00
Florian Queze 37ff4fc7cc Bug 1356569 - Remove addObserver's last parameter when it is false, r=jaws. 2017-04-14 21:51:38 +02:00
Sebastian Hengst a07223d699 Backed out changeset 322fde2d53bf (bug 1356569) so bug 1355161 can be backed out. r=backout 2017-04-14 23:39:22 +02:00
Florian Queze 95d4d20c17 Bug 1356569 - Remove addObserver's last parameter when it is false, r=jaws. 2017-04-14 21:51:38 +02:00
Andrew McCreight 855f08b5d6 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

--HG--
extra : rebase_source : 350e49bf7c570abfdde457a89ee8922f8cdb8b7d
2017-03-24 10:34:44 -07:00
Markus Stange 67727faeea Bug 1329111 - Update devtools users of nsIProfiler.getSharedLibraryInformation. r=gregtatum
This actor message is not used by the devtools themselves, it's only exposed so that
the add-on can use it. See bug 1131397.

MozReview-Commit-ID: F1dm0U4rkEd

--HG--
rename : devtools/server/tests/unit/test_profiler_getsharedlibraryinformation.js => devtools/server/tests/unit/test_profiler_sharedlibraries.js
extra : rebase_source : 52f8836da36b09a8d2091c18817cbc3d8ed51da0
2017-03-14 19:20:21 -04:00
Sebastian Hengst 987e57b826 Backed out changeset c823541813c2 (bug 1329111)
--HG--
rename : devtools/server/tests/unit/test_profiler_sharedlibraries.js => devtools/server/tests/unit/test_profiler_getsharedlibraryinformation.js
2017-03-16 19:59:29 +01:00
Markus Stange ac8ba3e0d7 Bug 1329111 - Update devtools users of nsIProfiler.getSharedLibraryInformation. r=gregtatum
This actor message is not used by the devtools themselves, it's only exposed so that
the add-on can use it. See bug 1131397.

MozReview-Commit-ID: F1dm0U4rkEd

--HG--
rename : devtools/server/tests/unit/test_profiler_getsharedlibraryinformation.js => devtools/server/tests/unit/test_profiler_sharedlibraries.js
extra : rebase_source : 8d14470d7a34ae3ea2efc1d66d27257353b70c8d
2017-03-14 18:54:51 -04:00
Joel Maher 41529739bc Bug 1330325 - add BUG_COMPONENT to devtools/* files. r=jryans
MozReview-Commit-ID: Bd0ca7f6QE6
2017-01-13 08:40:35 -05:00
Tim Nguyen a0a218ef6f Bug 1325191 - Fix test_memory_allocations_* failures. r=bustage
MozReview-Commit-ID: ISRQwIxnsHz
2016-12-23 18:43:29 +01:00
Tim Nguyen 2b0b85f4b0 Bug 1325191 - Fix ESLint errors in devtools/server/performance/. r=jryans
MozReview-Commit-ID: Imv1Ntr7E1x
2016-12-23 16:45:33 +01:00
Tom Tromey 5538d692d3 Bug 1286877 - do not set c-basic-offset for python-mode; r=gps
This removes the unnecessary setting of c-basic-offset from all
python-mode files.

This was automatically generated using

    perl -pi -e 's/; *c-basic-offset: *[0-9]+//'

... on the affected files.

The bulk of these files are moz.build files but there a few others as
well.

MozReview-Commit-ID: 2pPf3DEiZqx

--HG--
extra : rebase_source : 0a7dcac80b924174a2c429b093791148ea6ac204
2016-07-14 10:16:42 -06:00
Nick Fitzgerald 7b0a1f6dee 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
Tom Tromey 0d398a243a Bug 1265869 - Add task.js and use in devtools. r=jryans
MozReview-Commit-ID: G5UuAh2RiZZ

--HG--
rename : toolkit/modules/Task.jsm => devtools/shared/task.js
extra : transplant_source : %B8h%8A%8C%BD%91%8A%81%1D%F4%F5%2Ap%CFv%BC%963u0
2016-05-17 13:07:55 -06:00
J. Ryan Stinnett 30b2b7ce44 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