Commit Graph
128 Commits
Author SHA1 Message Date
Simon Zünd 562d32ce33 Provide more context in some l10n descriptions and lock some terms
R=petermarshall@chromium.org

Bug: chromium:1163928
Change-Id: I1fd4e54c052cbbd1a3cf575c56c82397ee5ec778
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2698834
Auto-Submit: Simon Zünd <szuend@chromium.org>
Reviewed-by: Peter Marshall <petermarshall@chromium.org>
Commit-Queue: Peter Marshall <petermarshall@chromium.org>
2021-02-17 09:41:01 +00:00
Peter Marshall 266ab2ecb8 [l10n] Update another round of descriptions
Bug: 1163928
Change-Id: Ieb30026912c17f7f366c04be91a371b07e634ef2
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2697610
Commit-Queue: Peter Marshall <petermarshall@chromium.org>
Auto-Submit: Peter Marshall <petermarshall@chromium.org>
Reviewed-by: Simon Zünd <szuend@chromium.org>
2021-02-17 07:56:09 +00:00
Peter Marshall ec86188f2b [l10n] Update a bunch of UI string descriptions
Bug: 1163928
Change-Id: Ibbab9aa19141ce6051de8b3c757c6a78993f733a
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2696664
Auto-Submit: Peter Marshall <petermarshall@chromium.org>
Commit-Queue: Simon Zünd <szuend@chromium.org>
Reviewed-by: Simon Zünd <szuend@chromium.org>
2021-02-16 12:19:30 +00:00
Christy Chen cac3f1096e [Loc] Migrate network to localization V2
Migrate network panel
Tested with en-XL: https://imgur.com/a/7F7vWv4


Bug: 1136655
Change-Id: Idd0ab59e021a2be919ceca1def21537d6d25607d
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2662325
Commit-Queue: Christy Chen <chrche@microsoft.com>
Reviewed-by: Simon Zünd <szuend@chromium.org>
2021-02-03 10:44:54 +00:00
Tim van der Lippe bafa3bd3e7 Migrate escapeForRegExp to string-utilities
R=szuend@chromium.org

Bug: 1050549
Change-Id: I5cd76d53567108ac972bfc9bf002694c2219e00a
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2631117
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-01-20 13:20:00 +00:00
Tim van der Lippe 213266c175 Migrate trimMiddle to string-utilities
R=szuend@chromium.org

Bug: 1050549
Change-Id: I4fd1a5051ca31270e28e53038f68ea79d0d03c4f
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2631114
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-01-19 13:02:57 +00:00
Tim van der Lippe 05149e9772 Remove ls from legacy-defs
This adds all missing imports for `ls` to all files. After this change,
all usages of `ls` will now properly be resolved to a LocalizedString
rather than a normal string.

R=jacktfranklin@chromium.org

No-Presubmit: True
Change-Id: Icf6d8c3b8bea1f9e66f4b6b58e4ae4c7f99e6f9c
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2629554
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-01-15 12:53:50 +00:00
Brandon Goddard 6f4e54f003 Limit Datagrid Screen Reader Alerts to Focused Grids
This CL addresses an issue where datagrids could unexpectedly announce
content to screen readers if a grid node is selected when the grid
does not have focus - which can occur when a grid is first created.

This change limits datagrid alerts to when the grid has focus.

Repro steps in bug description.

Bug: 1164034
Change-Id: Ib6fd7012782f7073617ed20d5432333d83732ccb
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2618379
Reviewed-by: Mathias Bynens <mathias@chromium.org>
Commit-Queue: Brandon Goddard <brgoddar@microsoft.com>
2021-01-11 16:11:12 +00:00
Tim van der Lippe d7cfd14814 Fix no-implicit-coercion errors in front_end/
R=jacktfranklin@chromium.org

No-Presubmit: True
Bug: 1082789
Change-Id: Ic77884bf7e9b5dc74053915b3b10699368841b66
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2595268
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
2021-01-07 12:40:16 +00:00
Jack Franklin ec064415e7 Fix network category filter being reset if text filter is persisted
This fixes a bug where if the user filters the network panel for the
text "foo", and filters by resource type (e.g. to "XHR"), when they
close and re-open DevTools the search text "foo" is persisted and added
back, but as a side-effect the resource type filter is lost.

I discovered this is true for all the additional filters; the moment you
restore a text filter every other setting is lost. To fix this we avoid
calling the `setTextFilterValue` function, which resets everything else,
and instead set the value of the filter input directly, with no other
side-effects.

Fixed: 1155564
Change-Id: I9fa1db634e9e5ec71e84b220c66503a4ab3e4be5
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2577574
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
Reviewed-by: Sigurd Schneider <sigurds@chromium.org>
2020-12-08 13:48:02 +00:00
Tim van der Lippe 70842f313f Replace title property setter with Tooltip install invocation
ui/Tooltip.js overrides the HTMLElement prototype to override the
title property. Rather than using this property, we shoul be
calling Tooltip.install directly. This makes sure that new
components are not relying on the behavior of the legacy
prototype patching.

These usages have been manually audited using the following regexes:

Search: ([\S]+)\.title = ([^;]+);
Replace: UI.Tooltip.Tooltip.install($1, $2);

Note that there are classes in DevTools that also have a title
property. Most notably `TreeElement`. We should not be replacing
these, as they do not inherit from HTMLElement. Luckily, we are
running TypeScript to make sure we don't call `Tooltip.install`
with a non-HTMLElement.

A follow-up CL will clean up the getters.

R=jacktfranklin@chromium.org

Bug: 1150762
No-presubmit: True
Change-Id: I5928e75c70293531849e0576f4fb2a2a8b3e02d2
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2555060
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>
2020-11-23 17:16:46 +00:00
Wolfgang Beyer 5c385b997c Add setting for recording network log
Adds a "Record network log" setting, so that a page reload does not
reset the user's choice of whether to record or not.

This is a refactor of reverted https://crrev.com/c/2503513 and
abandoned https://crrev.com/c/2514439.

Fixed: chromium:1122580

Change-Id: I927869b2a756523e3aadb2019d2fc20b5512efc4
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2523253
Commit-Queue: Wolfgang Beyer <wolfi@chromium.org>
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Simon Zünd <szuend@chromium.org>
2020-11-16 08:42:49 +00:00
Tim van der Lippe b4faf5adc4 Add copy stacktrace contextmenu option for network initiator
If the initiator has a stracktrace, add the copy stacktrace
contextmenu option to automatically put the stacktrace on the
clipboard. Previously, users would have to select the text
in the tooltip, which could be problematic if the tooltip
disappears, because the mouse is outside the tooltip.

R=aerotwist@chromium.org

Fixed: 1139615
Change-Id: I9efebfc4909c0da5f8f0c2c46ebf7f191f3a6e75
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2523255
Auto-Submit: Tim van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Paul Lewis <aerotwist@chromium.org>
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
2020-11-06 15:44:32 +00:00
Jan Scheffler 747b8a14da [Network] Fix incorrectly unescaped ampersand on windows
Fixed: chromium:1138757
Change-Id: I0927adacd36dafb2f6dccdec3b8cd1ac60f0be9b
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2514441
Commit-Queue: Jan Scheffler <janscheffler@chromium.org>
Reviewed-by: Mathias Bynens <mathias@chromium.org>
2020-11-04 12:24:38 +00:00
Jack Franklin 71519f8efb Introduce enableLegacyPatching flag for CSS patching
As part of the dark mode migration we are adding
`enableLegacyPatching:true` to all call sites of `appendStyle` (and
related methods). If a user passes `false` for that flag, no CSS colour
patching will occur.

This CL is therefore a no-op from a user's perspective as we pass `true`
on every call to maintain existing behaviour, but once we start
migrating we will turn the option to `false`. Long term, once all code
is migrated and the old patching is removed, we will remove this flag
entirely once again.

Bug: 1122511
Change-Id: I76b818e83b7d5ee0175e1548759373f53481e0ab
No-Presubmit: True
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2516345
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
2020-11-03 14:11:46 +00:00
chait pinnamaneni 6bc1c12883 Service worker button to show network panel in drawer.
Original PR: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2403841

Original PR has been reverted because of failing e2e test, fixed faulty e2e test

Bug: 1137050
Change-Id: I7612eedd8a92b5671d365865139ae61f333c9a00
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2506129
Commit-Queue: Chait Pinnamaneni <cpinnamaneni@microsoft.com>
Reviewed-by: Simon Zünd <szuend@chromium.org>
Reviewed-by: Peter Marshall <petermarshall@chromium.org>
2020-10-30 18:02:09 +00:00
Sigurd Schneider 20088de02e Report CORS errors as such in the network panel
The network panel previously reported requests that failed due
to CORS as simply failed. This CL reports them as CORS error,
together with showing the error code on hover. This alone already
vastly improves the experience, and follow-up CLs will add detailed
descriptions of the problems.

Screenshot: https://imgur.com/a/LqXNmnP
Bug: chromium:1141824
Change-Id: I8a56d2c6c804e1d7d9e21c1866b5404dc3e18217
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2505906
Commit-Queue: Sigurd Schneider <sigurds@chromium.org>
Reviewed-by: Wolfgang Beyer <wolfi@chromium.org>
2020-10-30 08:27:45 +00:00
Wolfgang Beyer d451ecdd03 Consistently use SI units: 1000-based calculations, kB instead of KB
This CL follows up on https://crrev.com/c/1983391, so that DevTools
consistently uses and displays SI-based units for file/memory sizes.

Design doc: https://goo.gle/devtools-si
Bug: chromium:1035309

Disable test CL: https://crrev.com/c/2487269
Re-enable test CL: https://crrev.com/c/2485068

Change-Id: I14c13619c5734a8dd7c664c527810b1ae42e2276
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2485085
Commit-Queue: Wolfgang Beyer <wolfi@chromium.org>
Reviewed-by: Mathias Bynens <mathias@chromium.org>
2020-10-29 11:13:10 +00:00
Simon Zünd 6801ec8c55 Revert "Service worker button to show network panel in drawer."
This reverts commit e1374b563d.

Reason for revert: e2e tests introduced in this CL fail consistently
on the Mac Bot. First fail: https://ci.chromium.org/p/devtools-frontend/builders/ci/Stand-alone%20Mac/1562

Original change's description:
> Service worker button to show network panel in drawer.
>
> Explainer for this feature is https://docs.google.com/document/d/14qJ1rZyMtnIa8hPJc1V8DJRxk4lVI3hlWYGvBDICog0/edit?ts=5f7c13ce
>
> Button to show network panel in drawer
> https://i.imgur.com/vnStScF.png
>
> Network panel in drawer
> https://i.imgur.com/3SmdLFK.png
>
> Closing the drawer will move it back to main tabs unless user moved it to bottom.
>
> Change-Id: I7af563869304da912bf10a85376835b9b8e0417a
> Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2403841
> Commit-Queue: Chait Pinnamaneni <cpinnamaneni@microsoft.com>
> Reviewed-by: Peter Marshall <petermarshall@chromium.org>
> Reviewed-by: Changhao Han <changhaohan@chromium.org>
> Reviewed-by: Songtao Xia <soxia@microsoft.com>

TBR=petermarshall@chromium.org,bmeurer@chromium.org,aerotwist@chromium.org,joselea@microsoft.com,changhaohan@chromium.org,soxia@microsoft.com,cpinnamaneni@microsoft.com

Change-Id: I76dfebe2d2baeb264e39e220c3e23cf4ef6922c6
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2505129
Reviewed-by: Simon Zünd <szuend@chromium.org>
Commit-Queue: Simon Zünd <szuend@chromium.org>
2020-10-28 07:34:30 +00:00
chait pinnamaneni e1374b563d Service worker button to show network panel in drawer.
Explainer for this feature is https://docs.google.com/document/d/14qJ1rZyMtnIa8hPJc1V8DJRxk4lVI3hlWYGvBDICog0/edit?ts=5f7c13ce

Button to show network panel in drawer
https://i.imgur.com/vnStScF.png

Network panel in drawer
https://i.imgur.com/3SmdLFK.png

Closing the drawer will move it back to main tabs unless user moved it to bottom.

Change-Id: I7af563869304da912bf10a85376835b9b8e0417a
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2403841
Commit-Queue: Chait Pinnamaneni <cpinnamaneni@microsoft.com>
Reviewed-by: Peter Marshall <petermarshall@chromium.org>
Reviewed-by: Changhao Han <changhaohan@chromium.org>
Reviewed-by: Songtao Xia <soxia@microsoft.com>
2020-10-27 17:19:47 +00:00
Jan Scheffler d2663acda4 [Network] Properly escape form data for copy as curl
Fixed: 1093791
Change-Id: I3cf1438d319d234a4bfe102eebd053f071d78db3
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2466187
Reviewed-by: Mathias Bynens <mathias@chromium.org>
Commit-Queue: Jan Scheffler <janscheffler@chromium.org>
2020-10-26 15:29:46 +00:00
Andres Olivares 21ab05b27a Make template type of data_grid/DataGrid.js more specific to prepare for migration to TS
Bug: chromium:1011811
Change-Id: I6395a1839cc22aebf410c5e6423f40d785dbd1c6
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2476853
Commit-Queue: Andres Olivares <andoli@chromium.org>
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
2020-10-21 14:25:55 +00:00
Simon Zünd cdd72c9222 [ts] Type-check network/NetworkDataGridNode.js with TypeScript
R=tvanderlippe@chromium.org

Bug: chromium:1011811
Change-Id: Ia3f04e4fd94e208a9cde8269479f40ea377c6389
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2453293
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
Commit-Queue: Simon Zünd <szuend@chromium.org>
2020-10-08 05:09:27 +00:00
Andres Olivares 03d9c75f88 [ts] Typecheck data-grid/SortableDataGrid.js with TypeScript
Bug: chromium:1011811
Change-Id: I35a0f5694cc8d701ae3f78155ec0647e3d87e9a2
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2440272
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
Commit-Queue: Andres Olivares <andoli@chromium.org>
2020-10-01 15:46:41 +00:00
Tim van der Lippe 224a862b2f Typecheck network/NetworkLogView.js with TypeScript
This file was using `Headers` as iterable. This class is iterable,
but TypeScript didn't like it. As it turns out, there are multiple
definitions of the `dom` and `webworker` APIs. To get the iterable
versions, we have to add them explicitly. Therefore, also update
our TypeScript configuration to add the iterable variants.

DISABLE_THIRD_PARTY_CHECK=TypeScript fix
R=szuend@chromium.org

Bug: 1011811
Change-Id: Iae32bbf25d55346081dc2e0ab4f4093b531f91a1
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2421705
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Simon Zünd <szuend@chromium.org>
2020-09-23 13:01:34 +00:00
Tim van der Lippe 3dc5fd659b Add isRequestFilteredOut function for layout tests
The code will be refactored to use a WeakSet. This CL is a preparation
CL for migrating the layout tests to use this function, rather than
the previously used Symbol.

R=szuend@chromium.org

Bug: 1011811
Change-Id: I1fb00522c4d5c79b55513671d4501adfce727291
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2422960
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>
2020-09-22 13:49:27 +00:00
Paul Lewis ca569a50bd Migrates theme patching to top-level ThemeSupport
This CL replaces all uses of self.UI.themeSupport with an instance
function from the top level theme_support directory. It also dupes in
some of the functionality from ui/utils to prevent a circular dependency
between ui/utils and theme_support.

Change-Id: Ib8efd06630b99ee23af04ecba0dbf3cc4b19c036
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2352711
Commit-Queue: Paul Lewis <aerotwist@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
2020-09-09 16:32:13 +00:00
Jack Franklin e3cb280c68 Persist the network filter text input.
This CL brings the network filter inline with the console filter, which persists
the text input from the user across DevTools refreshes.

Fixed: 796893
Change-Id: I9f17554acd98044243905a7c8b19cce1e9b01a67
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2391235
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
Reviewed-by: Peter Marshall <petermarshall@chromium.org>
2020-09-09 15:33:12 +00:00
Tim van der Lippe 9c9fb12c56 [globals] self.UI.shortcutRegistry
R=aerotwist@chromium.org

Bug: 1058320
Change-Id: I962f9a795b8e5ce12d00d35710ec92d3c3d424a7
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2391227
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>
2020-09-08 15:41:19 +00:00
Julian Geppert f8ce40c16f Add filter for full request url in network tab
This CL adds a new url: filter to the network tab that filters
on the full URL, including the protocol information (e.g. https://)
in the search query.

Note on default filtering: Originally this CL modified the default
filtering by using the full request url, instead of the current
implementation which relies on the request path and name. Since this
change might have confused power-users and a more thorough rework
of the filtering is planned, the decision was made to add an additional
url: filter instead.

Bug: 1104188
Change-Id: Ibddd26eca7fb56eb9d08277df72c0da3acbb53a1
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2318146
Commit-Queue: Sigurd Schneider <sigurds@chromium.org>
Reviewed-by: Sigurd Schneider <sigurds@chromium.org>
2020-09-08 08:29:19 +00:00
Sigurd Schneider 464838b4d4 Add filter in network panel for resource type
Screenshot: https://imgur.com/a/EOh4Wng
Bug: chromium:1121141
Change-Id: Ia8abb0b3280763d40c2b6e7ba1327f527b13c6d9
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2372387
Commit-Queue: Sigurd Schneider <sigurds@chromium.org>
Reviewed-by: Peter Marshall <petermarshall@chromium.org>
2020-08-25 08:00:07 +00:00
Peter Marshall de3fee7783 css: Remove our implementation of data-keyboard-focus
The web platform has :focus-visible now which does this for us.

https://developer.mozilla.org/en-US/docs/Web/CSS/:focus-visible

A previous CL changed all of our CSS selectors over to rely on
focus-visible instead.

For the use cases where we called markAsFocusedByKeyboard() manually
from UI components, these still work as intended because the
:focus-visible implementation tracks this for us so manually
focusing the element with .focus() will still result in :focus-visible.

The elementIsFocusedByKeyboard() calls were replaced by checking if
:focus-visible is on the element or not. This is not a very good way
to do this, but fixing it is outside the scope of this CL.

Change-Id: I429adf7b1e7d8a8f2520cc75d0e8a0e50cfada32
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2352239
Commit-Queue: Peter Marshall <petermarshall@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
Reviewed-by: Kalon Hinds <kahinds@microsoft.com>
Reviewed-by: Brandon Goddard <brgoddar@microsoft.com>
2020-08-24 14:18:41 +00:00
Peter Marshall 90bf660754 l10n: Localize XLink callers
Change-Id: I29ead3e5abdcaaa58eea1b69e4487a7351eadd89
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2336721
Auto-Submit: Peter Marshall <petermarshall@chromium.org>
Commit-Queue: Simon Zünd <szuend@chromium.org>
Reviewed-by: Simon Zünd <szuend@chromium.org>
2020-08-05 04:59:26 +00:00
Jan Scheffler 6c0cc69f17 Migrate front_end/network to devtools_entrypoint
R=aerotwist@chromium.org, jacktfranklin@chromium.org

Bug: 1101738
Change-Id: Id895c6e1a9083c22334ae1afad467c08e8dfa6a1
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2332228
Commit-Queue: Jan Scheffler <janscheffler@chromium.org>
Reviewed-by: Paul Lewis <aerotwist@chromium.org>
Auto-Submit: Jan Scheffler <janscheffler@chromium.org>
2020-07-31 14:44:50 +00:00
Jack Lynch 13d4daad74 Fix Network Datagrid row focus bug
This CL fixes a bug where focus styles are only applied for the
waterfall column in the Network datagrid: https://drive.google.com/file/d/1aPTdJ8CqJT2JIfuMqcF4bzcolovqN67h/view

Bug: 1110854
Change-Id: I867b5496910b729a3923227b775eb09414f24c58
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2329881
Reviewed-by: Jose Leal <joselea@microsoft.com>
Reviewed-by: Brandon Goddard <brgoddar@microsoft.com>
Commit-Queue: Jack Lynch <jalyn@microsoft.com>
2020-07-30 21:40:15 +00:00
Jack Lynch f376673860 Only show Network datagrid focus when keyboard-focused
This CL restricts when the grid-focused class is applied to the network
panel datagrid container, solving a bug where the blue border would
appear any time a user clicked the "Learn More" link within the empty
container, switched to a different panel, and clicked back to the
Network panel.

Expected/actual from bug: https://drive.google.com/drive/folders/1ZNeI2q_Sb4ptxROCgHnxmLKKRWj2WDn-

Bug: 1098701
Change-Id: I853c1d5bcba855540833ac6c74ba859d4a171d86
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2315485
Reviewed-by: Brandon Goddard <brgoddar@microsoft.com>
Commit-Queue: Jack Lynch <jalyn@microsoft.com>
2020-07-23 20:01:28 +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
Wolfgang Beyer d81fad6de5 Reland "Port IssuesModel to TypeScript"
This is a reland of 892d5ae337.

The only additional change is fixing a race condition in the NetworkLog
constructor which caused browser test
"WorkerDevToolsSanityTest.InspectSharedWorkerNetworkPanel" to fail.

original change: https://crrev.com/c/2213439
revert: https://crrev.com/c/2217412

Bug: chromium:1011811, chromium:1079233, chromium:1058320
Change-Id: I3201de972ba238d1f9e01b785d345beb8f0e32a1
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2217416
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Simon Zünd <szuend@chromium.org>
Commit-Queue: Wolfgang Beyer <wolfi@chromium.org>
2020-05-27 13:23:30 +00:00
Simon Zünd ea2ee251f6 Revert "Port IssuesModel to TypeScript"
This reverts commit 892d5ae337.

Reason for revert: Breaks "WorkerDevToolsSanityTest.InspectSharedWorkerNetworkPanel" browser_tests.

To reproduce run: out/Default/browser_tests --gtest_filter=WorkerDevToolsSanityTest.InspectSharedWorkerNetworkPanel

Original change's description:
> Port IssuesModel to TypeScript
> 
> Also adds instance() method to NetworkLog
> 
> Bug: chromium:1011811, chromium:1079233, chromium:1058320
> Change-Id: I389e23f1efb478b61338c236a276696b43a6a7a3
> Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2213439
> Commit-Queue: Wolfgang Beyer <wolfi@chromium.org>
> Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>

TBR=tvanderlippe@chromium.org,wolfi@chromium.org

Change-Id: I728aabcb6f9a280db37ae127ffc9de48469ea2af
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: chromium:1011811, chromium:1079233, chromium:1058320
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2217412
Commit-Queue: Simon Zünd <szuend@chromium.org>
Reviewed-by: Simon Zünd <szuend@chromium.org>
2020-05-27 06:30:21 +00:00
Wolfgang Beyer 892d5ae337 Port IssuesModel to TypeScript
Also adds instance() method to NetworkLog

Bug: chromium:1011811, chromium:1079233, chromium:1058320
Change-Id: I389e23f1efb478b61338c236a276696b43a6a7a3
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2213439
Commit-Queue: Wolfgang Beyer <wolfi@chromium.org>
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
2020-05-26 14:44:14 +00:00
Sigurd Schneider c8c1e35513 [issues] Gate surfacing of issues panel behind experiment
Bug: chromium:1057979
Change-Id: Ibcdbdd14158a4a3248d8ec017baf8f6b50465819
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2190338
Reviewed-by: Simon Zünd <szuend@chromium.org>
Commit-Queue: Sigurd Schneider <sigurds@chromium.org>
2020-05-11 08:58:37 +00:00
Sigurd Schneider 0e88b91e70 Use structured request cookies instead of parsing headers
This CL uses structured cookie information in many places in
DevTools instead of re-parsing headers. This fixes a couple of
inconsistencies and glitches.

The remaining usage of the cookies parsed from the header
is in the HARLog class, where a layout test prevents us
from fixing it right now, see crbug.com/1079234.

DISABLE_THIRD_PARTY_CHECK=dependency, remove before committing

Bug: chromium:1027752, chromium:1051163, chromium:1057451
Change-Id: I967cd6cd73e234a52ae8ad0b7e5ecdcfc3608fc9
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2187773
Commit-Queue: Sigurd Schneider <sigurds@chromium.org>
Reviewed-by: Simon Zünd <szuend@chromium.org>
2020-05-08 08:50:21 +00:00
Tim van der Lippe cd0bb373d1 [global] Remaps SDK.multiTargetNetworkManager
R=aerotwist@chromium.org

Bug: 1058320
Change-Id: Icb43c143ef0ca14bd3c9280cc5096862c892d030
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2173373
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Paul Lewis <aerotwist@chromium.org>
2020-05-04 10:24:11 +00:00
Sigurd Schneider ba81851dad [issues] Add IssueManager abstraction
This CL adds a central singleton that collects all issues from all
known targers. This singleton is then used by the issues view to
display issues.

This change enables correct handling of issues that arise from OOPIF
and worker sources.

Fixed: chromium:1073797
Change-Id: I75a8bb46d240f63df013c0b06506cad7fb2e5a8f
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2168885
Commit-Queue: Sigurd Schneider <sigurds@chromium.org>
Reviewed-by: Simon Zünd <szuend@chromium.org>
2020-04-29 11:14:55 +00:00
Jack Franklin 9c225ca1d9 Extract Number.bytesToString into number-utilities
Bug: 1050549
Change-Id: Id1d261fbe77d81bcb95886cf78d3e07de24c547a
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2168883
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
2020-04-29 10:28:35 +00:00
Jack Lynch b8fb3c793d Centralize shortcut titles
There are a few parts of the UI that assume that shortcuts will only be
one key (e.g. the shortcut tooltips displayed for some buttons), so this
CL updates them to access a new KeyboardShortcut.title() method to get
the name of a shortcut rather than just getting the name of a single
keypress from its Descriptor. The current/legacy Shortcuts settings tab
was one of these places, but I left it alone because it will be
obsoleted by the new custom shortcuts tab in the future and in the
meantime the only users who will have any chords enabled in the DevTools
will be those who have opted in to the custom shortcuts experiment and
enabled VS Code shortcuts.

Custom shortcuts doc: https://docs.google.com/document/d/1oOPSWPxCHvMoBZ0Fw9jwFZt6gP4lrsrsl8DEAp-Hy7o/edit#

Bug: 174309
Change-Id: Ic56fb14129a417ed441fc46401af226db52c8905
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2158086
Commit-Queue: Jack Lynch <jalyn@microsoft.com>
Reviewed-by: Robert Paveza <Rob.Paveza@microsoft.com>
2020-04-21 20:35:58 +00:00
Brandon Goddard 5e4244db1c Network: Expand Parent Frame Nodes on Reveal
This CL fixes a bug where clicking on a search result in the network
tool would not properly reveal nodes if they were in a collapsed
group frame node.

Viewport datagrids do not actually attempt to reveal nodes that are not
attached on the root node flatlist - such as when a
parent node is collapsed. This fix allows newtwork nodes being revealed
to check if their parent is a frame node, and expand if so, allowing the
datagrid to properly reveal and select the node.

This bug originated when separating selection from opening the sidepane,
as attempting to open the sidepane on a frame node child would cause the
parent frame to expand. Which effectively "hid" this behavior until
selection no longer opened the sidepane.

See the bug description for good repro steps/site.

Bug: 1068747
Change-Id: Ie491a8f82286376fa50dd9922b16c44d6737c0a1
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2141147
Commit-Queue: Brandon Goddard <brgoddar@microsoft.com>
Reviewed-by: Shane Clifford <shanejc@microsoft.com>
Reviewed-by: Jack Lynch <jalyn@microsoft.com>
2020-04-09 20:52:21 +00:00
Brandon Goddard 449349092a Network: Fix blue focus ring on Network Log Area when Learn More Clicked
This CL fixes an issue that causes the network Log area to receive
a focus indicator when the "Learn More" link is focused/clicked.

This issue was caused because the logic to trigger the focus ring
on the network log area assumed the only focusable content within the
container was the DataGrid. It previously showed the ring whenever
focus was within the container and the datagrid did not have a request
selected.

Now it only shows if the datagrid receives focus and does not have
a node selected.

(Note that this focus logic was included because the
waterfall column is not part of the Datagrid)

Before: https://imgur.com/2cGS207
After: https://imgur.com/LzEDWBW

Bug: 1056138
Change-Id: I5c1f5fd03b5ed674f27c5b591fc76cfa4d46d165
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2120649
Reviewed-by: Jose Leal <joselea@microsoft.com>
Reviewed-by: Mathias Bynens <mathias@chromium.org>
Commit-Queue: Brandon Goddard <brgoddar@microsoft.com>
2020-03-25 17:29:48 +00:00
Simon Zünd c97591098b [network] Add filter for the path attribute of a cookie
This filter is used by the Issues panel when we want to filter for
all the network requests that set a specific cookie.

R=sigurds@chromium.org

Change-Id: I4139ad029379dfefd97e6fdcd096fbcc23e55eaf
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2119678
Reviewed-by: Sigurd Schneider <sigurds@chromium.org>
Commit-Queue: Simon Zünd <szuend@chromium.org>
2020-03-25 13:28:03 +00:00
Sigurd Schneider 874023b2a0 [issues] Introduce RelatedIssue for associating issues with objects
This introduces a mechanism to associate issues with other objects in
DevTools such as NetworkRequests. Whether an issue is associated may
be used for, e.g., filtering or providing links to the issue.

Bug: chromium:1057979
Change-Id: I208ac146b1f576a19d377f29adf266cacc1ef091
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2116439
Commit-Queue: Sigurd Schneider <sigurds@chromium.org>
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Simon Zünd <szuend@chromium.org>
2020-03-24 12:53:52 +00:00