Commit Graph
2396 Commits
Author SHA1 Message Date
Simon Zünd bedbd4f3fe [e2e] Bump individual test timeout to 10 seconds
We are landing the timeout increase separatly from enabling the
pool implementation to collect more data for how the windows bots
behave w.r.t. to e2e test stability.

R=jarin@chromium.org

Bug: 1297458
Change-Id: I62d5c6c906031d0ff73adeeed5700fb3cffb391e
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3649881
Commit-Queue: Jaroslav Sevcik <jarin@chromium.org>
Reviewed-by: Jaroslav Sevcik <jarin@chromium.org>
Auto-Submit: Simon Zünd <szuend@chromium.org>
2022-05-16 09:23:56 +00:00
Simon Zünd 8acb7db049 Revert "Reland: [e2e] Use pre-allocated DevTools and target tabs"
This reverts commit 056ad78a21.

Reason for revert: Suspected to make e2e tests on the windows bot more flaky.

Original change's description:
> Reland: [e2e] Use pre-allocated DevTools and target tabs
>
> This CL relands https://crrev.com/c/3461563.
> The main difference is that while we enable the pool implementation,
> we configure the pool size to be 0 unconditionally. This way, we get
> the benefit of spinning up fresh DevTools and inspected tabs while
> preserving the old behavior of doing the setup of these tabs right
> before a test executes and not in the background.
>
> Original CL description:
> > [e2e] Use pre-allocated DevTools and target tabs
> >
> > This CL changes the conductor to use new DevTools frontend and target
> > tabs for each individual test. A pool prepares a set of frontend/target
> > tab pairs in the background so the conductor doesn't need to waste time
> > resetting tabs in between tests.
> >
> > For debugging e2e tests we disable the pool and use on-demand tab
> > creation instead. It would be annoying to deal with ~12 open tabs
> > and trying to find the right ones in a debugging session.
> >
> > This CL also increases the general e2e test timeout from 5 to 10
> > seconds. This is because of the more volatile nature of e2e tests
> > now. In some edge cases a tab for the currently running test might
> > not get enough CPU time to run in time. This can happen when a
> > serious of short running tests deplete the pool and multiple
> > Devtools frontend instances have to be prepared in the background.
> >
> > R=​jacktfranklin@chromium.org
> >
> > Bug: 1297458
> > Change-Id: I6b6c4a15e5d83f7e2bdc6082972993df179a5d87
> > Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3461563
> > Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
> > Reviewed-by: Philip Pfaffe <pfaffe@chromium.org>
> > Commit-Queue: Simon Zünd <szuend@chromium.org>
>
> Bug: 1297458
> Change-Id: Iac0294116f1a9e762a3847bcb0738955bba957b2
> Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3641403
> Commit-Queue: Simon Zünd <szuend@chromium.org>
> Reviewed-by: Jaroslav Sevcik <jarin@chromium.org>

Bug: 1297458
Change-Id: I4758c4c9cb3e7919f12bccc28c9310ab7225c729
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3645451
Reviewed-by: Philip Pfaffe <pfaffe@chromium.org>
Commit-Queue: Philip Pfaffe <pfaffe@chromium.org>
Auto-Submit: Simon Zünd <szuend@chromium.org>
2022-05-13 10:06:13 +00:00
Simon Zünd ed27b5e2e0 [webtests] Remove duplicate expectation files
When fixing the -expected.txt files, I mistakenly copied them a
second time on a nested level. This CL removes all expected files
from `platform/generic/platform/generic`.

R=alexrudenko@chromium.org

Bug: None
Change-Id: I822eeb24f9525dc4c7305c3708905f7f1291a1c8
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3645448
Auto-Submit: Simon Zünd <szuend@chromium.org>
Reviewed-by: Alex Rudenko <alexrudenko@chromium.org>
Commit-Queue: Simon Zünd <szuend@chromium.org>
2022-05-13 08:49:03 +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
Adam Raine 89128af9ea Fix Lighthouse web tests for new panel
The new panel will refresh it's entire content after a runtime setting
is changed. After the first refresh, the web tests were working with
checkboxes that were no longer in the DOM. This CL updates the web tests
so they are always working with the checkboxes in the DOM.

Follow up to:
https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3636197
https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3643856

Bug: None
Change-Id: I7b315b3310761f40ce4fe5b1cfacd9debebe0966
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3645230
Reviewed-by: Connor Clark <cjamcl@chromium.org>
Commit-Queue: Adam Raine <asraine@chromium.org>
Reviewed-by: Simon Zünd <szuend@chromium.org>
2022-05-12 20:23:03 +00:00
Simon Zünd 20e371365a [e2e] For debugging, pause when tabs are ready
Enabling the pool delayed tab creation into the `beforeEach` block.
So when we pause in the `beforeAll` block in debug mode, the DevTools
and target tab are not yet booted up.

This CL moves the pause into the `beforeEach` block but still only
pause once.

R=pfaffe@chromium.org

Bug: 1297458
Change-Id: Ic3f1ddc41696d4e11c6797effc20d1101399d163
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3642145
Reviewed-by: Philip Pfaffe <pfaffe@chromium.org>
Commit-Queue: Simon Zünd <szuend@chromium.org>
2022-05-12 13:36:43 +00:00
Simon Zünd 36c54939b9 [web tests] Move expected files to the new location
Expectation files moved upstream in Chromium so we also have to
mirror the new structure in DevTools.

R=alexrudenko@chromium.org

Bug: None
Change-Id: I934d40bf371c3155ff013d3fc3be59ff734ce51e
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3643856
Commit-Queue: Simon Zünd <szuend@chromium.org>
Reviewed-by: Alex Rudenko <alexrudenko@chromium.org>
2022-05-12 10:41:03 +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
Johan Bay f2ac64a53a Add test for revealing assigned slot elements
Bug: none
Change-Id: I04c2b99d05c121b7b39733686b5b118ec8edc78a
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3642136
Reviewed-by: Changhao Han <changhaohan@chromium.org>
Commit-Queue: Changhao Han <changhaohan@chromium.org>
Auto-Submit: Johan Bay <jobay@chromium.org>
2022-05-11 15:50:55 +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
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
Simon Zünd 056ad78a21 Reland: [e2e] Use pre-allocated DevTools and target tabs
This CL relands https://crrev.com/c/3461563.
The main difference is that while we enable the pool implementation,
we configure the pool size to be 0 unconditionally. This way, we get
the benefit of spinning up fresh DevTools and inspected tabs while
preserving the old behavior of doing the setup of these tabs right
before a test executes and not in the background.

Original CL description:
> [e2e] Use pre-allocated DevTools and target tabs
>
> This CL changes the conductor to use new DevTools frontend and target
> tabs for each individual test. A pool prepares a set of frontend/target
> tab pairs in the background so the conductor doesn't need to waste time
> resetting tabs in between tests.
>
> For debugging e2e tests we disable the pool and use on-demand tab
> creation instead. It would be annoying to deal with ~12 open tabs
> and trying to find the right ones in a debugging session.
>
> This CL also increases the general e2e test timeout from 5 to 10
> seconds. This is because of the more volatile nature of e2e tests
> now. In some edge cases a tab for the currently running test might
> not get enough CPU time to run in time. This can happen when a
> serious of short running tests deplete the pool and multiple
> Devtools frontend instances have to be prepared in the background.
>
> R=​jacktfranklin@chromium.org
>
> Bug: 1297458
> Change-Id: I6b6c4a15e5d83f7e2bdc6082972993df179a5d87
> Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3461563
> Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
> Reviewed-by: Philip Pfaffe <pfaffe@chromium.org>
> Commit-Queue: Simon Zünd <szuend@chromium.org>

Bug: 1297458
Change-Id: Iac0294116f1a9e762a3847bcb0738955bba957b2
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3641403
Commit-Queue: Simon Zünd <szuend@chromium.org>
Reviewed-by: Jaroslav Sevcik <jarin@chromium.org>
2022-05-11 08:40:14 +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
Andres Olivares b2084edb02 Remove console.log statements
They sneaked in https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3621873

Bug: none
Change-Id: I5e07e1835c7d96f6304fa2b2f178cecb7253f3b0
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3631609
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
Auto-Submit: Andres Olivares <andoli@chromium.org>
2022-05-09 07:41:50 +00:00
Andres Olivares f2faa9d72d Disable flaky pseudo-states e2e tests
Tests have failed on recent CQ runs in all platforms. It's worth noting that failures were all caught on release builds.

Mac
https://logs.chromium.org/logs/devtools-frontend/buildbucket/cr-buildbucket/8815098232361232049/+/u/E2E_tests/stdout

Win
https://logs.chromium.org/logs/devtools-frontend/buildbucket/cr-buildbucket/8815206380887210001/+/u/E2E_tests/stdout

Linux
https://logs.chromium.org/logs/devtools-frontend/buildbucket/cr-buildbucket/8815165899262442401/+/u/E2E_tests/stdout

Bug: 1280763
Change-Id: Ie7a60aa175507befae9031cb9daf8f425619a25b
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3627735
Reviewed-by: Mathias Bynens <mathias@chromium.org>
Commit-Queue: Andres Olivares <andoli@chromium.org>
2022-05-06 15:23:08 +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
Wolfgang Beyer 57f2920874 Fix flaky e2e-tests in network_test.ts
Bug: 1093287
Change-Id: I2b9c91b78f9f2e7e42091786ad11013dffdc5cbf
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3629778
Reviewed-by: Danil Somsikov <dsv@chromium.org>
Commit-Queue: Wolfgang Beyer <wolfi@chromium.org>
2022-05-06 11:37:20 +00:00
Kim-Anh Tran e805dda363 [e2e] Re-enable source map test
This increases the timeout for the source map tests.

Fixed: 1321567
Change-Id: I7871b049bf7ad76f953e9b5205510c81f4d412e5
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3627770
Reviewed-by: Andres Olivares <andoli@chromium.org>
Commit-Queue: Kim-Anh Tran <kimanh@chromium.org>
2022-05-05 19:13:01 +00:00
Andres Olivares 07dca225ab Disable styles pane test on all platforms
It's failing in windows too:
https://logs.chromium.org/logs/devtools-frontend/buildbucket/cr-buildbucket/8815098231520056337/+/u/E2E_tests/stdout

Bug: 1318314
Change-Id: I07e6856b66a26e0cfa18674c026b6f5375a9be9e
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3627734
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
Auto-Submit: Andres Olivares <andoli@chromium.org>
2022-05-05 13:17:23 +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
Andres Olivares 2d54e4a35d Disable flaky breakpoint e2e test on other windows
This test was disabled on mac only, however it has failed recently on
on win too:

https://logs.chromium.org/logs/devtools-frontend/buildbucket/cr-buildbucket/8815165904605034497/+/u/E2E_tests/stdout

Bug: 1321713
Change-Id: Iaf6f095b0888a93b5b28892bd18caf43ed7599f7
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3627736
Commit-Queue: Andres Olivares <andoli@chromium.org>
Reviewed-by: Kateryna Prokopenko <kprokopenko@chromium.org>
Auto-Submit: Andres Olivares <andoli@chromium.org>
2022-05-04 22:30:40 +00:00
Andres Olivares 3ad1a317f7 Disable flaky workflow_test e2e test on mac
Flakiness examples:

https://logs.chromium.org/logs/devtools-frontend/buildbucket/cr-buildbucket/8815202273940362209/+/u/E2E_tests/stdout

https://logs.chromium.org/logs/devtools-frontend/buildbucket/cr-buildbucket/8815204224733476289/+/u/E2E_tests/stdout

Bug: 1322534
Change-Id: If36fd8c1993a2766cc85e9d527a5d42a188852fa
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3627999
Commit-Queue: Nancy Li <nancyly@chromium.org>
Commit-Queue: Andres Olivares <andoli@chromium.org>
Reviewed-by: Nancy Li <nancyly@chromium.org>
Auto-Submit: Andres Olivares <andoli@chromium.org>
2022-05-04 17:47:00 +00:00
Andres Olivares f7adffea54 Disable flaky sources tab e2e test on all platforms
This test has failed recently on other platforms too:

Win:
https://logs.chromium.org/logs/devtools-frontend/buildbucket/cr-buildbucket/8815243057646828849/+/u/E2E_tests/stdout

Linux:
https://logs.chromium.org/logs/devtools-frontend/buildbucket/cr-buildbucket/8815218728513982881/+/u/E2E_tests/stdout

Bug: 1321898
Change-Id: I839e665f22113a6088842ba40537239bb3466883
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3627737
Commit-Queue: Benedikt Meurer <bmeurer@chromium.org>
Reviewed-by: Benedikt Meurer <bmeurer@chromium.org>
Auto-Submit: Andres Olivares <andoli@chromium.org>
2022-05-04 17:17:30 +00:00
Andres Olivares 5cae797b18 Disable flaky elements/sidebar-event-listeners e2e test
Has flaked recently on linux

https://logs.chromium.org/logs/devtools-frontend/buildbucket/cr-buildbucket/8815243055983302049/+/u/E2E_tests/stdout

https://logs.chromium.org/logs/devtools-frontend/buildbucket/cr-buildbucket/8815201771834262833/+/u/E2E_tests/stdout

Bug: 1322533
Change-Id: I4e33cb1e20f12f6d8cf9417b840d23b76603c95a
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3627997
Auto-Submit: Andres Olivares <andoli@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
Commit-Queue: Andres Olivares <andoli@chromium.org>
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
2022-05-04 16:59:30 +00:00
Andres Olivares 5aa9a8541a Deflake snippets e2e tests
These tests were reenabled recently in a deflake attempt at https://crrev.com/c/3596912. However, the tests remained flaky on the mac_relase bot. This is another attempt to deflake it. I ran 100 successful consecutive execs of each test with this CL's fix applied in the mac_release bot at https://logs.chromium.org/logs/devtools-frontend/buildbucket/cr-buildbucket/8815139412446297793/+/u/E2E_tests/stdout, so it is with greater confidence that it's deflaked this time

Bug: 1198160
Change-Id: Ib2d64de93a242cfa3caddae2b749ef50a35d2497
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3621873
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
Auto-Submit: Andres Olivares <andoli@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
2022-05-04 09:51:02 +00:00
Benedikt Meurer 4cf9a8553f [e2e] Fix flakiness due to not waiting for Call Stack to update.
Fixed: 1321707
Change-Id: Ib56cdbe889d07e148bceacc4a86f8b1abee0273e
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3627329
Reviewed-by: Jaroslav Sevcik <jarin@chromium.org>
Commit-Queue: Benedikt Meurer <bmeurer@chromium.org>
Commit-Queue: Jaroslav Sevcik <jarin@chromium.org>
Auto-Submit: Benedikt Meurer <bmeurer@chromium.org>
2022-05-04 07:18:40 +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
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
Andres Olivares 5727d1f24d Skip snippets/breakpoint_test.ts e2e test on Mac
The test has been flaky on the bots:

https://logs.chromium.org/logs/devtools-frontend/buildbucket/cr-buildbucket/8815560361203492641/+/u/E2E_tests/stdout

https://logs.chromium.org/logs/devtools-frontend/buildbucket/cr-buildbucket/8815543099886327665/+/u/E2E_tests/stdout

Disabling for now.

Bug: 1321713
Change-Id: I6d54c88b7b9d86465c3b69b7e174345954bd82fe
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3621875
Reviewed-by: Kateryna Prokopenko <kprokopenko@chromium.org>
Commit-Queue: Andres Olivares <andoli@chromium.org>
Auto-Submit: Andres Olivares <andoli@chromium.org>
2022-05-03 15:14:58 +00:00
Jack Franklin e839c0cf22 Enable long import wrapping for JS imports
DISABLE_THIRD_PARTY_CHECK=big clang format run against all files in
front_end and test/

Bug: 1319340
Change-Id: I1fff63cb07544ccd0e3059fc901f9a48ff4af13b
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3598879
Reviewed-by: Alex Rudenko <alexrudenko@chromium.org>
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
Reviewed-by: Wolfgang Beyer <wolfi@chromium.org>
2022-05-03 10:22:12 +00:00
Andres Olivares ecf2a202fa Skip sources/debug-raw-wasm_test.ts e2e test on mac
Due to flakiness:

https://logs.chromium.org/logs/devtools-frontend/buildbucket/cr-buildbucket/8815454634348273553/+/u/E2E_tests/stdout

https://logs.chromium.org/logs/devtools-frontend/buildbucket/cr-buildbucket/8815545078168639505/+/u/E2E_tests/stdout

https://logs.chromium.org/logs/devtools-frontend/buildbucket/cr-buildbucket/8815615465522346625/+/u/E2E_tests/stdout

Bug: 1321898
Change-Id: Ia3e1be42e6011f96894ed0ecbf80cac7c41dac3b
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3621877
Auto-Submit: Andres Olivares <andoli@chromium.org>
Reviewed-by: Benedikt Meurer <bmeurer@chromium.org>
Commit-Queue: Benedikt Meurer <bmeurer@chromium.org>
2022-05-03 06:59:14 +00:00
Andres Olivares ad001b2af4 Skip sources/can-break-with-wasm-sourcemaps_test.ts on mac
The test has been flaky recently on the Mac bot:

https://logs.chromium.org/logs/devtools-frontend/buildbucket/cr-buildbucket/8815641271312814129/+/u/E2E_tests/stdout

https://logs.chromium.org/logs/devtools-frontend/buildbucket/cr-buildbucket/8815532227356031937/+/u/E2E_tests/stdout

Disabling it for now

Bug: 1321707
Change-Id: I16b9cda9b8ad7d36a22a388494b70d6bd58198df
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3621874
Reviewed-by: Benedikt Meurer <bmeurer@chromium.org>
Commit-Queue: Benedikt Meurer <bmeurer@chromium.org>
Auto-Submit: Andres Olivares <andoli@chromium.org>
2022-05-03 05:38:38 +00:00
Adam Raine ae48655147 Order Lighthouse categories by how they appear in the report
Bug: 1291284
Change-Id: I79697ab9c1ad8d5f7c1f25e11b5f900257c5516e
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3621278
Reviewed-by: Connor Clark <cjamcl@chromium.org>
Reviewed-by: Paul Irish <paulirish@chromium.org>
Commit-Queue: Adam Raine <asraine@chromium.org>
2022-05-03 01:41:30 +00:00
Andres Olivares 9015fee5e0 Disable flaky e2e test group in elements/style-pane-properties_test.ts
Almost all of these tests have flaked recently on linux and mac bots.

See for example

Linux

https://logs.chromium.org/logs/devtools-frontend/buildbucket/cr-buildbucket/8816212949772701041/+/u/E2E_tests/stdout
https://logs.chromium.org/logs/devtools-frontend/buildbucket/cr-buildbucket/8816088461973411297/+/u/E2E_tests/stdout
https://logs.chromium.org/logs/devtools-frontend/buildbucket/cr-buildbucket/8815488470932382929/+/u/E2E_tests/stdout
https://logs.chromium.org/logs/devtools-frontend/buildbucket/cr-buildbucket/8815725106686528017/+/u/E2E_tests/stdout

Mac

https://logs.chromium.org/logs/devtools-frontend/buildbucket/cr-buildbucket/8815532227356031937/+/u/E2E_tests/stdout
https://logs.chromium.org/logs/devtools-frontend/buildbucket/cr-buildbucket/8815454634348273553/+/u/E2E_tests/stdout
https://logs.chromium.org/logs/devtools-frontend/buildbucket/cr-buildbucket/8815554958986594289/+/u/E2E_tests/stdout

I'm disabling for now.

Bug: 1318314
Change-Id: Idae8d05edfc241fb50a424bb6a366126c5695f78
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3620548
Reviewed-by: Changhao Han <changhaohan@chromium.org>
Commit-Queue: Changhao Han <changhaohan@chromium.org>
Auto-Submit: Andres Olivares <andoli@chromium.org>
2022-05-02 21:54:01 +00:00
Wolfgang Beyer 6b3584f0da Update reporting API test
Deprecations are in the process of being refactored in the backend.
Switching the test to a different report type which I expect to be more
stable.

Fixed: 1321131
Change-Id: I20f9a4891bb482cc6006bdbf7a00c458f3a9ed3f
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3620360
Commit-Queue: Wolfgang Beyer <wolfi@chromium.org>
Reviewed-by: Maksim Sadym <sadym@chromium.org>
2022-05-02 13:44:55 +00:00
Andres Olivares dea2959218 Skip flaky source map e2e test on windows
Bug:1321567
Change-Id: I8bdfe4ea22eb7ceea928be4b154ce337d38bc7ea
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3620536
Reviewed-by: Kim-Anh Tran <kimanh@chromium.org>
Commit-Queue: Kim-Anh Tran <kimanh@chromium.org>
Auto-Submit: Andres Olivares <andoli@chromium.org>
Commit-Queue: Andres Olivares <andoli@chromium.org>
2022-05-02 13:27:55 +00:00
Kim-Anh Tran 9d3d33e0bd [timeline] Always use fallback information for text location
Use fallback cases when showing the script location in
`buildDetailsTextForTraceEvent`.

Currently, we use the UILocation if existent (which is only
the case, if we have already parsed the `scriptId` of the Timeline
Event. If this has not been the case, it fell back to using
either the top frame, or nothing).

This CL changes this code to always use the fallback, instead
of trying to resolve the location:

1. This is both flaky on the tests (if crbug.com/1318635 is fixed
with https://crrev.com/c/3613395), and can be observed by the
developer as it is time dependent.
2. As is, there has been a backend bug (crbug.com/1318635) which
never sent the correct `scriptId` (int instead of string) for
stack traces anyway, so we used the fallback for that case, and
that is reflected on many layout tests as well.
3. Normally we try to use the live location using the script, but this
particular code produces not a link but a text, and is only used
for WebSocketDestroy events and the layout test infrastructure.
4. Setting it to default to the information we have, is deterministic.

Bug: 1318635
Change-Id: I5078d18d92d8b60d8c8d4253efe07f7527bb3c19
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3613875
Reviewed-by: Simon Zünd <szuend@chromium.org>
Commit-Queue: Kim-Anh Tran <kimanh@chromium.org>
2022-05-02 11:49:56 +00:00
Maksim Sadym 9563425f4b Disable failing test to unblock roll.
Bug: 1321131
Change-Id: Ia701749ca57d77c315d9d0577ba6d116408e92c7
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3613882
Reviewed-by: Wolfgang Beyer <wolfi@chromium.org>
Commit-Queue: Maksim Sadym <sadym@chromium.org>
2022-04-29 16:30:23 +00:00
Philip Pfaffe 63c982bd16 Synchronize breakpoints for language plugins as well
Bug: chromium:1229541
Change-Id: Ifb87690664615f3a7c2452bb70619fd743bb0d77
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3581033
Reviewed-by: Kim-Anh Tran <kimanh@chromium.org>
Commit-Queue: Philip Pfaffe <pfaffe@chromium.org>
2022-04-29 13:18:03 +00:00
Philip Pfaffe d0a07d4ef7 Flush settings before tests with real connection
Otherwise, for example previously set breakpoints leak across tests.

Bug: none
Change-Id: I395995b4a3068f66ad1d358a32294f97b72f23d4
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3613874
Reviewed-by: Danil Somsikov <dsv@chromium.org>
Commit-Queue: Philip Pfaffe <pfaffe@chromium.org>
2022-04-29 10:37:18 +00:00
Ari Chivukula a68cb30948 [i18n DevTool Deprecation Issue] (16) Cleanup Deprecations {DEVTOOLS}
At long last, we can remove the old unused fields now that no
deprecation messages are untranslated.

This CL is part of a series:
(1) Remove legacy info
(2) Translate issue title
(3) Translate demo Issue {CHROMIUM}
(4) Translate demo Issue {DEVTOOLS}
(5) Document new deprecation process
(6) Add milestone and status links
(7) Document milestone and status links
(8) Migrate DeprecationInfo::WithDetails {CHROMIUM}
(9) Roll deps
(10) Migrate DeprecationInfo::WithDetails {DEVTOOLS}
(11) Document changes in development process
(12) Migrate DeprecationInfo::* {CHROMIUM}
(13) Roll deps
(14) Migrate DeprecationInfo::* {DEVTOOLS}
(15) Cleanup Deprecations {CHROMIUM}
(16) Cleanup Deprecations {DEVTOOLS}
(17) Final documentation tweaks

DISABLE_THIRD_PARTY_CHECK=Fields are being removed, so we have to touch non-gen code

Bug: 1264960
Change-Id: If5a286a50cafc073ff99f5e0d8f3d38d5e8ba83a
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3613607
Auto-Submit: Ari Chivukula <arichiv@chromium.org>
Reviewed-by: Simon Zünd <szuend@chromium.org>
Commit-Queue: Simon Zünd <szuend@chromium.org>
Commit-Queue: Ari Chivukula <arichiv@chromium.org>
2022-04-28 11:45:32 +00:00
Wolfgang Beyer d939ee8ddb Fix local overrides for redirects
When DevTools is intercepting and overriding the response to a request,
this response should have a response status of 200 (and not the response
status of the original response).

If body, headers and a redirect response code are sent to the backend
via `Fetch.fulfillRequest`, the response code will take precedence and
the response will be redirected instead of overridden.

Fixed: 1320400
Change-Id: Ib306369c67471f871425d2a1bbafe80cbb881d1f
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3610172
Commit-Queue: Wolfgang Beyer <wolfi@chromium.org>
Reviewed-by: Danil Somsikov <dsv@chromium.org>
2022-04-28 10:34:24 +00:00
Ergün Erdoğmuş 029ac9db0b Add shortcuts for toggling debugger and navigator sidebars in Sources panel
Renamed `DebuggingActionDelegate` to `ActionDelegate` for SourcesPanel
since all the actions there acts on the panel itself
and with the introduction of these two actions,
they are not only related to debugging anymore

Fixed: 1226363
Change-Id: I0c472f4f2ffcdb78ea6824771f9540882550984c
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3392021
Reviewed-by: Benedikt Meurer <bmeurer@chromium.org>
Reviewed-by: Alex Rudenko <alexrudenko@chromium.org>
Commit-Queue: Ergün Erdoğmuş <ergunsh@chromium.org>
2022-04-27 15:02:11 +00:00