Commit Graph
1421 Commits
Author SHA1 Message Date
Jack Franklin e4379b40b3 Include inspectorSyntaxHighlight in component server
It is included globally in DevTools, so to ensure the server matches we
need to include it globally here too.

Bug: none
Change-Id: I14645f4ec1fcb8e5bd3c120a52f2877c256061db
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4983612
Auto-Submit: Jack Franklin <jacktfranklin@chromium.org>
Reviewed-by: Nancy Li <nancyly@chromium.org>
Commit-Queue: Nancy Li <nancyly@chromium.org>
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
2023-10-27 15:09:26 +00:00
Sandor Major ea1adcfc46 Create code-gen exemptions for 3P cookie deprecations
Bug: b:299640963
Change-Id: I3f88acb209115c06b1513c3acb568918323d4a9f
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4975830
Reviewed-by: Simon Zünd <szuend@chromium.org>
Commit-Queue: Sandor «Alex» Major <sandormajor@google.com>
2023-10-26 15:02:12 +00:00
Alex Rudenko f7ea7ab986 Update pptr to 21.4.1
DISABLE_THIRD_PARTY_CHECK=roll of Puppeteer and removal of the Puppeteer flag.

Fixed: 1484476
Change-Id: I98425afe43878948983dba94bda362aa6681d603
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4968458
Commit-Queue: Alex Rudenko <alexrudenko@chromium.org>
Reviewed-by: Simon Zünd <szuend@chromium.org>
2023-10-24 10:11:59 +00:00
Alex Rudenko 67e3886186 Roll puppeteer-core
This roll requires a manual review. See http://go/reviewed-rolls for guidance.

In case of failures or errors, reach out to someone from config/owner/RECORDER_OWNERS.

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

R=devtools-waterfall-sheriff-onduty@grotations.appspotmail.com

Bug: none
Change-Id: Ib753eb31a685c2588a7b539dacf69fdc894311ce
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4968502
Reviewed-by: Simon Zünd <szuend@chromium.org>
Commit-Queue: Alex Rudenko <alexrudenko@chromium.org>
2023-10-24 08:46:40 +00:00
Ergun Erdogmus 19ffe7f0bc Enable replacing CSS stylesheets on the fly after file change for watch script
This CL updates `generate_css_files` script and `watch` script to enable us to get CSS file changes instantly applied for non-legacy CSS files.

Drive by:
* Added an initial build step before starting to watch changes(1)
* Improved logs to include the time of the change.
* Updated `watch` listener to only get activated on `change` events.

(1) was something I was always missing starting this script.

You can try the behavior by:
* Running `npm run watch` and starting the watch mode.
* Opening the DevTools.
* Updating a non-legacy CSS file and expect to see the CSS change instantly on the opened DevTools.

Bug: none for now
Change-Id: I2aa3ed1b36584d1ef011119d5092d12271fb3017
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4922476
Reviewed-by: Simon Zünd <szuend@chromium.org>
Commit-Queue: Ergün Erdoğmuş <ergunsh@chromium.org>
2023-10-13 08:47:29 +00:00
Lingqi Chi 15da3fb465 Make Tot the "real" default value of roll_deps.py's ref option
Thanks to Ic386d62addec124e9c4c01c3a0bb4469e9193de9, we can roll to
working tree of chromium code base.
But without "default=ReferenceMode.Tot", the default value is None,
and thus the script does not update the origin/main.
So this CL sets Tot as the default value.

Bug: N/A
Change-Id: I6355ccc54bb929297d46251eda6ecf1c5fa7fd0f
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4933565
Commit-Queue: Lingqi Chi <lingqi@chromium.org>
Reviewed-by: Ken Okada <kenoss@chromium.org>
Reviewed-by: Simon Zünd <szuend@chromium.org>
2023-10-12 11:50:35 +00:00
Danil Somsikov 3d1b8cd90c Basic VE logging
Bug: 1467464
Change-Id: Ibe2568e0f6f9bc9c2c0f28dfa952f629146c1824
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4871400
Reviewed-by: Simon Zünd <szuend@chromium.org>
Reviewed-by: Ergün Erdoğmuş <ergunsh@chromium.org>
Reviewed-by: Danil Somsikov <dsv@chromium.org>
Commit-Queue: Danil Somsikov <dsv@chromium.org>
2023-10-10 09:19:19 +00:00
Alex Rudenko 5fe99f864f Update puppeteer in node_modules to 21.3.8
Bug: none
Change-Id: Ic4140d2e69ff70ee049ddf4d419c866c35dc58c2
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4916662
Commit-Queue: Benedikt Meurer <bmeurer@chromium.org>
Auto-Submit: Alex Rudenko <alexrudenko@chromium.org>
Reviewed-by: Benedikt Meurer <bmeurer@chromium.org>
2023-10-06 13:40:42 +00:00
Alex Rudenko 6d5f492d37 Enable Tab target for Puppeteer
This CL changes the Puppeteer instance used by the e2e and interaction tests to work in the Tab target mode, that is the mode that supports MPArch and features like pre-rendering. In the next releases of Puppeteer it will be enabled by default and this configuration can be removed.

Bug: chromium:1484476
Change-Id: I771234935a1d95de143a6c4559aa297d7dd1b4ae
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4853353
Auto-Submit: Alex Rudenko <alexrudenko@chromium.org>
Commit-Queue: Alex Rudenko <alexrudenko@chromium.org>
Reviewed-by: Simon Zünd <szuend@chromium.org>
2023-10-05 07:29:26 +00:00
Al Muthanna 8416b07f3b Add shuffling flag to unit tests
Bug: None
Change-Id: If2acf7173021fec2c2e54fe4563097bd182a65d2
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4892396
Reviewed-by: Philip Pfaffe <pfaffe@chromium.org>
Reviewed-by: Danil Somsikov <dsv@chromium.org>
Commit-Queue: Almothana Athamneh <almuthanna@chromium.org>
2023-09-29 10:53:36 +00:00
Alex Rudenko b013f87a99 Update puppeteer and puppeteer-core in node_modules
DISABLE_THIRD_PARTY_CHECK=fixes for the roll

Bug: 1484476
Change-Id: I0d0b5288bd860d24923802042e091551ff4cdeea
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4898119
Commit-Queue: Alex Rudenko <alexrudenko@chromium.org>
Reviewed-by: Simon Zünd <szuend@chromium.org>
2023-09-29 07:14:02 +00:00
Jack Franklin ddbc4bcc89 Fix no_bound_component_methods error for incomplete event listener
Bug: none
Change-Id: Ib9c6a076190a43cd6f1683b066d72cb5a69babf7
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4864946
Reviewed-by: Alex Rudenko <alexrudenko@chromium.org>
Auto-Submit: Jack Franklin <jacktfranklin@chromium.org>
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
2023-09-18 08:59:43 +00:00
Jack Franklin acc06a4b29 A script for searching for matches in trace files
Something I often want to do is search through our fixtures to find a
fixture that contains a certain event. However, because our files are
gzip'd, I have to manually extract them before doing anything.

So to avoid that, I wrote up this little script that will help:

```
$ node scripts/search-trace-files.js "v8.parse"
Searching for v8.parse

=> basic-stack 2.json
=> basic-stack.json
=> busy-network.json
=> cls-cluster-max-timeout.json
=> idle-callback.json
=> interactive-time.json
=> invalid-animation-events.json
=> large-recalc-style.json
=> load-simple.json
=> many-requests.json
=> multiple-navigations.json
=> multiple-top-level-renderers.json
=> react-hello-world.json
=> redirects-subresource-multiple.json
=> sync-like-timings.json
=> timings-track.json
=> two-workers.json
=> user-timings-complex.json
=> user-timings.json
=> web-dev.json
```

Bug: none
Change-Id: I66f7d3de88d5dd7a840331198c9215ccf5b7f357
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4855767
Auto-Submit: Jack Franklin <jacktfranklin@chromium.org>
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
Reviewed-by: Andres Olivares <andoli@chromium.org>
2023-09-13 12:02:42 +00:00
Philip Pfaffe 468ab362b6 Shorten filename embedded by code_generator_frontend.py
The code generator embeds the last n entries of its own filename into
the generated InspectorBackendCommands. It used to be n=4, which
happens to create a different filename depending on whether the
script is run from a chromium or a standalone devtools-frontend
checkout. So set n=3.

DISABLE_THIRD_PARTY_CHECK=Updating code genrator

Bug: none
Change-Id: I09fad6d43377c8558709cbe41dba106f9c813caf
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4852085
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
Auto-Submit: Philip Pfaffe <pfaffe@chromium.org>
2023-09-11 13:29:02 +00:00
Wolfgang Beyer 21656cbc83 Fix path for running e2e-tests
Fixed: 1478914
Change-Id: Ibde4d22aa87779ed7ab0f257710f47fa6aa80569
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4840335
Commit-Queue: Wolfgang Beyer <wolfi@chromium.org>
Reviewed-by: Philip Pfaffe <pfaffe@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
2023-09-05 10:36:09 +00:00
Alex Rudenko 662ce9cbd7 [node_modules] Update Puppeteer to 21.1.1
Bug: none
Change-Id: Ifd4f7ac9dfb1527edd1e59f4afb4debe9d2a3860
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4821548
Reviewed-by: Simon Zünd <szuend@chromium.org>
Commit-Queue: Alex Rudenko <alexrudenko@chromium.org>
2023-08-29 09:38:42 +00:00
Hadrien Jaubert 4c4ae29024 [Protocol Monitor] Add support for enums not defined via $ref
In some cases, the enums parameters are not referenced with $ref and there is just an array of all accepted values inside browser_protocol.json
This CL adds a typeRef inside the registerCommand for those cases.
DISABLE_THIRD_PARTY_CHECK=needed to build

Bug: 1474336
Change-Id: I6239a90e225a54c3e884c59b3fbaea9f45eea92a
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4793639
Reviewed-by: Simon Zünd <szuend@chromium.org>
Reviewed-by: Alex Rudenko <alexrudenko@chromium.org>
Commit-Queue: Hadrien Jaubert <hadrienjaubert@google.com>
2023-08-22 09:29:32 +00:00
Simon Zünd 9aba3dba8b [migration] Allow from/to to be equal but still add import
Small fix for the search&replace script for the case where the before
and after are the same but the import is still required to make it
work.

R=mathias@chromium.org

Bug: 1442410
Change-Id: I73f6bff57122b540e6726952970ecc7a483b2ab0
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4798131
Reviewed-by: Mathias Bynens <mathias@chromium.org>
Commit-Queue: Simon Zünd <szuend@chromium.org>
2023-08-21 16:29:03 +00:00
Mathias Bynens f6e705a749 Print suggested commit message in rename-legacy-global
Bug: chromium:1442410
Change-Id: I65387acdae1228f597874d977317841749ad0d5d
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4793588
Commit-Queue: Simon Zünd <szuend@chromium.org>
Auto-Submit: Mathias Bynens <mathias@chromium.org>
Reviewed-by: Simon Zünd <szuend@chromium.org>
2023-08-18 12:08:52 +00:00
Jack Franklin 9e787a5d89 Expand DevTools build system documentation
Updating the existing documentation and trying to make some of it a bit
more beginner friendly for those new to the codebase. Plenty more to
add, but this is hopefully a good start :)

Bug: none
Change-Id: I56a8651c7b774a6c8d46d1a2949970fb7272cc64
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4783322
Reviewed-by: Simon Zünd <szuend@chromium.org>
Auto-Submit: Jack Franklin <jacktfranklin@chromium.org>
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
2023-08-17 11:10:38 +00:00
Simon Zünd ae9845e539 [scripts] Add new 'rename-legacy-global.mjs' migration utility
This CL is a temporary migration helper for the *-legacy.ts removal
effort. It's a slightly better search&replace that also adds the
necessary import statement if needed.

R=jacktfranklin@chromium.org

Bug: 1442410
Change-Id: Idcba121da6176f745db3e98d9e9ba0ac836d7b7b
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4774939
Commit-Queue: Simon Zünd <szuend@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
2023-08-14 11:18:52 +00:00
Alex Rudenko dd62460aaa Ban new LitElement components outside of existing folders
Bug: 1402569
Change-Id: If40c84ef62cfd81247455910450526c08cfa2757
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4769306
Reviewed-by: Philip Pfaffe <pfaffe@chromium.org>
Commit-Queue: Alex Rudenko <alexrudenko@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
2023-08-10 15:38:30 +00:00
Simon Zünd b8bada8e65 [eslint] Allow assert.hasAllKeys and assert.containsAllKeys
These are convinient to check keys for Maps/Sets without worrying
about iteration order.

R=jacktfranklin@chromium.org

Bug: None
Change-Id: I458f980fe026f3c1d940f7e15c80a6328d9753bf
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4769460
Commit-Queue: Simon Zünd <szuend@chromium.org>
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
Auto-Submit: Simon Zünd <szuend@chromium.org>
2023-08-10 10:49:04 +00:00
Alex Rudenko 6e435700ad Fix rollup plugin for DevTools
devtools-plugin for rollup should not treat code inside
Puppeteer folders as DevTools entrypoints. Only the `frontend/third_party/puppeteer/puppeteer.js` and `frontend/third_party/puppeteer-replay/puppeteer-replay.js` should be treated as entry points.

Fixed: 1470202
Change-Id: Ic9c6344f163bc23f5b1d04c936c0446bb07c4d0e
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4765265
Auto-Submit: Alex Rudenko <alexrudenko@chromium.org>
Commit-Queue: Alex Rudenko <alexrudenko@chromium.org>
Reviewed-by: Simon Zünd <szuend@chromium.org>
2023-08-09 10:26:55 +00:00
Al Muthanna Athamina 34b5ae61b2 Add assertion for long commands on Windows for e2e_divider
Bug: 1419802
Change-Id: Ie80a84d34e0a249d625cae477475f35bfe81d2a0
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4765266
Reviewed-by: Simon Zünd <szuend@chromium.org>
Commit-Queue: Almothana Athamneh <almuthanna@chromium.org>
2023-08-09 09:48:45 +00:00
Al Muthanna Athamina 9d12cee0c2 Address nits on e2e_divider
Bug: 1419802
Change-Id: Ia8d31372b02205d335295f4b8f3f0704d0330cab
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4759305
Reviewed-by: Philip Pfaffe <pfaffe@chromium.org>
Reviewed-by: Simon Zünd <szuend@chromium.org>
Commit-Queue: Almothana Athamneh <almuthanna@chromium.org>
2023-08-09 09:17:58 +00:00
Simon Zünd 3502cdcf8c [build] Remove 'minify-html-template-literals' plugin from node_modules
DISABLE_THIRD_PARTY_CHECK=Removing a npm package.

R=alexrudenko@chromium.org

Bug: 1213034
Change-Id: I1546dfe1a1c74d44d02cae35e0334c8463790233
Fixed: 1471374
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4762688
Reviewed-by: Alex Rudenko <alexrudenko@chromium.org>
Commit-Queue: Simon Zünd <szuend@chromium.org>
2023-08-09 08:54:29 +00:00
Simon Zünd 7d525b4cc3 [build] Remove 'minify-html-template-literals' plugin from rollup config
R=alexrudenko@chromium.org

Bug: 1471374,1213034
Change-Id: Ia6ee0be69248904129b9e950f1e16f82013ec9b5
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4765264
Reviewed-by: Alex Rudenko <alexrudenko@chromium.org>
Commit-Queue: Simon Zünd <szuend@chromium.org>
2023-08-09 08:45:32 +00:00
Randolf Jung 3e52631076 Update "puppeteer" to 21.0.1
Bug: none
Change-Id: I7b92e1d3c7e14729d99fb8b540d93d9d0be0ecba
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4756724
Auto-Submit: Randolf Jung <jrandolf@chromium.org>
Reviewed-by: Simon Zünd <szuend@chromium.org>
Commit-Queue: Simon Zünd <szuend@chromium.org>
2023-08-08 08:05:41 +00:00
Al Muthanna Athamina d76e665871 Divide E2E test files by chunks instead of modulo
Bug: 1419802
Change-Id: Iac60d44814a43ba9b7dafa4a20377bc10c757950
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4755908
Reviewed-by: Philip Pfaffe <pfaffe@chromium.org>
Reviewed-by: Liviu Rau <liviurau@google.com>
Reviewed-by: Liviu Rau <liviurau@chromium.org>
Commit-Queue: Almothana Athamneh <almuthanna@chromium.org>
2023-08-07 13:58:57 +00:00
Randolf Jung dda5e9be47 Update puppeteer-tsconfig.json
Production builds did not include some Puppeteer files necessary for use in DevTools as a result of `puppeteer-tsconfig.json` not being up-to-date.

This CL also fixes the third_party roll script to ensure third party `tsconfig` files are updated upon roll.

Fixed: 1470202
Change-Id: Icf3f64db2888e601ee15e32d2571750fbd50a06b
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4753137
Commit-Queue: Randolf Jung <jrandolf@chromium.org>
Auto-Submit: Randolf Jung <jrandolf@chromium.org>
Reviewed-by: Mathias Bynens <mathias@chromium.org>
2023-08-07 13:15:12 +00:00
Randolf Jung b46da54e04 Update scripts/deps/roll_front_end_third_party.py
The script has been cleaned up for use with automation.

Bug: 1324875
Change-Id: I6fde93e170bc76e052d94ef4c8b293af02c070e5
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4747741
Reviewed-by: Liviu Rau <liviurau@chromium.org>
2023-08-03 13:08:51 +00:00
Mathias Bynens bc72be2e4e Remove chromium* entries from DEPS
Now that we’re using consistently-versioned Chrome for Testing
binaries, we no longer need to track Chromium revisions nor download
their binaries.

Bug: chromium:1465312
Change-Id: I89e2afa8fe5f4735919608f5dbb9ad874aaeb8ca
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4729681
Reviewed-by: Liviu Rau <liviurau@chromium.org>
Commit-Queue: Mathias Bynens <mathias@chromium.org>
2023-07-28 12:12:45 +00:00
Philip Pfaffe ead3f105e7 node_modules: Add emscripten types and rollup node plugin
Includes a rerun of install-deps which updates some unrelated packages.

Bug: 1454724
Change-Id: I29651314ac40c985f42a3fb2bce73ece20b7236a
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4632539
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
Reviewed-by: Kshitij Pancholi <panchok@google.com>
Commit-Queue: Philip Pfaffe <pfaffe@chromium.org>
2023-07-28 09:28:45 +00:00
Jack Franklin 22c40412ca Add eslint rule for detecting TraceEngine test timeouts
We need to ensure that each test that uses the trace engine is defined
using the function() keyword rather than an arrow function so that the
timeout is correctly set. This CL adds a rule to enforce and autofix
that.

Note that this CL does not enable the rule, I will do that in a
follow-up.

Bug: none
Change-Id: I33c1d2ea4bf8e639fd6b58dcabab8655b1ff222c
No-Presubmit: True
No-Tree-Checks: True
No-Try: True
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4724881
Auto-Submit: Jack Franklin <jacktfranklin@chromium.org>
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
Reviewed-by: Andres Olivares <andoli@chromium.org>
2023-07-27 14:25:41 +00:00
Mathias Bynens a017ced955 Use Chrome for Testing instead of Chromium binaries
To reduce complexity, the folder names within the CfT archives are
simplified as follows:

- chrome-win64 → chrome-win
- chrome-mac-{arm64,x64} → chrome-mac
- chrome-linux64 → chrome-linux

Bug: chromium:1465312
Change-Id: I984e818d58ef6dd16b44db022eefcb55b5afce50
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4724028
Auto-Submit: Mathias Bynens <mathias@chromium.org>
Reviewed-by: Liviu Rau <liviurau@chromium.org>
Commit-Queue: Liviu Rau <liviurau@chromium.org>
2023-07-27 12:13:35 +00:00
Liviu Rau f23899815e Add group membership hint on update failure
Bug: none
Change-Id: I19d08f69d9b9f84d25b91e5dc1ba3d27104a505f
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4720846
Reviewed-by: Michael Achenbach <machenbach@chromium.org>
Reviewed-by: Paul Irish <paulirish@chromium.org>
Commit-Queue: Liviu Rau <liviurau@google.com>
2023-07-26 16:36:04 +00:00
Liviu Rau 08ca9d229e Give feedback when try-results cannot be loaded
Bug: none
Change-Id: Ia4c627d9f572d3df239821b2e28518150026eead
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4714555
Reviewed-by: Michael Achenbach <machenbach@chromium.org>
Commit-Queue: Liviu Rau <liviurau@google.com>
Commit-Queue: Liviu Rau <liviurau@chromium.org>
2023-07-26 13:24:37 +00:00
Mathias Bynens 5c9b5f1ea9 Add chrome to DEPS alongside chromium_*
This patch prepares the relevant entries and scripts to version-pin and
download Chrome for Testing alongside Chromium. Consuming these new
binaries instead of Chromium is planned for a separate CL.

Bug: chromium:1465312
Change-Id: Ic1fca66b7a213e10c7200fc6f5f2ba6aeaa225cd
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4685561
Reviewed-by: Liviu Rau <liviurau@chromium.org>
Commit-Queue: Mathias Bynens <mathias@chromium.org>
2023-07-18 15:16:39 +00:00
Simon Zünd cba2ac9e1c [deps] Update 'terser' to 5.19.1
The update contains a bug fix that improves the quality for DevTools
release source maps.

The update also seems to stop minifiying certain names in the overlay
bundle so we had to slightly bump the limit.

  * Old size: 69660
  * New size: 71295

DISABLE_THIRD_PARTY_CHECK=Bump overlay size limit
R=alexrudenko@chromium.org

Bug: 1459146
Change-Id: I3036787bbb3ba8d28669b9aaab9c29c5f5581e55
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4693881
Commit-Queue: Simon Zünd <szuend@chromium.org>
Reviewed-by: Alex Rudenko <alexrudenko@chromium.org>
2023-07-18 09:44:36 +00:00
Jack Franklin 2d63337ed6 Fix errors when running component server index
Passing an array to `path.join` is not supported, it takes unlimited
arguments rather than an array of one.

This was introduced in crrev.com/c/4678757, but I think the bots were
happy because they do not use the index page and instead navigate
directly to examples. This error only triggered on the index page.

As a drive-by, I also bumped the font size as otherwise they use the
default, rather small, DevTools font size.

Bug: none
Change-Id: I580c454d62e3ce66065bdb21c2fc7b0349825637
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4685569
Reviewed-by: Andres Olivares <andoli@chromium.org>
Commit-Queue: Andres Olivares <andoli@chromium.org>
Auto-Submit: Jack Franklin <jacktfranklin@chromium.org>
2023-07-17 11:51:36 +00:00
Jack Franklin 2662479c79 Enable npm run auto-e2etest to take a target
This CL updates the run_test_suite.js script to support the --autoninja
flag alongside --target, in which case it will do a build before running
the tests.

Unfortunately I had to duplicate the package.json entry, else we get
into a world of confusion with passing command flags through npm run
commands, and I couldn't get it to work.

Bug: none
Change-Id: I0a339c72cf41a4ffcb0241e8b3efb1b35b2e5a9f
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4684353
Reviewed-by: Andres Olivares <andoli@chromium.org>
Commit-Queue: Andres Olivares <andoli@chromium.org>
Auto-Submit: Jack Franklin <jacktfranklin@chromium.org>
2023-07-14 12:22:49 +00:00
Hadrien Jaubert e3454dba71 [Protocol Monitor] Change type of description inside registerCommand to string
DISABLE_THIRD_PARTY_CHECK=needed to build

Bug: 1464499
Change-Id: Ib5ddda1635bb603fbcbc04a9c9d9ea6e53e364f2
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4678758
Reviewed-by: Simon Zünd <szuend@chromium.org>
Commit-Queue: Hadrien Jaubert <hadrienjaubert@google.com>
Reviewed-by: Nancy Li <nancyly@chromium.org>
2023-07-13 12:29:41 +00:00
Andrés Olivares f1d811c86e Add ui/legacy/tokens.css to component server
This way we ensure colors loaded from this file are available in the
component examples and screenshot tests, since it seems that after
https://crrev.com/c/4650363 , some colors for icons were no longer
available in the component server (see screenshots updates).

This CL adds the missing stylesheet to the server and adds it to a
reusable array so that stylesheet paths don't have to be hardcoded
multiple times.

Note: I forced a screenshot update so many goldens that are unrelated
to this issue are also re-baselined.

Bug: none
Change-Id: I8adcfbdd4966706a9b6f15d0947b4ef0ac0e96f4
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4678757
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
Reviewed-by: Kateryna Prokopenko <kprokopenko@chromium.org>
Commit-Queue: Andres Olivares <andoli@chromium.org>
2023-07-13 11:07:48 +00:00
Hadrien Jaubert d32b2acf8a [Protocol Monitor] Change type of description inside registerCommand to string
DISABLE_THIRD_PARTY_CHECK=needed to build

Bug: 1464499
Change-Id: I1e376bafb5179e24d431e8a1118d24c642d89348
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4683137
Reviewed-by: Simon Zünd <szuend@chromium.org>
Commit-Queue: Hadrien Jaubert <hadrienjaubert@google.com>
Reviewed-by: Nancy Li <nancyly@chromium.org>
Reviewed-by: Alex Rudenko <alexrudenko@chromium.org>
2023-07-13 10:34:34 +00:00
Alex Rudenko 763f344894 Update puppeteer to 20.8.2 (node_modules)
Bug: 1464324
Change-Id: Ifc3aadbadb7ee1feabb9559bc7746a987441f91a
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4679117
Commit-Queue: Simon Zünd <szuend@chromium.org>
Reviewed-by: Simon Zünd <szuend@chromium.org>
Auto-Submit: Alex Rudenko <alexrudenko@chromium.org>
2023-07-13 09:44:16 +00:00
Alex Rudenko b30dc26cdd Improve roll_front_end_third_party.py
- use stricter checks for a file belonging to the package
- git cl format even if auto-upload is off

Bug: none
Change-Id: I8aa3752d5606d91903e6d71a3343f0b21d533f77
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4679606
Reviewed-by: Simon Zünd <szuend@chromium.org>
Commit-Queue: Alex Rudenko <alexrudenko@chromium.org>
2023-07-12 11:37:59 +00:00
Hadrien Jaubert a511470fd6 [Protocol Monitor] Change python script to access the description of commands and parameters
DISABLE_THIRD_PARTY_CHECK=needed to build

Bug: 1463211
Change-Id: I506bdd07805a0b481cd73ca0c31baf1dff7977e2
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4675888
Reviewed-by: Simon Zünd <szuend@chromium.org>
Commit-Queue: Hadrien Jaubert <hadrienjaubert@google.com>
2023-07-11 13:17:30 +00:00
Alex Rudenko 1552f2b3ac Update puppeteer in node_modules
Bug: none
Change-Id: I47c32ffa1ee9f34bdfccb930d288a364afaa280f
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4675897
Reviewed-by: Simon Zünd <szuend@chromium.org>
Commit-Queue: Alex Rudenko <alexrudenko@chromium.org>
2023-07-11 12:54:29 +00:00
Kateryna Prokopenko bde284efe8 [DevToolsGM3Colors] Introduce Chrome Material color tokens to DevTools
Bug: 1456677
Change-Id: I5ff5c4074eb7ae0819b7593f0be332fec8f1132d
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4650361
Auto-Submit: Kateryna Prokopenko <kprokopenko@chromium.org>
Commit-Queue: Kateryna Prokopenko <kprokopenko@chromium.org>
Reviewed-by: Danil Somsikov <dsv@chromium.org>
2023-07-06 15:04:56 +00:00