Commit Graph
2770 Commits
Author SHA1 Message Date
devtools-ci-autoroll-builder 2a8a4a1fbe Update DevTools Chromium DEPS.
TBR=machenbach@chromium.org,liviurau@chromium.org

Change-Id: I8350a5689741360909691627b5ae5eef4cb2c131
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2105939
Reviewed-by: Devtools Autoroller <devtools-ci-autoroll-builder@chops-service-accounts.iam.gserviceaccount.com>
Commit-Queue: Devtools Autoroller <devtools-ci-autoroll-builder@chops-service-accounts.iam.gserviceaccount.com>
2020-03-19 04:11:31 +00:00
devtools-ci-autoroll-builder 33997f3d93 Update DevTools DEPS.
Rolling build: https://chromium.googlesource.com/chromium/src/build/+log/44de6a6..9b1394c

Rolling third_party/depot_tools: https://chromium.googlesource.com/chromium/tools/depot_tools/+log/a30b7bd..464e9ff

TBR=machenbach@chromium.org,liviurau@chromium.org

Change-Id: Ie373d77bfc23aee47f3499388d7aba9c389c9fa7
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2105938
Reviewed-by: Devtools Autoroller <devtools-ci-autoroll-builder@chops-service-accounts.iam.gserviceaccount.com>
Commit-Queue: Devtools Autoroller <devtools-ci-autoroll-builder@chops-service-accounts.iam.gserviceaccount.com>
2020-03-19 03:13:51 +00:00
Kalon Hinds 1574c49c4f High contrast support for Changes Panel
This patch provides forced-colors overrides to make sidebar icons
on the changes panel visible in high contrast mode.

Screenshots: https://imgur.com/a/GG665sc
Bug: 1048378
Change-Id: I6f285eca8abafc40de17a8606a5f9c59aea0a384
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2107112
Commit-Queue: Kalon Hinds <kahinds@microsoft.com>
Reviewed-by: Mathias Bynens <mathias@chromium.org>
2020-03-18 22:24:39 +00:00
Simon Zünd 3b0c540211 Rename front_end/protocol to front_end/protocol_client
This CL is part of the work to switch over to the TypeScript compiler
for type checking.

R=tvanderlippe@chromium.org

Bug: chromium:1011811
Change-Id: Ic709a193b252df7e9027c00cf20d8afe525a215a
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2107539
Commit-Queue: Simon Zünd <szuend@chromium.org>
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
2020-03-18 18:06:20 +00:00
Tim van der Lippe 8fa65441f9 Add filesystem TypeScript types
We use these types for all of our interactions with the local filesystem
API's and they don't normally ship with TypeScript library definitions.

R=jacktfranklin@chromium.org
DISABLE_THIRD_PARTY_CHECK=Add node_module

Bug: 1011811
Change-Id: I41ae8faf8cce289c86a6795ff76d8a10b5b3609d
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2108760
Auto-Submit: Tim van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
2020-03-18 17:58:39 +00:00
Kalon Hinds a9f8b620d7 High contrast support for Animation Panel
This patch provides forced-colors overrides to make non-canvas
elements visible in high contrast mode.

Before: https://imgur.com/a/3NmoATe
After: https://imgur.com/a/0MY4S1u
Bug: 1048378
Change-Id: Id2e4a982ef92afff5d5945d39ff543d70c3e2411
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2106881
Reviewed-by: Mathias Bynens <mathias@chromium.org>
Commit-Queue: Kalon Hinds <kahinds@microsoft.com>
2020-03-18 17:38:59 +00:00
Simon Zünd 985d8ee133 Enable asynchronous rawLocationToUILocation mapping
All call-sites of {rawLocationToUILocation} are asyncified. This
CL flips the switch and turns on asynchronous source mapping.

Bug: chromium:1032016
Change-Id: Ifdf1ed38c847af9f0d5615e663c37cfc5282fe8e
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2107216
Commit-Queue: Simon Zünd <szuend@chromium.org>
Reviewed-by: Sigurd Schneider <sigurds@chromium.org>
2020-03-18 17:13:19 +00:00
Paul Lewis 0609f5a4e5 [global] Remaps self.Bindings.blackboxManager
Moves self.Bindings.blackboxManager to an instance() method.

Bug: 1058320
Change-Id: Idcd46ea17360cdadacc726d1bd520cc2d692efdd
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2107537
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
Commit-Queue: Paul Lewis <aerotwist@chromium.org>
2020-03-18 16:48:09 +00:00
Tim van der Lippe 7defff6c1b Typecheck common/Settings.js with TypeScript
We can now also typecheck common.js, as Settings.js was the last file
that required checking.

Bug: 1011811
Change-Id: Ia17644bb439f8295b789169249447a52d65cb1ba
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2107220
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
Reviewed-by: Paul Lewis <aerotwist@chromium.org>
2020-03-18 15:52:09 +00:00
Paul Lewis 59642a6ea9 [global] Remaps self.Bindings.breakpointManager
Moves self.Bindings.breakpointManager to an instance() method.

Bug: 1058320
Change-Id: If123cdb552e28dc7e85079aef0176a729cd5ff9f
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2107535
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
Commit-Queue: Paul Lewis <aerotwist@chromium.org>
2020-03-18 15:26:18 +00:00
Tim van der Lippe db09d1b2bd Typecheck root/ with TypeScript
R=aerotwist@chromium.org,jacktfranklin@chromium.org

Bug: 1011811
Change-Id: I24aaff1e3a6e06e9e992044a1cb81a041dbb296c
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2107532
Reviewed-by: Paul Lewis <aerotwist@chromium.org>
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
2020-03-18 15:02:49 +00:00
Tim van der Lippe 6d51bf00ea Factor out Runtime to root/Runtime.js
front_end/Runtime.js was doing multiple things: it was instantiating
side-effecty descriptors and initializing applications, as well as
storing all state for the modules/extensions, etc...

To support proper ES Modules, we need to separate these. root/Runtime.js
contains simple classes that store the data and can be retrieved, as well
as some helper functions that will load the respective data.

The RuntimeInstantiator.js code includes the start functions used in the
entrypoints themselves. They will use an instance of the Runtime to
properly load the application.

Along the way, I also fixed various TypeScript errors, mostly around
incorrect or missing type definitions.

R=aerotwist@chromium.org,jacktfranklin@chromium.org

Bug: 1011811
Change-Id: If3ddea9267813691b3faeb6ea4b0cf64edbde1f4
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2107523
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
2020-03-18 12:19:29 +00:00
Paul Lewis 23883e36f5 [global] Remaps self.Bindings.debuggerWorkspaceBinding
Moves self.Bindings.debuggerWorkspaceBinding to an instance() method.

Bug: 1058320
Change-Id: Id9090073eb4a0b8715bba82ded470d15d718dcc6
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2107529
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
Commit-Queue: Paul Lewis <aerotwist@chromium.org>
2020-03-18 12:06:08 +00:00
Jack Franklin 02d03f4ef2 Revert "Add tsickle as a node dep"
This reverts commit 82dc0cef49.

Reason for revert: We don't think that we're going to use tsickle yet. Apologies - I made this CL a little hastily in hindsight.
Original change's description:
> Add tsickle as a node dep
> 
> We need it to convert from TypeScript to Closure to generate bridges
> whilst we migrate from Closure to TS.
> 
> DISABLE_THIRD_PARTY_CHECK=adding tsickle
> 
> Change-Id: I0bb28ecd6f5f6f131a59a02c8833aebd7ae92471
> Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2107215
> Auto-Submit: Jack Franklin <jacktfranklin@chromium.org>
> Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
> Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>

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

Change-Id: Iee3631911650c03df4c18d07969b94b2d797cb5a
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2107530
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
2020-03-18 11:15:28 +00:00
Simon Zünd f58146c9d6 Make LiveLocation#uiLocation and LiveLocation#isBlackboxed async
This CL prepares the LiveLocation interface itself for
asynchronous source mapping. rawLocationToUILocation will be
async in the future and LiveLocation#uiLocation is a call-site.

Bug: chromium:1032016
Change-Id: I038e53137475bc5d66a72a757db6ecfe05817803
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2107214
Reviewed-by: Sigurd Schneider <sigurds@chromium.org>
Commit-Queue: Simon Zünd <szuend@chromium.org>
2020-03-18 09:41:39 +00:00
Simon Zünd adb6d2e041 [cleanup] Remove awaitPromise argument from evaluateCommandInConsole
{awaitPromise} is set to false by all call-sites so we can remove
the argument all together.

R=petermarshall@chromium.org

Bug: chromium:1021921
Change-Id: I2b632c71f130576b2bfaee5a44dd520778b4a0dd
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2107526
Reviewed-by: Peter Marshall <petermarshall@chromium.org>
Commit-Queue: Simon Zünd <szuend@chromium.org>
2020-03-18 09:39:59 +00:00
devtools-ci-autoroll-builder 068c817133 Update DevTools Chromium DEPS.
TBR=machenbach@chromium.org,liviurau@chromium.org

Change-Id: Ic713af248524e1a23803d0ae26bd5de6caca8b63
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2105781
Reviewed-by: Devtools Autoroller <devtools-ci-autoroll-builder@chops-service-accounts.iam.gserviceaccount.com>
Commit-Queue: Devtools Autoroller <devtools-ci-autoroll-builder@chops-service-accounts.iam.gserviceaccount.com>
2020-03-18 04:11:48 +00:00
devtools-ci-autoroll-builder fc53cdcdb4 Update DevTools DEPS.
Rolling build: https://chromium.googlesource.com/chromium/src/build/+log/5bde74a..44de6a6

Rolling third_party/depot_tools: https://chromium.googlesource.com/chromium/tools/depot_tools/+log/c99efb2..a30b7bd

TBR=machenbach@chromium.org,liviurau@chromium.org

Change-Id: I8bfe8a6fdaca550c2b9a32a67363c63348b43896
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2105780
Reviewed-by: Devtools Autoroller <devtools-ci-autoroll-builder@chops-service-accounts.iam.gserviceaccount.com>
Commit-Queue: Devtools Autoroller <devtools-ci-autoroll-builder@chops-service-accounts.iam.gserviceaccount.com>
2020-03-18 03:13:48 +00:00
Jack Lynch b110942f5c Ensure that all actions have categories
To support custom shortcuts, this updates the module.schema.json to
require actions to have categories and adds categories to existing
actions. It also renames the existing "DevTools" category to "Global."

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

Bug: 174309
Change-Id: I0860f040e19502b4c47301356b52a2f12166dee5
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2101972
Reviewed-by: Shane Clifford <shanejc@microsoft.com>
Reviewed-by: Vidal Diazleal <vidorteg@microsoft.com>
Commit-Queue: Jack Lynch <jalyn@microsoft.com>
2020-03-18 00:50:58 +00:00
Kham Udom 1ce57d9c78 High contrast support for Layers
Fixed the background on the pie chart and the foreground
that uses 'cm-js-string' in treeoutline.

Screenshots: https://imgur.com/a/aop9zSm

Bug: 1048378
Change-Id: Id9ff8230cca59155675e16599fef302dac8fd12e
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2107189
Reviewed-by: Kalon Hinds <kahinds@microsoft.com>
Commit-Queue: Kham Udom <khamu@microsoft.com>
2020-03-17 23:28:18 +00:00
Simon Zünd 29781ded1b Make live location update handlers async and properly await {uiLocation}
Retrieving the {uiLocation} of a LiveLocation can involve source
mapping (via rawLocationToUILocation). As source mapping will be
async in the future we have to properly await {uiLocation} in these
LiveLocation update delegates.

Note that support for asynchronous LiveLocation updates has already
landed.

Bug: chromium:1032016
Change-Id: I81be755581b6347c8d510de3216503e32481e470
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2077667
Commit-Queue: Simon Zünd <szuend@chromium.org>
Reviewed-by: Peter Marshall <petermarshall@chromium.org>
2020-03-17 19:49:48 +00:00
Paul Lewis 767a0a101e [global] Remaps self.Bindings.cssWorkspaceBinding
This CL changes references to self.Bindings.cssWorkspaceBinding (the
globalinstance of Bindings.CSSWorkspaceBinding.CSSWorkspaceBinding) over
to Bindings.CSSWorkspaceBinding.CSSWorkspaceBinding.instance(). To keep
both TypeScript and Closure happy we must make a method on the
CSSWorkspaceBinding class itself, since it only allows private
constructors to be accessed by static methods on the class.

Bug: 1058320
Change-Id: Ic42d2b76e5bcec38029827dce14e3bf06ceaf89a
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2107520
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
Commit-Queue: Paul Lewis <aerotwist@chromium.org>
2020-03-17 18:34:18 +00:00
Paul Lewis 80517cb9ee [global] Remaps self.Bindings.resourceMapping
This CL changes references to self.Bindings.resourceMapping (the global
instance of Bindings.ResourceMapping.ResourceMapping) over to
Bindings.ResourceMapping.ResourceMapping.instance(). To keep both
TypeScript and Closure happy we must make a method on the
ResourceMapping class itself, since it only allows private constructors
to be accessed by static methods on the class.

Bug: 1058320
Change-Id: I9c90bd5aa449bf0bfdea48c7e374d8ddccc58747
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2107221
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
Commit-Queue: Paul Lewis <aerotwist@chromium.org>
2020-03-17 15:39:28 +00:00
Tim van der Lippe 046a8d3023 Fix command menu items for snippets
The runtime was throwing errors because `Snippets.SnippetsQuickOpen` did
not exist. The culprit is that the export statement still included a
`default class` rather than a `class`.

Also added an e2e-test that goes through the workflow of creating a
snippet and then verifying that the command menu shows these snippets
in its autocompletion.

R=aerotwist@chromium.org

Bug: 1060565
Change-Id: I9bb9d4ed34e5fda25cdd796a6a1e4c8a61f89958
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2107222
Reviewed-by: Paul Lewis <aerotwist@chromium.org>
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
2020-03-17 15:23:18 +00:00
Tim van der Lippe e73d367988 Add coverage reporting to ninja typescript
This post-processes all JavaScript files with the Istanbul instrumenter.
The files in question are the output files from TypeScript, which means
that Istanbul operates on the TypeScript sourcemaps. As such, the coverage
report will have the correct lines.

For an unknown reason, Istanbul still adds empty files to the coverage report,
in the `out/Default/gen` directory. Since normal files are always loaded,
we ignore files with no coverage. It would be great to later figure out why
that is happening, but for now we are happy with skipping them.

R=aerotwist@chromium.org,jacktfranklin@chromium.org

Bug: 1061125
Change-Id: I754e8b9f46dd2fdb167eda6e64927c94b88ff676
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2107218
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
2020-03-17 15:06:58 +00:00
Paul Lewis 67665be37c [global] Remaps self.Bindings.networkProjectManager
This CL changes references to self.Bindings.networkProjectManager (the
global instance of Bindings.NetworkProject.NetworkProjectManager) over
to Bindings.NetworkProject.NetworkProjectManager.instance(). To keep
both TypeScript and Closure happy we must make a method on the
NetworkProjectManager class itself, since it only allows private
constructors to be accessed by static methods on the class.

Bug: 1058320
Change-Id: I8adadca42dc2002d819dc42021bbaa6d80755a5a
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2107219
Commit-Queue: Paul Lewis <aerotwist@chromium.org>
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
2020-03-17 14:02:08 +00:00
Tim van der Lippe c19ea32ca5 Fix protocol generator formats
- The protocol files were generated without license headers
- There were whitespace issues in the .d.ts files

Change-Id: I19572989360a4a537fdfe829f212587ae70e180f
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2107217
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Philip Pfaffe <pfaffe@chromium.org>
2020-03-17 12:34:08 +00:00
Simon Zünd 65c4283e5d Properly handle asynchronous update delegates for LiveLocations
This CL implements asyncified LiveLocation updates. As the called
update delegates might not be re-entrant, LiveLocation.update implements
simple scheduling using promises.

Please note that no update delegate does anything asynchronous yet. This
CL has to land first before we can properly await {uiLocations} and
source mapping in LiveLocation update delegates.

Bug: chromium:1032016
Change-Id: Id38e0db794859c54b253e804841e6693b9d4800e
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2077662
Commit-Queue: Simon Zünd <szuend@chromium.org>
Reviewed-by: Paul Lewis <aerotwist@chromium.org>
Reviewed-by: Sigurd Schneider <sigurds@chromium.org>
2020-03-17 12:22:38 +00:00
devtools-ci-autoroll-builder f57843b6b7 Update DevTools DEPS.
Rolling build: https://chromium.googlesource.com/chromium/src/build/+log/a1cbf64..5bde74a

Rolling third_party/depot_tools: https://chromium.googlesource.com/chromium/tools/depot_tools/+log/34d90be..c99efb2

TBR=machenbach@chromium.org,liviurau@chromium.org

Change-Id: I31975b7b91218d58dd6c424514f988b881059def
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2105779
Reviewed-by: Devtools Autoroller <devtools-ci-autoroll-builder@chops-service-accounts.iam.gserviceaccount.com>
Commit-Queue: Devtools Autoroller <devtools-ci-autoroll-builder@chops-service-accounts.iam.gserviceaccount.com>
2020-03-17 12:13:38 +00:00
Tim van der Lippe 18f0489a60 Reland: Move ContentProvider.js and StaticContentProvider.js to text_utils.
They used to live under common.

This is to avoid the dependency from common to text_utils caused by
the method performSearchInContent.

Layout tests were disabled:
https://chromium-review.googlesource.com/c/chromium/src/+/2096995

CL to fix and re enable tests
https://chromium-review.googlesource.com/c/chromium/src/+/2096018/


Bug: 1011811
Change-Id: I76415076366d748ed0b4fe6ff32c73bae0db1312
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2097337
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
2020-03-17 12:12:17 +00:00
Jack Franklin 82dc0cef49 Add tsickle as a node dep
We need it to convert from TypeScript to Closure to generate bridges
whilst we migrate from Closure to TS.

DISABLE_THIRD_PARTY_CHECK=adding tsickle

Change-Id: I0bb28ecd6f5f6f131a59a02c8833aebd7ae92471
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2107215
Auto-Submit: Jack Franklin <jacktfranklin@chromium.org>
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
2020-03-17 11:40:19 +00:00
Tim van der Lippe 24de19ebe7 Disable NodeURL unittest
It requires all of common/ and host/ to be checked by TypeScript

Bug: 1061125
Change-Id: I781a6741a7129d74677c52f76ca49d19f64fb72f
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2102713
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-17 10:28:38 +00:00
Tim van der Lippe a5fe663386 Disable BezierUI test
It relies on UI being typescriptified, which is not the case.

R=aerotwist@chromium.org

Bug: 1061125
Change-Id: I007c8508cbf5d2ee4c96545f2cc79c81f9c62da6
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2102707
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
Auto-Submit: Tim van der Lippe <tvanderlippe@chromium.org>
2020-03-17 10:12:27 +00:00
Tim van der Lippe 6b7e28d3a4 Disable persistence unit test
Requires all of common/ to be typescriptified.

Bug: 1061125
Change-Id: Ia1cc7c286dcc8da85b63c3bfaad4e3c3e97760e3
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2102710
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-17 10:10:40 +00:00
Liviu Rau 23283eb968 Doc update
Change-Id: I0738f293ff9f6ffb0a1398f9d3f4497f40e55fe1
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2104477
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
Commit-Queue: Liviu Rau <liviurau@chromium.org>
2020-03-17 08:34:47 +00:00
Simon Zünd 281b5c16d2 Make LiveLocation creation and updates asynchronous
This CL is part of the asynchronous source mapping effort.
LiveLocation update handlers need to be asynchronous in the future
as those update handlers are users of source mapping. To enable
asynchronous LiveLocation update handlers, we need to make triggering
LiveLocation updates asynchronous. This also includes LiveLocation
creation, as immediately after creation an update is scheduled.

Note that most of this CL is dedicated to housekeeping. Tests need to
be able to wait for all LiveLocation changes to settle. To this end,
we keep track of all promises that either represent a new LiveLocation
or an update and expose them to a test helper.

Test runners and web tests were already updated to use this live
location helper, but until now it was a no-op.

Bug: chromium:1032016
Change-Id: I13365c92ba667906f9836c58886abe9b9e637a6f
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2074764
Reviewed-by: Sigurd Schneider <sigurds@chromium.org>
Reviewed-by: Mathias Bynens <mathias@chromium.org>
Commit-Queue: Simon Zünd <szuend@chromium.org>
2020-03-17 07:05:47 +00:00
devtools-ci-autoroll-builder aedd578038 Update DevTools Chromium DEPS.
TBR=machenbach@chromium.org,liviurau@chromium.org

Change-Id: I16445ed4eced61d8f890edb2c369dc2e7de9cab7
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2105778
Reviewed-by: Devtools Autoroller <devtools-ci-autoroll-builder@chops-service-accounts.iam.gserviceaccount.com>
Commit-Queue: Devtools Autoroller <devtools-ci-autoroll-builder@chops-service-accounts.iam.gserviceaccount.com>
2020-03-17 04:19:17 +00:00
devtools-ci-autoroll-builder 7fd33ba2dd Update DevTools DEPS.
Rolling build: https://chromium.googlesource.com/chromium/src/build/+log/32206c0..a1cbf64

Rolling third_party/depot_tools: https://chromium.googlesource.com/chromium/tools/depot_tools/+log/8cf1229..34d90be

TBR=machenbach@chromium.org,liviurau@chromium.org

Change-Id: If9324303d667fc6e636b2d0a1cb726e3755592dc
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2105776
Reviewed-by: Devtools Autoroller <devtools-ci-autoroll-builder@chops-service-accounts.iam.gserviceaccount.com>
Commit-Queue: Devtools Autoroller <devtools-ci-autoroll-builder@chops-service-accounts.iam.gserviceaccount.com>
2020-03-17 03:14:57 +00:00
Paul Lewis 2d7d65c5e8 [global] Remaps self.Common.settings
This CL changes references to self.Common.settings (the global
instance of SDK.Common.Settings) over to
Common.Settings.Settings.instance(). To keep both TypeScript and
Closure happy we must make a method on the Settings class itself,
since it only allows private constructors to be accessed by static
methods on the class.

Bug: 1058320
Change-Id: I04afc8caf64acf29cdda13ef03ad05cfff4786a1
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2091450
Commit-Queue: Paul Lewis <aerotwist@chromium.org>
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
2020-03-16 22:04:07 +00:00
Jack Lynch 6149083d74 Fix focus issue in event listener breakpoints
This CL fixes an issue where focus being on a checkbox in the event
listener breakpoints pane prevents keydown events from being handled by
its parent treeElement, forcing the user to shift-tab to focus the tree
element and navigate the breakpoints tree. Since checkboxes are input
elements, UIUtils.isEditing() returns true if one is focused (preventing
treeElement._treeKeyDown from handling it). To keep the fix simple, I'm
just adding focus listeners to the checkboxes that focus their
treeElements. Pressing space on a treeElement toggles its checkbox, so
all functionality that you would have from focusing a checkbox is
preserved.

Screencasts from the bug: https://drive.google.com/drive/folders/11_47xiS-aMNXXQwvMP-9Or4Dr_QaZFdi?usp=sharing

Bug: 1058338
Change-Id: I4bbcbae29eb0b5dcdaf677388eca2f33be8ceab5
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2088117
Reviewed-by: Robert Paveza <Rob.Paveza@microsoft.com>
Reviewed-by: Brian Cui <brcui@microsoft.com>
Commit-Queue: Jack Lynch <jalyn@microsoft.com>
2020-03-16 21:53:56 +00:00
Tim van der Lippe 5c5a68ef6d Typecheck sdk unittests with TypeScript
Some unittests had to be disabled, as they rely on Common being typechecked.

R=aerotwist@chromium.org

Bug: 1061125
Change-Id: I2fa93124285440cc31321124ff2fbf6f53ad7561
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2102714
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-03-16 18:43:36 +00:00
Tim van der Lippe 1f920aee0a Typecheck platform unittests with TypeScript
R=aerotwist@chromium.org

Bug: 1061125
Change-Id: I01f76c67256fc0a9d24c2f404a17a5de6f808f93
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2102709
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-03-16 18:19:56 +00:00
Tim van der Lippe 6a3fc109d4 Typecheck text_utils test with TypeScript
R=aerotwist@chromium.org

Bug: 1061125
Change-Id: Ibda5def22de8767faabe7c37572ffb920d8d6310
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2102716
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-03-16 17:54:06 +00:00
Sigurd Schneider 1f451dbe6e [coverage] Remember last used coverage type
R=szuend@chromium.org

Fixed: chromium:1061386
Change-Id: Iffc6dffa73e83ae2a7bede094356871ad160f2e7
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2105435
Reviewed-by: Simon Zünd <szuend@chromium.org>
Commit-Queue: Sigurd Schneider <sigurds@chromium.org>
2020-03-16 17:27:56 +00:00
Tim van der Lippe 60bc8888bf Remove jsconfig configuration files
These files were used in the pre-ES module module era, to instruct
editors like VS Code to resolve symbols. However, since we are in ES
modules land we explicitly *don't* want this resolution. By removing
suport for jsconfig, the editor will now warn before hand on un-imported
symbols. This should reduce the risk of accidentally using the global
symbol rather than the import.

After this change, there will be numerous `jsconfig.json` in the
repository. You are recommended to `git add . && git reset --hard` to
remove these from your local checkout.

Most files will now see a lot of red squiggles with errors, which is to
be expected, as TypeScript does not understand many of the globals. I
have declared `ls` in the globals to at least suppress these, as well as
fix the definition of UIString. These seem to be the most prominent.

All other usages will still need fixing before the files in question can
be typescriptified. However, we do hope that with this change, it is
more difficult to check in new code that is not compliant with
TypeScript already.

Bug: 1006759
Change-Id: I6591e73d66c845a2160b843b627c1adcb1389c24
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2098602
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Yang Guo <yangguo@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
Reviewed-by: Paul Lewis <aerotwist@chromium.org>
Reviewed-by: Robert Paveza <Rob.Paveza@microsoft.com>
2020-03-16 17:13:36 +00:00
Tim van der Lippe f484178cea Add sourcemap support to ts_library
This will result in nicer assertion messages with Karma.

Before:

HeadlessChrome 82.0.4071 (Mac OS X 10.15.3) Color defaults RGBA value to 0 if the RGBA initializing value given was negative FAILED
	AssertionError: RGBA array was not set correctly: expected [ 0, 0.5, 0.5, 0.5 ] to deeply equal [ 0, 0.5, 0.5, 0.6 ]
	    at Context.<anonymous> (test/unittests/front_end/common/Color_test.js:15:16)

After:

HeadlessChrome 82.0.4071 (Mac OS X 10.15.3) Color defaults RGBA value to 0 if the RGBA initializing value given was negative FAILED
	AssertionError: RGBA array was not set correctly: expected [ 0, 0.5, 0.5, 0.5 ] to deeply equal [ 0, 0.5, 0.5, 0.7 ]
	    at Context.<anonymous> (test/unittests/front_end/common/Color_test.ts:19:12 <- out/Default/gen/test/unittests/front_end/common/Color_test.js:15:16)

R=aerotwist@chromium.org,jacktfranklin@chromium.org
DISABLE_THIRD_PARTY_CHECK=Update to TypeScript

Bug: 1061125
Change-Id: Ia689b2a0a6e6f7d221d29786727700be02e8649b
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2105437
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
Reviewed-by: Paul Lewis <aerotwist@chromium.org>
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
2020-03-16 17:07:46 +00:00
Tim van der Lippe c6be644636 Remove run_old_devtools scripts
These were originally introduced in
https://chromium-review.googlesource.com/c/chromium/src/+/1298617 as
part of https://bugs.chromium.org/p/chromium/issues/detail?id=898245
Looking at the context of both of these, they were part of an old
workflow to verify compatibility with an old version of DevTools.

Since this workflow is no longer relevant for us, I propose to remove
these scripts to reduce maintenance burden.

Change-Id: Ic96506fb42b9e2b845ab359645ee443e2e90bc92
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2098623
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Yang Guo <yangguo@chromium.org>
Reviewed-by: Robert Paveza <Rob.Paveza@microsoft.com>
2020-03-16 16:47:46 +00:00
Tim van der Lippe 455069ae90 Add karma-sourcemap-loader to node_modules
This will be used to load sourcemap files for TypeScript unittests.

R=aerotwist@chromium.org,jacktfranklin@chromium.org
DISABLE_THIRD_PARTY_CHECK=Add node_module

Bug: 1061125
Change-Id: I13cfdbe078402b02563e7843595016a14bf93617
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2105436
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
Reviewed-by: Paul Lewis <aerotwist@chromium.org>
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
2020-03-16 16:40:16 +00:00
Wolfgang Beyer 98b339fb3c New icons for breakpoints
Previously conditional breakpoints and logpoints looked exactly the
same. This CL adds the ability to differentiate between these two types
while adding new svg icons for all types of breakpoints and inline
breakpoints.

Screenshot: https://imgur.com/HJep0W7
Design Doc: https://docs.google.com/document/d/1Qb1Z82ZVr-WZY0qSqI6UI7DiEP0g3kn7cW_ZeCBC3mM

Fixed: chromium:1041830
Fixed: chromium:1054747
Change-Id: If4ee8ac987c513dec1a4406f913b428c1713016b
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2078851
Commit-Queue: Wolfgang Beyer <wolfi@chromium.org>
Reviewed-by: Sigurd Schneider <sigurds@chromium.org>
2020-03-16 14:44:56 +00:00
devtools-ci-autoroll-builder 496706c967 Update DevTools DEPS.
Rolling third_party/depot_tools: https://chromium.googlesource.com/chromium/tools/depot_tools/+log/c48fb84..8cf1229

TBR=machenbach@chromium.org,liviurau@chromium.org

Change-Id: I78cd702e71189ca107876e380093b9fa8b948ba2
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2105133
Reviewed-by: Devtools Autoroller <devtools-ci-autoroll-builder@chops-service-accounts.iam.gserviceaccount.com>
Commit-Queue: Devtools Autoroller <devtools-ci-autoroll-builder@chops-service-accounts.iam.gserviceaccount.com>
2020-03-16 12:13:26 +00:00