Commit Graph
9111 Commits
Author SHA1 Message Date
Sigurd Schneider 3aa8ba4983 Add issues for CORS redirect mode problems
This CL adds issues for the CORS error codes

NoCorsRedirectModeNotFollow

Screenshot: https://imgur.com/a/ZfaMTu6

Bug: chromium:1141824
Change-Id: I0fe496219bfc4b43414d21d1eed48022464203c5
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2897287
Reviewed-by: Wolfgang Beyer <wolfi@chromium.org>
Commit-Queue: Sigurd Schneider <sigurds@chromium.org>
2021-05-17 09:57:22 +00:00
Benedikt Meurer 0b989af056 [test][e2e] Rebaseline test expectation for Wasm function names.
Fixed: chromium:1209155
Doc: http://bit.ly/devtools-wasm-entities
Bug: chromium:1159307, chromium:1162229, chromium:1164241, chromium:1071432
Change-Id: I1e50345410130c727559f8376b94623a048066b1
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2896899
Commit-Queue: Benedikt Meurer <bmeurer@chromium.org>
Commit-Queue: Kim-Anh Tran <kimanh@chromium.org>
Auto-Submit: Benedikt Meurer <bmeurer@chromium.org>
Reviewed-by: Kim-Anh Tran <kimanh@chromium.org>
2021-05-17 09:20:02 +00:00
Sigurd Schneider eeb3765890 Add issues for CORS disabled scheme problems
This CL adds issues for the CORS error codes

CorsDisabledScheme

Screenshot: https://imgur.com/a/3nVmUn6

Bug: chromium:1141824
Change-Id: I29f085e660ba6985b028cbc52e9460857525da52
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2897284
Commit-Queue: Sigurd Schneider <sigurds@chromium.org>
Reviewed-by: Wolfgang Beyer <wolfi@chromium.org>
2021-05-17 08:54:02 +00:00
Sigurd Schneider 0404498fbf Add issues for CORS same-origin problems
This CL adds issues for the CORS error codes

DisallowedByMode

Screenshot: https://imgur.com/a/XBVhWCs

Bug: chromium:1141824
Change-Id: If2292961beaba23e18b41b580c2d20f453b5faf3
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2897282
Commit-Queue: Sigurd Schneider <sigurds@chromium.org>
Reviewed-by: Wolfgang Beyer <wolfi@chromium.org>
2021-05-17 08:41:32 +00:00
Tim van der Lippe 038d808e1a Import protocol types in models/
R=jacktfranklin@chromium.org

Bug: 1208357
Change-Id: Icfda82842d5bd1e1da5fff109605925113fc651b
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2897516
Auto-Submit: Tim van der Lippe <tvanderlippe@chromium.org>
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
2021-05-17 07:59:52 +00:00
Patrick Brosset 8ac4a1cd6f Match extended grid line colors to line color
Extended grid lines are normally light fray, which makes them really
hard to see on some backgrounds.
This change makes extended grid lines use the same color as the lines
themselves, so they can be seen on all backgrounds more easily.

The grid container already has a solid line around it, so it's easy to
see where the grid starts and ends, even if lines and extended lines are
the same color.

Before/after: https://imgur.com/a/OvW46yn

Bug: 1207301
Change-Id: I5d363edf00acf8aa99e1d642c9088f0880286a10
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2897261
Reviewed-by: Leo Lee <leolee@microsoft.com>
Reviewed-by: Alex Rudenko <alexrudenko@chromium.org>
Commit-Queue: Patrick Brosset <patrick.brosset@microsoft.com>
2021-05-17 07:58:22 +00:00
Sigurd Schneider f7e58beb6a Improve description
Bug: b/187846688
Change-Id: I8742f2e799f76e561f36dc4154f5b1e996c801c9
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2897291
Reviewed-by: Simon Zünd <szuend@chromium.org>
Commit-Queue: Sigurd Schneider <sigurds@chromium.org>
2021-05-17 07:05:32 +00:00
Changhao Han 4b903ba3b9 Fix bezier editor showing for custom-property linear-gradients
This issue is caused by an imperfect regex parsing for potential
animation-function-related keywords. Although "linear" is a keyword,
when it is suffixed by "-gradient", it is not a valid animation
function.

This is another example that using regex as a CSS syntax parser will
cause problems. For now this particular problem is fixed, but there
might be other cases that this regex will be false positive or negative.

Fixed: chromium:1203639
Change-Id: I81330260f0470693047c23f7eeb6c86639d5a125
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2896892
Auto-Submit: Changhao Han <changhaohan@chromium.org>
Commit-Queue: Mathias Bynens <mathias@chromium.org>
Reviewed-by: Mathias Bynens <mathias@chromium.org>
2021-05-17 06:54:02 +00:00
devtools-ci-autoroll-builder beec77e7cf Update DevTools Chromium DEPS.
TBR=machenbach@chromium.org,liviurau@chromium.org

Bug: none
Change-Id: If92f45b7e52b1d216ab05ea5c36aa0cdbe3efefc
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2899622
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>
2021-05-17 06:45:32 +00:00
devtools-ci-autoroll-builder 0c70a56646 Update DevTools DEPS.
Rolling build: https://chromium.googlesource.com/chromium/src/build/+log/9be9e38..c81ea93

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

Bug: none
Change-Id: Ie6e6d4b25276fbd55bf433318d2ed99d93b5086c
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2899620
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>
2021-05-17 03:44:02 +00:00
devtools-ci-autoroll-builder 910162b7cb Update DevTools Chromium DEPS.
TBR=machenbach@chromium.org,liviurau@chromium.org

Bug: none
Change-Id: Idc8b5dbafbd53199fcbc394a77511d7d476efacc
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2899209
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>
2021-05-16 06:33:41 +00:00
devtools-ci-autoroll-builder 8abb970581 Update DevTools DEPS.
Rolling build: https://chromium.googlesource.com/chromium/src/build/+log/2123428..9be9e38

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

Bug: none
Change-Id: Ic36cfb66cdbb2a75ef9a489f6957f8d9c2c97612
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2899204
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>
2021-05-16 03:44:41 +00:00
devtools-ci-autoroll-builder 16c5925f7b Update DevTools Chromium DEPS.
TBR=machenbach@chromium.org,liviurau@chromium.org

Bug: none
Change-Id: I6805f4e42a0ae312f8145be03a7a8973649648ec
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2898786
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>
2021-05-15 06:36:50 +00:00
devtools-ci-autoroll-builder 5469605925 Update DevTools DEPS.
Rolling build: https://chromium.googlesource.com/chromium/src/build/+log/af3c3b3..2123428

Rolling buildtools: https://chromium.googlesource.com/chromium/src/buildtools/+log/b0912f9..20b1d0f

Rolling third_party/depot_tools: https://chromium.googlesource.com/chromium/tools/depot_tools/+log/5ab2f33..cd15203

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

Bug: none
Change-Id: Idb7b30d03813ca74bcc4ce092768f6befb2639d3
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2898780
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>
2021-05-15 03:38:10 +00:00
Tim van der Lippe b3075270b0 Fix coverage collection on CQ
Writing the files to disk can take a lot longer than expected on CQ.
Therefore, set the timeout to infinite to make sure it can resolve.

Also, make sure to clean up any previous coverage collection, to
prevent any stale data from showing up.

Change-Id: Ibdb8ff11fc08a5ffecb5f71060cb6c1fe582f1fd
Bug: 1206705
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2897280
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>
2021-05-14 17:52:50 +00:00
Vidal Guillermo Diazleal Ortega d7b8fdb36d Improving string description on an ambiguos term.
Improving description on the term "request" which could be mistranslated
as answer.

Bug: 1208218
Change-Id: Ieb1fb4116dc8d96a587d16a6e0b65000869513c9
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2889529
Commit-Queue: Vidal Diazleal <vidorteg@microsoft.com>
Reviewed-by: Simon Zünd <szuend@chromium.org>
2021-05-14 17:13:10 +00:00
Tim van der Lippe ede1b93b2c Add @types/rimraf
So that we can use rimraf in TypeScript files.

R=jacktfranklin@chromium.org

Bug: 1206705
Change-Id: I48abb54727a628e5046f6a8033c88a04828ace05
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2897295
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>
Reviewed-by: Paul Lewis <aerotwist@chromium.org>
2021-05-14 16:51:40 +00:00
Tim van der Lippe 9a696c4e72 Import protocol types in core/
R=jacktfranklin@chromium.org

Bug: 1208357
Change-Id: I7534ced5c2782ade93da32818e864f2a3327ecff
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2897294
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>
2021-05-14 16:48:30 +00:00
Sigurd Schneider a38d50d7d2 Ensure we're not hitting quirks mode in some e2e tests
Bug: chromium:1072335
Change-Id: I234d2ed0b23c8f55c2c6972a5751f0efa632f33b
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2897289
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
Commit-Queue: Sigurd Schneider <sigurds@chromium.org>
2021-05-14 16:13:50 +00:00
Tim van der Lippe eb876c6b1e Generate const enums in protocol.d.ts
Some files currently rely on the Protocol to be available on the
global scope. However, the Protocol definitions are defined in
a .d.ts file, which isn't available on runtime. Therefore,
attempting to import Protocol with non-type imports would retain
the imports in the `.js` files and break on runtime.

Since the only usages of the Protocol on runtime are the enums,
we can make them const, such that they get inlined as intended.
Then, `import * as` will work again, as the enums are inlined and
the import is removed from the `.js` file.

DISABLE_THIRD_PARTY_CHECK=Protocol update
R=jacktfranklin@chromium.org

Bug: 1208357
Change-Id: I749e57c9f51596866b61cab686c59f00bc8a8eb4
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2897277
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-05-14 15:51:00 +00:00
Jack Franklin 0e65f20f47 [Dark Mode] migrate tabbedPane.css
Bug: chromium:1152736
Change-Id: Ic55b705778d49daa3cad9925adb85dd95833c172
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2897290
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
Auto-Submit: Jack Franklin <jacktfranklin@chromium.org>
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
2021-05-14 15:18:20 +00:00
Brandon Goddard abec9212cb Network: Fix flickering document previews.
This CL fixes a bug that caused flickering when previewing documents
in the Preview pane in the network tab when clicking documents with the
preview pane already open. This bug was caused by 2 listeners
firing the code to re-render the preview pane in quick succession: one
from selecting a new grid node, and another from activating the
sidepane.

This CL updates the showRequestPane logic in the network panel to early
return if the request sidepane is already open, and we are not specifying
the sidepane tab when activating.

Bug: 1161690
Change-Id: Iabd86029c4c7fb636e2c93600534e0c272ee08ce
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2891083
Reviewed-by: Benedikt Meurer <bmeurer@chromium.org>
Reviewed-by: Patrick Brosset <patrick.brosset@microsoft.com>
Commit-Queue: Brandon Goddard <brgoddar@microsoft.com>
2021-05-14 15:12:20 +00:00
Simon Zünd 430c61d8f2 [l10n] Implement remote locales
This CL changes how locale data is fetch to the same approach that
Lighthouse is using. The difference is, DevTools bundles more than
the en-US locale upfront, so we need to specify that explicitly.

Long term, we should have one central place where all the DevTools
locales are configured. That is, which ones are available, which
ones are shipped and which ones are fetched remotely. For now,
its configured in a few places.

R=tvanderlippe@chromium.org

Bug: chromium:1163928
Change-Id: Iba164eac05bab14a63301c7453f09021ee06991a
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2882771
Commit-Queue: Simon Zünd <szuend@chromium.org>
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
2021-05-14 14:52:50 +00:00
Sigurd Schneider d460aae69d Simplify CORS e2e test logic
Bug: chromium:1141824
Change-Id: I68a1720874cf660adfad11683248486a4b7b3932
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2897281
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
Commit-Queue: Sigurd Schneider <sigurds@chromium.org>
2021-05-14 14:34:40 +00:00
Andres Olivares 92480f95c1 Add invoke to Page.setLifecycleEventsEnabled in ResourceTreeModel
In order to dispatch lifecycle events from the backend the
`lifecycle_events_enabled_` flag in the page agent needs to be set to
true. This is done via the Page.setLifecycleEventsEnabled CDP method.
The ResourceTreeModel currently doesn't have an invoke to the CDP
method and so we add a new method to the class which includes it.

Bug: 1208453
Change-Id: I32ecc3ec680dbfedda2f9381a47ef0725a209ff2
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2891444
Reviewed-by: Paul Lewis <aerotwist@chromium.org>
Commit-Queue: Andres Olivares <andoli@chromium.org>
2021-05-14 13:51:30 +00:00
Tim van der Lippe 27ff2f24ca Add DCHECK function to Platform
In the Chromium backend engineers can use `DCHECK()` to ensure
certain invariants are held, but only execute these assertions
in a debug build. [1] Release builds do not ship with DCHECKS enabled.

In a similar fashion, introduce a build-time generated function
`DHCECK` that is only generated when `devtools_dcheck_always_on`
is set as GN arg. By default, `is_debug` builds enable
`devtools_dcheck_always_on`. However, in a release build, you can
explicitly set `devtools_dcheck_always_on` to `true` to achieve
the same effect.

When the GN arg is set, the build generates the `dcheck.js` file
with an implementation that checks the condition and fails if
it is not met. When the arg is not set, the function implementation
remains empty and becomes a noop.

To make sure that these functions calls are removed in a release
build (rather than being a noop), the terser configuration is
updated to treat these functions as pure. As such, terser will
remove any calls if the function implementation is empty. In a
release build that explicitly turns out the dchecks, terser
will not remove the function calls.

Lastly, to make sure that all code related to the dcheck is removed,
the condition needs to be a lambda. If we were to make it a raw
boolean, then `terser` would not be able to determine whether it
can remove the condition itself and would leave that behind. In other
words, the `DCHECK` call would still leave some artifacts behind,
namely the condition computation itself. By making it a lambda,
terser can deduce that the lambda creation has no side-effect and
remove the lambda if the `DHCECK` call is removed.

R=aerotwist@chromium.org

[1]: https://chromium.googlesource.com/chromium/src/+/HEAD/styleguide/c++/c++.md#check_dcheck_and-notreached

Bug: none
Change-Id: Ic396f102141d9eb67c8690bd2a601b56061b9d8c
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2894390
Auto-Submit: Tim van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Paul Lewis <aerotwist@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
2021-05-14 13:47:30 +00:00
Jack Franklin 082afdbe1f Remove components_import eslint rule
Now we've completed the move to LitHtml v2 and the static tags, we can
remove this rule as we don't need to rely on side-effect imports
anymore.

Bug: 1153077
Change-Id: I7967d6b1995fc77460ec7815d7ab08243553e567
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2897283
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
2021-05-14 13:41:10 +00:00
Jack Franklin e9f62582dd Lint for consistent component tag names in component definitions
This CL lints that for a given component that all the references to
its tag name are the same.

```
class Foo extends HTMLElement {
  // Check that this name
  static litTagName = LitHtml.literal\`devtools-foo\`
}

// And this name
ComponentHelpers.CustomElements.defineComponent('devtools-foo', Foo);

declare global {
  interface HTMLElementTagNameMap {
    // And this one are the same
    'devtools-foo': Foo
  }
}
```

Bug: 1153077
Change-Id: I29694449cb37950d1a5ff5391779e16e462926e2
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2897279
Reviewed-by: Paul Lewis <aerotwist@chromium.org>
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
2021-05-14 12:57:20 +00:00
devtools-ci-autoroll-builder 58605b38fa Update DevTools DEPS.
Rolling build: https://chromium.googlesource.com/chromium/src/build/+log/00d8280..af3c3b3

Rolling third_party/depot_tools: https://chromium.googlesource.com/chromium/tools/depot_tools/+log/47a4b0b..5ab2f33

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

Bug: none
Change-Id: I1329a2e787b9784d477f6e7c1e9fc4d790b4f8ed
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2897258
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>
2021-05-14 12:40:39 +00:00
Tim van der Lippe 2f18159dd3 Fix error output of ts_library
With Python3, the return value of `process.communicate()` is a byte array.
We need to explicitly set `universal_newlines=True` to make sure
that the newlines correctly show up in the console output.

R=jacktfranklin@chromium.org

Fixed: 1208955
Change-Id: I8b162e3daf8b86bb0892c6b260a4ea2861b8337c
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2897278
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>
2021-05-14 11:15:09 +00:00
Sigurd Schneider 3fec5ca7c7 Update DevTools Chromium DEPS.
TBR=machenbach@chromium.org,liviurau@chromium.org

DISABLE_THIRD_PARTY_CHECK=unblock roll

Bug: chromium:1209155
Change-Id: I9f029652effc0a8cd8cef8bb67d4d104f099e518
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2897257
Reviewed-by: Sigurd Schneider <sigurds@chromium.org>
Reviewed-by: Devtools Autoroller <devtools-ci-autoroll-builder@chops-service-accounts.iam.gserviceaccount.com>
Commit-Queue: Sigurd Schneider <sigurds@chromium.org>
2021-05-14 11:07:59 +00:00
Tim van der Lippe b571d43df3 Add explanation to generate_protocol_resources
R=yangguo@chromium.org

Bug: none
Change-Id: I186e32ee0eb323e0f068eecbb3bce6c50a1f43c9
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2894391
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
Auto-Submit: Tim van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Yang Guo <yangguo@chromium.org>
2021-05-14 10:40:35 +00:00
Jack Franklin b620bb41c9 Enforce event names and allow event name references
This CL updates our ESLint rule for custom event names:

* It changes it from wanting kebab-case to allonewordnopunctuation
* It allows references to CustomEvent.eventName for times when it's
  useful to define the event name as a static.

The CL therefore updates a variety of events through the codebase that
were kebab-case. go/building-ui-devtools has also been updated.

Fixed: 1176758
Change-Id: Ifbe9851bc2f6bbe9347ec886cc8c026248cc5c43
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2894389
Reviewed-by: Paul Lewis <aerotwist@chromium.org>
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
2021-05-14 10:39:29 +00:00
Simon Zünd 673b759e81 [l10n] DevToolsLocale should take supported locales into account
This CL fixes a bug, where DevToolsLocale didn't actually honor the
supported locales.

R=tvanderlippe@chromium.org

Bug: chromium:1163928
Change-Id: I5dfd087445aae74ef011830a1cbeeb7f81c2b758
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2891752
Auto-Submit: Simon Zünd <szuend@chromium.org>
Commit-Queue: Simon Zünd <szuend@chromium.org>
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
2021-05-14 06:32:59 +00:00
devtools-ci-autoroll-builder d142124958 Update DevTools DEPS.
Rolling build: https://chromium.googlesource.com/chromium/src/build/+log/fee0498..00d8280

Rolling buildtools: https://chromium.googlesource.com/chromium/src/buildtools/+log/9b15350..b0912f9

Rolling third_party/depot_tools: https://chromium.googlesource.com/chromium/tools/depot_tools/+log/f5c054c..47a4b0b

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

Bug: none
Change-Id: Id88c55a60ca0ef6ee80c764408366148a83409b1
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2895948
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>
2021-05-14 03:30:29 +00:00
Tim van der Lippe 2a1eac282b Remove leftover from protocol-proxy-api global removal
This should have been included in https://crrev.com/c/2891760

R=jacktfranklin@chromium.org

Bug: 1208357
Change-Id: I27c9bbadad03a20f62bb2fdd97f844dc4852096f
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2894392
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>
2021-05-13 16:22:04 +00:00
Jack Franklin 538c07969d Improve flakey breadcrumbs e2e test
Bug: 1205336
Change-Id: I82dc5498adc2a88109d47c340cdd5f2500873838
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2894393
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
Auto-Submit: Jack Franklin <jacktfranklin@chromium.org>
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
2021-05-13 16:20:59 +00:00
Kriti Sapra 7491545d2b Updated FramDetailsView to ban usage of devtools component tag names
Bug: 1153077
Change-Id: Id8524fdd4e3f637c07b96e60faa5d1e36fb9243b
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2894387
Commit-Queue: Kriti Sapra <kritisapra@google.com>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
2021-05-13 13:19:19 +00:00
devtools-ci-autoroll-builder bc05720187 Update DevTools DEPS.
Rolling build: https://chromium.googlesource.com/chromium/src/build/+log/80d2921..fee0498

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

Bug: none
Change-Id: Ia2fdce76ed05b4584bc732c4e9953a110920e76d
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2893691
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>
2021-05-13 12:36:49 +00:00
Kriti Sapra 4b963c1b13 Updated Linkifier and ExpandableList to use litTagName
Bug: 1153077
Change-Id: I1d5545c7ce52c2beb543632757a6ddf001c11365
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2891848
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
Commit-Queue: Kriti Sapra <kritisapra@google.com>
2021-05-13 12:03:09 +00:00
Jack Franklin 049592e093 [Dark Mode] migrate inspectorCommon.css
Have tested manually in both modes by selecting various parts of the
DevTools and checking they look OK. It's hard to verify for sure that
every change hasn't had any negative impacts, but I will keep an eye
for regressions!

Bug: chromium:1152736
Change-Id: I421f36190b2501b475f3bd54aec226dbeadb27ee
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2891844
Reviewed-by: Paul Lewis <aerotwist@chromium.org>
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
2021-05-13 11:03:59 +00:00
Tim van der Lippe a6d4a91d6d Remove protocol-proxy-api from global typescript definitions
R=jacktfranklin@chromium.org

Bug: 1208357
Change-Id: I2476ab25f75f7f8f1994d8846c2d82ed9dffef54
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2891760
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
2021-05-13 10:53:18 +00:00
Tim van der Lippe 03ca595765 Import protocol proxy api directly
R=jacktfranklin@chromium.org

Bug: 1208357
Change-Id: I1c7f6e6320fb28f7ac8beffede5bf507562886d5
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2891759
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
2021-05-13 10:24:58 +00:00
Tim van der Lippe 5bf64b9856 Make the Protocol definitions importable
Currently, all Protocol type definitions live on the global scope.
Additionally, the protocol files are included in all ts_library
targets. However, we don't want the protocol definitions to be
available in, for example, reusable UI components.

Therefore, we should move to a system where all files that want
to refer to the protocol types should import them instead.
However, doing so in 1 large CL will be problematic, which is
why it should be both globally available and importable as an
interim step.

To do so, we augment the existing protocol definitions to export
them as namespace and regular export. Then, we introduce a separate
file that imports the protocol types and augments the global scope
with the definitions. Now, protocol is both importable and remains
available on the global scope.

The reason that we need a separate file is that TypeScript disallows
you to augment the global scope in a file that also exports types.
Therefore, the global scope augmentation happens in protocol-globals.d.ts,
which will be removed once all Protocol type usages are imported.

To verify that this approach works, ProtocolClient imports the
required types, while SDK only imports it in AccessibilityModel.
All other files in SDK still refer to the global type.
In follow-up CLs, all pre-existing usages of Protocol will use
the import style.

DISABLE_THIRD_PARTY_CHECK=Updating protocol type format
R=szuend@chromium.org,jacktfranklin@chromium.org

Bug: 1208357
Change-Id: I1d75949b9cd3e37989c6cddf79ac849f5664a1e3
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2891756
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
2021-05-13 09:48:18 +00:00
Kriti Sapra dfb4725d9d Migrated LinearMemoryInspector to no longer use literal devtools component tag names
Bug: 1153077
Change-Id: Ie625d7125826491a6a570627044940687daacdef
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2891761
Commit-Queue: Kriti Sapra <kritisapra@google.com>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
2021-05-13 09:30:08 +00:00
Paul Lewis 05cf8ebb14 Add build scripts to package.json
I am rather fond of Cmd/Ctrl+Shift+B in VSCode to build my current
project. However, that presupposes that there is a script in the
package.json named "build" (or some variant, e.g., "build-release").
This CL adds those scripts to the package.json file.

R=jacktfranklin@chromium.org

Bug: None
Change-Id: I8e685d098b1bf3c9b6b8b1c85d1a97d693a344f7
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2891843
Commit-Queue: Paul Lewis <aerotwist@chromium.org>
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
Auto-Submit: Paul Lewis <aerotwist@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
2021-05-13 08:59:49 +00:00
Jack Franklin dc7c24deae Lint for ${Foo.litTagName} in LitHtml templates
This CL lands the rule; I'll enable in a follow-up.

Bug: 1153077
Change-Id: I28a10fb99bbe7c8c2da7801e4e132653b28b0fc1
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2891842
Auto-Submit: Jack Franklin <jacktfranklin@chromium.org>
Reviewed-by: Paul Lewis <aerotwist@chromium.org>
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
2021-05-13 08:35:28 +00:00
devtools-ci-autoroll-builder 49793c2416 Update DevTools DEPS.
Rolling build: https://chromium.googlesource.com/chromium/src/build/+log/129bd6c..80d2921

Rolling buildtools: https://chromium.googlesource.com/chromium/src/buildtools/+log/e72cd45..9b15350

Rolling third_party/depot_tools: https://chromium.googlesource.com/chromium/tools/depot_tools/+log/b47c95a..f5c054c

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

Bug: none
Change-Id: I61ec4ef534d068cdae324c494f42dad5425bc52b
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2893687
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>
2021-05-13 03:34:38 +00:00
chait pinnamaneni d80a19e6b4 High contrast fix in Settings, devices user agent text input
Added CSS to update border color in high contrast mode on focus.
https://i.imgur.com/Py1ZizA.gif

Bug:1200980
Change-Id: I3f2d197bef8b9128fe00017938d40a2a0e91469b
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2885978
Reviewed-by: Mathias Bynens <mathias@chromium.org>
Commit-Queue: Chait Pinnamaneni <cpinnamaneni@microsoft.com>
2021-05-12 17:14:28 +00:00
Kriti Sapra 14b6512508 Updated usage of litTagName for Icon in MarkdownImage.ts
Bug: 1153077
Change-Id: If632306ccaa170f329c552ca750d8e9926b33cff
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2891755
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
Commit-Queue: Kriti Sapra <kritisapra@google.com>
2021-05-12 15:12:27 +00:00