Commit Graph
2928 Commits
Author SHA1 Message Date
Paul Lewis 2ced406be1 [e2e] Skips flaky network datagrid tests
Bug: 1066813
Change-Id: Idb79c659003377c3501d3cb06e55055451685245
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2130791
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
Commit-Queue: Paul Lewis <aerotwist@chromium.org>
2020-04-01 10:57:39 +00:00
Ted Meyer 7e5ebf014b Adds End2End test for the Media tab.
I had to add support for running the tests with chromium
--enable-features flags. This isn't on by default though, I'll leave
that up to you to turn on. The tests just exit early if the flag isn't
present.

Change-Id: I132ca71796d8f069a6fba0342f10f2f2b18c7b62
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2125249
Commit-Queue: Ted Meyer <tmathmeyer@chromium.org>
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
2020-03-31 16:29:03 +00:00
Tim van der Lippe 68cc95ec12 Remove support for front_end fallback in unittests
The fallback confuses language servers which breaks code editor integration.
Moreover, it is incompatible with `ts_library`, as `ts_library` has no
concept of path aliases.

R=jacktfranklin@chromium.org

Change-Id: If7e00cce62397f47a04b763a3105c04415dd77b0
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2128137
Auto-Submit: Tim van der Lippe <tvanderlippe@chromium.org>
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
2020-03-31 13:22:23 +00:00
Kim-Anh Tran 2dbeb5da18 Update CDP and add string to reflect stack scope in scope view
DISABLE_THIRD_PARTY_CHECK=Change to reflect CDP update

Bug: chromium:1043034
Bug: v8:10347
Change-Id: I777072a1263f93b228263d065c2e0e95707774dd
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2128128
Reviewed-by: Benedikt Meurer <bmeurer@chromium.org>
Commit-Queue: Kim-Anh Tran <kimanh@chromium.org>
2020-03-31 12:26:33 +00:00
Simon Zünd d7f02588fc [formatter] Improve formatting for code containing await expressions
This CL adds basic formatting support for 'await' expressions. While
the result is not perfect, we no longer print the argument to the
AwaitExpression on a single line.

R=yangguo@chromium.org

Bug: chromium:1062617
Change-Id: Ic0e93b3ec6daec8fde53c8395c43ebc42bb19843
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2127006
Reviewed-by: Mathias Bynens <mathias@chromium.org>
Commit-Queue: Simon Zünd <szuend@chromium.org>
2020-03-31 07:43:14 +00:00
Michael Liao 17111b3e43 [Elements - Styles Pane]: Fixing SR behavior for element state pane
Element State Pane: https://imgur.com/u6O3im1

Issue:
- Forced element state checkboxes use a table element for layout purposes
- SR is announcing the checkbox container as a table which can cause confusion to SR users

Changes:
- Set the role for the table element as "presentation"

Usage of "role=presentation":
The presentation role is used to remove semantic meaning from an element and any of its related child elements. For example, a table used for layout purposes could have the presentation role applied to the table element to remove any semantic meaning from the table element and any of its table related children elements, such as table headers and table data elements. Non-table related elements should retain their semantic meaning, however.
https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Techniques/Using_the_presentation_role

Bug: 1065913
Change-Id: I24d7b2b8fccc7983a574ddd8d385e8f15e79b90d
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2127671
Reviewed-by: Robert Paveza <Rob.Paveza@microsoft.com>
Reviewed-by: Songtao Xia <soxia@microsoft.com>
Commit-Queue: Michael Liao <michael.liao@microsoft.com>
2020-03-30 19:09:52 +00:00
Tim van der Lippe 3fffd0d459 Remove unused global references from ui-legacy.js
This caught some leftover usages in ui itself, as well as the devices
pane which wasn't ported to ESM yet.

R=aerotwist@chromium.org

Change-Id: I48f01c3b982b68111fedd3cf4a26b91ed21204ff
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2124490
Reviewed-by: Paul Lewis <aerotwist@chromium.org>
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
2020-03-30 12:00:31 +00:00
Tim van der Lippe 990f2d1fe4 Use built-in Map instead of object map
Use Map instead of an object map, as a Map is intended for this
purpose. We should probably clean up other usages of object maps
as well.

R=yangguo@chromium.org

Change-Id: Ic9342e42f974617de4b8c40d8253a2b3a562e8d1
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2122139
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Yang Guo <yangguo@chromium.org>
2020-03-30 11:58:41 +00:00
Tim van der Lippe 0ccd8de267 Fix logging of page errors in e2e-test
This will now properly show up the errors if they are thrown in
an e2e-test:

Page Error in Frontend
Error: Error: Error from sdk-legacy.js
    at http://localhost:8090/front_end/sdk/sdk-legacy.js:249:7
Page Error in Frontend
Error: Error: Error from sdk-legacy.js
    at http://localhost:8090/front_end/sdk/sdk-legacy.js:249:7
Worker (17606): /Users/tvanderlippe/Projects/devtools/devtools-frontend/test/e2e/elements/sidebar-event-listeners-remove.js

R=aerotwist@chromium.org

Change-Id: Ia171bdffc4fb28591b40277c33861ce392516d09
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2124489
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
Auto-Submit: Tim van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Paul Lewis <aerotwist@chromium.org>
2020-03-30 11:33:52 +00:00
Jack Franklin e5a40bf349 Add basic unit tests to CookieParser
Trying to at least get some tests to aid in some future refactorings.

Change-Id: I7b4d995120b281917a1565e791717dfe7d71d1e2
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2124488
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Jan Scheffler <janscheffler@chromium.org>
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
2020-03-30 08:48:56 +00:00
Paul Lewis ca9a03f92f [e2e] Adds various helpers; tidies up env vars
Change-Id: I0babf1394d62f37628c8812f9b593b40d03a30da
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2124491
Commit-Queue: Paul Lewis <aerotwist@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
2020-03-27 17:39:36 +00:00
Jack Franklin a35ca2b5e9 E2E test for element breadcrumbs
Bug: 1032561
Change-Id: I20fc343ab5edcae1b10bc837edfed70ab876bdda
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2123482
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
Reviewed-by: Paul Lewis <aerotwist@chromium.org>
2020-03-27 15:11:15 +00:00
Tim van der Lippe 42fa3ce18f Remove unused global references from sdk-legacy.js
R=aerotwist@chromium.org

Bug: 1064958
Change-Id: Ia4b1a337ca753fb76ed6c780614dfe45b4c32c83
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2123485
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
Auto-Submit: Tim van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Paul Lewis <aerotwist@chromium.org>
2020-03-27 14:57:22 +00:00
Jack Franklin 60f529d224 Expand event listener e2e tests
This CL adds a test for listing properties of a custom event.

Bug: 1044632
Change-Id: Ibf08173ba878d68b3877399cd0e21794a9581ff2
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2122142
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
Reviewed-by: Paul Lewis <aerotwist@chromium.org>
2020-03-27 14:10:31 +00:00
Simon Zünd a27ec02e9e Move 'issues' module from 'shell' to 'devtools_app' and 'worker_app'
The issues module depends on the network module. As we do not want to
add the network module to shell, we lift the issues module "upwards"
into the two application configurations that 1) extend from shell and
2) have network available.

R=sigurds@chromium.org, tvanderlippe@chromium.org

Change-Id: Ic975edf871d1e9cd60a65aa0dc800564aa1b7931
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2123478
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Sigurd Schneider <sigurds@chromium.org>
Commit-Queue: Simon Zünd <szuend@chromium.org>
2020-03-27 13:21:41 +00:00
Simon Zünd 8a8c01075b [issues] Clicking on affected requests will open the details view
Instead of just highlighting the affected request in the network panel,
clicking the link now opens the detailed view for a request in the
network panel.

This CL adds a new utility method on the {NetworkPanel} that ties
together existing functionality. Currently, clicking an affected
request opens the "Headers" tab of the request. This is done because
the "Affected Requests" views is re-used for all issues where requests
are attached, not just cookie issues. In the future, we might be able
to pass along some data, so we could choose the opened tab depending
whether its a cookie or a COEP issue.

R=sigurds@chromium.org

Change-Id: I1118b2e2c428c6135f895816d1f7fdaf4d4ce79b
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2123481
Reviewed-by: Sigurd Schneider <sigurds@chromium.org>
Commit-Queue: Simon Zünd <szuend@chromium.org>
2020-03-27 12:51:51 +00:00
Tim van der Lippe 08bbaec4c3 Remove unused global exports from common-legacy.js
R=aerotwist@chromium.org

Bug: 1064958
Change-Id: I33028a71ca0c47562985774c95f34e8292be2604
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2122143
Reviewed-by: Paul Lewis <aerotwist@chromium.org>
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
2020-03-27 12:37:21 +00:00
Changhao Han d1b1b5fac5 add check to ensure style pane update
Deleting the last property in a styles section incorrectly skips style pane update.
This check ensures style pane update when the property's index is out-of-bound.

Bug: chromium:1060267
Change-Id: Ic4073b03c482285fd75b0dc9f1e1800534fce112
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2123472
Commit-Queue: Changhao Han <changhaohan@chromium.org>
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
2020-03-27 12:22:16 +00:00
Tim van der Lippe 846c6a1466 Remove unused global references in workspace-legacy.js
These are not used in our layout tests or module.json files

R=aerotwist@chromium.org

Bug: 1064958
Change-Id: Ia80d231758e202de92daa2bf53ae9c0e5476f545
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2122141
Reviewed-by: Paul Lewis <aerotwist@chromium.org>
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
2020-03-27 12:21:11 +00:00
Paul Lewis 417c5c06b2 [e2e] Adds support for logs and errors
This CL adds support for piping through stderr from the workers, and
adds an extra helper for logging messages from the worker to the master
process.

Change-Id: I39c31e8150456df12635f951fc6015a0bbe59960
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2123479
Commit-Queue: Paul Lewis <aerotwist@chromium.org>
Auto-Submit: Paul Lewis <aerotwist@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
2020-03-27 12:19:31 +00:00
Paul Lewis 7234471130 [e2e] Adds support for setting a timeout
This CL allows the setting of a TIMEOUT env variable to control test
timeout values.

Includes a drive-by fix on only outputting actual and expected values
when they are set.

Bug: 1062614
Change-Id: Idf444778a8a7292052a489a758b57bd2cfac81f9
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2123470
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
Commit-Queue: Paul Lewis <aerotwist@chromium.org>
2020-03-27 12:18:01 +00:00
Tim van der Lippe 73758da483 Add test that verifies Ninja does not do any work when no changes are made
If no source files are changed, then Ninja should not do any work.

R=jacktfranklin@chromium.org
CC=rob.paveza@microsoft.com

Bug: 1064287
Change-Id: Ie1da13683c1b9455a5f121ebe47bb47dcb539438
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2122350
Auto-Submit: Tim van der Lippe <tvanderlippe@chromium.org>
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
2020-03-27 12:16:21 +00:00
Peter Marshall 7fa53f2a96 [ui] Fix color picker switcher style for dark-mode
There was a custom dark mode style applied which got inverted by the
dark mode theme which generates inverted colors for the light mode
CSS.

Just removing the custom hover left the inverted-hover color a bit too
dark to see on the dark background.
Fix this by setting the light mode hover grey to one shade darker,
meaning the inverted dark hover is now lighter.

Dark before: https://imgur.com/BmquXSB
Dark after: https://imgur.com/ZaY0lsI

Light before: https://imgur.com/rYgxSsO
Light after: https://imgur.com/uExaLnt

Fixed: chromium:1064959

Change-Id: I44efe8995cb4132725b08e234ec2bb00fc1d4054
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2123480
Commit-Queue: Peter Marshall <petermarshall@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
2020-03-27 12:09:51 +00:00
Paul Lewis ab0c65c0d3 [e2e] Migrate selection-after-delete layout test
Bug: 1032561
Change-Id: I088d98ee73084f36944517bcc322d116e77d30bf
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2123473
Commit-Queue: Paul Lewis <aerotwist@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
2020-03-27 11:12:20 +00:00
Simon Zünd 8b334ffe1d Prepare IssuesModel for 1:n mapping between backend and frontend issues
Each received backend issue can result in multiple issues in the
frontend. This CL implements a simple mechanism where we can provide
(optional) functions per issue code that know how to handle a backend
issue.

R=sigurds@chromium.org

Change-Id: I37ca1f50a745fc8cfb22444d79dfa3fed469aa25
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2123468
Reviewed-by: Sigurd Schneider <sigurds@chromium.org>
Commit-Queue: Simon Zünd <szuend@chromium.org>
2020-03-27 08:35:24 +00:00
Jack Lynch 4ff1b1de0e Hide experimental actions
Some actions are being loaded by the DevTools even though they depend on
code that's hidden behind an experiment. This can cause unhandled
exceptions if a user tries to execute one of them, and will pollute the
future custom keyboard shortcut list with unusable actions. To avoid
that, this CL adds experiment attributes to those actions.

Bug: 174309
Change-Id: I3da5661af95798fdaaafc08fcc6f4d393690a93f
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2099437
Reviewed-by: Kalon Hinds <kahinds@microsoft.com>
Reviewed-by: Jose Leal <joselea@microsoft.com>
Commit-Queue: Jack Lynch <jalyn@microsoft.com>
2020-03-27 01:27:49 +00:00
Jack Lynch 575e9fb596 Add experimental shortcuts settings tab
This CL adds a new "Custom Keyboard Shortcuts" settings tab hidden
behind an experiment. Currently it just displays existing shortcuts, but
future CLs will add the ability for users to choose from preset sets of
shortcuts from other editors (e.g. VS Code) and set custom shortcuts for
individual actions.

Custom keyboard shortcuts design doc: https://docs.google.com/document/d/1oOPSWPxCHvMoBZ0Fw9jwFZt6gP4lrsrsl8DEAp-Hy7o/edit#heading=h.2xpjzz3fl1ju

Screenshot: https://gyazo.com/c5c915f351932ed8a1233770b84eb0ef

Bug: 174309
Change-Id: I1301cdf9337f0282b3a28d33dd5a4129954763b1
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2090680
Reviewed-by: Robert Paveza <Rob.Paveza@microsoft.com>
Reviewed-by: Kalon Hinds <kahinds@microsoft.com>
Commit-Queue: Jack Lynch <jalyn@microsoft.com>
2020-03-26 23:05:18 +00:00
Mike Jackson 60a0e9defc Prevent text truncation in default resolution
'Restore defaults and reload Dev-Tools' button of 'Dev-Tools' window
is seen chopped on increasing 'Minimum font size' to the 'maximum'.

The DevTools window can be resized to make it visible, but in the default
state, its truncated. This change restores the button text to
what it was previously.

Bug: 1064169
Change-Id: I051716bb64d1c9250196ae003697f98c184ea0b3
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2117364
Reviewed-by: Robert Paveza <Rob.Paveza@microsoft.com>
Commit-Queue: Mike Jackson <mjackson@microsoft.com>
2020-03-26 21:32:46 +00:00
Brian Cui 4fef3cd08b Settings Discoverability and Telemetry
This CL adjusts entrypoints for Settings.

1) Adds a Settings Gear icon to the top-level toolbar
2) Moves Settings ... menu entry to More tools submenu

https://i.imgur.com/9WS6EGy.png

This CL also includes telemetry for Settings,
so we can better evaluate how users are finding Settings,
and which Settings tabs are most popular.

1) Record a User Action for opening Settings
   - Reveal Settings via Gear icon
   - Reveal Settings via Top Menu -> More tools -> Settings
                  OR via Top Menu -> Shortcuts
   - Reveal Settings via Command menu

Remark: The keyboard shortcut F1 / Shift+? to reveal Settings
does not record an action here; keyboard shortcut telemetry for the
settings.show action is already taken care of.

2) Report Panel Open action for each Settings tab
   - On reveal: should report exactly the panel opened once
   - On switch tabs: should report exactly the panel switched to once

The corresponding Chrome CL to add the new enums is here.
https://chromium-review.googlesource.com/c/chromium/src/+/2055359

In order to have the Settings screen record Panel Open actions
reliably, a new TabInvoked event was added to TabbedPane which is
triggered by all tab selections, both programmatic and user invoked.

The existing TabSelected event only triggers on tab changes.
Using TabSelected prevent the Settings screen from reporting panel open
events when closed and re-opened to the same tab.

One criteria for determining whether to report a panel open is that
the tab is invoked by a user (userGesture) and not programmatically.
For user invokable items in context menu and the Command menu,
this userGesture argument is now set to `true` by default,
as both must have been invoked by a user.

Bug: 1050855
Change-Id: Id2e6e5f995bf2e6d419a3144eeec3e6af2bf208b
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2049183
Reviewed-by: Robert Paveza <Rob.Paveza@microsoft.com>
Reviewed-by: Jack Lynch <jalyn@microsoft.com>
Commit-Queue: Brian Cui <brcui@microsoft.com>
2020-03-26 20:54:42 +00:00
Ted Meyer ba15ec2dc8 Clean up stale code
I left a todo for myself to remove a conditional when a previous CL was
submitted. That previous CL is merged, and so I'm deleting the block.

Bug: 794255
Change-Id: I4189a945b923b0898e5b6b2b65febc9f58729cd6
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2121564
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
Commit-Queue: Ted Meyer <tmathmeyer@chromium.org>
2020-03-26 18:08:10 +00:00
Paul Lewis e100ed2787 [e2e] drop to one job
Tests are flaking under parallelization. This drops to 1 worker.

Change-Id: Ieea4d4d13b92a402b9c229631990500bdbb99961
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2122352
Auto-Submit: Paul Lewis <aerotwist@chromium.org>
Commit-Queue: Paul Lewis <aerotwist@chromium.org>
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
2020-03-26 17:29:51 +00:00
Tim van der Lippe d25ae40485 Remove unused scripts files
They are referenced nowhere and not used in the current workflows.

R=yangguo@chromium.org

Change-Id: Ie1dd6e8afc352aa5f30a69a863199c21bf4c99f7
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2122348
Auto-Submit: Tim van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Yang Guo <yangguo@chromium.org>
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
2020-03-26 16:58:20 +00:00
Tim van der Lippe 2dceb7fba0 Run the formatter after generating protocol resources
This makes reading the diff a lot easier.

R=kimanh@chromium.org

Change-Id: I50c4c630dab52c2520e80f252be7b3c647ae8c8e
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2122146
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
Commit-Queue: Kim-Anh Tran <kimanh@chromium.org>
Auto-Submit: Tim van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Kim-Anh Tran <kimanh@chromium.org>
2020-03-26 16:46:00 +00:00
Jack Franklin 286739a3ac Add e2e test for removing event listeners.
Bug: 1044632
Change-Id: I86727cc366a21f8ad82ef11897f808019365c252
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2122145
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
2020-03-26 16:43:30 +00:00
Tim van der Lippe b4ddc5c47c Add test to check for non-determinism in tsbuildinfo
The test will check the generated .tsbuildinfo against the expected.tsbuildinfo
and ensures that the content is equal.

I initially tried to generate twice and compare the outputs, but for some reason
the two runs would always be identical (even though sometimes the content of
both files could differ between other runs). Therefore, I opted for checking
for the full output instead. Thus we will need to update the expectation file
whenever we are updating the typescript version we are using.

R=jacktfranklin@chromium.org

Bug: 1064287, 1058578, 1054494
Change-Id: I198e1907f674d930696744c18f11bf2321a8fd37
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2122138
Auto-Submit: Tim van der Lippe <tvanderlippe@chromium.org>
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
2020-03-26 15:59:50 +00:00
Tim van der Lippe bd3ae5fe93 Fix memory indicator overflow issue with large font
This makes sure that on all font-sizes the text will be displayed
in the correct size.

R=jacktfranklin@chromium.org

Fixed: 981451
Change-Id: I24850ee62021af14015d649ca8bce33a752544d6
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2122144
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
Auto-Submit: Tim van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
2020-03-26 15:27:42 +00:00
Paul Lewis 3fc8005cfe [e2e] Allows debug of single test file
The use of npm run e2etest inside of debug-e2etest was blocking the
passing of more params. This CL changes debug-e2etest to call the python
script directly.

Change-Id: I19c9009e7054c59e1f4f1456448304dc1c44d00b
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2122055
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
Commit-Queue: Paul Lewis <aerotwist@chromium.org>
2020-03-26 12:34:20 +00:00
Jack Franklin 5b6ab64dde Add event listener properties e2e test
Bug: 1044632
Change-Id: Ifbb8d8600c144f6756a971c880e28cfbb4612d76
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2119681
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
Reviewed-by: Paul Lewis <aerotwist@chromium.org>
2020-03-26 12:15:10 +00:00
Paul Lewis ba8b942774 [e2e] Adds more debugging info
This adds the full expected and actual values to the log.
TBR=tvanderlippe@chromium.org

Change-Id: I93fb0497d701e01f29d5039b7d94b0d60f66f706
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2119549
Commit-Queue: Paul Lewis <aerotwist@chromium.org>
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Paul Lewis <aerotwist@chromium.org>
2020-03-26 12:13:00 +00:00
Tim van der Lippe 1448965bc6 Add test for ninja clean
This makes sure that all output files are listed in the typescript.gni
Otherwise, `ninja -t clean` would leave files behind.

R=jacktfranklin@chromium.org

Bug: 1064287
Change-Id: I980b7d4ec71e1b75c37c17b580fc8202255b950c
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2119548
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
Auto-Submit: Tim van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
2020-03-26 12:03:50 +00:00
Tim van der Lippe bbe7c212f9 Revert "Adds check to ensure style pane update"
This reverts commit d5a3755f19.

Reason for revert: https://logs.chromium.org/logs/devtools-frontend/buildbucket/cr-buildbucket.appspot.com/8884767372176444016/+/steps/E2E_tests/0/stdout

Original change's description:
> Adds check to ensure style pane update
> 
> Deleting the last property in a styles section incorrectly skips style pane update.
> This check ensures style pane update when the property's index is out-of-bound.
> 
> Bug: chromium:1060267
> Change-Id: Ie6f6a436c789745bcd1f5ece6162cc4ada82a5b3
> Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2107525
> Commit-Queue: Changhao Han <changhaohan@chromium.org>
> Reviewed-by: Mathias Bynens <mathias@chromium.org>
> Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>

TBR=mathias@chromium.org,tvanderlippe@chromium.org,changhaohan@chromium.org

Change-Id: Ie40b9fe85490d9f50596d55a046d65cee89e3e05
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: chromium:1060267
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2119547
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
2020-03-26 11:48:30 +00:00
Jack Franklin d3f547209d Component bridges generation
This CL introduces a script to generate `_bridges.js` files for TypeScript web components.

For further details see:

* `scripts/component_bridges/README.md` in this CL.
* Modernising UI components: https://docs.google.com/document/d/1Asq9BDFFvnsqhDbpu2Ez92pugPN2-8nq50O6sNO0SpY/edit
* Building bridges to a TypeScript world: https://docs.google.com/document/d/1qpa5QSSHrvvo_w73GV0hOJRug4N0_9JfFDw01d-NaCE/edit#heading=h.7nki9mck5t64

Change-Id: I95656acd6d22f5e09d178875dd3bcaf47da75a9c
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2108761
Reviewed-by: Paul Lewis <aerotwist@chromium.org>
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
2020-03-26 11:36:00 +00:00
Sigurd Schneider 4f77e105e3 [issues] Add audits capability
Currently, workers don't support the audits domain. A WIP CL for adding
the audits domain is here: https://crrev.com/c/2119539

Until we support the audits domain, we must only enable the audits
domain for targets that support it, i.e. frames.

This CL adds a new capability Audits that only frames have, and
associates the IssuesModel with that capability, effectively ensuring
that only frames get an associated IssuesModel.

Bug: chromium:1064587
Change-Id: Ib6bc3374874d48a50f55ceb74a5af8e5ecd0a91a
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2119543
Reviewed-by: Simon Zünd <szuend@chromium.org>
Commit-Queue: Sigurd Schneider <sigurds@chromium.org>
2020-03-26 07:51:40 +00:00
Sigurd Schneider 0e15e8064f [coverage] Disable save button if there is nothing to save
Fixed: chromium:1064206
Change-Id: I4d0ffb00077fab94bf6485d4baba6a46b101f81a
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2119689
Reviewed-by: Simon Zünd <szuend@chromium.org>
Commit-Queue: Sigurd Schneider <sigurds@chromium.org>
2020-03-26 06:38:40 +00:00
Changhao Han d5a3755f19 Adds check to ensure style pane update
Deleting the last property in a styles section incorrectly skips style pane update.
This check ensures style pane update when the property's index is out-of-bound.

Bug: chromium:1060267
Change-Id: Ie6f6a436c789745bcd1f5ece6162cc4ada82a5b3
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2107525
Commit-Queue: Changhao Han <changhaohan@chromium.org>
Reviewed-by: Mathias Bynens <mathias@chromium.org>
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
2020-03-26 00:48:03 +00:00
Kalon Hinds 3ca8bc5a4a Ignore theme stylesheet application in high contrast mode
DevTool themes are applied by patching css properties that modify
colors and copying the ruleset to a separate stylesheet. This
stylesheet is added to the appropriate shadow DOM when its component
is loaded.

High contrast themes use system colors instead of the Devtools patching
mechanism to set color values. However, there are cases where the patched
stylesheet rulesets are higher specificity than rulesets defined in
forced-colors media blocks.

This patch short circuits the patching and application of theme-specific
stylesheets when forced-colors is active.

Before: https://imgur.com/tLnAxTN
After: https://imgur.com/4a3kdPM
Bug: 1048378
Change-Id: I7fc26757d06dd77688ce3cfd823389767d999e3f
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2116947
Commit-Queue: Kalon Hinds <kahinds@microsoft.com>
Reviewed-by: Mathias Bynens <mathias@chromium.org>
2020-03-25 22:00:34 +00:00
Brandon Goddard 9e2b59cb64 Screencast: Add accessible text for the Screencast Nav Bar Controls
This CL adds aria-labels to the navigation control bar on the screencast
tool to allow Screen Readers to understand the purpose of the controls
when focused

Before:
Accessibility Fast Pass: https://imgur.com/1ZwE6If
NVDA reading generic elements: https://imgur.com/9KmFvCQ

After:
Fast Pass: https://imgur.com/9BhVTXt
NVDA reading labels: https://imgur.com/nuSIPO2

Bug: 1064733
Change-Id: I44e44a34bb4f065dd5bc8d30089614c9686db89f
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2120282
Commit-Queue: Brandon Goddard <brgoddar@microsoft.com>
Reviewed-by: Songtao Xia <soxia@microsoft.com>
2020-03-25 21:56:24 +00:00
Kim-Anh Tran 94584718d2 Updates wasmparser to generate unified disassembly
This change to the wasmparser is the front-end change to ensure
that the devtools front-end and the v8 back-end generate a unified
wat format.

Bug: chromium:1043031
Change-Id: I8fb47ce3c538083cf3720026f73d0d1a3a683c11
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2113372
Commit-Queue: Kim-Anh Tran <kimanh@chromium.org>
Reviewed-by: Eric Leese <leese@chromium.org>
Reviewed-by: Benedikt Meurer <bmeurer@chromium.org>
2020-03-25 20:51:34 +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
Paul Lewis c03c82553f Skips flaky multple-worker test
The skipped test seems to flake out, so temporarily disabling it.

TBR=pfaffe@chromium.org
No-Tree-Checks: true
No-Try: true
Bug: 1064581
Change-Id: Ia3c4c70b55660a8c3d2438620d3dd0fd0dc9be4b
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2119684
Commit-Queue: Paul Lewis <aerotwist@chromium.org>
Reviewed-by: Paul Lewis <aerotwist@chromium.org>
Auto-Submit: Paul Lewis <aerotwist@chromium.org>
2020-03-25 17:28:44 +00:00