Commit Graph
4259 Commits
Author SHA1 Message Date
Simon Zünd a292e76f9c Revert "Fix path escaping"
This reverts commit 10892e33a2.

Reason for revert: Breaks the web test http/tests/devtools/sources/debugger-breakpoints/nodejs-set-breakpoint.js
on the windows bot: https://ci.chromium.org/p/chromium/builders/try/win10_chromium_x64_rel_ng/620785?

Original change's description:
> Fix path escaping
> 
> Inconsistent URL escaping was breaking snippets, which by default
> have characters (space and #) which need to be escaped.
> 
> As a general rule, anything called 'url' or 'path' is now url-encoded,
> and anything called 'name' or 'platformPath' is not.
> 
> Bug: 1094436
> Change-Id: I7a26e9f2bfa676d0cc1b4731ea939ebc12222a25
> Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2266998
> Commit-Queue: Simon Zünd <szuend@chromium.org>
> Reviewed-by: Simon Zünd <szuend@chromium.org>
> Reviewed-by: Sigurd Schneider <sigurds@chromium.org>

TBR=sigurds@chromium.org,szuend@chromium.org,tvanderlippe@chromium.org,janscheffler@chromium.org,leese@chromium.org

Change-Id: I842706b3a5781f0ee767c1867d532f4c5d394543
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: 1094436
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2316073
Reviewed-by: Simon Zünd <szuend@chromium.org>
Commit-Queue: Simon Zünd <szuend@chromium.org>
2020-07-23 19:22:31 +00:00
Paul Lewis 91182684ab List formatter_worker_entrypoint and acorn.mjs in GRD
Neither formatter_worker_entrypoint.js nor acorn.mjs were listed in the
GRD for DevTools. This meant that when someone went to pretty print file
contents the runtime 404'd on the two files in Release mode, and pretty
printing failed.

This CL adds them to the GRD inputs so that they are bundled in Release

TBR=jacktfranklin@chromium.org

Bug: 1107859
Change-Id: Icec02ad4b0fc024de25a4d3b5621a35f586a2890
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2316072
Reviewed-by: Paul Lewis <aerotwist@chromium.org>
Commit-Queue: Paul Lewis <aerotwist@chromium.org>
2020-07-23 18:08:48 +00:00
Mathias Bynens 718ac79a11 Integrate client variations parser
This patch configures the Closure typings and makes it possible to use
ClientVariationsParser.js in DevTools UI code.

These changes have already been reviewed [1], but they are now split
into a separate CL.

[1]: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2316062

TBR=alexrudenko@chromium.org,changhaohan@chromium.org

Bug: chromium:1103854
Change-Id: Ic94d9c93727f3b6251d684bf3960e3a9de8f1392
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2316071
Reviewed-by: Mathias Bynens <mathias@chromium.org>
Commit-Queue: Mathias Bynens <mathias@chromium.org>
2020-07-23 16:41:08 +00:00
Jack Franklin 15a98cd148 Use local tsc for cross-referencing script.
So that we don't depend on people having TypeScript installed globally.

Change-Id: Iaaf0a5c1c28fe5775bc58a67289906df4391db84
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2316069
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
Commit-Queue: Paul Lewis <aerotwist@chromium.org>
Auto-Submit: Jack Franklin <jacktfranklin@chromium.org>
Reviewed-by: Paul Lewis <aerotwist@chromium.org>
2020-07-23 15:55:18 +00:00
Mathias Bynens 4e81261c93 Revert "Integrate client variations parser"
This reverts commit 4efee5ce8a.

Reason for revert: causes build warning

Original change's description:
> Integrate client variations parser
> 
> This patch configures the Closure typings and makes it possible to use
> ClientVariationsParser.js in DevTools UI code.
> 
> These changes have already been reviewed [1], but they are now split
> into a separate CL.
> 
> [1]: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2316062
> 
> TBR=alexrudenko@chromium.org,changhaohan@chromium.org
> 
> Bug: chromium:1103854
> Change-Id: Ia6533cbed8e33627109f244af67c122c2b2d2b2f
> Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2316065
> Reviewed-by: Mathias Bynens <mathias@chromium.org>
> Commit-Queue: Mathias Bynens <mathias@chromium.org>

TBR=isherman@chromium.org,mathias@chromium.org,changhaohan@chromium.org,alexrudenko@chromium.org

Change-Id: Ife1a02ac07edc9fefb4fcf0f43a3a032300cf2b9
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: chromium:1103854
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2316067
Reviewed-by: Mathias Bynens <mathias@chromium.org>
Commit-Queue: Mathias Bynens <mathias@chromium.org>
2020-07-23 15:24:59 +00:00
Fawaz Mohammad bbfa16e54b [WebAuthn] Customize authenticator name
This patch allows the user to edit the names of authenticators.

Design Doc: https://docs.google.com/document/d/1A-cn0rxuHHAyGhywayk7xcTqSsR2X7va6H4kSMThOoY

Bug: 1034663
Change-Id: I0401aee73c3eacea2a343a5bd928efcbba16ff60
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2308830
Reviewed-by: Nina Satragno <nsatragno@chromium.org>
Reviewed-by: Jan Scheffler <janscheffler@chromium.org>
Commit-Queue: Nina Satragno <nsatragno@chromium.org>
2020-07-23 15:19:38 +00:00
Mathias Bynens 4efee5ce8a Integrate client variations parser
This patch configures the Closure typings and makes it possible to use
ClientVariationsParser.js in DevTools UI code.

These changes have already been reviewed [1], but they are now split
into a separate CL.

[1]: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2316062

TBR=alexrudenko@chromium.org,changhaohan@chromium.org

Bug: chromium:1103854
Change-Id: Ia6533cbed8e33627109f244af67c122c2b2d2b2f
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2316065
Reviewed-by: Mathias Bynens <mathias@chromium.org>
Commit-Queue: Mathias Bynens <mathias@chromium.org>
2020-07-23 15:05:08 +00:00
Paul Lewis 2f7079da66 Adds more cases for TS/GN cross-reference
TBR=jacktfranklin@chromium.org

Change-Id: Ib80f21e3410179e305b8fe7433658738144a03af
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2316064
Reviewed-by: Paul Lewis <aerotwist@chromium.org>
Commit-Queue: Paul Lewis <aerotwist@chromium.org>
2020-07-23 13:46:58 +00:00
Paul Lewis a1448c2f77 Adds cross reference script
It is possible for TypeScript to import a file that is not included in
the corresponding devtools_entrypoint as a dependency. In many cases
this would likely cause the build to fail, but it's also possible that a
dependency might have been provided as a dep of another entrypoint.
Given that ninja parallelizes builds this results in a race condition
where on some builds the dependency that wasn't declared is there, and
on some builds it is not. This is further complicated if build artifacts
from previous builds are kept around.

This CL introduces a script that can be run manually that cross
references the files that GN knows about, and the files that TypeScript
expects to be able to import. Any files expected by the TypeScript
compiler that are not declared in the BUILD.gn (even indirectly as a
dep of a dep etc) will be flagged.

Change-Id: Ieb95600f11bfc20e0e71d8792a7f344b13a0fb8e
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2316063
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
Commit-Queue: Paul Lewis <aerotwist@chromium.org>
2020-07-23 13:15:28 +00:00
Eric Leese 10892e33a2 Fix path escaping
Inconsistent URL escaping was breaking snippets, which by default
have characters (space and #) which need to be escaped.

As a general rule, anything called 'url' or 'path' is now url-encoded,
and anything called 'name' or 'platformPath' is not.

Bug: 1094436
Change-Id: I7a26e9f2bfa676d0cc1b4731ea939ebc12222a25
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2266998
Commit-Queue: Simon Zünd <szuend@chromium.org>
Reviewed-by: Simon Zünd <szuend@chromium.org>
Reviewed-by: Sigurd Schneider <sigurds@chromium.org>
2020-07-23 11:23:08 +00:00
Kim-Anh Tran 038b9b3377 Use setBreakpoint() only when creating a new breakpoint
Up until now we used getPossibleBreakpoints() in order to find the
breakable location, just for setBreakpoint to set a breakpoint
on the first returned location. Using setBreakpoint() directly
is more intuitive and straight-forward, and for our use case
it should result in the same breakpoint setting behavior.

Bug: chromium:1105172
Change-Id: Id9460dcddb714fafa32a4620116e29c62c03c301
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2306150
Auto-Submit: Kim-Anh Tran <kimanh@chromium.org>
Reviewed-by: Benedikt Meurer <bmeurer@chromium.org>
Commit-Queue: Benedikt Meurer <bmeurer@chromium.org>
2020-07-23 09:00:38 +00:00
Benedikt Meurer af6416cd74 Remove deprecated use_relative_hooks = True from DEPS file.
According to gclient, `use_relative_hooks` is deprecated, since
it was merged into `use_relative_paths`, so delete that line.

Change-Id: Iaa20b8756c4d9f49f9a73dc6b13a46798ab2423d
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2316056
Commit-Queue: Benedikt Meurer <bmeurer@chromium.org>
Commit-Queue: Paul Lewis <aerotwist@chromium.org>
Auto-Submit: Benedikt Meurer <bmeurer@chromium.org>
Reviewed-by: Paul Lewis <aerotwist@chromium.org>
2020-07-23 08:47:37 +00:00
devtools-ci-autoroll-builder cb2f73564c Update DevTools Chromium DEPS.
TBR=machenbach@chromium.org,liviurau@chromium.org

Change-Id: Icd104f60b137bfe59a3a4df78ca584827389bead
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2315175
Reviewed-by: 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>
2020-07-23 06:21:57 +00:00
Jack Lynch 29cc4f3104 Fix Network Datagrid focus bug
This CL fixes a bug where clicking on an item in the Network panel would
focus its headers, preventing users from arrow keying through the grid.
Activating an item with the keyboard still moves focus to allow screen
reader users to navigate the panel.

Video: https://i.imgur.com/aFc1DJi.mp4

Bug: 1107381
Change-Id: I9230bffe32a26380715ee51138c478dcfb8f6bc2
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2315077
Reviewed-by: Brandon Goddard <brgoddar@microsoft.com>
Commit-Queue: Jack Lynch <jalyn@microsoft.com>
2020-07-23 00:16:57 +00:00
Ilya Sherman cc02814e07 Add a utility for parsing the X-Client-Data header
This header contains serialized and base64-encoded protocol buffers.
This utility simply base64-decodes the serialized data, and then
parses the proto via compiled JSPB parsing.

See https://chromium-review.googlesource.com/c/chromium/src/+/2301121
for the parser implementation. The "gen" code in this CL is the compiled
output from that CL.

Bug: 1103854
Change-Id: Ib0e04ba2ac02cfb88200054041fc32f86fd2ede8
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2301085
Commit-Queue: Ilya Sherman <isherman@chromium.org>
Reviewed-by: Mathias Bynens <mathias@chromium.org>
2020-07-22 22:25:27 +00:00
Brandon Goddard ed914d1241 Grid: Update grid telemetry to fire on devtools launch
This CL creates a new CSS grid setting histogram to replace the previous
one, which was firing multiple times per setting change. Previously,
the histogram could fire once per target on the debug target page
when a setting changed.

This new histogram fires once on devtools launch, allowing us to
gain insight on user's settings preferences while also filtering
out several events from users quickly trying different settings
before settling on a prefered option

Backend CL: https://crrev.com/c/2304166

Bug: 1106888
Change-Id: I929befb8997ac0908e6c9aa90af509582b77ae49
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2308256
Reviewed-by: Alex Rudenko <alexrudenko@chromium.org>
Reviewed-by: Shane Clifford <shanejc@microsoft.com>
Commit-Queue: Brandon Goddard <brgoddar@microsoft.com>
2020-07-22 20:25:37 +00:00
Kateryna Prokopenko a469e5b085 [issues] Add inline CSP violation handling
Screenshot: https://imgur.com/a/11PdpEK
Bug: chromium:1082628
Change-Id: I94d641c203dcd105534dba69f0dbdac151edbc6c
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2288699
Reviewed-by: Sigurd Schneider <sigurds@chromium.org>
Reviewed-by: Simon Zünd <szuend@chromium.org>
Commit-Queue: Kateryna Prokopenko <kprokopenko@google.com>
2020-07-22 14:11:51 +00:00
Simon Zünd 94beb690c0 Use 'forward_variables_from' in 'devtools_module'
This CL changes 'devtools_module' to use the standard way of
copying properties from the invoker. Not all devtools_module will
provide 'deps'. The current code assumes its always there, so modules
have to provide an empty deps list, otherwise we get build errors.

R=jacktfranklin@chromium.org

Change-Id: I49fd82ab1e54816c02fb99eccb70287d845b8233
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2310457
Reviewed-by: Paul Lewis <aerotwist@chromium.org>
Commit-Queue: Simon Zünd <szuend@chromium.org>
2020-07-22 13:23:30 +00:00
Changhao Han 097956ebb5 Improve rendering performance in the Computed Styles pane
Currently the Computed Styles pane renders several hundreds of computed
styles in a single cycle, which means creating, appending, layout-out,
rendering, and painting hundreds of heavily styled <li> items that
contains widgets and children. This can create a visual lag ranging
from ~100ms to ~1s. This CL breaks down these operations into smaller
batches, and queues them using browser's requestIdleCallback to provide
an instant rendering feedback.

tracing before: https://chromedevtools.github.io/timeline-viewer/?loadTimelineFromURL=https://gist.githubusercontent.com/hanselfmu/424153ea140df049800e716031882238/raw/c62f1561cf4f56c1c5c869325015f3d99ab65637/computed_tab_perf_before.json
tracing after: https://chromedevtools.github.io/timeline-viewer/?loadTimelineFromURL=https://gist.github.com/hanselfmu/5fdc43d3ae878aed82e79ff3af3c1ed6/raw/7d5095dfde0236eccafe53ec0fb22356e303afb9/computed_tab_perf_after.json

Bug: chromium:1100148, chromium:1106251, chromium:1093263
Change-Id: Id0acbf91542280b026fdb67e28097bdb445606ea
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2308547
Commit-Queue: Changhao Han <changhaohan@chromium.org>
Reviewed-by: Alex Rudenko <alexrudenko@chromium.org>
Reviewed-by: Mathias Bynens <mathias@chromium.org>
2020-07-22 12:30:40 +00:00
Jack Franklin a33f641501 Migrate data_grid to devtools_entrypoint
Bug: 1101738
Change-Id: Ia27d25c6e356ca9141e923b893232c3f701ae5bc
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2310458
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
Auto-Submit: Jack Franklin <jacktfranklin@chromium.org>
Reviewed-by: Paul Lewis <aerotwist@chromium.org>
2020-07-22 12:23:21 +00:00
Paul Lewis e9817f52a1 Migrates root to devtools_entrypoint
Bug: 1101738
Change-Id: I23ebeefe2c051ea9690c25c15f9a72896f977261
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2306158
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
Commit-Queue: Paul Lewis <aerotwist@chromium.org>
2020-07-22 10:04:40 +00:00
Simon Zünd 6651f11ef8 Migrate 'front_end/browser_sdk' to 'devtools_entrypoint'
R=jacktfranklin@chromium.org

Bug: chromium:1101738
Change-Id: I812b85abe8318c965eaee757071cf4bf31cf9444
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2310454
Commit-Queue: Simon Zünd <szuend@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
2020-07-22 09:22:20 +00:00
Simon Zünd 8f37642092 Migrate 'front_end/dom_extension' to 'devtools_entrypoint'
R=jacktfranklin@chromium.org

Bug: chromium:1101738
Change-Id: I78ce15d3eeea98f25e00d7ea592f29a73801dd36
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2310456
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
Commit-Queue: Simon Zünd <szuend@chromium.org>
2020-07-22 09:09:31 +00:00
Jack Franklin bd0463ac29 Fix bad border colour on computed styles
Because the border declaration was missing a defined colour it was not
inverted correctly in dark mode, meaning the border would be black which
is not easily spotted when in dark mode. To fix this I picked out the colour that was being used in light mode and explicitly defined it.

By declaring a specific black colour, it is then inverted into white in
dark mode and it's much clearer as the screenshots below show (no light mode included as this change is a no-op in light mode).

Before, dark mode (note the barely visible black border around the
margin): https://imgur.com/OuaagvW

After, dark mode: https://imgur.com/ecntqHp

Fixed: 1106683
Change-Id: I2a834d23f964efaa6757636460b8b5136bfdfb23
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2308548
Reviewed-by: Paul Lewis <aerotwist@chromium.org>
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
2020-07-22 09:08:26 +00:00
Johan Bay 9dd9a4b882 Roll Puppeteer from v4.0.0 to v5.2.1
DISABLE_THIRD_PARTY_CHECK=updating node_modules deps

Change-Id: Ic6a2b99314bc3cd05f6283e261d8aa952bc56984
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2310451
Reviewed-by: Mathias Bynens <mathias@chromium.org>
Commit-Queue: Mathias Bynens <mathias@chromium.org>
2020-07-22 06:54:36 +00:00
Simon Zünd 2675d65f66 Migrate issues module to use devtools_entrypoint
R=aerotwist@chromium.org

Bug: chromium:1101738
Change-Id: Ib0bcccf13ee74cf41f76da0e2eb32b98a414232b
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2308535
Commit-Queue: Simon Zünd <szuend@chromium.org>
Reviewed-by: Paul Lewis <aerotwist@chromium.org>
2020-07-22 06:32:16 +00:00
Songtao Xia bf6e84f915 [Emulation] Fix of crbug 1107564
A missing check in json parsing caused loading of some of the standard
devices to fail, which leads to the bug: after user selects additional
devices, the device list does not appear to persisted - they persisted
but the reading failed, the "show" flag became Default, causing no show.

Tests to be added later.

Bug: 1107564
Change-Id: Idea0927ad108e2467f667329df8a70040696f9df
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2310811
Commit-Queue: Songtao Xia <soxia@microsoft.com>
Reviewed-by: Brandon Goddard <brgoddar@microsoft.com>
2020-07-22 02:06:55 +00:00
Brandon Goddard 55b591c650 Revert "Copy sourcemaps over in is_debug mode"
This reverts commit 9702c2c5dc.

Reason for revert: On Windows, this is failing to gn gen with is_debug = true with the following error: https://imgur.com/g3g4ADu

I bet the issue could be the source maps being copied over with fwd slash instead of os specific path separators


Original change's description:
> Copy sourcemaps over in is_debug mode
>
> DISABLE_THIRD_PARTY_CHECK=typescript library change
>
> Change-Id: I993b8a3c742cc7feea1ae1dee250aad7469eb22b
> Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2302069
> Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
> Reviewed-by: Sigurd Schneider <sigurds@chromium.org>
> Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>

TBR=sigurds@chromium.org,tvanderlippe@chromium.org,jacktfranklin@chromium.org

Change-Id: I0e4c1b308beee837f6be1b2e642350656fb284d4
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2310810
Reviewed-by: Robert Paveza <Rob.Paveza@microsoft.com>
Reviewed-by: Jack Lynch <jalyn@microsoft.com>
Reviewed-by: Brandon Goddard <brgoddar@microsoft.com>
Commit-Queue: Brandon Goddard <brgoddar@microsoft.com>
2020-07-21 19:03:55 +00:00
Ted Meyer c69e90789a Add a "Hide player" to right click menu on media player list
Bug: 1104376
Change-Id: Ie56621daf2ca8c31b001502b6135a7052ee26527
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2309215
Reviewed-by: Mathias Bynens <mathias@chromium.org>
Commit-Queue: Ted Meyer <tmathmeyer@chromium.org>
2020-07-21 18:52:52 +00:00
Ted Meyer 49ae6e23bf Keep event pane scrolled to bottom if it is already there
Bug: 1104375
Change-Id: I09ef0a2b288462bc359f5f1bfeac69277baa5691
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2308255
Reviewed-by: Paul Lewis <aerotwist@chromium.org>
Commit-Queue: Ted Meyer <tmathmeyer@chromium.org>
2020-07-21 16:08:32 +00:00
Jack Franklin 9702c2c5dc Copy sourcemaps over in is_debug mode
DISABLE_THIRD_PARTY_CHECK=typescript library change

Change-Id: I993b8a3c742cc7feea1ae1dee250aad7469eb22b
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2302069
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
Reviewed-by: Sigurd Schneider <sigurds@chromium.org>
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
2020-07-21 15:12:12 +00:00
Jack Franklin 84d986f9a1 Rename NewElementsBreadcrumbs => ElementsBreadcrumbs
Now it's landed and stable, let's remove the `New` prefix.

Change-Id: I27a77b134edbdbd96fc1e129b2958dbff1a0855a
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2306156
Reviewed-by: Paul Lewis <aerotwist@chromium.org>
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
2020-07-21 14:56:12 +00:00
Paul Lewis 1434e6f967 Changes ninja hardlink copy for file copy
The internal ninja copy action is, for Linux and Mac, the creation of a
hardlink. In the case of an is_debug = false build, we copy the
devtools_entrypoint file with ninja to the gen folder. However, should
the file then change in the gen folder, those changes will be reflected
back in the original source file since the two are hardlinked. This does
happen when the JavaScript file moves to being managed by the TypeScript
compiler, for example, because tsc often changes blank lines and adds
sourcemap information to the file. If the gen folder is empty and no
hardlink exists prior to build, there are no issues. If, on the other
hand, the hardlink exists, and the TypeScript compiler runs, the file
written in the gen folder will update, and then so will its original
source.

The ways to resolve this reflection back to the source folder is either
by deleting the gen folder before rebuilding (where one anticipates
changes being reflected in source), or, instead of using the ninja copy,
using an action to call out to a script that will ensure that a new file
is created and not hardlinked.

This CL chooses the latter path.

Change-Id: Id2cc8acdc240eb73ac736ddaf6f1eabdd08f8359
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2308534
Commit-Queue: Paul Lewis <aerotwist@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
2020-07-21 14:34:02 +00:00
Paul Lewis 839037fe83 [TypeScript] disallow explicit any
This CL explicitly disallows use of the `any` keyword via eslint. This
is to make sure we don't accidentally miss typing info. This CL also
adds eslint-ignore statements for existing uses of any (mostly in tests)
as well as fixing a few cases where the types were simple enough to add
quickly.

R=jacktfranklin@chromium.org

Change-Id: Ia913a30d63c1ae3d969785af332a8dde512cc275
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2308544
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
Commit-Queue: Paul Lewis <aerotwist@chromium.org>
2020-07-21 14:31:32 +00:00
Jack Franklin 62ab4833a6 Remove incorrect DEPs from formatter worker
These are actually DEPS of third_party/acorn, which was fixed in
https://crrev.com/c/2308540.

Therefore we can remove them from here as formatter worker never imports them
directly.

Change-Id: I16b2b7967fe3aaf90ee56b6e1b9073eff41cdc1e
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2308542
Auto-Submit: Jack Franklin <jacktfranklin@chromium.org>
Commit-Queue: Paul Lewis <aerotwist@chromium.org>
Reviewed-by: Paul Lewis <aerotwist@chromium.org>
2020-07-21 11:39:32 +00:00
Jack Franklin 57d7441b35 Fix acorn deps
It was missing two deps that are imported from `acorn.ts`.

TBR=aerotwist@chromium.org

Bug: 1107681
Change-Id: I9edf2cbdf17fb61981146158116c0c571e733fb8
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2308540
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
Reviewed-by: Paul Lewis <aerotwist@chromium.org>
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
2020-07-21 10:46:22 +00:00
Mathias Bynens ba288cfa8d Clean up inspector overlay HTML
This patch simplifies the inspector overlay HTML and makes it more
consistent through minor changes like the following:

- drop redundant type="text/css" from <link rel="stylesheet">
- move <title> as early as possible (i.e. immediately after
  <meta charset="utf-8">)

Some HTML files used in e2e tests had the same patterns and were changed
accordingly.

Change-Id: Ib18657f6c919186e8d264ae1542427a61eb4c823
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2308537
Reviewed-by: Alex Rudenko <alexrudenko@chromium.org>
Commit-Queue: Mathias Bynens <mathias@chromium.org>
2020-07-21 08:58:02 +00:00
Alex Rudenko b0f5dc2b27 Fix grid gap hatch fill
Rotate the gap fill to render using the right angle
when the grid layout is rotated.

Screenshot: https://i.imgur.com/boJ7xbg.png

Bug: 1106681
Change-Id: I55dfac1fb44bb583811187d813f6838928a131c7
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2307310
Reviewed-by: Mathias Bynens <mathias@chromium.org>
Reviewed-by: Changhao Han <changhaohan@chromium.org>
Reviewed-by: Brandon Goddard <brgoddar@microsoft.com>
Commit-Queue: Alex Rudenko <alexrudenko@chromium.org>
2020-07-21 06:07:33 +00:00
Ted Meyer a98e938611 Fix text wrapping
Overflow was already set to hidden, but on heightless, widthless span
elements overflow:hidden does nothing. So just set the height to 20 like
everything else.

Bug: 1105770
Change-Id: I7128f43b6fa9754ccba08c4a99ac9b3fe14e00af
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2308832
Reviewed-by: Mathias Bynens <mathias@chromium.org>
Commit-Queue: Ted Meyer <tmathmeyer@chromium.org>
2020-07-21 04:57:08 +00:00
Wolfgang Beyer 67fbef694c Fix frame tree persistence of selected item
When refreshing the page with DevTools opened, when refreshing
DevTools or when navigating back to a previously opened page, the frame
tree in the application panel should pre-select the element which was
last selected on the previous visit.

This works by comparing itemURLs of the tree elements with previously
persisted itemURLs. In the previous implementation any match between
those 2 arrays was considered a match. This could lead to the
selection jumping around on page refresh because there were multiple
matches. With this CL a match needs to start at the root node and
progresses along parent-child relationships.

Bug: https://crbug.com/1101262
Change-Id: Ica7275be6aaf13df5de1e800e9fbabf1449ec8bd
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2300111
Reviewed-by: Sigurd Schneider <sigurds@chromium.org>
Commit-Queue: Wolfgang Beyer <wolfi@chromium.org>
2020-07-20 15:10:27 +00:00
Philip Pfaffe 6c55502d0b [wasm debug] Implement auto-stepping with the experiment.
This ports the auto-stepping logic that was already available with the
DWARF prototype to the `wasmDWARFDebugging` experiment. The condition
here is as follows:

  If we break on a raw location for which we have a reverse mapping
  to a UI location, then we check whether any of the raw locations
  to which the UI location maps is exactly the same as the break
  location.

This seems to yield the expected behavior, but comes at a quite
significant cost (transfering all the stack frames and scope chains to
the DevTools front-end just to decide that we don't want to break here),
so eventually we want to find a better and more efficient way to do
this.

Bug: 1105765, 1083146
Also-By: pfaffe@chromium.org
Change-Id: Idc4a4f57f352322769557609dde7fe2aa26a7ce2
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2300115
Reviewed-by: Philip Pfaffe <pfaffe@chromium.org>
Commit-Queue: Philip Pfaffe <pfaffe@chromium.org>
Commit-Queue: Benedikt Meurer <bmeurer@chromium.org>
Auto-Submit: Benedikt Meurer <bmeurer@chromium.org>
2020-07-20 14:32:28 +00:00
Paul Lewis 9b9d88bd8a Migrates host to devtools_entrypoint
Bug: 1101738
Change-Id: I8aa22ef4f7f6970022e2fab2fcb597bcb318c6ef
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2307309
Commit-Queue: Paul Lewis <aerotwist@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
2020-07-20 11:57:37 +00:00
Jack Franklin 12ba06cc91 Update component_docs README
Some of the steps have changed since this was written.

Change-Id: I0ac49ab852a28109b335ff19c7c2f43d4329f7ca
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2306157
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
Commit-Queue: Jan Scheffler <janscheffler@chromium.org>
Auto-Submit: Jack Franklin <jacktfranklin@chromium.org>
Reviewed-by: Jan Scheffler <janscheffler@chromium.org>
2020-07-20 11:35:27 +00:00
Philip Pfaffe edad8321ca [wasm debug] Add an API for Language Plugins Extensions
This CL extends the existing extension API to support debugger language
plugins hosted inside chrome extensions. The patch adds a new
experimental interface to allow extensions to egister a language plugin,
which then gets called by the debugger to provide debug information.

Drive-By: Drop the experimental out-of-process language plugin made
obsolete by the language extensions.

Bug: chromium:1083146
Change-Id: Icbf755e5761f6b7a5df6406a725e38eba965683e
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2245146
Commit-Queue: Philip Pfaffe <pfaffe@chromium.org>
Reviewed-by: Benedikt Meurer <bmeurer@chromium.org>
Reviewed-by: Paul Lewis <aerotwist@chromium.org>
Reviewed-by: Andrey Kosyakov <caseq@chromium.org>
2020-07-20 11:08:07 +00:00
Jack Franklin 2c1e944aad Migrate front_end/bindings to devtools_entrypoint
Bug: 1101738
Change-Id: I0d43818334425984a160fa9b79076f7413a6a52b
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2306155
Reviewed-by: Paul Lewis <aerotwist@chromium.org>
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
2020-07-20 10:47:17 +00:00
Alex Rudenko 8f731aa6ad Add showTrackSizes to the grid overlay
This CL adds a setting to show track sizes in the grid overlay.
For now, only computed sizes are shown.

Screenshot: https://i.imgur.com/JjSr5v2.png
Backend CL: https://crrev.com/c/2299343

Bug: 1105808
Change-Id: I75047be4e683b6fd6dc6edd00997b85443cd9f9c
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2300099
Commit-Queue: Alex Rudenko <alexrudenko@chromium.org>
Reviewed-by: Brandon Goddard <brgoddar@microsoft.com>
Reviewed-by: Patrick Brosset <patrick.brosset@microsoft.com>
Reviewed-by: Changhao Han <changhaohan@chromium.org>
Reviewed-by: Mathias Bynens <mathias@chromium.org>
2020-07-20 10:29:47 +00:00
Peter Marshall c059be1548 tests: Always specify a timeout for waitFor/Function
If we use a local timeout rather than letting this timeout the whole
mocha process, we get a way better error message which includes
info about the selector/function/whatever we care about, and the
step name. Without this we just get the test file name and nothing
else.

Change-Id: Ia2882fb123a6f2b582c0dd19f3f01135b496161a
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2292276
Reviewed-by: Paul Lewis <aerotwist@chromium.org>
Commit-Queue: Peter Marshall <petermarshall@chromium.org>
2020-07-20 10:26:19 +00:00
Paul Lewis 270e6f332c Migrates a11y to devtools_entrypoint
Bug: 1101738
Change-Id: I5b798a1d8c0f40860bc3738fc4f626b5c8f35519
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2302071
Commit-Queue: Paul Lewis <aerotwist@chromium.org>
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
2020-07-20 09:09:47 +00:00
Paul Lewis 559e6e50d2 Moves generated scripts to devtools_module
Bug: 1101738
Change-Id: I8457d73aa10e8559a37375c247eab6718b48714b
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2302070
Commit-Queue: Paul Lewis <aerotwist@chromium.org>
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
2020-07-20 08:34:07 +00:00
devtools-ci-autoroll-builder 8815d8ec32 Update DevTools Chromium DEPS.
TBR=machenbach@chromium.org,liviurau@chromium.org

Change-Id: Idb22526313ffc85cf2d9196650fa793f7c2d2ac1
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2305648
Reviewed-by: 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>
2020-07-20 06:26:17 +00:00