Commit Graph
245 Commits
Author SHA1 Message Date
Wolfgang Beyer 5b433b0844 Add network request context menu entry for creating header override
This CL adds the ability to create header overrides from the list of
network requests in the network panel via the context menu.

If a local folder for storing local overrides has already been
configured beforehand, the context menu takes the user straight to the
'.headers' file where header overrides are to be specified. If
overrides have not been configured before, the user has to name a
local folder for storing overrides first.

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

Bug: 1297533
Change-Id: I8b31fe41d922e1662da68320fcc188c596c0a058
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3542245
Reviewed-by: Danil Somsikov <dsv@chromium.org>
Commit-Queue: Wolfgang Beyer <wolfi@chromium.org>
2022-05-13 08:27:54 +00:00
Jack Franklin d7508305f9 Enable ESLint rule for LitHtml.LitTemplate
Bug: 1320753
Change-Id: If7e442d3250508c9be9199f1706e73847782197d
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3629865
Auto-Submit: Jack Franklin <jacktfranklin@chromium.org>
Reviewed-by: Andres Olivares <andoli@chromium.org>
Commit-Queue: Andres Olivares <andoli@chromium.org>
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
2022-05-09 15:06:40 +00:00
Wolfgang Beyer 2390df881c Fix another flaky e2e-test in network_test.ts
Bug: 1093287
Change-Id: I99ce4fe42839a77f6b56a8b2fea7a28df0ceb713
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3629858
Reviewed-by: Danil Somsikov <dsv@chromium.org>
Commit-Queue: Wolfgang Beyer <wolfi@chromium.org>
2022-05-06 11:43:38 +00:00
Paul Irish a062a6afd7 Network Timing: Drop 'TTFB' from Waiting timing label
The timing here isn't congruent with the TTFB metric

Bug: 1192230
Change-Id: Ic305f06d981eab531b506dede6a7da8b875864cc
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3260526
Reviewed-by: Yang Guo <yangguo@chromium.org>
Commit-Queue: Paul Irish <paulirish@chromium.org>
Reviewed-by: Changhao Han <changhaohan@chromium.org>
2022-05-03 19:24:38 +00:00
Jack Franklin e839c0cf22 Enable long import wrapping for JS imports
DISABLE_THIRD_PARTY_CHECK=big clang format run against all files in
front_end and test/

Bug: 1319340
Change-Id: I1fff63cb07544ccd0e3059fc901f9a48ff4af13b
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3598879
Reviewed-by: Alex Rudenko <alexrudenko@chromium.org>
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
Reviewed-by: Wolfgang Beyer <wolfi@chromium.org>
2022-05-03 10:22:12 +00:00
Brandon Walderman d97633b637 Use single table for legacy DataGrid component
This change converts the separate <table> that was used for the
DataGrid's header row into a <thead> section in the data table. This
results in a single <table> element which is easier for screen reader
users to navigate.

The header has CSS position:sticky so that it remains in view when
scrolling through long data sets. To get the cleaner DOM structure,
and ensure scrolling continued to work, I had to set the whole table
to overflow-y: overlay. This means that the scrollbar now extends up
into the header row which is a visual change from before. See before
and after screenshots below.

I looked into setting the overflow property on the
<tbody> element instead, but this would only make the <tbody>
scrollable if the <tbody>'s display was set to 'block'. Doing that
keeps the scrollbar out of the header area as before, but it breaks
the overall table layout and prevents the cells from using the
widths defined in <colgroup>, which means the resizer UI doesn't work.
This could potentially be fixed with more work in the typescript, but
its not clear this would be worth the effort. The change I'm sharing
here trades the small visual regression for an accessibility win with
as little code churn as possible.

Before:
https://imgur.com/a/9ffDg3J

After:
https://imgur.com/a/iPcnaw7

Bug: 1316147
Change-Id: I30638eb512cdf91e9e5b6383bee8eb1289527311
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3586197
Reviewed-by: Michael Liao <michael.liao@microsoft.com>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
Commit-Queue: Brandon Walderman <brwalder@microsoft.com>
2022-04-19 20:13:35 +00:00
Chait Pinn 25a335523e Adds alert message for network conditions panel
This CL adds an aria alert message when network conditions panel is invoked from Network panel.

Screen reader screenshot: https://i.imgur.com/ACQMOyx.png

Bug:1313218
Change-Id: Ie191267627c460231ae88d9047a249be5eb020fe
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3569376
Reviewed-by: Danil Somsikov <dsv@chromium.org>
Commit-Queue: Chait Pinnamaneni <cpinnamaneni@microsoft.com>
2022-04-05 16:38:44 +00:00
Kateryna Prokopenko d05ac48187 Partly type path and URL variables in files in panels/ to Branded Types
Bug: 1299782
Change-Id: If35a3832e990affb4ef0a0918a290f58fcb0ca87
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3566003
Reviewed-by: Eric Leese <leese@chromium.org>
Reviewed-by: Simon Zünd <szuend@chromium.org>
Commit-Queue: Kateryna Prokopenko <kprokopenko@chromium.org>
2022-04-05 12:15:04 +00:00
Yang Guo 836f702b31 Restore network grid tooltip for URL
... unless it's a data URL which would bloat the tooltip

R=bmeurer@chromium.org

Fixed: 1302557
Change-Id: Iae4e329679a45d5a834aac93d07b336b30207bbe
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3560423
Auto-Submit: Yang Guo <yangguo@chromium.org>
Reviewed-by: Benedikt Meurer <bmeurer@chromium.org>
Commit-Queue: Benedikt Meurer <bmeurer@chromium.org>
2022-03-31 07:27:36 +00:00
Philip Pfaffe 95bce20a24 Prevent making requests in the network request preview tab
When filling the iframe that's showing the preview for html requests, we
encode the html contents as a data-url and also set the sandbox property
on the frame. This avoids remaking the request from within devtools.
It's still possible for the iframe to spawn some requests. With this CL
we prevent requests by setting the csp for the iframe.

Bug: 833147
Change-Id: Id77321465c91fd68e5d6c6c3681e48b39cb32d14
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3557989
Reviewed-by: Danil Somsikov <dsv@chromium.org>
Commit-Queue: Philip Pfaffe <pfaffe@chromium.org>
2022-03-30 12:09:32 +00:00
Kateryna Prokopenko a2d72a5d31 Type all path and URL variables in core/sdk to Branded Types
Bug: 1299773
Change-Id: I54609104283c074d0f3e03917dc9ba2a77544290
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3548478
Reviewed-by: Eric Leese <leese@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
Commit-Queue: Kateryna Prokopenko <kprokopenko@chromium.org>
2022-03-28 12:39:45 +00:00
Wolfgang Beyer 083e660af9 Fix headers link when overrides are disabled/not specified
1) When no overrides folder is specified, `NetworkPersistenceManager`'s
`projectInternal` is `null`. Handle this case.

2) When overrides are not enabled (but a folder is specified), allow to
retrieve the correct path for a '.headers' file.

Bug: 1297533
Change-Id: Ic21413ef91bda42e68149cf011cb4c5d50f96f31
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3542247
Reviewed-by: Danil Somsikov <dsv@chromium.org>
Commit-Queue: Wolfgang Beyer <wolfi@chromium.org>
2022-03-22 20:50:10 +00:00
Kateryna Prokopenko 2a1b3a93b0 Type all path and URL variables in WorkspaceImpl to Branded Types
Bug: 1299780
Change-Id: I1dffe6edc834cf5914d48c4e331510b1866f78b8
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3484200
Reviewed-by: Eric Leese <leese@chromium.org>
Reviewed-by: Simon Zünd <szuend@chromium.org>
Commit-Queue: Kateryna Prokopenko <kprokopenko@chromium.org>
2022-03-22 10:45:29 +00:00
Wolfgang Beyer a77c27dff5 Link from Network Panel to header overrides in the Sources Panel
If a matching '.headers' file containing header overrides exists, show a
link from the network panel's headers view to the source view of this
`.headers' file.
If local overrides are enabled, the link's icon contains a purple dot
indicating that the override is currently active.

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

Bug: 1297533
Change-Id: I83e7055474bf6af1583baba36a70eb6c56a641b5
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3529450
Reviewed-by: Danil Somsikov <dsv@chromium.org>
Commit-Queue: Wolfgang Beyer <wolfi@chromium.org>
2022-03-18 08:59:48 +00:00
Kateryna Prokopenko 380fdfac97 Type all URL and path variables in FileManager to Branded Types
Bug: 1299780
Change-Id: I65c083c166ea4e57938f14e4d9ff3b96b2c03083
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3484197
Reviewed-by: Simon Zünd <szuend@chromium.org>
Reviewed-by: Eric Leese <leese@chromium.org>
Commit-Queue: Kateryna Prokopenko <kprokopenko@chromium.org>
2022-03-16 17:26:57 +00:00
Kateryna Prokopenko ac21da4db6 Type path in createFile as EncodedPathString
Bug: 1253323
Change-Id: Icc520f383e032a8a6be8cbaffded2d2896ac4d37
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3470238
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
Reviewed-by: Eric Leese <leese@chromium.org>
Commit-Queue: Kateryna Prokopenko <kprokopenko@chromium.org>
2022-03-14 13:04:15 +00:00
Juba Borgohain 2af14943bb Rename SameSiteCookieIssue to CookieIssue
These changes rename SameSiteCookieIssue to CookieIssue. A follow-up
CL will make the file name change. It rolls the browser_protocol.pdl
from Chromium to DevTools frontend. Removes the compatibility changes
introduced in [1].

DISABLE_THIRD_PARTY_CHECK=changes required due to renaming

[1]: https://crrev.com/c/3478766

Bug: 1254192
Change-Id: I45b86611edfa469238f7f30bf0006556e8f07fd2
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3499339
Reviewed-by: Danil Somsikov <dsv@chromium.org>
Commit-Queue: Juba Borgohain <chromiumjuba@gmail.com>
2022-03-02 14:20:02 +00:00
Brandon Walderman 38e1e62439 Skip RequestTimingView refresh if min timing boundary hasn't changed
The contents of the network request timing panel are recreated any time
the network panel start or end time boundaries change. If there is a
service worker respondWith dropdown open, then it appears to close
because the whole view (including the dropdown) is recreated. On sites
with lots of traffic where the boundary changes frequently, this makes
it difficult to keep the dropdown open.

Before: https://imgur.com/a/kXmgv8C

Since the timing panel only depends on the minimum time boundary, I've
updated the RequestTimingView to cache the previous value and only do a
refresh if the minimum boundary has changed since the last boundary
update.

I've verified that this fixes the bug and that the dropdown stays
open now.

Bug: 1298953
Change-Id: I2b4fa2e9b344d9beac5fd08df95c2b355216560f
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3475081
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
Commit-Queue: Brandon Walderman <brwalder@microsoft.com>
2022-02-22 18:14:47 +00:00
Kateryna Prokopenko 79f7e6c996 Remove casts to UrlString from SourceMapManager & StaticContentProvider
Bug: 1299773
Change-Id: I377daea5d94e73326e77e56bbd8b94bad2c86b58
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3468517
Reviewed-by: Simon Zünd <szuend@chromium.org>
Reviewed-by: Eric Leese <leese@chromium.org>
Commit-Queue: Kateryna Prokopenko <kprokopenko@chromium.org>
2022-02-22 16:35:37 +00:00
Simon Zünd fd32a1664e [cleanup] Remove explicit undefineds from Linkifier option bags
Explicit undefineds in objectl iterals are left-over artifact when
we had to make the Closure and TypeScript compiler happy at the same
time. Closure has been gone for a while so we don't have to
explicitly set properties that can be undefined.

R=kimanh@chromium.org

Bug: None
Change-Id: I9c01fc8efe82dc1cf377f8663f132ff0026263bb
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3461551
Reviewed-by: Kim-Anh Tran <kimanh@chromium.org>
Commit-Queue: Simon Zünd <szuend@chromium.org>
2022-02-16 09:21:15 +00:00
Yang Guo 23dd4bcf0e Reduce uses of cursor: pointer
DevTools UI should behave like browser UI. Therefore interactive UI
elements should not need to change the mouse cursor to a hand with
pointing finger.

In particular, this CL removes `cursor: pointer` for

 - toolbar icons
 - buttons
 - panel tabs (vertical and horizontal)
 - issues hint icon
 - computed styles
 - Trust token delete button
 - adorners
 - data grid header for sorting
 - code folding marker in CodeMirror
 - animation previews
 - DOM tree guttor '...' menu
 - elements bread crumbs overflow buttons
 - color blocks in CSS Overview
 - device preset bars
 - devices list items
 - network request header and payload views
 - Media panel
 - delete buttons for watch expression and event listeners

Bug: 1291516
Change-Id: I182c43a43b94de31d1d8f2db4cd7831e82c535bb
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3447411
Reviewed-by: Changhao Han <changhaohan@chromium.org>
Commit-Queue: Yang Guo <yangguo@chromium.org>
2022-02-11 12:29:34 +00:00
Paul Lewis 982b1a562e Removes aerotwist from OWNERS
Thanks for everything :)

DISABLE_THIRD_PARTY_CHECK=Necessary for change

Bug: None
Change-Id: I1769098f0379eb919fb77ba8e98564642c8cc387
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3386941
Auto-Submit: Paul Lewis <aerotwist@chromium.org>
Reviewed-by: Yang Guo <yangguo@chromium.org>
Commit-Queue: Tim Van der Lippe <tvanderlippe@chromium.org>
2022-01-14 16:41:50 +00:00
Tim van der Lippe 6bcbe0f26d Use window.setTimeout to avoid TS errors in VS Code
R=aerotwist@chromium.org

Bug: none
Change-Id: I632aa0beb0e157197f5c2f982c2082a6d67f87f4
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3380595
Auto-Submit: Tim Van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
2022-01-11 19:17:48 +00:00
Paul Lewis 73bf7eca69 Update network waterfall on theme change
We have a missing redraw call for the Network waterfall when the theme
changes. This CL fixes that.

R=jacktfranklin@chromium.org

Bug: 1278738
Change-Id: I38763ceb9b9ccafd940c2606c687b54cbcb5e399
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3372937
Auto-Submit: Paul Lewis <aerotwist@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
2022-01-10 09:49:45 +00:00
Tim van der Lippe 2d9a95ce7b Suppress all existing promise races
To suppress the races, we mark these invocations with `void` per
the instructions of `no-floating-promises`. This explicitly marks
these statements as side-effect promises.

Engineers can later analyze these void statements and determine
whether the promise races are intentional or accidental.

R=jacktfranklin@chromium.org

Bug: 1239617
Change-Id: I6b7a24cf21029d6ff73b112b3e8255ebab8c60ec
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3366467
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
Commit-Queue: Tim Van der Lippe <tvanderlippe@chromium.org>
Auto-Submit: Tim Van der Lippe <tvanderlippe@chromium.org>
2022-01-04 16:08:08 +00:00
Jack Franklin 85c29e982d Extract isLitHtmlRenderCall into ESLint utils
Bug: 1276968
Change-Id: I9fd6341f71374922e78eb36380411f721c357bf3
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3352211
Auto-Submit: Jack Franklin <jacktfranklin@chromium.org>
Reviewed-by: Andres Olivares <andoli@chromium.org>
Commit-Queue: Andres Olivares <andoli@chromium.org>
2021-12-22 13:51:45 +00:00
Yang Guo eba1a96f67 Remove tooltips from network datagrid
R=bmeurer@chromium.org

Fixed: 1253867
Change-Id: Id514dd35f499ddcf7d48e89f457e5e693bdf8e87
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3352208
Commit-Queue: Yang Guo <yangguo@chromium.org>
Auto-Submit: Yang Guo <yangguo@chromium.org>
Reviewed-by: Benedikt Meurer <bmeurer@chromium.org>
Commit-Queue: Benedikt Meurer <bmeurer@chromium.org>
2021-12-22 11:04:56 +00:00
Paul Lewis d692cac31f Remove patchColorText usage in NetworkWaterfallColumn
R=jacktfranklin@chromium.org

Bug: 1278738
Change-Id: Idfd1e2e313190824ef829a59cff8e8aca8a5f133
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3341607
Commit-Queue: Paul Lewis <aerotwist@chromium.org>
Auto-Submit: Paul Lewis <aerotwist@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
2021-12-15 14:43:18 +00:00
Tim van der Lippe 87cef95444 Migrate to private class members in panels/network/components/
R=szuend@chromium.org

Bug: 1222126
Change-Id: I1024fde2110087b7f7db9c9af866e5ace8a8e4df
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3341600
Reviewed-by: Simon Zünd <szuend@chromium.org>
Commit-Queue: Tim Van der Lippe <tvanderlippe@chromium.org>
2021-12-15 14:24:07 +00:00
Paul Lewis c929b61630 Remove patchColorText in Network Panel
R=jacktfranklin@chromium.org

Bug: 1278738
Change-Id: Ibfe80d33138978a69e92c70972353637f1852afc
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3341593
Commit-Queue: Paul Lewis <aerotwist@chromium.org>
Auto-Submit: Paul Lewis <aerotwist@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
2021-12-15 12:19:41 +00:00
Simon Zünd fe7a0d52a9 [cleanup] Remove unnecessary Closure-style casts
R=tvanderlippe@chromium.org

Bug: None
Change-Id: Ie15c5caaf048023c6a1d8077f91f1a0e5864b7af
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3334539
Commit-Queue: Simon Zünd <szuend@chromium.org>
Auto-Submit: Simon Zünd <szuend@chromium.org>
Reviewed-by: Tim Van der Lippe <tvanderlippe@chromium.org>
Commit-Queue: Tim Van der Lippe <tvanderlippe@chromium.org>
2021-12-13 10:31:14 +00:00
Tim van der Lippe 8a5b59540e Fix styling of network waterfall
This particular popover was pulling in content of the other view, but
wasn't properly adding the accompanying styling. Since this is a not a
self-contained component, we need to duplicate the injection of styles
in the other shadowRoot as well.

R=jacktfranklin@chromium.org

Fixed: 1275501
Change-Id: I72a5eeb0902132e8c7402b20beb7e52423ab1985
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3310862
Auto-Submit: Tim Van der Lippe <tvanderlippe@chromium.org>
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
2021-12-02 11:16:35 +00:00
chait pinnamaneni e0f092e908 Added status text to user agent client hints form
This adds success text message when Update button is clicked in user agent client hints form in network conditions panel.

https://i.imgur.com/sGkv6CM.png

Bug:1273267
Change-Id: Id669d6503108648220c7dcbce51d68ebf573ca2d
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3299267
Commit-Queue: Chait Pinnamaneni <cpinnamaneni@microsoft.com>
Reviewed-by: Guangyue Xu <guangyue.xu@microsoft.com>
Reviewed-by: Alex Rudenko <alexrudenko@chromium.org>
Reviewed-by: Brandon Walderman <brwalder@microsoft.com>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
2021-11-30 00:01:46 +00:00
Danil Somsikov e2e1bdae2a Don't add payoad tab twice
Bug: 1273972
Change-Id: I9bf27d223398c4d7511178d3403f9dff4b79fb4f
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3304173
Auto-Submit: Danil Somsikov <dsv@chromium.org>
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
2021-11-29 11:27:20 +00:00
Danil Somsikov 1afa110fd3 Ensure payload tab is selected when selecting different request
Bug: 1267891
Change-Id: I06883acc2cee6eec11b107a4c30c79f3ea9204e8
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3302736
Auto-Submit: Danil Somsikov <dsv@chromium.org>
Commit-Queue: Wolfgang Beyer <wolfi@chromium.org>
Reviewed-by: Wolfgang Beyer <wolfi@chromium.org>
2021-11-26 11:04:31 +00:00
Jesper van den Ende 0113884bf6 Use mousedown event for activating network requests.
The click event only fires for elements that receive both a mousedown
and a mouseup event. Since DataGrid elements in the Network panel get
replaced every time a message is received on WebSockets, the click
event doesn't get fired if you click before a message and release after
the message. To fix this we'll listen for the mousedown event instead.
This has the added benefit that the request panel becomes visible
sooner, making it feel more responsive.

Fixed: 1222382
Change-Id: Ia44c47a90b4822530081caf63aec682e9f32186c
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3293092
Reviewed-by: Simon Zünd <szuend@chromium.org>
Commit-Queue: Simon Zünd <szuend@chromium.org>
2021-11-23 06:57:58 +00:00
Tim van der Lippe 379c288384 Allow meta-files to import relative entrypoints
We previously disabled this rule in a lot of places to workaround the
fact that the rule wasn't adhering to importing entrypoints in meta
files. Instead, let's update the rule to make it clear that this pattern
is expected and fine.

R=alexrudenko@chromium.org

Bug: 1271490
Change-Id: Idd139b42d9bb27f1f20e573b31bcd5efff8815af
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3289221
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
Commit-Queue: Alex Rudenko <alexrudenko@chromium.org>
Auto-Submit: Tim van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Alex Rudenko <alexrudenko@chromium.org>
2021-11-18 14:53:06 +00:00
Tim van der Lippe fb2fd3ecd6 Remove panels/network/module.json
R=jacktfranklin@chromium.org

Bug: 1127902
Change-Id: I92a8fe99172623f9739f6f175be6935d86401fa8
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3282033
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
2021-11-15 16:39:35 +00:00
Tim van der Lippe c1ab112d90 Port the sources panels to CM6
R=tvanderlippe@chromium.org

Bug: 1241848
Change-Id: Idfe1658c9c2948b5c79c2845b9fd9472746a62b9
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3247435
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
2021-11-12 16:47:28 +00:00
Tim van der Lippe 1b5567f78a Remove resources from perf_ui
To remove the module.json file in perf_ui, we need to migrate the
resources to the new `generate_css` template. However, perf_ui is a bit
special, in that it doesn't properly use the widget structure. As such,
it sometimes injects CSS in places where there is no clear shadowRoot
available. Therefore, it is not possible to migrate to CSSStyleSheet in
combination with adoptedStylesheets.

As a workaround (to unblock the module.json removal), we augment
`generate_css` to add legacy file generation. All remaining resources in
DevTools will migrate to these `.css.legacy.js` files. That's because
these resources either are special (perf_ui) or are used in the
`device_mode_emulation_frame` which can't use `CSSStyleSheet` itself.

The files export an object, rather than a plain string. That's because
we need to be able to distinguish what string is referencing a CSS file
path and which strings contain the actual CSS styles. By using an
object, we can remain using the `typeof` check for string in the legacy
CSS infrastructure and otherwise destructure the object.

After this, we can remove perf_ui from the module.json structure and
properly bundle+minify the CSS resources.

R=jacktfranklin@chromium.org

Bug: 1190991, 1127902
Change-Id: I7523333e8025ae5fe5ed74b99b4e45907ff9ad97
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3275787
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
Auto-Submit: Tim van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
2021-11-12 15:25:03 +00:00
Danil Somsikov a4b089cded Add Powershell copy commands on all platforms.
Bug: 1264132
Change-Id: Ie69d34af9a15a1324688bc1c66a42a545c317fda
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3269843
Reviewed-by: Wolfgang Beyer <wolfi@chromium.org>
Commit-Queue: Danil Somsikov <dsv@chromium.org>
2021-11-10 09:57:29 +00:00
Kateryna Prokopenko 16fe263cd5 Improve accessibility of Query String Parameters buttons in
Network > Payload

Make buttons keyboard accessible and add aria attributes

Bug: 1148291
Change-Id: I48fd4a93a411934543ca2ccd12dbbcb9cedd52a1
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3263411
Reviewed-by: Alex Rudenko <alexrudenko@chromium.org>
Reviewed-by: Danil Somsikov <dsv@chromium.org>
Commit-Queue: Kateryna Prokopenko <kprokopenko@chromium.org>
2021-11-08 10:20:39 +00:00
ergunsh ee4a613851 Add keyboard shortcut for Replay XHR
Bug: chromium:1050021
Change-Id: I5566ae7de3b1b8f3b3ad3184d50f7f4220c2adc1
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3251579
Reviewed-by: Danil Somsikov <dsv@chromium.org>
Reviewed-by: Benedikt Meurer <bmeurer@chromium.org>
Commit-Queue: Benedikt Meurer <bmeurer@chromium.org>
2021-11-08 07:43:18 +00:00
Tim van der Lippe 25a6adb9c1 Reland "Fix all issues found by StyleLint 14"
This reverts commit f746fe4a57.

Reason for revert: fix the missing script_args variable.

Original change's description:
> Revert "Fix all issues found by StyleLint 14"
>
> This reverts commit fb8852321b.
>
> Reason for revert: breaks the presubmit. Since the tree is closed,
> a fix forward is not landing soon. Therefore, let's pre-emptively revert.
>
> Original change's description:
> > Fix all issues found by StyleLint 14
> >
> > These are mostly auto-fixed by Stylelint 14 with a couple of manual
> > fixes (adding quotes around urls and fixing some shorthand properties).
> >
> > A follow-up CL will update us to Stylelint 14, at which point they will
> > be enforced.
> >
> > R=​szuend@chromium.org
> >
> > Bug: none
> > Change-Id: Ia813854accd1eb86eccea64a5fbf1f8534563964
> > Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3259540
> > Auto-Submit: Tim van der Lippe <tvanderlippe@chromium.org>
> > Commit-Queue: Simon Zünd <szuend@chromium.org>
> > Reviewed-by: Simon Zünd <szuend@chromium.org>
>
> Bug: none
> Change-Id: I155ef7e0633cba15b47439a37a71158b6dcb8f91
> No-Presubmit: true
> No-Tree-Checks: true
> No-Try: true
> Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3259702
> Auto-Submit: Tim van der Lippe <tvanderlippe@chromium.org>
> Commit-Queue: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
> Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>

Bug: none
Change-Id: I81b402e4a30981cb1a0360053b3553cd1934cbe6
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3259703
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Simon Zünd <szuend@chromium.org>
2021-11-05 15:41:29 +00:00
Mathias Bynens ca9c49bf16 Support arbitrary characters in Network Search queries
Previously, we’d create a regular expression based on the user’s
search query without escaping any characters that might have special
meaning within regular expression patterns. This meant that Search
was effectively broken for queries containing `(`, `.`, and other
common characters.

Fixed: chromium:1267196
Change-Id: If4fb37e87f792ba0231263781d3df6aabb99b965
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3263403
Reviewed-by: Yang Guo <yangguo@chromium.org>
Commit-Queue: Mathias Bynens <mathias@chromium.org>
2021-11-05 12:21:20 +00:00
Tim van der Lippe f746fe4a57 Revert "Fix all issues found by StyleLint 14"
This reverts commit fb8852321b.

Reason for revert: breaks the presubmit. Since the tree is closed,
a fix forward is not landing soon. Therefore, let's pre-emptively revert.

Original change's description:
> Fix all issues found by StyleLint 14
>
> These are mostly auto-fixed by Stylelint 14 with a couple of manual
> fixes (adding quotes around urls and fixing some shorthand properties).
>
> A follow-up CL will update us to Stylelint 14, at which point they will
> be enforced.
>
> R=​szuend@chromium.org
>
> Bug: none
> Change-Id: Ia813854accd1eb86eccea64a5fbf1f8534563964
> Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3259540
> Auto-Submit: Tim van der Lippe <tvanderlippe@chromium.org>
> Commit-Queue: Simon Zünd <szuend@chromium.org>
> Reviewed-by: Simon Zünd <szuend@chromium.org>

Bug: none
Change-Id: I155ef7e0633cba15b47439a37a71158b6dcb8f91
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3259702
Auto-Submit: Tim van der Lippe <tvanderlippe@chromium.org>
Commit-Queue: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
2021-11-04 16:13:19 +00:00
Tim van der Lippe fb8852321b Fix all issues found by StyleLint 14
These are mostly auto-fixed by Stylelint 14 with a couple of manual
fixes (adding quotes around urls and fixing some shorthand properties).

A follow-up CL will update us to Stylelint 14, at which point they will
be enforced.

R=szuend@chromium.org

Bug: none
Change-Id: Ia813854accd1eb86eccea64a5fbf1f8534563964
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3259540
Auto-Submit: Tim van der Lippe <tvanderlippe@chromium.org>
Commit-Queue: Simon Zünd <szuend@chromium.org>
Reviewed-by: Simon Zünd <szuend@chromium.org>
2021-11-04 15:20:38 +00:00
Tim van der Lippe ae9e00a5c3 Make both text_editor and source_frame autostart
These modules contain CSS files that are about to be (partially)
removed with the CodeMirror 6 upgrade. To avoid merge conflicts and
breakages, let's make them autostart for now. This allows us to
clean up and remove numerous other module.json files, which were
blocked on just these two. In a future Chrome release, we will
remove the legacy text_editor altogether, at which we can remove
all these files.

R=szuend@chromium.org

Bug: 1127902
Change-Id: Ib44927067931f40a0212f4e0209815d736025000
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3253018
Reviewed-by: Simon Zünd <szuend@chromium.org>
Commit-Queue: Simon Zünd <szuend@chromium.org>
Auto-Submit: Tim van der Lippe <tvanderlippe@chromium.org>
2021-11-02 07:23:42 +00:00
Tim van der Lippe d073fc405a Remove panels/mobile_throttling/module.json
R=szuend@chromium.org

Bug: 1127902
Change-Id: Iac1bb6c1277b719f18e1b0895392a4b523385f09
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3252966
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
Auto-Submit: Tim van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Simon Zünd <szuend@chromium.org>
2021-10-29 12:28:53 +00:00
Tim van der Lippe 4869306b1c Remove ui/legacy/components/cookie_table/module.json
R=szuend@chromium.org

Bug: 1127902, 1190991
Change-Id: I8e7fdbd0dac0a99eb88d7a3a78402cc9a4bda3dc
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3247441
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
Auto-Submit: Tim van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Simon Zünd <szuend@chromium.org>
2021-10-28 11:33:56 +00:00