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

27788 Коммитов

Автор SHA1 Сообщение Дата
Mark Banner 8e8cc1684d Bug 1879811 - Avoid re-enabling ESLint rules when they are already enabled by ESLint's recommended configuration, or mozilla-central's one. r=Gijs,webcompat-reviewers,extension-reviewers,devtools-reviewers,twisniewski
Differential Revision: https://phabricator.services.mozilla.com/D201361
2024-02-12 18:46:28 +00:00
dylan ab3210c5ce Bug 1870580 - added fileChannel observer to netmonitor to display file urls. r=devtools-reviewers,bomsy
Differential Revision: https://phabricator.services.mozilla.com/D191317
2024-02-10 00:19:45 +00:00
Gregory Pappas c056a64e2e Bug 1873137 - Remove dom.animations-api.getAnimations.enabled pref r=webidl,emilio,firefox-animation-reviewers,devtools-reviewers,nchevobbe,boris
Differential Revision: https://phabricator.services.mozilla.com/D201162
2024-02-09 22:00:23 +00:00
Cristian Tuns 73e74628dc Backed out changeset ccc6ced28d4d (bug 1873137) for causing reftest failures in crashtests.list CLOSED TREE 2024-02-09 13:43:10 -05:00
Gregory Pappas 4a8b2cd0aa Bug 1873137 - Remove dom.animations-api.getAnimations.enabled pref r=webidl,emilio,firefox-animation-reviewers,devtools-reviewers,nchevobbe,boris
Differential Revision: https://phabricator.services.mozilla.com/D201162
2024-02-09 17:57:16 +00:00
Hubert Boma Manilla 7b87092ca3 Bug 1878644 - [devtools] Add feature pref for new codemirror implementation r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D200671
2024-02-09 10:16:02 +00:00
Nicolas Chevobbe 98fe2b2dd4 Bug 1879086 - [devtools] Fix browser_webconsole_custom_formatters_errors.js failure on beta. r=devtools-reviewers,ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D201114
2024-02-09 06:28:52 +00:00
Narcis Beleuzu 84b36fa4bc Backed out changeset 242972a790a3 (bug 1824726) for dt failure on browser_webconsole_message_categories.js . CLOSED TREE 2024-02-09 04:00:40 +02:00
Narcis Beleuzu c5b3a44ea3 Backed out changeset 749f10073ff4 (bug 1853899) for dt failure on browser_dbg-sourcemaps-bogus.js CLOSED TREE 2024-02-09 03:56:22 +02:00
Alexandre Poirot 25bbec4417 Bug 1853899 - [devtools] Introduce a new Menu Button dedicated to source maps. r=devtools-reviewers,nchevobbe
It allows
* toggling Source Map support entirely
* open the source map URL (when a bundle file is currently selected)
* open the mapped source (original or bundle)
* toggle the "open original source by default" setting
* show source map status (source map error, is it original or bundle file, is this a regular source?)

Differential Revision: https://phabricator.services.mozilla.com/D187577
2024-02-08 16:43:59 +00:00
Jules Simplicio fff4b05f22 Bug 1875396 - Avoid using `font-weight: 300` and `font-weight: lighter` r=kcochrane,desktop-theme-reviewers,credential-management-reviewers,devtools-reviewers,fxview-reviewers,translations-reviewers,dao,mtigley,hjones,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D199953
2024-02-08 15:45:07 +00:00
Nicolas Chevobbe ce3defc7e2 Bug 1878605 - [devtools] Use CodeMirror 6 in Event Tooltip. r=devtools-reviewers,bomsy.
Differential Revision: https://phabricator.services.mozilla.com/D200605
2024-02-08 14:39:42 +00:00
Nicolas Chevobbe 39fd633713 Bug 1877989 - [devtools] Add CodeMirror 6 in tree. r=devtools-reviewers,bomsy.
Differential Revision: https://phabricator.services.mozilla.com/D200305
2024-02-08 14:39:41 +00:00
Alexandre Poirot e40b810077 Bug 1824726 - [devtools] Throttle all resources from the server side. r=devtools-reviewers,nchevobbe,perftest-reviewers,sparky
This helps accumulate RDP packets related to resources being available/updated/destroyed
and emit less and larger RDP packets instead or more and smaller.
This appears to reduce the overhead of DevTools transport and JSWindowActor layers.

The issue in browser_markup_events_toggle.js is interesting.
It highlights that a resource notified before a call to WatcherActor.watchResources,
may be emitted during the call to watchResources.
This makes ignoreExistingResources flag a bit brittle as that resource should be
considered as an existing/past one.
We should probably flush past resource and probably introduce a more explicit
way of handling "existing" resources on the server side.

The fix in document-events.js relates to failures in browser_net_offline_mode.js.
This test was passing thanks to late dom-complete event emitted on the previous WindowGlobal.
Surprisingly, when reloading the page in offline mode, the previous, already existing WindowGlobal
triggered the WebProgressListener and we were emitting dom-complete event.
Because of throttling, this resource is no longer transfered to the client as the related target
actor is already destroyed on reload.
But at the end, the issue was the missing dom-interactive and dom-complete events for the error page.

Regarding browser_net_ws-sse-persist-columns.js, it looks like this test was properly waiting
for the WebSocket table to update. We were really lucky it was working without frequent intermittent!

Similarly to the client side, DOCUMENT_EVENT's will-navigate is special
and has to be emitted synchronously in order to prevent clearing things out of order.
This is also true for NETWORK_EVENT_STACKTRACE which is expected to be received
*before* related NETWORK_EVENT. NETWORK_EVENT_STACKTRACE is fired from the content
process while NETWORK_EVENT is fired from the parent process.
For now, it is easier to synchronously emit those resources rather than trying
to do cross process coordination.
We may revisit this choice once we start doing throttling from the parent process
and may be once D143409 lands.

About browser_resources_clear_resources.js, it is surprising it wasn't already failing.

Differential Revision: https://phabricator.services.mozilla.com/D197772
2024-02-08 14:24:17 +00:00
Noemi Erli 12ded93c6e Backed out 2 changesets (bug 1870580, bug 1870582) for causing devtools failures
Backed out changeset 5608a954442b (bug 1870580)
Backed out changeset 687b59c68abe (bug 1870582)
2024-02-07 18:17:19 +02:00
dylan 2a7b560d98 Bug 1870580 - added fileChannel observer to netmonitor to display file urls. r=devtools-reviewers,bomsy
Differential Revision: https://phabricator.services.mozilla.com/D191317
2024-02-07 15:15:37 +00:00
Julian Descottes 5a4cb38af6 Bug 1878651 - [devtools] Update localization note for inactive CSS tooltips r=devtools-reviewers,fluent-reviewers,nchevobbe,flod
Differential Revision: https://phabricator.services.mozilla.com/D200927
2024-02-07 13:43:36 +00:00
Mark Banner 3b17329c5f Bug 1878553 - Define *.config.(m)js files as node based for ESLint. r=mossop,devtools-reviewers,omc-reviewers,nchevobbe,aminomancer
Differential Revision: https://phabricator.services.mozilla.com/D200582
2024-02-07 08:55:29 +00:00
Cristian Tuns 77f2a39423 Backed out 11 changesets (bug 1878554, bug 1878553, bug 1878556) for causing node failures in aboutwelcome CLOSED TREE
Backed out changeset 425f70fa7e5a (bug 1878556)
Backed out changeset 2ab3a28f5c04 (bug 1878556)
Backed out changeset fb2e02682c8c (bug 1878556)
Backed out changeset 2fc5e630568e (bug 1878554)
Backed out changeset 78839d5841b4 (bug 1878554)
Backed out changeset e0ab31d2de1b (bug 1878554)
Backed out changeset 4eb59e4ebafa (bug 1878554)
Backed out changeset ab1e077d3f84 (bug 1878554)
Backed out changeset ef999f293e3e (bug 1878553)
Backed out changeset cf49920cb1ad (bug 1878553)
Backed out changeset 95f0fce63726 (bug 1878553)
2024-02-07 01:26:39 -05:00
Mark Banner 239ead3884 Bug 1878553 - Define *.config.(m)js files as node based for ESLint. r=mossop,devtools-reviewers,omc-reviewers,nchevobbe,aminomancer
Differential Revision: https://phabricator.services.mozilla.com/D200582
2024-02-06 22:32:51 +00:00
Nicolas Chevobbe 8970e59465 Bug 1878490 - [devtools] Expose devtools.inspector.rule-view.focusNextOnEnter in settings panel. r=devtools-reviewers,fluent-reviewers,ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D200611
2024-02-06 06:07:08 +00:00
Nicolas Chevobbe 1cbc69dbcf Bug 1877759 - [devtools] Control StyleSheetsManager MediaQueryList change events with an AbortController. r=devtools-reviewers,ochameau.
We set up a Map keyed by resourceId, whose value is an AbortController that
controls the MediaQueryList change event listeners that we set on a given stylesheet.

We also take care of aborting the existing abort controller before setting new
event listeners on a stylesheet, to avoid leaks.

Differential Revision: https://phabricator.services.mozilla.com/D200180
2024-02-06 06:02:32 +00:00
Tooru Fujisawa 719b4a8853 Bug 1878457 - Part 3: Remove JSM section from performance-new README. r=julienw,profiler-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D200560
2024-02-05 23:23:33 +00:00
Tooru Fujisawa 402e1f9063 Bug 1878457 - Part 2: ESMify consumers of performance-new modules. r=julienw,profiler-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D200559
2024-02-05 23:23:32 +00:00
Tooru Fujisawa ac9978df07 Bug 1878457 - Part 1: ESMify performance-new modules. r=julienw,profiler-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D200558
2024-02-05 23:23:32 +00:00
Tooru Fujisawa 603e42f5e4 Bug 1878512 - Part 3: Bump TypeScript version for performance-new to 5.3.3. r=julienw,profiler-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D200573
2024-02-05 23:23:32 +00:00
Tooru Fujisawa 924d06b9d6 Bug 1878512 - Part 2: Add explicit base type for template parameter. r=julienw,profiler-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D200572
2024-02-05 23:23:31 +00:00
Tooru Fujisawa f7894a7ac7 Bug 1878512 - Part 1: Make error handling explicit about the type. r=julienw,profiler-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D200571
2024-02-05 23:23:31 +00:00
Hubert Boma Manilla d2bf12b0de Bug 1878061 - [devtools] Remove parserWorker.hasSyntaxError r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D200358
2024-02-05 13:16:48 +00:00
Oliver Schramm d76839ddef Bug 1877890 - Consider zoom in geometry editor r=devtools-reviewers,nchevobbe
Since for relative elements we imagine a hypothetical original position,
zoom needs to be considered when doing the calculations.

Differential Revision: https://phabricator.services.mozilla.com/D200287
2024-02-05 09:34:44 +00:00
Mark Banner 56cc7346e1 Bug 1878009 - Remove Babel integration from ESLint. r=mossop,devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D200365
2024-02-02 18:45:08 +00:00
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 3b61cac1bd Bug 1867595 - [devtools] Add custom properties to property name autocomplete. r=devtools-reviewers,bomsy.
Differential Revision: https://phabricator.services.mozilla.com/D198923
2024-02-01 13:03:23 +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
Paul Adenot af22d613e4 Bug 1877736 - Allow starting the profiler with ctrl+alt+shift+1 when ctrl+shift+1 is in use by the website or an extension. r=devtools-reviewers,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D200179
2024-02-01 08:59:28 +00:00
Nicolas Chevobbe bf2ba4886a Bug 1877457 - [devtools] Remove ruleview-kbd-enter-notice. r=devtools-reviewers,ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D200160
2024-02-01 06:44:38 +00:00
Nicolas Chevobbe b35d82822f Bug 1877457 - [devtools] Default devtools.inspector.rule-view.focusNextOnEnter to true. r=devtools-reviewers,ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D200159
2024-02-01 06:44:38 +00:00
Tim Huang 949f77d58f Bug 1877405 - Adding a eVarietyRequestEnforceDefault to nsHttpHeaderArray::HeaderVariety r=necko-reviewers,devtools-reviewers,bomsy,kershaw
Adding a new HeaderVariety called eVarietyRequestEnforceDefault. It
allows setting request header value as default even even if the header
exists.

We need this to setting default header value without changing the order
of the header.

Differential Revision: https://phabricator.services.mozilla.com/D199991
2024-01-31 22:09:11 +00:00
Tooru Fujisawa 8963d64aab Bug 1836480 - Part 3: Rewrite consumers of XPIProvider.jsm, XPIDatabase.jsm, and XPIInstall.jsm. r=robwu,application-update-reviewers,nalexander
Differential Revision: https://phabricator.services.mozilla.com/D199793
2024-01-31 20:07:28 +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
Nicolas Chevobbe fe514faf5e Bug 1877428 - [devtools] Use proper private fields in Editor. r=bomsy,devtools-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D199973
2024-01-31 05:57:19 +00:00
Nicolas Chevobbe 2599f76002 Bug 1877428 - [devtools] Turn Editor into a proper ES6 class. r=bomsy,devtools-reviewers.
Differential Revision: https://phabricator.services.mozilla.com/D199972
2024-01-31 05:57:18 +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
Alexandre Poirot 5cb9ec4cb0 Bug 1848159 - [devtools] Synchronize tracer state between console and debugger. r=devtools-reviewers,nchevobbe
Ensure updating the tracing state from the TracerCommand,
so that its internal state is correct whenever we start tracing
via the console or debugger.

Differential Revision: https://phabricator.services.mozilla.com/D196961
2024-01-30 20:18:50 +00:00
Nicolas Chevobbe 5130fe99a7 Bug 1876694 - [devtools] Add preference to make Rules view enter key move focus to next input. r=devtools-reviewers,ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D199697
2024-01-30 18:46:04 +00:00
Nicolas Chevobbe ecb0d6bb02 Bug 1867589 - [devtools] Display registered properties in `var()` autocomplete. r=devtools-reviewers,bomsy.
Differential Revision: https://phabricator.services.mozilla.com/D198922
2024-01-30 17:22:36 +00:00