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

5821 Коммитов

Автор SHA1 Сообщение Дата
Emilio Cobos Álvarez 5eedf36dc4 Bug 1868316 - Add user-find to animation-type-longhand. CLOSED TREE 2024-02-02 08:51:57 -05:00
Alexandre Poirot 384ad50604 Bug 1876297 - [devtools] Only force overiding local scope variables for frontend commands relying on console commands. r=devtools-reviewers,devtools-backward-compat-reviewers,nchevobbe
We should probably expose new RDP methods to prevent relying on console evaluations for this.
We would still have some potential issues if the evaluated method is about a JS symbol
whose name is the console command.

Differential Revision: https://phabricator.services.mozilla.com/D200167
2024-02-02 12:41:00 +00:00
Alexandre Poirot b2cb2deb0c Bug 1874205 - [devtools] Prevents tracing content process targets. r=devtools-reviewers,nchevobbe
Let's avoid tracing content process targets for now as this would require some more work (bug 1874204).

Also ignore web extension documents as they are all running in the same process dedicated to WebExt.
(JavaScriptTracer class only support being instantiated once per thread and all these documents run on the same)
(bug 1874219)

Differential Revision: https://phabricator.services.mozilla.com/D200169
2024-02-01 13:07:20 +00:00
Nicolas Chevobbe 4e7d8179ef Bug 1876455 - [devtools] Fix animation panel for animated registered properties. r=devtools-reviewers,bomsy.
Differential Revision: https://phabricator.services.mozilla.com/D199603
2024-02-01 13:03:22 +00:00
Tooru Fujisawa 262a2acc36 Bug 1877484 - Allow conditional lazy getter definitions in if-then-else. r=Standard8,devtools-reviewers,sync-reviewers,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D200044
2024-01-31 18:57:02 +00:00
Alexandre Poirot 964d788d16 Bug 1848159 - [devtools] Use tracing icon for all messages related to the tracing. r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D199975
2024-01-30 20:18:51 +00:00
Alexandre Poirot cf6d19f16a Bug 1848159 - [devtools] Introduce an option to start tracing on next page load. r=devtools-reviewers,devtools-backward-compat-reviewers,nchevobbe
Because the JavaScript tracer is currently running in each process/thread/target actor independently,
it is more complex to make it record across navigations as it may be spawn in a distinct process.

While it is fine for stdout and webconsole outputs (we could just spawn many concurrent tracers in each process),
this is more complex for the experimental "profiler" output.
For now, the profiler output automatically stops on target destruction and will open the profiler result.

By having an option to start recording on next page load, it prevents starting the tracer and prevent logging traces
for the current WindowGlobal. It should help focus on the new document.
For the profiler output, it prevents having the profiler to show up for the previous WindowGlobal.

Sideby tweak:
* stop passing logMethod and consider, like other option to be coming from the preferences.
* fix confusing state when debugging a page running in the same process.

Differential Revision: https://phabricator.services.mozilla.com/D196874
2024-01-30 20:18:51 +00:00
Alexandre Poirot 291dec5ed3 Bug 1848159 - [devtools] Use a SessionData/Target configuration to control JavaScript tracer. r=devtools-reviewers,nchevobbe
This simplifies toggling the Tracer on all active targets.
But this will be especially useful in the next changeset.
This allows to have two distinct level of enabling:
* the target configuration
* the actual start of tracing done by the tracer (on user interaction or next page load)

Doing this allows to distinguish tracer simple enabling,
when "trace on next user interaction" is enabled,
where we can display a badge on the tracer icon to significate it isn't tracing just yet.
And actual start of the tracer, when the first user interaction happens,
where we can remove the badge.

Differential Revision: https://phabricator.services.mozilla.com/D198961
2024-01-30 20:18:50 +00:00
Nicolas Chevobbe eb97ea2e12 Bug 1855973 - [devtools] Don't await for watcher.watch result in watchResources loop. r=devtools-reviewers,ochameau.
Since we were waiting for the watch promise to resolve before adding the watcher
to the watchers Map, we had cases where the destroy/unwatch code was called while
we were waiting, causing some listeners to not be properly unregistered.

Differential Revision: https://phabricator.services.mozilla.com/D199959
2024-01-30 12:52:57 +00:00
Nicolas Chevobbe cdb26d4c12 Bug 1870812 - [devtools] Add CSS_REGISTERED_PROPERTIES resource. r=devtools-reviewers,ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D196848
2024-01-29 17:38:04 +00:00
Nicolas Chevobbe 3e2cf59af8 Bug 1876479 - [devtools] Add StyleSheetsManager watch mechanism. r=devtools-reviewers,ochameau.
With this it's easier to handle existing stylesheets (or to ignore them).
As the stylesheets resource now calls `watch`, we can remove StyleSheetsManager
events that were only used there.

Differential Revision: https://phabricator.services.mozilla.com/D199612
2024-01-29 17:38:04 +00:00
Nicolas Chevobbe a23a227be9 Bug 1876479 - [devtools] Only register event listeners once in StyleSheetsManager. r=devtools-reviewers,ochameau.
Don't register StyleSheetApplicableStateChanged/StyleSheetRemoved/window-ready events
if they were already registered before.
We take this as an opportunity to control those event listeners
with an AbortController to make it cleaner in destroy.

Differential Revision: https://phabricator.services.mozilla.com/D199611
2024-01-29 17:38:03 +00:00
Tom Marble 3c78905f47 Bug 1868866 - adds ManifestParser TOML linter r=jmaher,linter-reviewers,ahal,webdriver-reviewers,settings-reviewers,search-reviewers,devtools-reviewers,fxview-reviewers,cookie-reviewers,sessionstore-reviewers,places-reviewers,dom-storage-reviewers,translations-reviewers,valentin,whimboo,Standard8,sclements,jesup
Differential Revision: https://phabricator.services.mozilla.com/D199054
2024-01-29 17:30:48 +00:00
Alexandre Poirot 6b018ef63f Bug 1875045 - [devtools] Release Object actors by bulk. r=devtools-reviewers,devtools-backward-compat-reviewers,nchevobbe
For now we were releasing object actors one by one.
This would force to send an individual RDP request for each of them.
The console often release all objects actors related to older console message
going over the maximum limit of displayed console messages (10k).
This can easily grow in a large number of actors to be released,
either if console message are receiving many arguments and/or
if many console are logged.

We have to have one request per target as the actors could only be reached
within same-thread actor.
In order to prepare for ObjectFront removal, introduce a target-scoped "Objects" actor
which is a singleton per Target. It will receive the new "release in bulk objects actors"
method. Later, it will start implementing all the existing methods of the Object Actor
in order to migrate away from having to instantiate one Object Front (notice the singular on "Object"),
per inspected JS Object.

On the fronted side a new Object Command is introduced in order to abstract away the RDP/Fronts work.

Differential Revision: https://phabricator.services.mozilla.com/D198784
2024-01-29 13:59:51 +00:00
Sandor Molnar 51bb77759a Backed out changeset 2be67d91cf16 (bug 1868866) for causing Mn failures at toolkit/xre/test/marionette/test_exitcode.py CLOSED TREE 2024-01-27 00:15:22 +02:00
Tom Marble 2434015dc5 Bug 1868866 - adds ManifestParser TOML linter r=jmaher,linter-reviewers,ahal,webdriver-reviewers,settings-reviewers,search-reviewers,devtools-reviewers,fxview-reviewers,cookie-reviewers,sessionstore-reviewers,places-reviewers,dom-storage-reviewers,translations-reviewers,valentin,whimboo,Standard8,sclements,jesup
Differential Revision: https://phabricator.services.mozilla.com/D199054
2024-01-26 20:06:56 +00:00
Gijs Kruitbosch 671866b17f Bug 1780071 - autofix devtools/ violations of no-comparison-or-assignment-inside-ok r=profiler-reviewers,devtools-reviewers,julienw,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D198975
2024-01-26 13:12:07 +00:00
Iulian Moraru 50cafc734d Backed out 2 changesets (bug 1875045) for causing dt failures on browser_webconsole_console_logging_workers_api.js. CLOSED TREE
Backed out changeset 533ecc686bac (bug 1875045)
Backed out changeset f4ac089ead5a (bug 1875045)
2024-01-26 16:09:31 +02:00
Alexandre Poirot ca7f8ba750 Bug 1875045 - [devtools] Release Object actors by bulk. r=devtools-reviewers,devtools-backward-compat-reviewers,nchevobbe
For now we were releasing object actors one by one.
This would force to send an individual RDP request for each of them.
The console often release all objects actors related to older console message
going over the maximum limit of displayed console messages (10k).
This can easily grow in a large number of actors to be released,
either if console message are receiving many arguments and/or
if many console are logged.

We have to have one request per target as the actors could only be reached
within same-thread actor.
In order to prepare for ObjectFront removal, introduce a target-scoped "Objects" actor
which is a singleton per Target. It will receive the new "release in bulk objects actors"
method. Later, it will start implementing all the existing methods of the Object Actor
in order to migrate away from having to instantiate one Object Front (notice the singular on "Object"),
per inspected JS Object.

On the fronted side a new Object Command is introduced in order to abstract away the RDP/Fronts work.

Differential Revision: https://phabricator.services.mozilla.com/D198784
2024-01-26 10:41:43 +00:00
Jonathan Kew a9ef7b2b09 Bug 1852478 - Update property_database.js for conversion of `white-space` and `text-wrap` to shorthands. r=firefox-style-system-reviewers,emilio,devtools-reviewers,nchevobbe
Also fix up devtools data/tests now that white-space is a shorthand.

Differential Revision: https://phabricator.services.mozilla.com/D198792
2024-01-26 09:40:03 +00:00
Nicolas Chevobbe f923bc417b Bug 1876533 - [devtools] Use principal hostPort in DevToolsServiceWorkerChild _shouldHandleWorker. r=devtools-reviewers,ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D199639
2024-01-26 06:26:37 +00:00
Cristian Tuns f0be219b00 Backed out 4 changesets (bug 1758391, bug 1852478) for causing build bustages in UseCounterMetrics.cpp CLOSED TREE
Backed out changeset fe673f87d86a (bug 1852478)
Backed out changeset d466ccbd1aad (bug 1852478)
Backed out changeset c0fa98fec39a (bug 1758391)
Backed out changeset 04d322f23fd0 (bug 1852478)
2024-01-25 18:29:39 -05:00
Jonathan Kew 346056e221 Bug 1852478 - Update property_database.js for conversion of `white-space` and `text-wrap` to shorthands. r=firefox-style-system-reviewers,emilio,devtools-reviewers,nchevobbe
Also fix up devtools data/tests now that white-space is a shorthand.

Differential Revision: https://phabricator.services.mozilla.com/D198792
2024-01-25 22:20:06 +00:00
Nicolas Chevobbe 7b88c1ba42 Bug 1876477 - [devtools] Use proper private fields and methods in StyleSheetsManager. r=devtools-reviewers,ochameau.
This revealed that some of the pseudo methods were used outside of the StyleSheetsManager,
so we're making them public instead.

Differential Revision: https://phabricator.services.mozilla.com/D199610
2024-01-25 16:38:32 +00:00
Joel Maher 3ad5072cf1 Bug 1873732 - remove outdated manifest conditions and use consistent conditions. r=aryx,necko-reviewers,jgilbert,settings-reviewers,credential-management-reviewers,devtools-reviewers,sessionstore-reviewers,dom-storage-reviewers,sgalich,kershaw,nchevobbe,janv,dao
Differential Revision: https://phabricator.services.mozilla.com/D198082
2024-01-25 00:27:05 +00:00
Stanca Serban 221d7acc5b Backed out changeset 54462970f797 (bug 1873732) for causing web platform tests failures. 2024-01-24 21:08:19 +02:00
Joel Maher 807575f8e1 Bug 1873732 - remove outdated manifest conditions and use consistent conditions. r=aryx,necko-reviewers,jgilbert,settings-reviewers,credential-management-reviewers,devtools-reviewers,sessionstore-reviewers,dom-storage-reviewers,sgalich,kershaw,nchevobbe,janv,dao
Differential Revision: https://phabricator.services.mozilla.com/D198082
2024-01-24 16:35:54 +00:00
Nicolas Chevobbe 35eba776d0 Bug 1875993 - [devtools] Remove unnecessary CSS color filter in generateCssProperties. r=devtools-reviewers,ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D199316
2024-01-23 18:23:38 +00:00
Butkovits Atila 161bb7e6fd Backed out changeset 41fd454b843a (bug 1870812) for causing failures at browser_resources_css_registered_properties.js. CLOSED TREE 2024-01-18 03:16:03 +02:00
Nicolas Chevobbe 559e1df11d Bug 1870812 - [devtools] Add CSS_REGISTERED_PROPERTIES resource. r=devtools-reviewers,ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D196848
2024-01-17 16:21:17 +00:00
Gregory Pappas 1ea1f154f9 Bug 1872922 - Replace last few uses of XPCOMUtils.defineLazyGetter with ChromeUtils.defineLazyGetter and add linter error for XPCOMUtils.defineLazyGetter r=extension-reviewers,credential-management-reviewers,devtools-reviewers,Standard8,arai,robwu,Gijs,sgalich
Differential Revision: https://phabricator.services.mozilla.com/D198677
2024-01-17 15:54:00 +00:00
Nicolas Chevobbe f98dafa4d3 Bug 1874695 - [devtools] Fix logging of Arrays from Workers. r=devtools-reviewers,bomsy.
Differential Revision: https://phabricator.services.mozilla.com/D198661
2024-01-16 14:05:31 +00:00
Alexandre Poirot bd0100a381 Bug 1873515 - [devtools] Log DOM events when tracing from the browser toolbox. r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D198156
2024-01-11 15:28:03 +00:00
Alexandre Poirot 7ad54a3713 Bug 1873512 - [devtools] Bind `dump` in workers when this module is loaded from the Common JS loader. r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D198155
2024-01-11 15:28:03 +00:00
Alexandre Poirot 3a7e238d3b Bug 1873007 - [devtools] Show the reason why the JS tracer stopped. r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D197660
2024-01-09 17:49:02 +00:00
Alexandre Poirot 9afad8393d Bug 1870801 - [devtools] Allow limiting depth and max top level frames when tracing javascript. r=devtools-reviewers,nchevobbe,fluent-reviewers,flod
These two settings are only available via the web console commands as they expect number as arguments
which is hard to implement via the context menu on the debugger button.

Move stdout logging to a dedicated method as onEnterFrame reached eslint complexity limit.

Differential Revision: https://phabricator.services.mozilla.com/D196832
2024-01-09 17:49:02 +00:00
Alexandre Poirot 2124160fff Bug 1870801 - [devtools] Log JS tracer start/stop, even when not initiated from console command. r=devtools-reviewers,nchevobbe
The JavaScript Tracer may be initiated by the debugger, or stoped by itself when reaching some limit.
In these cases, the start and stop messages wouldn't have been logged in the console.

Differential Revision: https://phabricator.services.mozilla.com/D196831
2024-01-09 17:49:01 +00:00
Natalia Csoregi 6f90f50b7a Backed out 3 changesets (bug 1873007, bug 1870801) for causing failures on browser_dbg-javascript-tracer.js. CLOSED TREE
Backed out changeset f94198e20472 (bug 1873007)
Backed out changeset c0f126c79de5 (bug 1870801)
Backed out changeset 885f112d1076 (bug 1870801)
2024-01-09 04:27:57 +02:00
Alexandre Poirot 26f0307428 Bug 1873007 - [devtools] Show the reason why the JS tracer stopped. r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D197660
2024-01-08 16:24:12 +00:00
Alexandre Poirot f704b868b0 Bug 1870801 - [devtools] Allow limiting depth and max top level frames when tracing javascript. r=devtools-reviewers,nchevobbe,fluent-reviewers,flod
These two settings are only available via the web console commands as they expect number as arguments
which is hard to implement via the context menu on the debugger button.

Move stdout logging to a dedicated method as onEnterFrame reached eslint complexity limit.

Differential Revision: https://phabricator.services.mozilla.com/D196832
2024-01-08 16:24:12 +00:00
Alexandre Poirot 0f06876895 Bug 1870801 - [devtools] Log JS tracer start/stop, even when not initiated from console command. r=devtools-reviewers,nchevobbe
The JavaScript Tracer may be initiated by the debugger, or stoped by itself when reaching some limit.
In these cases, the start and stop messages wouldn't have been logged in the console.

Differential Revision: https://phabricator.services.mozilla.com/D196831
2024-01-08 16:24:11 +00:00
Dan Robertson 4e32887481 Bug 1872772 - Remove apz.scrollend-event.content.enabled preference. r=nchevobbe,botond,devtools-reviewers,webidl,smaug
The scrollend event has been content enabled by default for about a
year. Remove the preference that allows the feature to be chrome-only.

Differential Revision: https://phabricator.services.mozilla.com/D197699
2024-01-08 13:36:42 +00:00
Mark Banner dca85f4f1b Bug 1873158 - Update ESLint related modules to their latest versions. r=mossop,aminomancer,devtools-reviewers,reusable-components-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D197765
2024-01-05 19:52:08 +00:00
Nicolas Chevobbe 1ebf3d3c59 Bug 1872689 - [devtools] Prepare codebase for eslint-plugin-react update. r=devtools-reviewers,ochameau.
Updating eslint-plugin-react to 7.33.2 raises new eslint errors.
A few component needed to have their proptypes fixed (or added).
JSPropertyProvider was considered as a react component by the plugin,
I guess because it is a function starting with an uppercase letter.
Since it is a bit unusual to have such thing, I renamed it slightly
to make it look more like a function.

Differential Revision: https://phabricator.services.mozilla.com/D197596
2024-01-04 16:06:08 +00:00
Henrik Skupin d07c30bd8c Bug 1872662 - [devtools] Remove backward-compatibility code. r=devtools-backward-compat-reviewers,devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D197495
2024-01-02 17:35:07 +00:00
Alexandre Poirot 40f5ee9fe8 Bug 1848136 - [devtools] Enable tracing from worker threads. r=devtools-reviewers,nchevobbe
This requires to manually toggle "dom.worker.console.dispatch_events_to_main_thread" to false
in order to spawn targets for workers.

I had to disable throttling for workers because of missing setTimeout/clearTimeout methods
in worker modules. Hopefully we could get access to these methods when migrating to ESM?

Differential Revision: https://phabricator.services.mozilla.com/D196852
2023-12-21 23:17:39 +00:00
Alexandre Poirot b2321bf866 Bug 1870710 - [devtools] Optionally trigger the tracer only on next mousedown or keydown. r=devtools-reviewers,fluent-reviewers,flod,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D196830
2023-12-20 23:03:06 +00:00
Alexandre Poirot f69feec059 Bug 1835614 - [devtools] Log function call arguments. r=devtools-reviewers,fluent-reviewers,devtools-backward-compat-reviewers,nchevobbe
Introduce a new global option in the tracer to log values.

For now, it only triggers javascript function call arguments to be logged,
but this will also impact the incoming feature logging native function calls,
and also the other incoming feature to log the returned values.

Differential Revision: https://phabricator.services.mozilla.com/D196019
2023-12-19 18:01:52 +00:00
Alexandre Poirot b89a73183a Bug 1835614 - [devtools] Use a custom resource for traces. r=devtools-reviewers,nchevobbe
This help reduce the RDP overhead by only transferring what is strictly necessary.
The console message resources bundles various useless attributes.

This also help use a custom rendering in the frontend so that traces can
be displayed distinctly and differently from the console API calls.

Differential Revision: https://phabricator.services.mozilla.com/D196020
2023-12-19 18:01:52 +00:00
Hubert Boma Manilla 9920ba5385 Bug 1353798 - [devtools] Display service worker timings in the devtools UI r=devtools-reviewers,webdriver-reviewers,perftest-reviewers,ochameau,sparky
Differential Revision: https://phabricator.services.mozilla.com/D195238
2023-12-19 12:54:36 +00:00