Commit Graph
5316 Commits
Author SHA1 Message Date
Alexandre Poirot 5b05cf4097 Bug 1916533 - [devtools] Always use native codepath when recording JS traces to the profiler output. r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D220936
2024-09-04 11:49:41 +00:00
Julian Descottes 90bb6ad318 Bug 1914863 - [devtools] Remove windowUtils cache in layout/utils.js r=devtools-reviewers,nchevobbe
This cache might keep destroyed windowUtils helpers in some scenarios involving navigations with a process change.
The regular getter is slightly slower, but the performance hit should not be noticeable.

Differential Revision: https://phabricator.services.mozilla.com/D220785
2024-09-02 09:47:14 +00:00
Julian Descottes 530ba0fd27 Bug 1915423 - [devtools] Update MDN compat data (131) r=devtools-reviewers,nchevobbe
Regular update + 1 test adjustment

Differential Revision: https://phabricator.services.mozilla.com/D220436
2024-08-29 11:45:26 +00:00
Stanca Serban deae773f19 Backed out changeset cee8b3d4ad60 (bug 1915423) for causing xpcshell failures in test_mdn-compatibility.js. CLOSED TREE 2024-08-29 14:22:07 +03:00
Julian Descottes 350054ceb6 Bug 1915423 - [devtools] Update MDN compat data (131) r=devtools-reviewers,nchevobbe
Regular update + 1 test adjustment

Differential Revision: https://phabricator.services.mozilla.com/D220436
2024-08-29 08:00:34 +00:00
Nicolas Chevobbe 9041e9be68 Bug 1915108 - [devtools] Localize variable tooltip computed value string. r=devtools-reviewers,jdescottes.
Depends on D219145

Differential Revision: https://phabricator.services.mozilla.com/D220228
2024-08-27 12:08:59 +00:00
Nicolas Chevobbe 2fde544ddf Bug 1912267 - [devtools] Display <empty> for empty values in variable tooltip. r=devtools-reviewers,jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D219143
2024-08-27 06:07:50 +00:00
Nicolas Chevobbe 34abe4c770 Bug 1912995 - [devtools] Don't repeat variable name in CSS variable tooltip. r=devtools-reviewers,jdescottes.
This changes the `--x = red` tooltip content into just `red`.
We still keep the `--x is not set` as I'm unsure what the alternative could be
(and given it would probably still need localized string, as we can use `unset`,
which is an actual valid value)

Tests are updated to include the new tooltip content.
devtools/client/inspector/rules/test/browser_rules_preview-tooltips-sizes.js is
further tweaked to cover a frequent intermittent.

Differential Revision: https://phabricator.services.mozilla.com/D219138
2024-08-26 08:15:27 +00:00
Henrik Skupin 3a548b37ef Bug 1912237 - [devtools] Remove backward compatibility code for Firefox 131 release. r=devtools-backward-compat-reviewers,devtools-reviewers,bomsy
Differential Revision: https://phabricator.services.mozilla.com/D219877
2024-08-23 17:22:32 +00:00
Gregory Pappas 5e942dde11 Bug 1546738 - Get rid of the hidden window usage to get a WebSocket object r=ochameau,devtools-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D219620
2024-08-21 20:07:14 +00:00
Daniel Minor 33f8aa3859 Bug 1896390 - Add getter for Iterator.constructor to eager-ecma-allowlist.js; r=nchevobbe,devtools-reviewers,arai
Differential Revision: https://phabricator.services.mozilla.com/D218124
2024-08-07 03:47:53 +00:00
Julian Descottes 24db7b4175 Bug 1856481 - [devtools] Stop destroying webextension descriptor on actor destroy r=ochameau,devtools-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D216533
2024-08-06 15:05:13 +00:00
alexical a0fa98ad19 Bug 1906719 - Output native JS trace to the profiler r=ochameau,devtools-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D215933
2024-08-05 15:44:21 +00:00
Emilio Cobos Álvarez bb2400428b Bug 1076583 - Make src attribute not load sync. r=smaug,extension-reviewers,devtools-reviewers,robwu,nchevobbe
This fixes src loads to be consistent with srcset/picture loads, modulo
the special synchronous case in the spec
(https://html.spec.whatwg.org/#update-the-image-data step 7), which
requires src loads to be sync if the image is available.

We now avoid triggering the load from the parser consistently for src /
srcset / picture, and unify the codepath with BindToTree. That should
avoid some useless task allocations.

Only the sync load code-path needs a script runner (mostly to deal with
anonymous content like the video poster <img> and such, but it also
helps not trigger sync loads at unexpected times like on adoption).

About the HTMLImageElement::Complete() getter change, we need to also
return false if there's an existing load task. That is the proposal in
https://github.com/whatwg/html/issues/4884, and prevents some failures
in the-img-element/{update-src-complete,img.complete}.html WPTs. It
technically changes our behavior on .srcset changes, but it makes it
consistent with .src changes and other browsers, so seems fine.

There are a couple regressions in CSP tests and the networkEvent stubs,
but these are really a pre-existing issue. What happens is that, since
the loads are now async, CSP can't figure out the script that triggered
the load anymore. I need to look if there's an easy way to propagate
that information in the image load tasks, but this is trivially
reproducible by changing these tests to use srcset rather than src.

The rest of the test changes are as expected: either new passes, or
expected test changes from this.

Differential Revision: https://phabricator.services.mozilla.com/D215519
2024-08-05 12:23:44 +00:00
Emilio Cobos Álvarez 77c40caac6 Bug 1910698 - Remove nsIScriptError.sourceLine. r=smaug,devtools-reviewers,webdriver-reviewers,necko-reviewers,nchevobbe,kershaw,jdescottes,credential-management-reviewers,dimi
Afaict the source lines are not exposed anywhere in the UI.

Differential Revision: https://phabricator.services.mozilla.com/D218115
2024-08-01 17:12:48 +00:00
Alexandra Borovova 22a8bc4623 Bug 1899711 - Set only one NetworkAuthListener per channel. r=devtools-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D218179
2024-07-31 13:33:29 +00:00
Alexandre Poirot a441733f0e Bug 1866818 - [devtools] Enable the JS tracer on remote debugging. r=devtools-reviewers,devtools-backward-compat-reviewers,nchevobbe
Display a warning message in the tracer sidebar when there could be a backward compat issue.

Differential Revision: https://phabricator.services.mozilla.com/D217745
2024-07-31 12:48:21 +00:00
Nicolas Chevobbe 843ab01105 Bug 1909307 - [devtools] Always show the same label in Debugger paused overlay. r=devtools-reviewers,ochameau,fluent-reviewers.
This way the overlay doesn't jump around when stepping.

Differential Revision: https://phabricator.services.mozilla.com/D217799
2024-07-29 21:39:47 +00:00
Julian Descottes cf326068c6 Bug 1907855 - [devtools] Update MDN compat data (cycle 130) r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D217816
2024-07-26 21:05:30 +00:00
Julian Descottes 9394e2b4c0 Bug 1834799 - [devtools] Support CORS requests for local script override r=devtools-reviewers,bomsy
Depends on D217030

Differential Revision: https://phabricator.services.mozilla.com/D217086
2024-07-26 12:33:15 +00:00
Julian Descottes 1c64e74d61 Bug 1904870 - [devtools] Add test for local script override with CSP r=devtools-reviewers,bomsy
Depends on D217029

Differential Revision: https://phabricator.services.mozilla.com/D217030
2024-07-26 12:33:14 +00:00
Julian Descottes 68bd157dea Bug 1904870 - [devtools] Use setReplacedHttpResponse for local override r=devtools-reviewers,bomsy
Depends on D217028

Differential Revision: https://phabricator.services.mozilla.com/D217029
2024-07-26 12:33:14 +00:00
Julian Descottes a4dc32e132 Bug 1904870 - [devtools] Extract helper from NetworkObserver to compute timings r=devtools-reviewers,bomsy
Depends on D217027

Differential Revision: https://phabricator.services.mozilla.com/D217028
2024-07-26 12:33:13 +00:00
Julian Descottes 04ffaf341a Bug 1876060 - [devtools] Handle local script override in http-on-before-connect r=devtools-reviewers,bomsy
Depends on D217026

Differential Revision: https://phabricator.services.mozilla.com/D217027
2024-07-26 12:33:13 +00:00
Julian Descottes d6660f2905 Bug 1901504 - [devtools] Remove support for earlyEvents=false in NetworkObserver r=devtools-reviewers,webdriver-reviewers,bomsy,Sasha
Differential Revision: https://phabricator.services.mozilla.com/D217026
2024-07-26 12:33:12 +00:00
Julian Descottes 5ac4266aea Bug 1882803 - [bidi] Emit network.responseCompleted and fetchError from onStopRequest r=webdriver-reviewers,devtools-reviewers,Sasha,bomsy
Differential Revision: https://phabricator.services.mozilla.com/D203134
2024-07-26 08:39:08 +00:00
artem manushenkov 5c673a5672 Bug 1826409 - [devtools] Show dimension overlay by default while window is resizing. r=devtools-reviewers,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D203924
2024-07-26 08:09:27 +00:00
Nicolas Chevobbe 013f686156 Bug 1909819 - [devtools] Register highlighter with type from shared module. r=devtools-reviewers,ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D217691
2024-07-26 08:09:26 +00:00
Nicolas Chevobbe 90435d914b Bug 1909819 - [devtools] Define highlighter types in devtools/shared module. r=devtools-reviewers,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D217690
2024-07-26 08:09:26 +00:00
Alexandre Poirot 4c946b19bd Bug 1885054 - [devtools] Display tracer data in a debugger sidebar. r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D204446
2024-07-22 18:49:43 +00:00
Sandor Molnar 0e45f1b380 Backed out changeset b6571a4222fb (bug 1885054) for causing bug 1909068 CLOSED TREE 2024-07-22 18:24:44 +03:00
Alexandre Poirot c2af106622 Bug 1885054 - [devtools] Display tracer data in a debugger sidebar. r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D204446
2024-07-18 09:02:06 +00:00
Sylvestre Ledru a3ea006705 Bug 1519636 - Reformat recent changes to the Google coding style r=emilio,necko-reviewers,geckoview-reviewers,application-update-reviewers,media-playback-reviewers,devtools-reviewers,anti-tracking-reviewers,profiler-reviewers,win-reviewers,migration-reviewers,padenot,mconley,nchevobbe,kershaw,gstoll,mstange,bytesized,m_kato
This new version of clang 17 also slightly changed the formatting.

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D215914
2024-07-17 11:15:31 +00:00
Julian Descottes a6df1af613 Bug 1907941 - [devtools] Use resource array apis for legacy resources r=ochameau,devtools-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D216581
2024-07-16 17:24:23 +00:00
Alexandre Poirot 56f1de2b31 Bug 1873060 - [devtools] Move JS tracer icon to the toolbox level. r=devtools-reviewers,nchevobbe
Also moving the LOG_METHODS from actors to specs so that the frontend
can import them from devtools/shared instead of devtools/server.

Differential Revision: https://phabricator.services.mozilla.com/D215085
2024-07-09 15:19:05 +00:00
Sandor Molnar d22465071b Backed out 5 changesets (bug 1873060, bug 1906291) for causing talos perma failures @ jstracer/jstracer.js CLOSED TREE
Backed out changeset 6f0fa044aa35 (bug 1906291)
Backed out changeset 53b5ad4055ed (bug 1906291)
Backed out changeset d72f48618f38 (bug 1906291)
Backed out changeset 17873318ca4a (bug 1906291)
Backed out changeset f3c126a6f60b (bug 1873060)
2024-07-09 02:50:07 +03:00
Alexandre Poirot ca845feadc Bug 1873060 - [devtools] Move JS tracer icon to the toolbox level. r=devtools-reviewers,nchevobbe
Also moving the LOG_METHODS from actors to specs so that the frontend
can import them from devtools/shared instead of devtools/server.

Differential Revision: https://phabricator.services.mozilla.com/D215085
2024-07-08 13:10:39 +00:00
Julian Descottes e29b9473e8 Bug 1906254 - [devtools] Update version in backward compat comment for resource throttling r=ochameau,devtools-reviewers
To make sure we clean it up when possible.

Differential Revision: https://phabricator.services.mozilla.com/D215732
2024-07-04 10:15:58 +00:00
Nicolas Chevobbe b79a3ba66e Bug 1905861 - [devtools] Update compatibility data for Cycle 129. r=devtools-reviewers,jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D215477
2024-07-02 10:08:28 +00:00
Nicolas Chevobbe 65d0aa02d0 Bug 1904752 - [devtools] Fix handling of single-char quote in InspectorCSSParserWrapper#performEOFFixup. r=devtools-reviewers,jdescottes.
When tracking tokens, we weren't handling the case of unterminated,
single-char quote.
Test cases are added to cover the fix.

Differential Revision: https://phabricator.services.mozilla.com/D214917
2024-06-26 17:30:37 +00:00
Alexandre Poirot 570a7f137f Bug 1903430 - [devtools] Speedup resource array processing in resource command. r=devtools-reviewers,nchevobbe
Reusing the existing implementation of onResourceAvailable/Updated/Destroyed
was forcing to duplicate and instantiate useless data, which caused visible performance regression.

I'm forking them. Once Fx129 is the default release, we should then be able to simply drop
the onResourceAvailable/Updated/Destroyed methods. Until them, we should remind ourself to maintain the two
distinct codepath. Hopefully, we don't do many changes on this core codebase.

Differential Revision: https://phabricator.services.mozilla.com/D214325
2024-06-25 13:41:28 +00:00
Alexandra Borovova 8e41485385 Bug 1805176 - Add support for data URLs in the shared network classes. r=devtools-reviewers,jdescottes,bomsy
Differential Revision: https://phabricator.services.mozilla.com/D213994
2024-06-21 10:55:06 +00:00
Alexandre Poirot b6fbaa63d3 Bug 1902224 - [devtools] Avoid caching traces in ResourceCommand cache. r=devtools-reviewers,nchevobbe
We expect the console to be opened *before* toggling the tracing on the server side
and so, the ResourceCommand cache isn't useful, while it being costly with so many resources to cache.

Differential Revision: https://phabricator.services.mozilla.com/D213612
2024-06-20 20:57:18 +00:00
Alexandre Poirot df9fea0485 Bug 1901644 - [devtools] Uncapsulate CONSOLE_MESSAGE resource. r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D213225
2024-06-18 18:33:18 +00:00
Alexandre Poirot 077d52cc17 Bug 1901643 - [devtools] Gather resources in arrays in order to prevent having to pass the resource type everytime. r=devtools-reviewers,devtools-backward-compat-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D213224
2024-06-18 18:33:18 +00:00
Alexandre Poirot 45fbf2dbeb Bug 1900982 - [devtools] Migrate JS tracer from Objects to Array as trace payloads. r=devtools-reviewers,perftest-reviewers,kshampur,nchevobbe
Using arrays speeds up the serialization and transmission of traces between the server and the client
as it goes through JS Actors/IPC by serializing the JSON RDP packets.

This also allows to better align with the profiler data format.

Differential Revision: https://phabricator.services.mozilla.com/D212807
2024-06-12 10:03:19 +00:00
Nicolas Chevobbe b9c209e66b Bug 1844264 - [devtools] Make shape editor toggle button keyboard accessible. r=devtools-reviewers,ochameau.
Turn the icon into a proper button, add a title to it
and properly manage its aria-pressed attribute.
We no longer set the active class, and instead rely
on the aria-pressed attribute in the CSS and in tests.

Differential Revision: https://phabricator.services.mozilla.com/D213032
2024-06-11 15:48:05 +00:00
Alexandre Poirot 62b55667e0 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-06-10 21:29:00 +00:00
Nicolas Chevobbe 7a3c362e7f Bug 1892192 - [devtools] Display @starting-style rules in Rules view. r=devtools-reviewers,bomsy.
This takes care of displaying `@starting-style` rules in the Rules view.
A test is added to cover this, as well as a test case to make sure those
starting style rules are not impacting the computed panel.

Depends on D210363

Differential Revision: https://phabricator.services.mozilla.com/D209329
2024-06-10 07:09:04 +00:00
Nicolas Chevobbe e0228f025b Bug 1893593 - [devtools] Display @scope rules in the Rules view. r=devtools-reviewers,bomsy.
Depends on D208028

Differential Revision: https://phabricator.services.mozilla.com/D208726
2024-06-09 11:46:16 +00:00