Commit Graph
5487 Commits
Author SHA1 Message Date
Benedikt Meurer 11d8d4ca89 [ui] Switch ListWidget to render toolbar via lit-html.
While this isn't the perfect example yet, it's a great initial
proof-of-concept.

Bug: 388445687
Change-Id: I024a0a4ef0eb4c93d465c34fa59bb114c573a1eb
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6164906
Commit-Queue: Benedikt Meurer <bmeurer@chromium.org>
Commit-Queue: Alex Rudenko <alexrudenko@chromium.org>
Reviewed-by: Philip Pfaffe <pfaffe@chromium.org>
Auto-Submit: Benedikt Meurer <bmeurer@chromium.org>
Reviewed-by: Alex Rudenko <alexrudenko@chromium.org>
Commit-Queue: Philip Pfaffe <pfaffe@chromium.org>
2025-01-10 07:21:09 -08:00
Benedikt Meurer c4bb18a354 Unify <select> styling and remove .chrome-select.
With this CL, we remove the `.chrome-select` CSS class and the two
different ways of styling a `<select>` element (excluding the completely
custom thing in the Recorder panel), and only have one set of styles
that we use consistently for all `<select>` elements (modulo the one in
the Recorder panel b/c LitElement), independent of whether the
`<select>` is used in a toolbar or elsewhere.

That means we can now simply put a `<select>` directly into a
`<devtools-toolbar>` and it will work as expected.

Drive-by-fix: Skip the test from crbug.com/383478771 completely now,
since even though the `<select>` in the Recorder panel is unaffected
by these changes, some surrounding (likely) timing changes now make that
test fail consistently, not only on Mac.

Bug: 383478771, 388445687
Change-Id: I01d7835d5858cac8863a7337a8e43a49b55820f2
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6163607
Commit-Queue: Danil Somsikov <dsv@chromium.org>
Reviewed-by: Danil Somsikov <dsv@chromium.org>
Auto-Submit: Benedikt Meurer <bmeurer@chromium.org>
Commit-Queue: Benedikt Meurer <bmeurer@chromium.org>
2025-01-10 00:45:56 -08:00
Benedikt Meurer 6bfc05159d [cleanup] Remove the .toolbar-item CSS class.
This is the next step required to eventually be able to just add
elements to the <devtools-toolbar> without having to go through the
imperative Toolbar API.

Bug: 388445687
Change-Id: I912f2d4a1285af7fab63a5268c5c0a3baa556462
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6163603
Commit-Queue: Danil Somsikov <dsv@chromium.org>
Auto-Submit: Benedikt Meurer <bmeurer@chromium.org>
Reviewed-by: Danil Somsikov <dsv@chromium.org>
2025-01-09 11:14:08 -08:00
Connor Clark 7710a43187 Use i18n.ByteUtilities.bytesToString in heap profiler
This replaces displaying bytes as big numbers of bytes, to dynamically
adjusting the unit.

Bug: 388589515
Change-Id: I6d13841c1b5b13df424f00e2ea4c7c740ed7857e
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6159568
Commit-Queue: Connor Clark <cjamcl@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
Auto-Submit: Connor Clark <cjamcl@chromium.org>
2025-01-09 10:55:06 -08:00
Yang Guo 5c5cdb5dcf Live expressions do not affect $_
$_ is affected by expression evaluation with the object group 'console'.
Using a different object group for live expressions addresses the issue.

Fixed: 388437265
Change-Id: If688430fbed206fd4cf4ce93585273fab5aecd53
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6163345
Commit-Queue: Yang Guo <yangguo@chromium.org>
Commit-Queue: Danil Somsikov <dsv@chromium.org>
Auto-Submit: Yang Guo <yangguo@chromium.org>
Reviewed-by: Danil Somsikov <dsv@chromium.org>
2025-01-09 05:45:46 -08:00
Benedikt Meurer 918a821c50 [ui] Make Toolbar into a custom element with light DOM.
This is the first step towards making it possible to use the `Toolbar`
component within lit-html templates. It turns the `UI.Toolbar.Toolbar`
class into an `HTMLElement` and removes its shadow DOM, using a light
DOM instead with global styles. This makes it possible to easily style
toolbars and their elements differently in different context, without
having to inject additional styles into the shadow DOM manually.

Bug: 388445687
Change-Id: I7a4e03a8c12978b7d9d9da79597b656409b3a9cb
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6157257
Reviewed-by: Danil Somsikov <dsv@chromium.org>
Commit-Queue: Benedikt Meurer <bmeurer@chromium.org>
Auto-Submit: Benedikt Meurer <bmeurer@chromium.org>
Commit-Queue: Danil Somsikov <dsv@chromium.org>
2025-01-09 03:18:13 -08:00
Nikolay Vitkov 44e3006b85 [eslint] Prefer TypeScript interface over type aliases.
We have a mix of `type` and `interface` usage throughout our codebase,
that is sometimes difficult to follow and reason about. We should follow
the suggestion from the TypeScript PM and use `interface` consistently
where possible. This leads to better type display in errors and makes
our codebase easier to read (b/c consistency).

This CL adds the `@typescript-eslint/consistent-type-definitions`
ESLint rule to accomplish this.

Fixed: 387237537
Change-Id: Idb9e8275ddd8f633021d6cf1c933e2e55f980e45
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6152576
Auto-Submit: Nikolay Vitkov <nvitkov@chromium.org>
Commit-Queue: Benedikt Meurer <bmeurer@chromium.org>
Reviewed-by: Benedikt Meurer <bmeurer@chromium.org>
2025-01-08 01:14:10 -08:00
Adam Raine 972ab829b8 [Lighthouse] Prevent flake when switching to Lighthouse tab in tests
Bug: 388183157
Change-Id: I997a4c35821bbe003fffebee3774ad96909c7e6f
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6147555
Commit-Queue: Connor Clark <cjamcl@chromium.org>
Reviewed-by: Connor Clark <cjamcl@chromium.org>
Auto-Submit: Adam Raine <asraine@chromium.org>
2025-01-07 09:04:53 -08:00
Jack Franklin 9ce0d9a0b6 RPP: select the event when an annotation label is clicked
With this CL when a user clicks on an annotation label in the timeline
we now will select the associated entry. This is a useful change because
when the event is small it can be hard to select, especially when zoomed
out. But the label is always going to be (relatively) large compared to
the event, so let's allow them to click the label.

Bug: 383120286
Fixed: 388224764
Change-Id: Ia58c2ffd8e075087480e651e31e0fea186039a54
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6148172
Reviewed-by: Alina Varkki <alinavarkki@chromium.org>
Commit-Queue: Alina Varkki <alinavarkki@chromium.org>
Auto-Submit: Jack Franklin <jacktfranklin@chromium.org>
2025-01-07 05:58:20 -08:00
Nikolay Vitkov b4e8dc7ac2 Update EsLint v9
Bug: none
Change-Id: Iebcc53c0f70a51242f22e4df167cd588b08cefcd
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6140633
Reviewed-by: Benedikt Meurer <bmeurer@chromium.org>
Commit-Queue: Nikolay Vitkov <nvitkov@chromium.org>
Auto-Submit: Nikolay Vitkov <nvitkov@chromium.org>
2025-01-07 05:41:31 -08:00
Alex Rudenko cc481534e0 [AI Assistance] Make sure bindings are not overwritten
This CL fixes the issue of the AI Assistance updating the wrong
element on subsequent updates.

Fixed: 383979011
Change-Id: I3382a9fc9ad83ed87b2cb1add2895b79589ba389
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6148212
Reviewed-by: Samiya Caur <samiyac@chromium.org>
Commit-Queue: Alex Rudenko <alexrudenko@chromium.org>
2025-01-07 04:20:00 -08:00
Andrés Olivares 3e94c0d78f Skip LH flaky test
Bug: 388183157
Change-Id: I3e157beca8aabbe1e76411702f0c83950e27559c
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6148210
Reviewed-by: Nancy Li <nancyly@chromium.org>
Commit-Queue: Nancy Li <nancyly@chromium.org>
Commit-Queue: Andres Olivares <andoli@chromium.org>
Auto-Submit: Andres Olivares <andoli@chromium.org>
2025-01-07 02:08:47 -08:00
Nikolay Vitkov 937f463144 Revert "[eslint] Prefer TypeScript interface over type aliases."
This reverts commit af6c6337aa.

Reason for revert: The latest version of EsLint v9 does not work with the plugin added here, also the rule does more that just change shape objects from type to interface.

Original change's description:
> [eslint] Prefer TypeScript `interface` over type aliases.
>
> We have a mix of `type` and `interface` usage throughout our codebase,
> that is sometimes difficult to follow and reason about. We should follow
> the suggestion from the TypeScript PM and use `interface` consistently
> where possible. This leads to better type display in errors and makes
> our codebase easier to read (b/c consistency).
>
> This CL adds the `etc/prefer-interface` ESLint rule to accomplish this.
>
> Fixed: 387237537
> Change-Id: Idd6775094ba94b8397f626191788437f6b156dc6
> Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6135001
> Commit-Queue: Nikolay Vitkov <nvitkov@chromium.org>
> Reviewed-by: Nikolay Vitkov <nvitkov@chromium.org>
> Commit-Queue: Benedikt Meurer <bmeurer@chromium.org>

Bug: 387237537
Change-Id: I6ecf18bfdaa4ad9efb17f0801def528035f9e703
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6140555
Commit-Queue: Benedikt Meurer <bmeurer@chromium.org>
Reviewed-by: Benedikt Meurer <bmeurer@chromium.org>
Auto-Submit: Nikolay Vitkov <nvitkov@chromium.org>
2025-01-03 09:42:50 -08:00
Nikolay Vitkov 55adf677d3 [eslint] Migrate to Flat config
A necessary step to adopt EsLint v9.
More can be read at - https://eslint.org/blog/2022/08/new-config-system-part-2/
In short - only a single configuration is used a cross the whole repo.

Bug: none
Change-Id: I74cd613fba25b94cee92e4b7c1b525471bcbe44b
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6059264
Commit-Queue: Nikolay Vitkov <nvitkov@chromium.org>
Reviewed-by: Benedikt Meurer <bmeurer@chromium.org>
2025-01-02 04:58:36 -08:00
Benedikt Meurer af6c6337aa [eslint] Prefer TypeScript interface over type aliases.
We have a mix of `type` and `interface` usage throughout our codebase,
that is sometimes difficult to follow and reason about. We should follow
the suggestion from the TypeScript PM and use `interface` consistently
where possible. This leads to better type display in errors and makes
our codebase easier to read (b/c consistency).

This CL adds the `etc/prefer-interface` ESLint rule to accomplish this.

Fixed: 387237537
Change-Id: Idd6775094ba94b8397f626191788437f6b156dc6
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6135001
Commit-Queue: Nikolay Vitkov <nvitkov@chromium.org>
Reviewed-by: Nikolay Vitkov <nvitkov@chromium.org>
Commit-Queue: Benedikt Meurer <bmeurer@chromium.org>
2025-01-02 03:42:22 -08:00
Benedikt Meurer fb31435bfb Consistently prefer assert.isOk and assert.isNotOk.
`assert.ok` is an alias for `assert.isOk`, and similarly `assert.notOk`
is an alias for `assert.isNotOk`. For consistency with other assertions
such as `assert.isNull` and `assert.isNotNull`, we enforce the use of
the slightly longer form here as well.

Bug: 386335487
Change-Id: If845a5675a78598d01b30532985239f74f701db7
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6120409
Commit-Queue: Benedikt Meurer <bmeurer@chromium.org>
Reviewed-by: Changhao Han <changhaohan@chromium.org>
2024-12-30 00:33:56 -08:00
Benedikt Meurer 5cb9f987f7 Disallow equality assertions with boolean, null, and undefined.
Require the more descriptive `assert.isTrue`, `assert.isFalse`,
`assert.isNull`, `assert.isUndefined`, and friends instead, which also
produce a more meaningful error message than the generic
`assert.strictEqual`, `assert.deepEqual`, and friends.

Bug: 386335487
Change-Id: Ic58a07381196c358a43857b53364d74076e9c7e8
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6113833
Reviewed-by: Changhao Han <changhaohan@chromium.org>
Commit-Queue: Benedikt Meurer <bmeurer@chromium.org>
2024-12-30 00:32:53 -08:00
Benedikt Meurer e5afea232d Consistently prefer assert.lengthOf to check array-like lengths.
In our tests, we should stick to ideally just one way of asserting
array-like lengths, `assert.lengthOf`, and avoid any kind of
combinations `assert.equal`,`assert.strictEqual`, `assert.deepEqual`,
or `assert.deepStrictEqual`.

Bug: 386335487
Change-Id: I8f88e214acdae0c6e34dbb169c62ebc9a80317af
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6113832
Reviewed-by: Changhao Han <changhaohan@chromium.org>
Commit-Queue: Benedikt Meurer <bmeurer@chromium.org>
2024-12-30 00:31:50 -08:00
Benedikt Meurer 3dffd37833 Consistently use assert.deepEqual instead of assert.deepStrictEqual.
Previously we have been a bit sloppy with sometimes using one or the
other. In Chai both methods perform exactly the same comparison, but
the name `deepStrictEqual` can be a bit confusing to developers not
familiar with the Chai implementation, and particularly might leave
you wondering what exactly is *strict* about this method.

Fixed: 386330115
Change-Id: Idda55ee784b01cce650996ab3d56f76e220e6b2c
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6110227
Commit-Queue: Samiya Caur <samiyac@chromium.org>
Commit-Queue: Benedikt Meurer <bmeurer@chromium.org>
Auto-Submit: Benedikt Meurer <bmeurer@chromium.org>
Reviewed-by: Samiya Caur <samiyac@chromium.org>
2024-12-27 04:38:55 -08:00
Benedikt Meurer 586a9a5908 [eslint] Adopt ESLint Rule Naming Conventions.
Update our custom ESLint rules to follow the official naming
conventions[^1], in particular the rule names need to

1. consistently use dashes to separate words (rather a mix of
   underscores and dashes), and
1. consistently use `no-` prefix for rules that disallow something.

Drive-by-fix: Also remove the `fixable` setting from rules that don't
provide a fix.

This is a functionally neutral change.

[^1]: https://eslint.org/docs/latest/contribute/core-rules#rule-naming-conventions

Fixed: 386319581
Change-Id: Ifcb6c0e4ca8334a263be6534596c30b3bcca243b
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6110726
Reviewed-by: Samiya Caur <samiyac@chromium.org>
Commit-Queue: Samiya Caur <samiyac@chromium.org>
Commit-Queue: Benedikt Meurer <bmeurer@chromium.org>
Auto-Submit: Benedikt Meurer <bmeurer@chromium.org>
2024-12-27 02:54:56 -08:00
Andrés Olivares 8927c6bf91 [RPP] Speed up flows handler
By checking that we only assign events to flows once given a flow
binding tuple (a token that allows us to match events to flows,
consisting of the event's ts, cat, pid and tid).

Perfetto's trace event format [1] only considers the first event that
matches a given binding before assigning an event to a flow. By being
consistent with this behavior we are able to skip subsequent events with
a matching binding and save quite some time on traces with many repeated
flow binding tuples.

To prevent further regressions, added a perf test case that consistently
fails on the previous state.

[1] https://docs.google.com/document/d/1CvAClvFfyA5R-PhYUmn5OOQtYMH4h6I0nSsKchNAySU/preview?tab=t.0#heading=h.4qqub5rv9ybk

Fixed: 382545507
Change-Id: I33d0ab6e167549a6499eaf6499b5a5f10d777336
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6097891
Auto-Submit: Andres Olivares <andoli@chromium.org>
Reviewed-by: Adam Raine <asraine@chromium.org>
Commit-Queue: Andres Olivares <andoli@chromium.org>
2024-12-23 00:58:09 -08:00
Marcel Pütz 12055dd0ff [GM3Restyling] Update tab bars
This is not yet moving the icons to the right, as intended in the designs. This is because for the settings and the vertical layout, we need the icons on the left. After this CL we can refactor it two allow icons on both sides.

Before: https://imgur.com/9lf6UGZ
After: https://imgur.com/a/YEHoNT9
Bug: 325442723
Change-Id: Ie2bd99726e767598258d3c8d34d648ba793ca781
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6089109
Reviewed-by: Nancy Li <nancyly@chromium.org>
Reviewed-by: Benedikt Meurer <bmeurer@chromium.org>
Commit-Queue: Marcel Pütz <marcelpuetz@chromium.org>
2024-12-20 04:25:26 -08:00
Adriana Ixba 7cbc6609a0 [RPP] Bring back DCL and L markers
https://screenshot.googleplex.com/6zv3Yrvgtz3Sf2f

Bug:384980553
Change-Id: If078e81d37a047f2375df3dc87714ee87531ae4a
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6107674
Commit-Queue: Adriana Ixba <aixba@chromium.org>
Reviewed-by: Adam Raine <asraine@chromium.org>
2024-12-19 17:00:44 -08:00
Yang Guo 3c820cbf17 Disable device mode for chrome:// pages
chrome:// pages do not target mobile devices, yet have been a
frequent source of bug reports for device mode.

When the user navigates to a chrome:// page, device mode is turned off
(if on) and disabled. If device mode was previously (in the current
session) on when navigating to a chrome:// page, it will be turned on
again when navigating to a non-chrome:// page.

Fixed: 40186276
Change-Id: I7d9ddb2874b91ca04813d5135eb1da8f495a2e16
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6110495
Reviewed-by: Benedikt Meurer <bmeurer@chromium.org>
Commit-Queue: Yang Guo <yangguo@chromium.org>
Auto-Submit: Yang Guo <yangguo@chromium.org>
2024-12-19 10:06:01 -08:00
Alina Varkki 3cf9c88799 [RPP] Enable the alternative navigation experiment by default
Bug: 313757601
Change-Id: If4f3b7acbaed211c7987af560e4ffa25eff3ebc1
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6097497
Reviewed-by: Andres Olivares <andoli@chromium.org>
Auto-Submit: Alina Varkki <alinavarkki@chromium.org>
Commit-Queue: Alina Varkki <alinavarkki@chromium.org>
2024-12-19 08:45:53 -08:00
Kim-Anh Tran 454310e0e8 [GM3Restyling] Update IconDialog to use ButtonDialog
This switches the usage of IconDialog to ButtonDialog and makes a few
padding changes, and removes the now obsolete IconDialog.

Before: https://i.imgur.com/Oj2qOSW.png
After: https://i.imgur.com/Piaam45.png

Bug: 383278166, 379036632
Change-Id: I58bbcdcf09f1f295904a48f27daad715de387004
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6110475
Auto-Submit: Kim-Anh Tran <kimanh@chromium.org>
Reviewed-by: Nancy Li <nancyly@chromium.org>
Commit-Queue: Nancy Li <nancyly@chromium.org>
2024-12-19 04:44:28 -08:00
Simon Zünd e9b3f5082c Update Chrome (for Testing) PIN
Chromium pin updated to 133.0.6904.0

Roll created at https://cr-buildbucket.appspot.com/build/8728157689562859665

Bug: none
Change-Id: If75764b381ff18e30c0565c52201b919fec69016
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6109471
Reviewed-by: Benedikt Meurer <bmeurer@chromium.org>
Commit-Queue: Simon Zünd <szuend@chromium.org>
2024-12-19 00:40:49 -08:00
Nancy Li 148fd10a9b [GM3Restyling] Remove the showConnector property in Dialog component
Will remove the usage in the following CL

Bug: 383278166
Change-Id: Idc456c2aedc83f8d96364b921601430dd5454f36
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6085436
Reviewed-by: Kim-Anh Tran <kimanh@chromium.org>
Commit-Queue: Nancy Li <nancyly@chromium.org>
2024-12-17 06:27:33 -08:00
Nancy Li 1906c4c343 [GM3Restyling] Update the dialog's header/buttons row
Also added more example in components server
See design here: https://www.figma.com/design/A5iQBBNAe5zPFpJvUzUgW8/Chrome-DevTools-Design-Kit?node-id=3653-3002&m=dev

Bug: 383278166
Change-Id: Iac70968af04b967ae5ec1f5bce0fe04b37096fa3
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6084416
Commit-Queue: Nancy Li <nancyly@chromium.org>
Reviewed-by: Kim-Anh Tran <kimanh@chromium.org>
2024-12-17 06:25:07 -08:00
Adam Raine 1f736cefef [Lighthouse] Roll Lighthouse 12.3.0
Bug: 40543651
Change-Id: I8a72d552e8beb47ee7004b62de9b4f8c59a4082a
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6090913
Auto-Submit: Adam Raine <asraine@chromium.org>
Reviewed-by: Connor Clark <cjamcl@chromium.org>
Commit-Queue: Connor Clark <cjamcl@chromium.org>
2024-12-13 11:30:10 -08:00
Andrés Olivares afe4e3d123 Disable slow test
While we work on fixing the performance regression

Bug: 383713603
Change-Id: I798fcb407041f2f48a6f567fb90f4fe01f77711f
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6091352
Auto-Submit: Andres Olivares <andoli@chromium.org>
Commit-Queue: Andres Olivares <andoli@chromium.org>
Reviewed-by: Eric Leese <leese@chromium.org>
Commit-Queue: Eric Leese <leese@chromium.org>
2024-12-12 05:52:36 -08:00
Connor Clark a7d0715424 [RPP] Remove all markers from minimap, but add nav start
These markers are really noisy, so we decided to remove them. But adding
NAV since it seems useful to see how the trace is broken up into
navigations at-a-glance.

The minimap component attempted to render the NAV markers, but since
they were not marked as "tall" it never rendered.

Also align the color used for the navigationStarted event type to be the
same as the marker color (black, not orange). Similar for the other
page load metrics.

Bug: 383368162
Change-Id: I75eed42d8ab33e27d8205dc560bf7d95371a652c
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6084879
Commit-Queue: Connor Clark <cjamcl@chromium.org>
Reviewed-by: Adriana Ixba <aixba@chromium.org>
Reviewed-by: Paul Irish <paulirish@chromium.org>
2024-12-11 11:27:06 -08:00
Eric Leese e6e5b2d763 Disable recorder selector picker test on mac
Bug: 383478771
Change-Id: Iabd120b329601ec7338d0a71232e49d01126b1f4
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6088570
Reviewed-by: Alex Rudenko <alexrudenko@chromium.org>
Commit-Queue: Eric Leese <leese@chromium.org>
Auto-Submit: Eric Leese <leese@chromium.org>
Reviewed-by: Nancy Li <nancyly@chromium.org>
Commit-Queue: Alex Rudenko <alexrudenko@chromium.org>
2024-12-11 03:34:23 -08:00
Alex Rudenko 786bd42909 [AI Assistance] Renames and refactorings
Fixed: 380044548
Change-Id: I0c71417a8189a728ff10e9b6504a9887e3f26652
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6080811
Reviewed-by: Simon Zünd <szuend@chromium.org>
Commit-Queue: Alex Rudenko <alexrudenko@chromium.org>
Reviewed-by: Ergün Erdoğmuş <ergunsh@chromium.org>
2024-12-10 11:47:32 +00:00
Simon Zünd a00e0828d5 [e2e] Reset timeout for retries
Mocha doesn't reset the timeout in-between retry runs, so we do it
ourselves.

Side note: We weren't able to repro this locally for a while because
retries are only enabled when the LUCI_CONTEXT env variable is
detected.

R=alexrudenko@chromium.org

Bug: None
No-Tree-Checks: True
Change-Id: I01395072832e25903853aceb8c71dffe2182d930
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6081455
Auto-Submit: Simon Zünd <szuend@chromium.org>
Reviewed-by: Alex Rudenko <alexrudenko@chromium.org>
Commit-Queue: Alex Rudenko <alexrudenko@chromium.org>
2024-12-10 10:52:08 +00:00
Alex Rudenko 0ec3f8c2fe Crash mocha on uncaught errors in the e2e runner
Bug: none
Change-Id: Ia2720d6a14c189475026fe145a2693dd4817c63b
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6081454
Reviewed-by: Simon Zünd <szuend@chromium.org>
Commit-Queue: Alex Rudenko <alexrudenko@chromium.org>
2024-12-10 08:43:24 +00:00
Simon Zünd 079427027e [e2e] Catch screenshot saving errors
It looks like linux bots are not able to write to disk, causing
an exception. We need to catch it, otherwise the `testPromise` is
never resolved and the test runner stalls out.

R=alexrudenko@chromium.org

Bug: None
Change-Id: Ida37952f3cde4dfd9dcb9e59c3bc91c23438a4d9
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6081453
Commit-Queue: Alex Rudenko <alexrudenko@chromium.org>
Reviewed-by: Alex Rudenko <alexrudenko@chromium.org>
Auto-Submit: Simon Zünd <szuend@chromium.org>
Commit-Queue: Simon Zünd <szuend@chromium.org>
2024-12-10 07:39:47 +00:00
Connor Clark 6bef38aa90 [RPP] Remove insights experiment
We shipped this months ago.

Bug: 366379943
Change-Id: I6829531ac2cc53b8595ea0f5265471b5a0e3f7fb
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6072708
Auto-Submit: Connor Clark <cjamcl@chromium.org>
Commit-Queue: Paul Irish <paulirish@chromium.org>
Reviewed-by: Paul Irish <paulirish@chromium.org>
2024-12-05 22:01:49 +00:00
Alex Rudenko a79f8695e9 [Recorder] disable a flaky test
Discovered that this test still is flaky with retries.

Bug: 382417597
Change-Id: I40bd36c8c3ec76bfddd273cecc4b9dae5b1138fe
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6074450
Auto-Submit: Alex Rudenko <alexrudenko@chromium.org>
Reviewed-by: Simon Zünd <szuend@chromium.org>
Commit-Queue: Simon Zünd <szuend@chromium.org>
2024-12-05 10:54:38 +00:00
Nikolay Vitkov 6ac2bba9f6 [AI Assistance] Add types for Function calling
Provide the ability to create function calling agents

Bug: 360751542
Change-Id: If8be4bfdb7ef0f651c6b1ff7c71496cc3d402559
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6070375
Reviewed-by: Alex Rudenko <alexrudenko@chromium.org>
Commit-Queue: Nikolay Vitkov <nvitkov@chromium.org>
2024-12-05 10:22:27 +00:00
Alex Rudenko 1f24eb2e54 [Recorder] Fix and re-enable flaky tests
Fixed some things and the tests appear not to be so flaky
anymore.

Fixed: 40188140, 40072140, 40279056, 40911162, 40911160
Change-Id: Ie7d600c0514d6dbffa94bfc6cf7b585567630dcc
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6072804
Commit-Queue: Simon Zünd <szuend@chromium.org>
Reviewed-by: Simon Zünd <szuend@chromium.org>
Auto-Submit: Alex Rudenko <alexrudenko@chromium.org>
2024-12-05 08:28:16 +00:00
Alex Rudenko cc17322328 Fix screenshot error message
The timer was not cancelled resulting in the error message
"Could not take screenshots within X ms" being always printed.

Bug: none
Change-Id: Ibb81ad1b60f185a3704ba61ad7ab783453201fc3
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6072805
Commit-Queue: Alex Rudenko <alexrudenko@chromium.org>
Auto-Submit: Alex Rudenko <alexrudenko@chromium.org>
Reviewed-by: Simon Zünd <szuend@chromium.org>
Commit-Queue: Simon Zünd <szuend@chromium.org>
2024-12-05 08:11:33 +00:00
Alex Rudenko 8c4fd43555 [Recorder] enable flaky tests
They do not appear to be flaky anymore.

Fixed: 373417054, 40281261
Change-Id: If3cf8659f3cf039c02244e14b8a824bbbe6c8ed4
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6059259
Auto-Submit: Alex Rudenko <alexrudenko@chromium.org>
Reviewed-by: Simon Zünd <szuend@chromium.org>
Commit-Queue: Simon Zünd <szuend@chromium.org>
2024-12-05 07:00:19 +00:00
Kateryna Prokopenko 49c61d1205 [GM3Restyling] Remove adorner settings pane in favour of a submenu
Screenshot: https://imgur.com/a/9jpWWW8

Bug: 325442993
Change-Id: Ibc7240e3fc5d3405c2589c2e5e39ecc6cc2e92e2
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/5987922
Auto-Submit: Kateryna Prokopenko <kprokopenko@chromium.org>
Reviewed-by: Kim-Anh Tran <kimanh@chromium.org>
Commit-Queue: Kim-Anh Tran <kimanh@chromium.org>
2024-12-05 05:47:02 +00:00
Adam Raine d0ba98ea07 [RPP Observations] Remove live metrics experiment
- This also removes the legacy performance panel landing page
- Live metrics are explicitly disabled in node environments

Bug: 377235479
Change-Id: I5bc34c72bf92f4ca0c657d503aae0e3a05cf8d9f
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6035862
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
Auto-Submit: Adam Raine <asraine@chromium.org>
Commit-Queue: Adam Raine <asraine@chromium.org>
2024-12-02 18:34:52 +00:00
Andrés Olivares 5d90540f1c [RPP] Generalize JS async call initiator relationships
By using the output of the AsyncCallStacksHandler. One noticeable change
from the UI is that since we don't need specific JS entrypoints for
these events (setTimeout: InstallTimer -> TimerFire, rAF:
RequestAnimationFrame -> AnimationFrameFired, etc.), the initiated
arrows now follow this pattern:

js call -> FunctionCall. Where js call is the profile call for the
scheduling function (e.g. setTimeout or requestAnimationFrame) and
FunctionCall is the entry point for the JS task that was scheduled.

I'd argue an improvement because we are consistent across JS
schedulers, without the need for specific entrypoints for each
scheduler.

Bug: 381391955
Change-Id: I687b2c00104dde8d942b68508cfca0f072224499
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6054289
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
Commit-Queue: Andres Olivares <andoli@chromium.org>
2024-12-02 09:28:27 +00:00
Nikolay Vitkov 65f45cc921 [deps] Update TypeScript EsLint parser
Update the @typescript-eslint - eslint-plugin and parser to v7.18.0
cia incremental patches.
This is the last version before breaking changes need to start be applied to the infrastructure.
Needed to update EsLint to v8.56.0 as required by the above major v7.
Only one new error was uncovered in test file and fixed.

No-Presubmit: true
Bug: none
Change-Id: I4e4fe265b82deeb49786c5bf3e154dac8fcfecbd
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6054130
Reviewed-by: Danil Somsikov <dsv@chromium.org>
Commit-Queue: Nikolay Vitkov <nvitkov@chromium.org>
2024-11-29 13:15:35 +00:00
Philip Pfaffe 0c8fe7f829 Fix an error message
Bug: none
Change-Id: Ia62aac731e4c33e7a424eda451edb81151faba52
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6054334
Auto-Submit: Philip Pfaffe <pfaffe@chromium.org>
Commit-Queue: Alex Rudenko <alexrudenko@chromium.org>
Commit-Queue: Philip Pfaffe <pfaffe@chromium.org>
Reviewed-by: Alex Rudenko <alexrudenko@chromium.org>
2024-11-29 09:12:17 +00:00
Alex Rudenko a224c32fde Re-enable flaky tests with RasterInducingScroll and CompositeBackgroundColorAnimation disabled
No-Tree-Checks: True
Bug: 381055647
Change-Id: I2f8762266fd08c92dcf2e7baad99eb6c9d24259b
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6054264
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
Commit-Queue: Alex Rudenko <alexrudenko@chromium.org>
2024-11-27 14:44:27 +00:00
Jack Franklin f3672391f8 [Gardener]: disable more flaking CORS issues e2e tests
Bug: 381055647
Change-Id: I53906419e10d9fa079784c9b363a85b5cec542f1
No-Tree-Checks: True
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6055038
Auto-Submit: Jack Franklin <jacktfranklin@chromium.org>
Reviewed-by: Alex Rudenko <alexrudenko@chromium.org>
Commit-Queue: Simon Zünd <szuend@chromium.org>
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
Reviewed-by: Simon Zünd <szuend@chromium.org>
2024-11-27 13:21:39 +00:00