Commit Graph
23945 Commits
Author SHA1 Message Date
devtools-ci-autoroll-builder 441ec12c25 Update DevTools DEPS (trusted)
Rolling third_party/depot_tools: https://chromium.googlesource.com/chromium/tools/depot_tools/+log/423f1e1..6cbd7a8

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

Bug: none
Change-Id: Ie39f0e1ce50baea29cd36852698f15bd52a59b3b
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6169067
Bot-Commit: Devtools Autoroller <devtools-ci-autoroll-builder@chops-service-accounts.iam.gserviceaccount.com>
Commit-Queue: Devtools Autoroller <devtools-ci-autoroll-builder@chops-service-accounts.iam.gserviceaccount.com>
2025-01-11 04:39:53 -08:00
devtools-ci-autoroll-builder 516123f515 Update Chrome (for Testing) PIN
Chromium pin updated to 134.0.6949.0

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

Bug: none
Change-Id: I73b55cd8c18c5face8e4b906e697a44476de8b84
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6169648
Commit-Queue: Devtools Autoroller <devtools-ci-autoroll-builder@chops-service-accounts.iam.gserviceaccount.com>
Bot-Commit: Devtools Autoroller <devtools-ci-autoroll-builder@chops-service-accounts.iam.gserviceaccount.com>
2025-01-10 19:58:19 -08:00
devtools-ci-autoroll-builder cd709e509d Update DevTools DEPS (trusted)
Rolling build: https://chromium.googlesource.com/chromium/src/build/+log/b2b443d..7b5248c

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

Bug: none
Change-Id: I58d062b304754582cf33e9dc698e67a2c915a125
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6169647
Commit-Queue: Devtools Autoroller <devtools-ci-autoroll-builder@chops-service-accounts.iam.gserviceaccount.com>
Bot-Commit: Devtools Autoroller <devtools-ci-autoroll-builder@chops-service-accounts.iam.gserviceaccount.com>
2025-01-10 19:56:29 -08:00
“jalonthomas” 8245ed1528 Add VE logging for Flag Controls and Cookie Report elements
We will now track clicks on the "Controls" and
"Third-party cookies" sidebar elements. Also, tracks clicks
on each of the controls tool's checkboxes and the toggle.

Bug: 386355192
Change-Id: I7e5f5ce1cf03cb931a47d3e86d29f1e83c568ee5
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6125938
Reviewed-by: Shuran Huang <shuuran@chromium.org>
Commit-Queue: Jalon Thomas <jalonthomas@google.com>
Reviewed-by: Danil Somsikov <dsv@chromium.org>
2025-01-10 15:54:33 -08:00
Connor Clark ed19c1e898 Add calibrated CPU throttling presets
Adds two CPU throttling presets - low-tier mobile and mid-tier mobile - and a calibration process that determines the best throttling rate to
match the given preset.

The calibration process uses a benchmark and experimentally adjusts the
applied CPU throttling to discover the rate that produces the most
similar results.

See go/cpq:adaptive-throttling for more detail.

Bug: 311438112
Change-Id: Iee049f6c8e9c33ec1dee9799eeb8e370c32d9f0a
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6151074
Reviewed-by: Paul Irish <paulirish@chromium.org>
Commit-Queue: Connor Clark <cjamcl@chromium.org>
2025-01-10 10:23:29 -08:00
Connor Clark 8284692127 Update test function in heap_profiler_test_runner.js
Bug: 388589515
Change-Id: I8093c20087ba15276fe0a0706060d1ac5f2bfc9a
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6164864
Auto-Submit: Connor Clark <cjamcl@chromium.org>
Commit-Queue: Connor Clark <cjamcl@chromium.org>
Reviewed-by: Paul Irish <paulirish@chromium.org>
2025-01-10 10:05:14 -08:00
Alina Varkki 4b3bc1a8b7 [RPP] Open the shortcuts dialog on the timeline load instead of the performance panel load
Bug: 388605257
Change-Id: Idf5ae01a45fd6a1618404ee5e39ea276359e2c60
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6163609
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
Auto-Submit: Alina Varkki <alinavarkki@chromium.org>
Commit-Queue: Alina Varkki <alinavarkki@chromium.org>
2025-01-10 10:03:13 -08:00
Adam Raine 7157865129 [LargestImagePaintHandler] Ignore image paints after LCP
This refactors the handler to find largest image paints only by their
node id and process id (since node ids are only unique within their
renderer process).

Bug: 389074106
Change-Id: I1022db9eaf80ccf51fe412bd2aa1d05e35243fdc
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6166302
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
Commit-Queue: Adam Raine <asraine@chromium.org>
2025-01-10 09:03:06 -08:00
Eric Leese be9c8f491f Display option to force :open pseudo class
Bug: 383157184
Change-Id: Ib12a89c8914fe4ff2761dfea823979b8966d4fed
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6164989
Reviewed-by: Philip Pfaffe <pfaffe@chromium.org>
Auto-Submit: Eric Leese <leese@chromium.org>
Commit-Queue: Eric Leese <leese@chromium.org>
2025-01-10 07:59:18 -08:00
Shuran Huang ec4c0fcc20 Update strings to use mode b language.
Bug: b/388845293
Change-Id: I9f9200ba6401c01dda92077914b7c48be70e1371
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6165443
Commit-Queue: Danil Somsikov <dsv@chromium.org>
Auto-Submit: Shuran Huang <shuuran@chromium.org>
Reviewed-by: Danil Somsikov <dsv@chromium.org>
2025-01-10 07:28:23 -08:00
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 461ebb8b02 [cleanup] Fix and unify Toolbar.createActionButton.
Bug: 388445687
Change-Id: I39b26edd649c6d783a4eeaf6ddb9265889e643d0
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6164907
Commit-Queue: Alex Rudenko <alexrudenko@chromium.org>
Auto-Submit: Benedikt Meurer <bmeurer@chromium.org>
Reviewed-by: Alex Rudenko <alexrudenko@chromium.org>
2025-01-10 06:50:09 -08:00
devtools-ci-autoroll-builder 25c4d59791 Update Chrome (for Testing) PIN
Chromium pin updated to 134.0.6948.0

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

Bug: none
Change-Id: Ia2f04249ba717f33a0ef8bded87162f42f093913
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6165446
Commit-Queue: Devtools Autoroller <devtools-ci-autoroll-builder@chops-service-accounts.iam.gserviceaccount.com>
Bot-Commit: Devtools Autoroller <devtools-ci-autoroll-builder@chops-service-accounts.iam.gserviceaccount.com>
2025-01-10 04:58:32 -08:00
devtools-ci-autoroll-builder fbe5f4a8ef Update DevTools DEPS (trusted)
Rolling build: https://chromium.googlesource.com/chromium/src/build/+log/39929a4..b2b443d

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

Bug: none
Change-Id: If2b68907351ce2d9e83f494eb292bf20465be7b8
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6164395
Bot-Commit: Devtools Autoroller <devtools-ci-autoroll-builder@chops-service-accounts.iam.gserviceaccount.com>
Commit-Queue: Devtools Autoroller <devtools-ci-autoroll-builder@chops-service-accounts.iam.gserviceaccount.com>
2025-01-10 04:54:15 -08:00
Benedikt Meurer 32ab302551 [cleanup] Remove Toolbar.orientation.
We really misused vertical toolbars in the past, as a way to build the
UI of the settings panes within the Network, Console, and Performance
panels.
These weren't really toolbars, and there's also no good reason to even
need the toolbar here, since what we really want is a stupid grid.

Bug: 388445687
Change-Id: Ibd531823c5e5ad09829630656409a1e32b5d43ec
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6164904
Auto-Submit: Benedikt Meurer <bmeurer@chromium.org>
Commit-Queue: Danil Somsikov <dsv@chromium.org>
Reviewed-by: Danil Somsikov <dsv@chromium.org>
2025-01-10 04:48:02 -08:00
Nancy Li 1929397ba2 [RPP icicle blowtorch] Clean the test code
Before this change, the interactions in the previous tests will affect the later ones. So just clear the ignore list before each test so the tests are individual and can be run separately.

Fixed: 383099297
Change-Id: I2c847fc10885bf834953c41b99dfc86622ddd468
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6164903
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
Commit-Queue: Nancy Li <nancyly@chromium.org>
2025-01-10 02:20:50 -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
devtools-ci-autoroll-builder e6bffbe169 Update Chrome (for Testing) PIN
Chromium pin updated to 134.0.6947.0

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

Bug: none
Change-Id: If20d52c9d69548feee99b7a11ce6c990a02a9ece
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6164393
Commit-Queue: Devtools Autoroller <devtools-ci-autoroll-builder@chops-service-accounts.iam.gserviceaccount.com>
Bot-Commit: Devtools Autoroller <devtools-ci-autoroll-builder@chops-service-accounts.iam.gserviceaccount.com>
2025-01-09 20:05:29 -08:00
devtools-ci-autoroll-builder 9fb0b35deb Update DevTools DEPS (trusted)
Rolling build: https://chromium.googlesource.com/chromium/src/build/+log/fdd1d9a..39929a4

Rolling buildtools: https://chromium.googlesource.com/chromium/src/buildtools/+log/dc74188..59f9fba

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

Bug: none
Change-Id: Ia4b9379d2038562df0833eaf6941f171047098f4
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6165445
Bot-Commit: Devtools Autoroller <devtools-ci-autoroll-builder@chops-service-accounts.iam.gserviceaccount.com>
Commit-Queue: Devtools Autoroller <devtools-ci-autoroll-builder@chops-service-accounts.iam.gserviceaccount.com>
2025-01-09 19:54:44 -08:00
Adam Raine 82e6b18a38 [WebVitals] Do not store interaction target nodes
This is a manual modification of the web-vitals.js library to prevent
it from retaining DOM nodes. In some cases the DOM node may be removed
before DevTools can make a reference for it, but that is preferable to
keeping the node in memory when the user does not expect it.

Bug: 376777343
Change-Id: I507273c93a4bbe5f2f5111e1a17e179efc583ef4
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6159204
Commit-Queue: Adam Raine <asraine@chromium.org>
Reviewed-by: Connor Clark <cjamcl@chromium.org>
2025-01-09 15:30:49 -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
Jack Franklin 7cb1b26c46 Lantern: remove nocheck from NetworkAnalyzer.test.ts
Bug: 348449529
Change-Id: Ifd958402e040db705ced9d774759c2172cc5e318
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6162515
Commit-Queue: Connor Clark <cjamcl@chromium.org>
Reviewed-by: Connor Clark <cjamcl@chromium.org>
Auto-Submit: Jack Franklin <jacktfranklin@chromium.org>
2025-01-09 10:33:42 -08:00
Joshua Thomas 5cc20c1a5a Add setCookieControls CDP command to frontend
This CDP command is intended to be fired every time a related
setting is changed.

This CL also removes the infobar whenever the page is reloaded
instead of only when the infobar is pressed.

Bug: 375352611
Change-Id: I261e5d4bba0f63f0199f8387733816b8beb1d4db
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6105875
Reviewed-by: Shuran Huang <shuuran@chromium.org>
Reviewed-by: Danil Somsikov <dsv@chromium.org>
Commit-Queue: Joshua Thomas <masnoble@chromium.org>
2025-01-09 10:05:26 -08:00
Wolfgang Beyer bc4066f67b [Console Insights] Search RAG direct citations: link to references
section and highlight

The direct citations/footnotes rendered via MarkdownView now link to
the references section instead of directly to the source URL. On
click, the references section is expanded and the corresponding URL
highlighted.

Polished the code by using extended markdown's footnote syntax for
direct citations.

Also added a sub-heading for indirect citations if there are both
direct and indirect citations.

Screencast: https://i.imgur.com/VP6vRV6.mp4

Bug: 381228083
Change-Id: I479b299a609a2b63690c53593af1507ba2ba269a
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6157982
Commit-Queue: Wolfgang Beyer <wolfi@chromium.org>
Auto-Submit: Wolfgang Beyer <wolfi@chromium.org>
Reviewed-by: Alex Rudenko <alexrudenko@chromium.org>
2025-01-09 07:17:05 -08:00
Adam Raine a2d550676e Fix PRESUBMIT.py bug allowing excluded files to be checked
Bug: None
Change-Id: Ieee9b46650d75fa5a5e5aca5dc6d5c70efc4312c
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6163963
Auto-Submit: Adam Raine <asraine@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
Commit-Queue: Adam Raine <asraine@chromium.org>
2025-01-09 07:16:02 -08:00
Benedikt Meurer a16158ac54 [cleanup] More UI.Toolbar.Toolbar refactorings.
This adds `wrappable` and `orientation` properties/attributes to
the `UI.Toolbar.Toolbar` custom element and cleans up the styling
a bit.

Bug: 388445687
Change-Id: I420691e231f2ef3aab88b5fa8e89e0fc71cd15ba
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6163343
Commit-Queue: Benedikt Meurer <bmeurer@chromium.org>
Reviewed-by: Danil Somsikov <dsv@chromium.org>
Commit-Queue: Danil Somsikov <dsv@chromium.org>
2025-01-09 06:14:19 -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
Andrés Olivares d983b64d90 Support console timestamp event dispatched at V8::Console
console.timeStamp will be used as a fast API to extend the performance
panel [1]. Right now, the call dispatches two trace events, one in Blink
and one in V8. Before this CL the timings added to the timeline for
console.timeStamp calls were taken from the event dispatched from Blink.

However, we have recently modified the V8 event to include 5 extra
params in accordance to the proposed extension to the console.timeStamp
API in the linked doc [2]. We did it in the V8 event to avoid the
potential overhead of passing the params to Blink from V8 and keep the
API as fast as possible.

This CL replaces the usage of the console timestamp event in Blink for
the one in V8, and updates the event type accordingly. This is the first
step towards adding support for extending the Performance panel with the
console.timeStamp API.

Note: With this done we can also delete the trace event dispatched in
Blink, since it's no longer used.

[1] go/cpq:console-timestamp
[2] https://chromium-review.googlesource.com/c/v8/v8/+/6110720

Bug: 377884142
Change-Id: I5f2a0ebd212ae5169b5c3f88bdda6d0b64ae00eb
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6141613
Reviewed-by: Alina Varkki <alinavarkki@chromium.org>
Commit-Queue: Andres Olivares <andoli@chromium.org>
2025-01-09 05:42:45 -08:00
devtools-ci-autoroll-builder ccf7a15fc0 Update Chrome (for Testing) PIN
Chromium pin updated to 134.0.6946.0

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

Bug: none
Change-Id: I8b84764eb330c5609f26561de048c9b2e974bf1a
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6160906
Bot-Commit: Devtools Autoroller <devtools-ci-autoroll-builder@chops-service-accounts.iam.gserviceaccount.com>
Commit-Queue: Devtools Autoroller <devtools-ci-autoroll-builder@chops-service-accounts.iam.gserviceaccount.com>
2025-01-09 04:47:18 -08:00
devtools-ci-autoroll-builder 7f3ad3e526 Update DevTools DEPS (trusted)
Rolling build: https://chromium.googlesource.com/chromium/src/build/+log/03ff285..fdd1d9a

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

Bug: none
Change-Id: I3468469169fe965ca853f42cb6f0d01fbeed54f1
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6160905
Commit-Queue: Devtools Autoroller <devtools-ci-autoroll-builder@chops-service-accounts.iam.gserviceaccount.com>
Bot-Commit: Devtools Autoroller <devtools-ci-autoroll-builder@chops-service-accounts.iam.gserviceaccount.com>
2025-01-09 04:45:44 -08:00
Jack Franklin 415e04dc14 RPP: respect reduced-motion preferences when animating timeline
If the user has this preference, we will never animate them when
updating their position on the timeline.

Fixed: 368317251
Change-Id: I4f02ccfc864edee944f101f8d47922cf8c834464
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6162516
Auto-Submit: Jack Franklin <jacktfranklin@chromium.org>
Reviewed-by: Andres Olivares <andoli@chromium.org>
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
Commit-Queue: Andres Olivares <andoli@chromium.org>
2025-01-09 03:50:53 -08:00
Benedikt Meurer 8e21bf7dbb [cleanup] Some minor cleanups to UI.Toolbar.
- Remove unused `Toolbar.renderAsLinks()`
- Remove unnecessary `Toolbar.gripElementForResize()`
- Remove unused `ToolbarItem.setRightAligned()`

Bug: 388445687
Change-Id: I98c6cde753a3bc4288ed036e4bbbcdce4459c6f3
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6162517
Auto-Submit: Benedikt Meurer <bmeurer@chromium.org>
Reviewed-by: Danil Somsikov <dsv@chromium.org>
Commit-Queue: Benedikt Meurer <bmeurer@chromium.org>
2025-01-09 03:32:19 -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
Nancy Li 8448df58e7 [RPP code health] Remove the unnecessary map assignment
The spread syntax (...) will make a copy of the original object, which will use too much memory in our case because we have a big number of entries.
Originally we use spread syntax because we want to combine two maps. So the improvement is to check both map when we use the combined map.

Bug: 383702926
Change-Id: I191471ce8b7b33d978c61ea335acdac5fb6d412b
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6152579
Commit-Queue: Nancy Li <nancyly@chromium.org>
Reviewed-by: Paul Irish <paulirish@chromium.org>
2025-01-09 02:23:24 -08:00
Paul Irish c1824697da DrJones/Perf: Clean up old AINode impl
No behaviour change. FYI: The modern impl is in AICallTree.

Bug: 370436840
Change-Id: Ifad37ea71a4ba8bc5c4d7249ec15327b7a6cd381
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6158779
Auto-Submit: Paul Irish <paulirish@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
2025-01-09 00:40:55 -08:00
Andrés Olivares 5f1baa9831 Manually roll browser-protocol
With manual updates of broken deps after https://crrev.com/c/132500

Bug: none
Change-Id: If06014b035f172d97d8d0b6c9728d6e9aa81b89e
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6157261
Reviewed-by: Benedikt Meurer <bmeurer@chromium.org>
Commit-Queue: Benedikt Meurer <bmeurer@chromium.org>
Auto-Submit: Andres Olivares <andoli@chromium.org>
2025-01-08 23:27:44 -08:00
Wolfgang Beyer f813c2733c Update stripLitHtmlCommentNodes helper
Update the helper to string LitHTML comment nodes of the form '<!---->'

Bug: none
Change-Id: Idcdf670b1348da19f57300ba5a3a9d30579cf622
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6157260
Reviewed-by: Alex Rudenko <alexrudenko@chromium.org>
Commit-Queue: Alex Rudenko <alexrudenko@chromium.org>
Auto-Submit: Wolfgang Beyer <wolfi@chromium.org>
2025-01-08 23:08:00 -08:00
devtools-ci-autoroll-builder 6d1ceefa62 Update Chrome (for Testing) PIN
Chromium pin updated to 134.0.6945.2

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

Bug: none
Change-Id: I1c088c1a9c860b1111e659341ee90598e46bc45a
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6160941
Bot-Commit: Devtools Autoroller <devtools-ci-autoroll-builder@chops-service-accounts.iam.gserviceaccount.com>
Commit-Queue: Devtools Autoroller <devtools-ci-autoroll-builder@chops-service-accounts.iam.gserviceaccount.com>
2025-01-08 20:08:51 -08:00
devtools-ci-autoroll-builder 7db266634c Update DevTools DEPS (trusted)
Rolling build: https://chromium.googlesource.com/chromium/src/build/+log/f3e95cc..03ff285

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

Bug: none
Change-Id: I14530c0b64ac4254aa779733a836adc8b23545fb
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6160896
Bot-Commit: Devtools Autoroller <devtools-ci-autoroll-builder@chops-service-accounts.iam.gserviceaccount.com>
Commit-Queue: Devtools Autoroller <devtools-ci-autoroll-builder@chops-service-accounts.iam.gserviceaccount.com>
2025-01-08 19:54:08 -08:00
Joshua Thomas 08b058fcbc Cookie report fixes
Issues fixed by this CL:

1. Padding was removed from below the table and left border was
removed from data grid so that were was not a double border with
the sidebar divider

2. Filter chips are only shown when there is an associated entry in
the table. E.g. "Blocked" will not be shown if all entries were
"Allowed"

3. String updates.

Before: https://screenshot.googleplex.com/ASnzNBP9h5fyr9n.png
After: https://screenshot.googleplex.com/5Ddn4cydTdKad8o.png



Bug: b/365737493,b/382254647,b/382259750,b/382260846
Change-Id: I54cc3a8d488a40026e0a3f6d497e0b782c407c20
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6141933
Reviewed-by: Shuran Huang <shuuran@chromium.org>
Reviewed-by: Danil Somsikov <dsv@chromium.org>
Commit-Queue: Joshua Thomas <masnoble@chromium.org>
2025-01-08 10:54:49 -08:00
Joshua Thomas e42ec567a1 Show network request for cookie report line
This is the same functionality that the cookie table has within the
network panel. For each entry in the cookie report, there will be a
right click context menu option that will show the user the network
requests that contain cookies with the same cookie name AND cookie
domain.

Bug:b/365737493
Change-Id: I445e0b253f8ffd4f25d2bcc9a6560d4ab1ba39a8
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6140936
Reviewed-by: Shuran Huang <shuuran@chromium.org>
Commit-Queue: Joshua Thomas <masnoble@chromium.org>
Reviewed-by: Danil Somsikov <dsv@chromium.org>
2025-01-08 08:01:04 -08:00
Jack Franklin 8996ce6060 Lint: add test case for double slash in import path
Accidentally importing something as `foo//bar.js` (rather than
`foo/bar.js`) should not matter, and indeed both the TS build and
ESBuild compile fine. However you get an error when running DevTools at
runtime. What's unfortunate is that the error is very non obvious and it
took me ages to realise that the root of it was an accidental `//`.

This CL adds a check for this to the existing import rule and a test.

Fixed: 346966388
Change-Id: I3922a58b89ce639fc619c0e2b83cd14f3fe993cb
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6157259
Commit-Queue: Andres Olivares <andoli@chromium.org>
Auto-Submit: Jack Franklin <jacktfranklin@chromium.org>
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
Reviewed-by: Andres Olivares <andoli@chromium.org>
2025-01-08 07:00:08 -08:00
Shuran Huang e4b72f61f7 Handle Grace period exceptions that are applied at the 1p level
Bug: b/382264360
Change-Id: Ie61254dba7feb6a08ffefcf063e99766d58f5ddc
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6148734
Auto-Submit: Shuran Huang <shuuran@chromium.org>
Reviewed-by: Wolfgang Beyer <wolfi@chromium.org>
Commit-Queue: Shuran Huang <shuuran@chromium.org>
2025-01-08 06:52:25 -08:00
Alina Varkki 16fdc4d7e5 [RPP] Fix horizontal panning not working on shift + mouse scroll
Pressing shift and scrolling was not previously resulting in panning action because when mouse is used, 'shift + scroll' creates a wheelEvent that is already considered horizontal scroll and and deltaY was equal to 0.
Instead, use a panning delta that uses WheelEvent deltaX if deltaY doesn't exist.

Bug: 313757601
Change-Id: Ie3fa47405acfb9848cd23693ac1bfd3e9a339cf2
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6157258
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
Auto-Submit: Alina Varkki <alinavarkki@chromium.org>
Commit-Queue: Alina Varkki <alinavarkki@chromium.org>
2025-01-08 06:10:56 -08:00
Samiya Caur 62ed87185f [AI Assistant] Update considerations to specifically ask LLM to always return styles in data using property getters.
Fixed: 382419915
Change-Id: I8d36477d7906f81551b48d4d556b43cf9e691c31
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6147596
Auto-Submit: Samiya Caur <samiyac@chromium.org>
Reviewed-by: Alex Rudenko <alexrudenko@chromium.org>
Commit-Queue: Alex Rudenko <alexrudenko@chromium.org>
2025-01-08 05:41:03 -08:00
Nikolay Vitkov 822382beba Use TypeScript Interface instead of class
The class seems to never be created and only used as type.

Bug: none
Change-Id: I046e222e6c693f203f1d0288a8d1d332f20a4d1e
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6152578
Reviewed-by: Benedikt Meurer <bmeurer@chromium.org>
Commit-Queue: Nikolay Vitkov <nvitkov@chromium.org>
2025-01-08 05:20:52 -08:00
Wolfgang Beyer c430a4a350 [Console Insights] Align whitespace of 3 lists
Screenshots: https://imgur.com/a/sTKXzBU

Bug: 381228083
Change-Id: I896f82464375e5c251a8458197403c304110dc04
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6140247
Reviewed-by: Alex Rudenko <alexrudenko@chromium.org>
Commit-Queue: Wolfgang Beyer <wolfi@chromium.org>
2025-01-08 04:53:48 -08:00
Oliver Dunk e2650db844 DevTools: Add tests for DataGridWithPreview component.
Add tests for the DataGridWithPreview component. A lot of the logic
for actually rendering the data is in DataGrid, so I plan to expand test
coverage there in a second CL. These changes focus on test coverage for
the preview behavior in the bottom split pane widget.

I identified an unset (and unused in all places but DataGridWithPreview)
property `key` on DataGridNode. With that in mind, I simply removed it
to avoid accidental usage in the future.

Bug: 377942776
Change-Id: Id0da39ce8b21a1737c030f95eeed8390c77ed9a1
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/5999722
Reviewed-by: Alex Rudenko <alexrudenko@chromium.org>
Reviewed-by: Danil Somsikov <dsv@chromium.org>
Auto-Submit: Oliver Dunk <oliverdunk@chromium.org>
Commit-Queue: Alex Rudenko <alexrudenko@chromium.org>
2025-01-08 04:44:27 -08:00
Wolfgang Beyer 832d95f26f [Console Insights] Render training data references and deduplicate
references

Bug: 381228083
Change-Id: I6110ab5bf87e08b260711672b60cabd1185b89c3
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6133024
Reviewed-by: Alex Rudenko <alexrudenko@chromium.org>
Commit-Queue: Wolfgang Beyer <wolfi@chromium.org>
2025-01-08 04:42:28 -08:00