Commit Graph

77 Commits

Author SHA1 Message Date
Nicolas Chevobbe
073b56709e Bug 1668219 - [devtools] Remove now unused performance-recording actor and front. r=julienw,devtools-backward-compat-reviewers.
Remove files that were only used by this actor as well.

Differential Revision: https://phabricator.services.mozilla.com/D145464
2022-05-06 17:16:29 +00:00
Nicolas Chevobbe
1896f79ed4 Bug 1756194 - [devtools] Remove unused devtools/shared/specs/timeline.js. r=jdescottes,devtools-backward-compat-reviewers.
We also remove the doc-loading event that isn't
consumed anywhere and seemd to be a relic of the
past when we had a timeline actor.

Differential Revision: https://phabricator.services.mozilla.com/D139132
2022-02-21 17:30:18 +00:00
Nicolas Chevobbe
8d5a1f6da1 Bug 1391261 - [devtools] Remove support for wildcard in EventEmitter. r=jdescottes.
Callsites are updated to listen to individual events instead.

Differential Revision: https://phabricator.services.mozilla.com/D139017
2022-02-21 17:30:16 +00:00
Julien Wajsberg
ff988ebecd Bug 1639716 - [profiler] Remove the profiler disabling by private browsing r=jdescottes,gerald,devtools-backward-compat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D129417
2022-01-26 17:26:21 +00:00
Alexandre Poirot
97cd4b0fcd Bug 1732120 - [devtools] Rename BrowsingContextTargetActor to WindowGlobalTargetActor. r=nchevobbe,devtools-backward-compat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D126367
2021-09-27 12:16:11 +00:00
Alexandre Poirot
e856c50e32 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
Alexandre Poirot
f5a8824095 Bug 1657435 - [devtools] Migrate from getAllDocShellsInSubtree to getAllBrowsingContextsInSubtree in DevTools. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D103027
2021-01-26 17:31:12 +00:00
Ricky Stewart
02a7b4ebdf Bug 1654103: Standardize on Black for Python code in mozilla-central.
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Make some ad-hoc manual updates to `testing/marionette/client/setup.py`, `testing/marionette/harness/setup.py`, and `testing/firefox-ui/harness/setup.py`, which have hard-coded regexes that break after the reformat.

5. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-26 18:34:53 +00:00
Bogdan Tara
da1098d4aa Backed out 10 changesets (bug 1654103, bug 1672023, bug 1518999) for PanZoomControllerTest.touchEventForResult gv-junit failures CLOSED TREE
Backed out changeset ff3fb0b4a512 (bug 1672023)
Backed out changeset e7834b600201 (bug 1654103)
Backed out changeset 807893ca8069 (bug 1518999)
Backed out changeset 13e6b92440e9 (bug 1518999)
Backed out changeset 8b2ac5a6c98a (bug 1518999)
Backed out changeset 575748295752 (bug 1518999)
Backed out changeset 65f07ce7b39b (bug 1518999)
Backed out changeset 4bb80556158d (bug 1518999)
Backed out changeset 8ac8461d7bd7 (bug 1518999)
Backed out changeset e8ba13ee17f5 (bug 1518999)
2020-10-24 03:36:18 +03:00
Ricky Stewart
c0cea3b0fa Bug 1654103: Standardize on Black for Python code in mozilla-central. r=remote-protocol-reviewers,marionette-reviewers,webdriver-reviewers,perftest-reviewers,devtools-backward-compat-reviewers,jgilbert,preferences-reviewers,sylvestre,maja_zf,webcompat-reviewers,denschub,ntim,whimboo,sparky
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Make some ad-hoc manual updates to `testing/marionette/client/setup.py`, `testing/marionette/harness/setup.py`, and `testing/firefox-ui/harness/setup.py`, which have hard-coded regexes that break after the reformat.

5. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-23 20:40:42 +00:00
Dorel Luca
1ff59cb7a3 Backed out changeset 7558c8821a07 (bug 1654103) for multiple failures. CLOSED TREE 2020-10-22 03:51:06 +03:00
Ricky Stewart
50762dacab Bug 1654103: Standardize on Black for Python code in mozilla-central. r=remote-protocol-reviewers,marionette-reviewers,webdriver-reviewers,perftest-reviewers,devtools-backward-compat-reviewers,jgilbert,preferences-reviewers,sylvestre,maja_zf,webcompat-reviewers,denschub,ntim,whimboo,sparky
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-21 21:27:27 +00:00
Greg Tatum
7d0881e8e8 Bug 1144438 - Remove false error notification when the profiler stops; r=julienw
If the profiler unexpectedly stops, this is fine, as the new recording infrastructure
is most likely in control of it. This was leading to lots of spurious errors when
working on the new about:profiling infrastructure.

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

--HG--
extra : moz-landing-system : lando
2020-03-02 16:37:04 +00:00
Arthur Iakab
2f1c972d30 Backed out 6 changesets (bug 1144438, bug 1617208, bug 1597378) for causing devtools failures on browser_all_files_referenced.js
Backed out changeset eef173a3678d (bug 1617208)
Backed out changeset cc21fa09b88d (bug 1597378)
Backed out changeset b802ce66aa59 (bug 1597378)
Backed out changeset c65103d7bf0b (bug 1597378)
Backed out changeset 35da034acf03 (bug 1597378)
Backed out changeset 4e152220ad14 (bug 1144438)

--HG--
rename : devtools/client/performance-new/test/browser/browser_popup-record-capture.js => devtools/client/performance-new/test/browser/browser_popup-end-to-end-click.js
rename : devtools/client/performance-new/test/browser/browser_aboutprofiling-env-restart-button.js => devtools/client/performance-new/test/browser/browser_popup-env-restart-button.js
rename : devtools/client/performance-new/test/browser/browser_aboutprofiling-features-disabled.js => devtools/client/performance-new/test/browser/browser_popup-features-disabled.js
2020-02-26 03:22:40 +02:00
Greg Tatum
2d66c41684 Bug 1144438 - Remove false error notification when the profiler stops; r=julienw
If the profiler unexpectedly stops, this is fine, as the new recording infrastructure
is most likely in control of it. This was leading to lots of spurious errors when
working on the new about:profiling infrastructure.

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

--HG--
extra : moz-landing-system : lando
2020-02-25 20:35:15 +00:00
Arthur Iakab
854fd7a3b4 Backed out 6 changesets (bug 1144438, bug 1617208, bug 1597378) for causing mochitest failures on test_perf-settings-entries.html.
Backed out changeset 2181d8a99229 (bug 1617208)
Backed out changeset 38c8db44b398 (bug 1597378)
Backed out changeset b2f0cf9a387e (bug 1597378)
Backed out changeset 4d1ff8bd4e64 (bug 1597378)
Backed out changeset 9b760d8fc1dc (bug 1597378)
Backed out changeset bc5727185383 (bug 1144438)

--HG--
rename : devtools/client/performance-new/test/browser/browser_popup-record-capture.js => devtools/client/performance-new/test/browser/browser_popup-end-to-end-click.js
rename : devtools/client/performance-new/test/browser/browser_aboutprofiling-env-restart-button.js => devtools/client/performance-new/test/browser/browser_popup-env-restart-button.js
rename : devtools/client/performance-new/test/browser/browser_aboutprofiling-features-disabled.js => devtools/client/performance-new/test/browser/browser_popup-features-disabled.js
2020-02-25 20:51:07 +02:00
Greg Tatum
1ded8008b3 Bug 1144438 - Remove false error notification when the profiler stops; r=julienw
If the profiler unexpectedly stops, this is fine, as the new recording infrastructure
is most likely in control of it. This was leading to lots of spurious errors when
working on the new about:profiling infrastructure.

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

--HG--
extra : moz-landing-system : lando
2020-02-25 16:42:33 +00:00
Ehsan Akhgari
dc998c5c5a Bug 1592599 - Switch nsIDocShell.getDocShellEnumerator() away from using nsISimpleEnumerator; r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D51100

--HG--
extra : moz-landing-system : lando
2019-11-18 20:11:58 +00:00
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