Commit Graph
8824 Commits
Author SHA1 Message Date
Jacky Hu 977cc58cb5 Display non-Color CSSVariable value in style autocompletions
Previously, ONLY "Color CSSVariable value" will display in style
autocompletions.

This CL will also display "non-Color CSSVariable" value in
autocompletions, without change list order.


How to test:
1. open empty page
2. open devtools
3. add new style to check style autocompletions work.

Before v.s After screenshots:
- https://imgur.com/a/RSxrvnh

After, screen video record:
- https://youtu.be/4seqbcXPz4I


Note:
  If "non-Color CSSVariable value" without "max-width" limitation, will
take too much space. The UX are bad in some case.

screenshot: https://imgur.com/a/EbVgVbb


Bug: 1285091
Change-Id: I01aa6bea8e7802a03c6922e9b2506e44d916aa1d
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3603006
Commit-Queue: Changhao Han <changhaohan@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
Reviewed-by: Changhao Han <changhaohan@chromium.org>
2022-05-13 16:34:44 +00:00
Dave Tapuska 16bfd6147a Add handling of isOutermostMainFrame.
https://chromium-review.googlesource.com/c/chromium/src/+/3625434
added support for isOutermostMainFrame to discern the
outermost main frame from embedded main frames.

BUG=chromium:1314858

Change-Id: I4aa181b2a863050d2153d29108b5d7b826d9053b
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3627073
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
Commit-Queue: Dave Tapuska <dtapuska@chromium.org>
2022-05-13 14:31:14 +00:00
Jack Franklin 9de44fcb72 Remove nesting above Animations track
This CL updates the animations track so that it's no longer nested, and
is a top level track as per all the others.

Bug: 1324090
Change-Id: Id9544ec5520c3589ed87ef38ea638d8f5f097925
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3645455
Reviewed-by: Andres Olivares <andoli@chromium.org>
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
Commit-Queue: Andres Olivares <andoli@chromium.org>
Auto-Submit: Jack Franklin <jacktfranklin@chromium.org>
2022-05-13 14:16:44 +00:00
Ergün Erdoğmuş c71550c756 Add UMA for replay speed in Recorder panel
Bug: 1306756
Change-Id: I24753e4dad52aa1698c3a7a391edc246dfbd7e12
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3624020
Reviewed-by: Alex Rudenko <alexrudenko@chromium.org>
Reviewed-by: Simon Zünd <szuend@chromium.org>
Commit-Queue: Ergün Erdoğmuş <ergunsh@chromium.org>
2022-05-13 11:45:23 +00:00
Benedikt Meurer cee5205ae9 [autocomplete] Use consistent property sorting order.
With https://crrev.com/c/3093151 we made it such that whenever we show
object properties, we'd always show the own properties first, followed
by the inherited properties. Even before that, the object display would
already put more emphasis on enumerable properties. So generally the
order within DevTools front-end is:

(1) Own enumerable properties
(2) Own non-enumerable properties
(3) Inherited enumerable properties
(4) Inherited non-enumerable properties

The JavaScript autocompletion for object properties wasn't following
this pattern, but was only sorting own before inherited properties. With
this change, the autocompletion will now favor enumerable properties
over non-enumerable properties, when computing the fuzzy score.

Before: https://imgur.com/Y2JmJwZ.png
After: https://imgur.com/qGEMa8L.png
Fixed: 1299241
Change-Id: Ibd42da9cf6d2947803d2cc0eca1f67f2f3ada55d
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3645453
Reviewed-by: Mathias Bynens <mathias@chromium.org>
Commit-Queue: Mathias Bynens <mathias@chromium.org>
Commit-Queue: Benedikt Meurer <bmeurer@chromium.org>
Auto-Submit: Benedikt Meurer <bmeurer@chromium.org>
2022-05-13 11:32:44 +00:00
Wolfgang Beyer 5b433b0844 Add network request context menu entry for creating header override
This CL adds the ability to create header overrides from the list of
network requests in the network panel via the context menu.

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

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

Bug: 1297533
Change-Id: I8b31fe41d922e1662da68320fcc188c596c0a058
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3542245
Reviewed-by: Danil Somsikov <dsv@chromium.org>
Commit-Queue: Wolfgang Beyer <wolfi@chromium.org>
2022-05-13 08:27:54 +00:00
Simon Zünd c61d52fa5c [uma] Add the 'StackFrameRestarted' action
Backend CL: https://crrev.com/c/3641766

R=bmeurer@chromium.org

Bug: 1303521
Change-Id: I2d7a01df1ddc3695a5e9a83b74ecf5b93d5b06c0
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3643696
Auto-Submit: Simon Zünd <szuend@chromium.org>
Reviewed-by: Benedikt Meurer <bmeurer@chromium.org>
Commit-Queue: Simon Zünd <szuend@chromium.org>
2022-05-12 19:10:03 +00:00
Andrew Paseltiner ffc9456230 Add description for invalid attribution reporting header issue
The description here is vague, but because the issue includes both a reference to the original request and the invalid header value, it
should still be more useful to developers than the situation before this
CL, which was for invalid headers to be silently ignored.

We will add additional metadata, such as the name of the invalid header
and the reason why it was invalid, in future changes.

Screenshot of reported issue available in crbug.com/1302318#c4.

Bug: 1302318
Change-Id: Ie7f3b5e34b25ff56d832bf553ffcac674b5a57ba
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3644629
Reviewed-by: Simon Zünd <szuend@chromium.org>
Commit-Queue: Andrew Paseltiner <apaseltiner@chromium.org>
2022-05-12 16:39:03 +00:00
Benedikt Meurer 7a4563b400 Correct autocompletion for valid identifiers.
This regressed with https://crrev.com/c/3310606 where `SPAN_IDENT` was
introduced as a filter for properties to show in the autocompletion box
when using the dot MemberExpression syntax. The `SPAN_IDENT` regex looks
wrong and unnecessarily complicated.

This change uses the ID_Start and ID_Continue unicode property escapes
instead, so we get the right match here.

Fixed: 1324466
Bug: 1275553
Change-Id: I6f0d57771a7370ca761df8a62d488586992e9e3a
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3644947
Auto-Submit: Benedikt Meurer <bmeurer@chromium.org>
Commit-Queue: Benedikt Meurer <bmeurer@chromium.org>
Commit-Queue: Mathias Bynens <mathias@chromium.org>
Reviewed-by: Mathias Bynens <mathias@chromium.org>
2022-05-12 14:46:23 +00:00
Saba Khukhunashvili 8ebbcde43f Fix the + sign to add a new CSS rule overlaps with text
This CL changes the height of the new rule toolbar to avoid it from overlapping last CSS rule (crbug/1225603) or CSS Rule Copy button (crbug/1297825).

Before and After changes:
Overlapping the Copy button - https://imgur.com/a/bebtU8S
Overlapping the CSS rule - https://imgur.com/a/3N59D18

Bug: 1225603
Change-Id: I0070dad33d1db29a1aca5a6ae796bcd4ff3d9100
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3643698
Reviewed-by: Alex Rudenko <alexrudenko@chromium.org>
Commit-Queue: Saba Khukhunashvili <khukhunashvili@google.com>
2022-05-12 11:00:03 +00:00
Simon Zünd 88319e1b40 [l10n] De-duplicate deprecation message UI strings
Locked terms are implemented as placeholders that are always replaced
with the same value. That means that many of the UI strings in
DeprecationIssue.ts are currently duplicates.

The TC does not like importing duplicated strings, so we de-duplicate
them in this CL.

R=kimanh@chromium.org

Bug: None
Change-Id: I79997be64c57107f34622b808b9a9adff34123ec
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3642144
Commit-Queue: Simon Zünd <szuend@chromium.org>
Auto-Submit: Simon Zünd <szuend@chromium.org>
Reviewed-by: Kim-Anh Tran <kimanh@chromium.org>
2022-05-12 10:27:43 +00:00
Ari Chivukula f61305e82b [deprecations] cleanup by rolling deps
Some constants were removed in chromium but not devtools. Let's clean
that up before the M103 branch cut.

DISABLE_THIRD_PARTY_CHECK=AttributionReportingIssue and DeprecationIssue compile fixes

Bug: 1264960
Change-Id: I9e70771f9d6d51860aa7410dee8f18598bee2375
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3642436
Reviewed-by: Danil Somsikov <dsv@chromium.org>
Auto-Submit: Ari Chivukula <arichiv@chromium.org>
Commit-Queue: Danil Somsikov <dsv@chromium.org>
2022-05-12 08:40:22 +00:00
Simon Zünd 270c221862 [deps] Roll Chromium dependencies
R=kimanh@chromium.org

Bug: None
Change-Id: If9bfd8662ff3492cf2d40abadadd59e6b48ba37f
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3641406
Auto-Submit: Simon Zünd <szuend@chromium.org>
Commit-Queue: Kim-Anh Tran <kimanh@chromium.org>
Commit-Queue: Simon Zünd <szuend@chromium.org>
Reviewed-by: Kim-Anh Tran <kimanh@chromium.org>
2022-05-12 07:55:23 +00:00
Adam Raine 70d4a90431 Enable FR Lighthouse panel by default
There really isn't any reason to keep the old panel after this.
Legacy navigation mode will still be accessible through it's option
in the Lighthouse settings. This CL is just the quickest way to enable
the new panel by default.

Bug: 1291284
Change-Id: I332753718e88e3c94ba0bdf493c108846f7ff8b5
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3636197
Commit-Queue: Adam Raine <asraine@chromium.org>
Reviewed-by: Mathias Bynens <mathias@chromium.org>
Reviewed-by: Paul Irish <paulirish@chromium.org>
2022-05-12 07:05:07 +00:00
Adam Raine 50fb83d1ec [Lighthouse] Roll Lighthouse 9.6.1
Bug: 772558
Change-Id: I75b6b6b55bf0fdff09c6c6bfd5d4d2ee82afdf10
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3642441
Reviewed-by: Connor Clark <cjamcl@chromium.org>
Commit-Queue: Adam Raine <asraine@chromium.org>
2022-05-12 07:03:02 +00:00
Andrew Paseltiner 78b18bbe53 Remove obsolete Attribution Reporting issue MD files
Change-Id: Id54a7fc03b9cc1691ea1deacb9f32bc77ff8701f
Bug: none
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3641939
Auto-Submit: Andrew Paseltiner <apaseltiner@chromium.org>
Commit-Queue: Simon Zünd <szuend@chromium.org>
Reviewed-by: Simon Zünd <szuend@chromium.org>
2022-05-12 07:01:59 +00:00
Kateryna Prokopenko 6fe58b6ee5 [DOMStorage] Generate protocol resources in the frontend
Fix AttributionReporting and Deprecation issues handling
wrt protocol changes made

DISABLE_THIRD_PARTY_CHECK=<Protocol update>

Bug: 1313434
Change-Id: I7cddbbee4409cbe52181cdd1766013fa001d07c1
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3641418
Commit-Queue: Kateryna Prokopenko <kprokopenko@chromium.org>
Reviewed-by: Danil Somsikov <dsv@chromium.org>
2022-05-11 15:44:02 +00:00
Kateryna Prokopenko accc9959c9 Type path and URL variables in part of panels/ to Branded Types
Bug: 1299786
Change-Id: Ifddd6b24407ff35c00287e28b971a84962065cf5
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3629864
Commit-Queue: Kateryna Prokopenko <kprokopenko@chromium.org>
Reviewed-by: Eric Leese <leese@chromium.org>
Reviewed-by: Simon Zünd <szuend@chromium.org>
2022-05-11 14:26:46 +00:00
Kateryna Prokopenko 39b88f8c2e Type all path and URL variables in ui/components to Branded Types
Bug: 1299790
Change-Id: Ic9534e960c531b1027d8e4baa98364f16255fb63
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3629863
Reviewed-by: Simon Zünd <szuend@chromium.org>
Reviewed-by: Eric Leese <leese@chromium.org>
Commit-Queue: Kateryna Prokopenko <kprokopenko@chromium.org>
2022-05-11 14:13:22 +00:00
Saba Khukhunashvili b6327d5184 DevTools: Tidying up the styles context menu
This CL changes ordering and adds two section in styles context menu to match the UI that was proposed in crbug.com/1317596.

Screenshots
Before making the changes: https://screenshot.googleplex.com/5BfmGY5fsUnrRh8
After: https://screenshot.googleplex.com/3JQHVV2DF5xUtKV

Bug: 1317596
Change-Id: Id29bf33245087b247e5e7df88c33b158921f1048
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3629866
Reviewed-by: Alex Rudenko <alexrudenko@chromium.org>
Reviewed-by: Changhao Han <changhaohan@chromium.org>
Commit-Queue: Saba Khukhunashvili <khukhunashvili@google.com>
2022-05-11 12:31:02 +00:00
Jack Franklin 8920120bff Remove "Interactions=>Input" swimlane in Performance Panel
Fixed: 1324090
Change-Id: I7eed96829032e45addc9960abf3cb7d538ab12ce
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3635178
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
Reviewed-by: Andres Olivares <andoli@chromium.org>
2022-05-11 11:42:15 +00:00
Wolfgang Beyer 1016a48de6 Avoid separate function for InspectorFrontendHost.clearFileSystem
Move `clearFileSytem()` functionality into the `removeFileSystem()`
method. https://crrev.com/c/3620364 which initially added this method
caused console errors because `initializeInspectorFrontendHost()`
iterates over all properties.

Bug: 1313436
Change-Id: I3244f8c976daaf093e95d94e9ddb1074a1f08d5c
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3641411
Reviewed-by: Danil Somsikov <dsv@chromium.org>
Commit-Queue: Wolfgang Beyer <wolfi@chromium.org>
2022-05-11 10:38:28 +00:00
Kateryna Prokopenko fbb2247690 Type all path and URL variables in ui/legacy to Branded Types
Bug: 1299791
Change-Id: I3648366445238aeb30fa699556fa9d9a4ee937e6
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3629859
Reviewed-by: Eric Leese <leese@chromium.org>
Reviewed-by: Simon Zünd <szuend@chromium.org>
Commit-Queue: Kateryna Prokopenko <kprokopenko@chromium.org>
2022-05-11 09:39:12 +00:00
Jaroslav Sevcik 481104acc0 Expose and test scope tree parser
This patch exposes the scope parser for wider use so that we can
reuse it for resolving source map names in scope view.

The parser is currently only exercised by several newly introduced
unit tests.

Bug: chromium:1322115
Change-Id: If3ffe0e87cac7e0cb557f60e83d9266193adde73
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3624642
Reviewed-by: Kim-Anh Tran <kimanh@chromium.org>
Reviewed-by: Benedikt Meurer <bmeurer@chromium.org>
Commit-Queue: Jaroslav Sevcik <jarin@chromium.org>
2022-05-11 09:00:52 +00:00
Changhao Han 13849a4722 Add copy changes button conditionally
This CL adds the copy changes button back only when there are changes to
copy.

Bug: 1313707, 1268754
Change-Id: Ia9aa575f20efef14cc0948c7cf50df1c9703797c
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3638000
Reviewed-by: Johan Bay <jobay@chromium.org>
Commit-Queue: Changhao Han <changhaohan@chromium.org>
2022-05-11 08:36:32 +00:00
Jaroslav Sevcik 7cf7079ca2 Ignore closed-connection errors in uknown messages
Chromium newly sends an error after receiving a message for unknown
session ID. This patch ignores unmatched responses if their error
code corresponds to the unknown session ID error.

Bug: chromium:1324237
Change-Id: Ia58a5c39d398aa68a4802d6afdad205686c5969f
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3637997
Commit-Queue: Jaroslav Sevcik <jarin@chromium.org>
Reviewed-by: Benedikt Meurer <bmeurer@chromium.org>
2022-05-11 07:20:32 +00:00
Kent Tamura 9688552c89 Remove the deprecation message for SelectionAddRangeIntersect
The corresponding Chromium change:
    https://chromium-review.googlesource.com/3631043

Bug: 353069, 1320361
Change-Id: I03b6d7e8ebfd582ed4960d0f6070a8412d2d2e1e
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3636620
Reviewed-by: Simon Zünd <szuend@chromium.org>
Commit-Queue: Kent Tamura <tkent@chromium.org>
2022-05-11 01:24:31 +00:00
Adam Raine e3940b051c Center Lighthouse screenshot overlay
Bug: null
Change-Id: I5d27424698a7474a1ed18e17551f0f2703930d0d
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3639664
Reviewed-by: Paul Irish <paulirish@chromium.org>
Commit-Queue: Adam Raine <asraine@chromium.org>
Commit-Queue: Paul Irish <paulirish@chromium.org>
2022-05-11 00:02:01 +00:00
Paul Irish 9d89967044 [Lighthouse] Roll Lighthouse 9.6.0
Bug: 772558
Change-Id: I3264b8ea518edd305d4ef996a98b6384547807b5
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3639625
Auto-Submit: Paul Irish <paulirish@chromium.org>
Commit-Queue: Paul Irish <paulirish@chromium.org>
Reviewed-by: Adam Raine <asraine@chromium.org>
2022-05-10 21:08:41 +00:00
Wolfgang Beyer ecdb1c9323 Add sandboxed FileSystem to hosted mode (enables using local overrides)
Adding a sandboxed file system via `window.webkitRequestFileSystem` to
hosted mode enables using local overrides in hosted mode. Since e2e-
tests run in hosted mode, this enables adding e2e tests for local
overrides. This CL adds a first such e2e-test testing a simple response
header override.

Bug: 1313436
Change-Id: I6eb3e2ff9de336fa62648647fe48042009743d18
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3620364
Reviewed-by: Danil Somsikov <dsv@chromium.org>
Commit-Queue: Wolfgang Beyer <wolfi@chromium.org>
2022-05-10 15:03:01 +00:00
Kim-Anh Tran 236603bacb [BreakpointManager] Make removing breakpoints awaitable
This CL removes a race that may happen if PersistenceImpl tries to
move a breakpoint from one UISourceCode to another UISourceCode by
explicitly awaiting the calls to remove/setBreakpoint in
PersistenceImpl.

The race happens in the following case (affecting snippets):
* A snippet is created, and the user sets a breakpoint and reloads
  the page.
* PersistenceImpl.ts will try to move the breakpoint via
  1. removing the breakpoint from the old UISourceCode, and
  2. re-setting the breakpoint on the new UISourceCode.
* Simultaneously, the BreakpointManager tries to set a breakpoint
  on the new UISourceCode
* For snippets, the url stays the same after reloading, and in some
  cases the `setBreakpointByURL` of the PersistenceImpl and the
  BreakpointManager will be sent to v8 one after another, such that
  v8 returns a ServerError, as it has already set the breakpoint
  previously

This race causes the breakpoint to completely disappear, since
DevTools front-end removes the breakpoint if it sees a ServerError.

Drive-by: Added additional clean up step to tests.

Bug: 1280621
Change-Id: I7c9cd94c02d80661100cc5c5141e7d0dbb027f6d
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3629862
Reviewed-by: Simon Zünd <szuend@chromium.org>
Reviewed-by: Jaroslav Sevcik <jarin@chromium.org>
Commit-Queue: Kim-Anh Tran <kimanh@chromium.org>
2022-05-10 10:13:21 +00:00
Simon Zünd bbf29481e7 [l10n] Fix deprecation issue messages
The CL https://crrev.com/c/3613872 applied some weird formatting to
the UIStrings object of DeprecationIssue.ts. This then caused the
strings to be no longer collected by our l10n infra (the CL removes
them from en-US.json).

This CL fixes that by turning off clang-format in that file and let
the PRESUBMIT script re-populate en-US.json with the UIStrings from
that file.

We have not yet imported these strings into the TC, so we were
lucky in catching this early.

Bug: None
Change-Id: I05b9faca446e19ff57ef3eccd04e919234797f8d
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3635181
Commit-Queue: Simon Zünd <szuend@chromium.org>
Auto-Submit: Simon Zünd <szuend@chromium.org>
Commit-Queue: Kim-Anh Tran <kimanh@chromium.org>
Reviewed-by: Kim-Anh Tran <kimanh@chromium.org>
2022-05-10 09:24:51 +00:00
evliu 3e5dcaba5b Add deprecation warning description for textToSpeech_DisallowedByAutoplay
This CL adds a deprecation warning description for textToSpeech_DisallowedByAutoplay.

Bug:1320363
Change-Id: Ice5d9fdf91222eb6dbd41800dc114f43ac51de69
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3636777
Reviewed-by: Wolfgang Beyer <wolfi@chromium.org>
Commit-Queue: Evan Liu <evliu@google.com>
2022-05-10 08:01:53 +00:00
Alex Rudenko d1dc4e121a Roll Puppeteer to v14.0.0
Bug: none
Change-Id: I9ba5475355392baa3ab8dd0049fe2d82ec521142
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3634499
Commit-Queue: Ergün Erdoğmuş <ergunsh@chromium.org>
Reviewed-by: Ergün Erdoğmuş <ergunsh@chromium.org>
Auto-Submit: Alex Rudenko <alexrudenko@chromium.org>
2022-05-10 07:43:21 +00:00
Jack Franklin d7508305f9 Enable ESLint rule for LitHtml.LitTemplate
Bug: 1320753
Change-Id: If7e442d3250508c9be9199f1706e73847782197d
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3629865
Auto-Submit: Jack Franklin <jacktfranklin@chromium.org>
Reviewed-by: Andres Olivares <andoli@chromium.org>
Commit-Queue: Andres Olivares <andoli@chromium.org>
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
2022-05-09 15:06:40 +00:00
Jacky Hu 910a784260 Fix scroll Element into view feature in CSSOverview, Font-info
Previously, the button, scroll element into view is broken, and UI has
overlay.

This CL
1. Fix button scroll element into view feature.
2. Add style to improve UX (see screenshots).


How to test (or see video record):
1. Go to twitter.com
2. Resize Chromium window to smaller height
3. Open devtools and generate CSS Overview report
4. Go to "Font info" -> scroll to "line-weight" -> select "16px" item
5. Hover on first row and click the button on the right side
6. Twitter page should scroll to bottom, to target Element

Video record:
- https://www.youtube.com/watch?v=rhTwLUiMbss

Before vs After screenshot
- https://imgur.com/a/Z4s0KoB

Bug: 1321076
Change-Id: I9069fd789ef820411ec0ece3f6efb24d84247119
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3631623
Reviewed-by: Changhao Han <changhaohan@chromium.org>
Commit-Queue: Changhao Han <changhaohan@chromium.org>
2022-05-09 11:14:30 +00:00
Henrik Boström 63bb96761f Update DeprecationIssue.ts to cover several WebRTC deprecations.
Bug: chromium:1318864, chromium:1318860, chromium:1318861, chromium:1318863, chromium:1318876, chromium:1318875, chromium:1318873, chromium:1318874, chromium:1320358, chromium:1320360
Change-Id: Ia17e6b6e7a7e39bc2c5cae5cf94fcef1bc8937c6
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3607833
Reviewed-by: Wolfgang Beyer <wolfi@chromium.org>
Commit-Queue: Henrik Boström <hbos@chromium.org>
2022-05-09 10:09:20 +00:00
Alex Cooper 1fcf6cf344 Add deprecation description for xrSupportsSession
Fixed:1320365
Change-Id: Ibba097a4b0465f7a98d7f808e847a746ac5a74ce
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3631599
Reviewed-by: Piotr Bialecki <bialpio@chromium.org>
Reviewed-by: Wolfgang Beyer <wolfi@chromium.org>
Commit-Queue: Alexander Cooper <alcooper@chromium.org>
2022-05-06 18:12:30 +00:00
Nina Satragno nsatragno@chromium.org 519350816e [WebAuthn] Add large blob toggle
Add a toggle that enables / disables large blob support for WebAuthn
virtual authenticators. This feature has been long supported by the
devtools protocol but we hadn't surfaced it on the front-end.

Large blobs are only available for resident-key enabled authenticators,
so we disable the checkbox if that option is not selected. Also, large
blobs require CTAP 2.1.

Fixed: 1321803
Change-Id: Ic1654276ba5a39ddd8943cd8689978117546e70e
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3625237
Reviewed-by: Simon Zünd <szuend@chromium.org>
Commit-Queue: Nina Satragno <nsatragno@chromium.org>
Auto-Submit: Nina Satragno <nsatragno@chromium.org>
2022-05-06 14:35:08 +00:00
Wolfgang Beyer 2390df881c Fix another flaky e2e-test in network_test.ts
Bug: 1093287
Change-Id: I99ce4fe42839a77f6b56a8b2fea7a28df0ceb713
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3629858
Reviewed-by: Danil Somsikov <dsv@chromium.org>
Commit-Queue: Wolfgang Beyer <wolfi@chromium.org>
2022-05-06 11:43:38 +00:00
Kateryna Prokopenko 6fa122c18f Type all path and URL variables in panels/timeline to Branded Types
Bug: 1299788
Change-Id: I7ec964e36b7a50e009d3062fb959dc457fceb339
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3627335
Reviewed-by: Eric Leese <leese@chromium.org>
Reviewed-by: Simon Zünd <szuend@chromium.org>
Commit-Queue: Kateryna Prokopenko <kprokopenko@chromium.org>
2022-05-06 11:14:18 +00:00
Jacky Hu f20648d7e2 Disable Lighthouse Generate report feature when Javascript is disabled
Previously, user able to generate Lighthouse report when JavaScript is
disabled, UX is bad.

This CL, disable "generate report" feature when Javascript is disabled.



How to test:
1. Go to "www.google.com"
2. Open devtools -> Lighthouse tab
3. Open "Command Menu" and disable JavaScript
4. Check Lighthouse UI, the "generate report" button should be disabled.
   The warning message should show up.
5. Open "Command Menu" and enable JavaScript
6. "generate report" button should be enabled

Screenshots
- https://imgur.com/a/VYPLal1

Video record:
- https://youtu.be/oSMjjMfT4_k

Bug: 1319400
Change-Id: Ibfbae1961bf86c0beedb5d77ceff94152c6e2df3
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3622736
Reviewed-by: Paul Irish <paulirish@chromium.org>
Reviewed-by: Adam Raine <asraine@chromium.org>
Reviewed-by: Alex Rudenko <alexrudenko@chromium.org>
Commit-Queue: Alex Rudenko <alexrudenko@chromium.org>
2022-05-05 16:56:42 +00:00
Kateryna Prokopenko 1e107eb37e Type all path and URL variables in panels/sources to BrandedTypes
Bug: 1299787
Change-Id: Ie697b75b42bbb75ea95a0c012e29aed1c33796a4
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3627333
Reviewed-by: Eric Leese <leese@chromium.org>
Commit-Queue: Kateryna Prokopenko <kprokopenko@chromium.org>
2022-05-05 11:35:41 +00:00
Ergün Erdoğmuş 5f638bacef Add eslint rule for binding scheduleRender render argument
Bug: NO_BUG
Change-Id: I64d643a65d0cf4bc3546ed4f75adde7a53c83c4e
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3624641
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
Commit-Queue: Ergün Erdoğmuş <ergunsh@chromium.org>
2022-05-05 11:06:21 +00:00
Wolfgang Beyer 8d9bfd8c98 Prevent visual duplication when assigning file name with special chars
This fixes the character encoding of the UrlString returned by
`urlsFromParentUrlAndName()`, which is called by `WorkspaceImpl`'s
`renameUISourceCode()`, to match the encoding of filenames as they are
received via `fileSystemFilesChangedAddedRemoved()` from the backend.

Without a matching encoding, the UISourceCode will not be found when
looking it up by URL, which in turn leads to the creation of an
additional duplicate UISourceCode.

Fixed: 1320717
Change-Id: I39a6bda366da3ee681a77f28bb1ad3bcccc86fa5
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3613869
Reviewed-by: Simon Zünd <szuend@chromium.org>
Reviewed-by: Eric Leese <leese@chromium.org>
Commit-Queue: Wolfgang Beyer <wolfi@chromium.org>
2022-05-05 10:08:31 +00:00
Paul Irish d29b1678f6 Performance: Remove FPS track
The FPS concept is dated and the calculation is flawed

Bug: 1322604
Change-Id: Ie6d14553af78fc0887fefb948496a225aadf3e83
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3627074
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
Auto-Submit: Paul Irish <paulirish@chromium.org>
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
2022-05-05 07:15:31 +00:00
Jack Franklin 8b5339f389 Remove deepActiveElement from prototype
Now the upstream layout tests have been updated to use the new platform
utility, we can remove the prototype extension.

Bug: 1050549
Change-Id: I1eecbd478b4dc5daf156cf732307a921c7d526e3
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3627331
Reviewed-by: Simon Zünd <szuend@chromium.org>
Commit-Queue: Simon Zünd <szuend@chromium.org>
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
Auto-Submit: Jack Franklin <jacktfranklin@chromium.org>
2022-05-04 11:59:20 +00:00
Jaroslav Sevcik 04a58f2837 SourceMapManager: resolve relative urls with frame's URL
Instead of trying to set inspectedURL for child targets (which might
confuse extension server), we just lookup the containing frame's url
locally in the source map manager whenever we need it for resolving
relative paths.

This might flush race problems (because inspectedURL is set
asynchronously after receiving getResourceTree response), but such
problems were there before. They are not easy to fix without
redesigning how we index source maps in source map manager's
internal data structures (and they are even harder to repro
and test).

Bug: chromium:1305475
Change-Id: I9e9b67ca1353b4707542f3931db0aef821c00f41
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3613885
Reviewed-by: Benedikt Meurer <bmeurer@chromium.org>
Commit-Queue: Jaroslav Sevcik <jarin@chromium.org>
2022-05-04 06:44:09 +00:00
Xiaocheng Hu 0d4be18861 Add description for Event.path deprecation message
Fixed: 1320338
Change-Id: I3b9d24abb4a01ebf3a2df644b1f908c0529fb439
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3624905
Reviewed-by: Simon Zünd <szuend@chromium.org>
Auto-Submit: Xiaocheng Hu <xiaochengh@chromium.org>
Commit-Queue: Simon Zünd <szuend@chromium.org>
2022-05-04 05:55:10 +00:00
Paul Irish 0567b73fec Performance: Trace the default categories when Show All Events
experiment is enabled.

Currently, this experiment reveals a few more events that
were not allowlisted. But this change will expand the tracing category
selection to all non-high-overhead categories.

Driveby: fix undefined property exception.

Change-Id: I236aad44e40724d82d8c37055686e03148059d2b
Bug: 1321307
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3616460
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
Commit-Queue: Paul Irish <paulirish@chromium.org>
2022-05-04 00:10:58 +00:00