Commit Graph
79 Commits
Author SHA1 Message Date
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
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
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
Benedikt Meurer c43d843544 [e2e] Fix and reenable ServiceWorker frame tree test.
Fixed: chromium:1231056
Change-Id: Ie3aa85256e7fd8832db11253e06624b155d24b0e
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3595990
Commit-Queue: Benedikt Meurer <bmeurer@chromium.org>
Auto-Submit: Benedikt Meurer <bmeurer@chromium.org>
Reviewed-by: Wolfgang Beyer <wolfi@chromium.org>
Commit-Queue: Wolfgang Beyer <wolfi@chromium.org>
2022-04-20 13:29:35 +00:00
Simon Zünd 707c16bda8 [e2e] Disable two tests on mac that will become flaky
Running the mac try bot for the "pre-allocated DevTools tab CL"
(https://crrev.com/c/3461563) has shown that these two tests will
start to flake on mac. Lets disable them only on mac for now, to
unblock the CL.

R=alexrudenko@chromium.org

Bug: 1297458
Change-Id: I8011f392f48a2de17cabd4bdb7f8ddb7a6a8f629
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3477096
Commit-Queue: Simon Zünd <szuend@chromium.org>
Auto-Submit: Simon Zünd <szuend@chromium.org>
Reviewed-by: Alex Rudenko <alexrudenko@chromium.org>
Commit-Queue: Alex Rudenko <alexrudenko@chromium.org>
2022-02-21 12:10:06 +00:00
Tim van der Lippe 2d9a95ce7b Suppress all existing promise races
To suppress the races, we mark these invocations with `void` per
the instructions of `no-floating-promises`. This explicitly marks
these statements as side-effect promises.

Engineers can later analyze these void statements and determine
whether the promise races are intentional or accidental.

R=jacktfranklin@chromium.org

Bug: 1239617
Change-Id: I6b7a24cf21029d6ff73b112b3e8255ebab8c60ec
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3366467
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
Commit-Queue: Tim Van der Lippe <tvanderlippe@chromium.org>
Auto-Submit: Tim Van der Lippe <tvanderlippe@chromium.org>
2022-01-04 16:08:08 +00:00
Danil Somsikov 1f80fc8cb7 Basic CHIPS support in the DevTools frontend
Bug: 1247957
Change-Id: I1b95fd672f7e2ff8133c05ee03d498ac75853bca
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3291162
Commit-Queue: Danil Somsikov <dsv@chromium.org>
Auto-Submit: Danil Somsikov <dsv@chromium.org>
Reviewed-by: Kateryna Prokopenko <kprokopenko@chromium.org>
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
2021-11-23 12:28:19 +00:00
Wolfgang Beyer a831b26b7e Display Reporting API endpoints
This CL adds content to the endpoints table in the Application panel's
Reporting API view. For each endpoint it shows the origin which
configured the endpoint, the endpoint name and the endpoint URL.

Bug: 1200732
Change-Id: Ie3b94bd81d85d7c6001fd38484434d989a32f9cf
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3291155
Commit-Queue: Wolfgang Beyer <wolfi@chromium.org>
Reviewed-by: Danil Somsikov <dsv@chromium.org>
2021-11-23 10:26:50 +00:00
Andres Olivares c860fe1985 Introduce describe.skipOnPlatforms mocha extension
NOPRESUBMIT=true
Bug: none
Change-Id: If0e96e43aa13a2fa557a075975c2e7f365db930a
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3258130
Commit-Queue: Alex Rudenko <alexrudenko@chromium.org>
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Alex Rudenko <alexrudenko@chromium.org>
2021-11-03 20:44:06 +00:00
Wolfgang Beyer c0516bfc7d [ReportingApi] Display report body when clicked on in table
Screenshot: https://i.imgur.com/hDMffTP.png

Bug: 1205856
Change-Id: If796a45fe497520f5851322fa628275189ab341c
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3194201
Commit-Queue: Wolfgang Beyer <wolfi@chromium.org>
Reviewed-by: Danil Somsikov <dsv@chromium.org>
2021-09-30 09:48:25 +00:00
Wolfgang Beyer 77b3f57b73 [ReportingApi] Display table of reports
Use the DataGrid component to display the Reporting API reports in a
table.

Screenshot: https://i.imgur.com/r1Xy6GP.png

Bug: 1205856
Change-Id: I48f08560028b10020dcc6973bbf83adc65b009a3
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3194196
Commit-Queue: Wolfgang Beyer <wolfi@chromium.org>
Reviewed-by: Danil Somsikov <dsv@chromium.org>
2021-09-29 16:11:39 +00:00
Wolfgang Beyer fae6bd0cb7 Fetch Web App Recommended Id via CDP
Drive-by: change label from 'App Id' to 'Computed App Id'

Bug: 1222571
Change-Id: Ie0d9123abb7946bb9823076067e4a9c944f97f00
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3178867
Commit-Queue: Phillis Tang <phillis@chromium.org>
Reviewed-by: Phillis Tang <phillis@chromium.org>
2021-09-23 23:36:22 +00:00
Wolfgang Beyer cd7c3815fe App Id: move explainer note from tooltip into main UI
Screenshot: https://i.imgur.com/egg72jf.png

Bug: 1222571
Change-Id: I41b30942273f3cad73e3bd843cba9d1e56b0b8b2
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3172980
Commit-Queue: Wolfgang Beyer <wolfi@chromium.org>
Reviewed-by: Simon Zünd <szuend@chromium.org>
Reviewed-by: Phillis Tang <phillis@chromium.org>
2021-09-22 13:19:31 +00:00
Wolfgang Beyer 2b6897abc7 Display App Id for app manifest
This displays the unique App Id generated from the PWA's manifest in
DevTools.

A short general explainer and a note (in case there is no explicit id
given in the manifest) appear as hover text.

The App Id is only shown if the corresponding chromium flag is turned
on.

Context:
https://groups.google.com/a/chromium.org/g/blink-dev/c/hlxPHfg9GRc

Screenshot: https://i.imgur.com/3cIiXQ4.png

Bug: 1222571
Change-Id: I9305c06a6c49424708668789c3b26234f4a9b638
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2978373
Commit-Queue: Wolfgang Beyer <wolfi@chromium.org>
Reviewed-by: Sigurd Schneider <sigurds@chromium.org>
Reviewed-by: Phillis Tang <phillis@chromium.org>
2021-09-03 08:34:48 +00:00
Kriti Sapra 56daf78ddb Updated no-multiple-empty-lines to only have 1 as max
DISABLE_THIRD_PARTY_CHECK=updated linting formatting
Bug: 1106746
Change-Id: I371bca95b7cf1e8b7eaa4f9e7c3860af4eedee3e
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3057042
Commit-Queue: Kriti Sapra <kritisapra@google.com>
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
2021-07-28 14:10:15 +00:00
Sigurd Schneider 6025748cd6 Type-check ChildTargetManager's events
This uncovered a bug where the event handler was called
with a wrongly structured argument. This also fixes a bug
in the test setup that was hidden by the wrongly structured
argument.

Bug: chromium:1228674
Change-Id: I354394348be4142a5b6a7dcbf0604516faf590cb
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3043910
Commit-Queue: Sigurd Schneider <sigurds@chromium.org>
Reviewed-by: Simon Zünd <szuend@chromium.org>
2021-07-22 14:43:24 +00:00
Alex Rudenko 01167d82ac Disable flaky test on Windows: application\frame-tree_test.ts
Bug: chromium:1231056
Change-Id: Iab7bf43a3a0a2fdfd5678151b6f1d79a0a005f2b
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3041378
Reviewed-by: Sigurd Schneider <sigurds@chromium.org>
Commit-Queue: Alex Rudenko <alexrudenko@chromium.org>
2021-07-20 11:58:41 +00:00
Sigurd Schneider c6edb07a29 Fix waiting logic in e2e test
The test application/frame-tree_test.ts:
  The Application Tab shows stack traces for OOPIF
did not properly wait for the stacktrace to get populated.

Bug: chromium:1202024
Change-Id: I6b38c0de3616e082269f2858a78b72d1d3d1210b
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2987960
Commit-Queue: Sigurd Schneider <sigurds@chromium.org>
Commit-Queue: Wolfgang Beyer <wolfi@chromium.org>
Auto-Submit: Sigurd Schneider <sigurds@chromium.org>
Reviewed-by: Wolfgang Beyer <wolfi@chromium.org>
2021-06-25 08:05:16 +00:00
Danil Somsikov 4ba8f35eed Fix application/frame-tree_test.ts
Bug: 1217995
Change-Id: Ic947e909284d3ddb5426407e3e27821b9c2e5020
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2949056
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
Commit-Queue: Danil Somsikov <dsv@chromium.org>
2021-06-09 14:31:24 +00:00
Tim van der Lippe 0005b80576 Minify html template literals in release mode
Because of https://github.com/asyncLiz/minify-html-literals/issues/37
we are unable to minify CSS in template literals. However,
since we are moving CSS over into separate files, we can minify
these CSS files separately.

This also caught two issues with our templates, one of which was missing
the closing tag name whereas the other was missing the closing angle
bracket. As such, in release mode, we are now fully validating our
HTML structure.

R=jacktfranklin@chromium.org

Fixed: 1213034
Change-Id: Ieb4708334e627d368cb94db541b545b9dea5e895
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2922503
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-06-03 11:23:07 +00:00
Wolfgang Beyer 8527b03d5f Fix FrameManager's handling of OOPIF transitions
When a frame is being turned into an OOPIF, the frame is being detached
from its original target and added to a new target. Usually the order of
events is:
1) added to original target
2) added to new target
3) detached from original target

But there is no guarantee for this order of events and sometimes the
order of steps 2) and 3) is inverted (detected by a flaky test on the
Mac bot). This CL ensures that the FrameManager is able to correctly
handle both cases. This mainly means taking care of copying frame
creation stack traces.

Disable test CL: https://crrev.com/c/2862803
Update and enable test CL: https://crrev.com/c/2862770

Bug: 1202024
Change-Id: Ie42efcaf75c4aa8a0e71649c9790b23c7eff9e33
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2846335
Commit-Queue: Wolfgang Beyer <wolfi@chromium.org>
Reviewed-by: Sigurd Schneider <sigurds@chromium.org>
2021-05-03 13:17:29 +00:00
Kim-Anh Tran 1d5df07ea3 [e2e] Disable flaky frame tree test
Bug: chromium:1202024
Change-Id: I7e5761976f9d561c305c8f861e7f6afdddb210ef
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2846336
Commit-Queue: Kim-Anh Tran <kimanh@chromium.org>
Commit-Queue: Wolfgang Beyer <wolfi@chromium.org>
Auto-Submit: Kim-Anh Tran <kimanh@chromium.org>
Reviewed-by: Wolfgang Beyer <wolfi@chromium.org>
2021-04-23 07:42:47 +00:00
Wolfgang Beyer a6c88e7cc3 Consolidate e2e-test helper functions
Bug: 1165710
Change-Id: I18f3293cf910488189961b67d2c562f46a94ac29
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2831440
Commit-Queue: Wolfgang Beyer <wolfi@chromium.org>
Reviewed-by: Sigurd Schneider <sigurds@chromium.org>
2021-04-21 08:46:35 +00:00
Wolfgang Beyer a20485ac97 Copy creationStackTrace to new frame during frame OOPIF transfer
Previously these stack traces would be lost when a frame is transferred
out-of-process. By bringing the stack trace along and keeping track of
the relevant target, we can now display those stack traces for OOPIFs
too.

Bug: 1159334
Change-Id: I0063d5dc72ba2b02ae3924d4c908c6d80653315d
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2686657
Reviewed-by: Sigurd Schneider <sigurds@chromium.org>
Commit-Queue: Wolfgang Beyer <wolfi@chromium.org>
2021-04-21 08:02:05 +00:00
Wolfgang Beyer 86523b5809 Update and re-activate e2e tests for FrameDetailsView
Bug: 1165710
Change-Id: I524ae3541184d6383d0ac3715f3126918b229764
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2828114
Auto-Submit: Wolfgang Beyer <wolfi@chromium.org>
Commit-Queue: Sigurd Schneider <sigurds@chromium.org>
Reviewed-by: Sigurd Schneider <sigurds@chromium.org>
2021-04-16 09:37:15 +00:00
Simon Zünd d7b88d43ec [e2e] Wait for 'Session Storage' menu item to have children
Bug: chromium:1178496
Change-Id: Ifec32372a95172a3c1278d5e49e571ea69950538
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2790863
Reviewed-by: Philip Pfaffe <pfaffe@chromium.org>
Commit-Queue: Simon Zünd <szuend@chromium.org>
2021-03-29 11:41:41 +00:00
Philip Pfaffe 92feb60a1a Add an eslint check to prevent crbugs at the beginning of an it()
There are a handful of e2e tests which test regressions, and consequently
have a bug assiciation. This association was part of the test names in
the same way as we reference bugs for skipped tests. If such a test is
then skipped it needs to start with two crbug references. That's
confusing for the reader as well as a the skipped test lint check, for
which the regression bug references can lead to false negatives. This CL
introduces a new lint check that prevents bug references in non-skipped
tests with the same syntax as skipped tests.

Bug: none
Change-Id: Ibdf59091aba942f85424c1f12cc31160d9fe786a
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2761357
Commit-Queue: Philip Pfaffe <pfaffe@chromium.org>
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Simon Zünd <szuend@chromium.org>
2021-03-16 14:14:54 +00:00
Philip Pfaffe b140146424 Fix and reenable the application panel's storage tests
This applies the same fix as https://crrev.com/c/2760240 to the storage
tests.

Fixed: chromium:1186150
Change-Id: Idfa6db7b9dbc168ed754e5ec2188825405fbd3d4
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2763870
Commit-Queue: Philip Pfaffe <pfaffe@chromium.org>
Commit-Queue: Simon Zünd <szuend@chromium.org>
Auto-Submit: Philip Pfaffe <pfaffe@chromium.org>
Reviewed-by: Simon Zünd <szuend@chromium.org>
2021-03-16 11:19:15 +00:00
Philip Pfaffe faafad6ace [e2e] Cookies tests: Reenable and wait for the Cookies item's children
Failing tests all windows fail because the double click on the Cookies
item in the application panel doesn't work. One reason could be that the
item is clicked before it has any children. This CL explicitly waits for
the children marker to appear before attemptying to click.

Bug: chromium:1186150
Change-Id: Idafd9c6d669ab554fa352168bf64f4204c8c9a68
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2760240
Reviewed-by: Simon Zünd <szuend@chromium.org>
Reviewed-by: Alex Rudenko <alexrudenko@chromium.org>
Commit-Queue: Philip Pfaffe <pfaffe@chromium.org>
2021-03-15 17:25:03 +00:00
Simon Zünd 1549ee8351 Revert "[e2e] await click when selecting cookies"
This reverts commit 0260dd1c24.

Reason for revert: The cookie tests are still flaking on the Windows bot.

Original change's description:
> [e2e] await click when selecting cookies
>
> This CL changes a small e2e helper to await the click when selecting
> Cookies in the Application panel.
>
> This is the suspect for the flakiness of cookies_test.ts.
>
> Bug: chromium:1186150
> Change-Id: I3efee4e085dbcf4addd49c87bdf51853c5c93917
> Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2751899
> Reviewed-by: Sigurd Schneider <sigurds@chromium.org>
> Commit-Queue: Simon Zünd <szuend@chromium.org>

Bug: chromium:1186150
Change-Id: I8b872df1ea10b8cfef08ee18bcbd6d15e4b3b122
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2759507
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Commit-Queue: Simon Zünd <szuend@chromium.org>
2021-03-15 07:16:12 +00:00
Simon Zünd 0260dd1c24 [e2e] await click when selecting cookies
This CL changes a small e2e helper to await the click when selecting
Cookies in the Application panel.

This is the suspect for the flakiness of cookies_test.ts.

Bug: chromium:1186150
Change-Id: I3efee4e085dbcf4addd49c87bdf51853c5c93917
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2751899
Reviewed-by: Sigurd Schneider <sigurds@chromium.org>
Commit-Queue: Simon Zünd <szuend@chromium.org>
2021-03-12 08:15:28 +00:00
Philip Pfaffe a5cad5dbdc Disable two more flaky cookies tests on windows
Bug: chromium:1186150
Change-Id: Ib1b40d174698dd663d4901b6918662363b8b6817
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2751904
Commit-Queue: Philip Pfaffe <pfaffe@chromium.org>
Commit-Queue: Simon Zünd <szuend@chromium.org>
Auto-Submit: Philip Pfaffe <pfaffe@chromium.org>
Reviewed-by: Simon Zünd <szuend@chromium.org>
2021-03-11 13:28:13 +00:00
Philip Pfaffe 20ce252460 Skip a cookies test on windows
R=sigurds@chromium.org

Bug: chromium:1186150
Change-Id: Ie76cb5665536f6e83b2a9b846f56194cd22b20a1
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2744776
Reviewed-by: Sigurd Schneider <sigurds@chromium.org>
Commit-Queue: Philip Pfaffe <pfaffe@chromium.org>
2021-03-09 17:57:40 +00:00
Philip Pfaffe 8935c08979 Opt more e2e tests into the mocha extension hooks
Bug: chromium:1181777
Change-Id: I309eecd5063fe4b9bb395025e579e6eaaa129253
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2731574
Auto-Submit: Philip Pfaffe <pfaffe@chromium.org>
Reviewed-by: Alex Rudenko <alexrudenko@chromium.org>
Commit-Queue: Philip Pfaffe <pfaffe@chromium.org>
2021-03-03 15:57:59 +00:00
Alex Rudenko afa17b48cf Disable flaky e2e tests
Bug: 1178496, 1178497, 1145969
Change-Id: I5fab85bfbabb3073f99824242183668875a38d87
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2695571
Auto-Submit: Alex Rudenko <alexrudenko@chromium.org>
Reviewed-by: Mathias Bynens <mathias@chromium.org>
Commit-Queue: Mathias Bynens <mathias@chromium.org>
2021-02-15 15:23:00 +00:00
chait pinnamaneni af2b54a52c Test fix for service worker network
Bug:1172924
Change-Id: Ie4b3827f322b010c0042ae21a372a19d679d9f0a
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2682190
Commit-Queue: Chait Pinnamaneni <cpinnamaneni@microsoft.com>
Reviewed-by: Peter Marshall <petermarshall@chromium.org>
2021-02-09 18:36:20 +00:00
Sigurd Schneider b54b602422 Rename ClearStorageView to StorageView
This CL also converts the layout test storage-view-reports-quota.js
to an e2e test.

Bug: chromium:945786
Change-Id: I9ae73e41e564318474089e7ba312f3379893e847
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2667200
Commit-Queue: Sigurd Schneider <sigurds@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
Reviewed-by: Wolfgang Beyer <wolfi@chromium.org>
2021-02-05 15:45:29 +00:00
Wolfgang Beyer e5d1a9f3b4 [Frame Details] Port additional info section
Part 5 of porting FrameDetailsView to a custom component

Screenshot: https://i.imgur.com/ptLZuxL.png

Bug: 1165710
Change-Id: I34789fef2af7c0d68401572a363df19c7946f157
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2663456
Commit-Queue: Wolfgang Beyer <wolfi@chromium.org>
Reviewed-by: Sigurd Schneider <sigurds@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
2021-02-05 11:32:18 +00:00
Wolfgang Beyer 1525b1fd06 [Frame Details] Port document section
Part 2 of porting FrameDetailsView to a custom component
Screenshot: https://i.imgur.com/roWcXNs.png

Bug: 1165710
Change-Id: Ie729d2c89061d7e00ff95a9f1a223f47503ee75b
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2662986
Commit-Queue: Wolfgang Beyer <wolfi@chromium.org>
Reviewed-by: Sigurd Schneider <sigurds@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
2021-02-04 10:49:47 +00:00
Kim-Anh Tran 4f6e48e6cc [e2etest] Disable flaky network test
TBR: cpinnamaneni@microsoft.com
Bug: chromium:1172924
Change-Id: I83dd95b420023c26df64ed60677c6a4b9a8c6ab5
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2662821
Reviewed-by: Kim-Anh Tran <kimanh@chromium.org>
Commit-Queue: Kim-Anh Tran <kimanh@chromium.org>
2021-02-01 10:59:34 +00:00
Jan Scheffler c670054fcb [Cookies] Add isDomainMatch logic to cookies
Fixed: chromium:1012337
Change-Id: I07a696af66296d03392f97c656742c2a0e2e3bd3
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2656235
Commit-Queue: Jan Scheffler <janscheffler@chromium.org>
Reviewed-by: Christian Dullweber <dullweber@chromium.org>
2021-01-29 15:28:03 +00:00
Wolfgang Beyer 56d5ed1b5d Show document resource for iframes written to with 'document.write()'
This CL takes care of rendering a placeholder for the document resource
of an iframe which has been written to via JS's 'document.write()'.
The backend considers the document containing the 'document.write()'
call as the document of the frame being written to. Since this could
confuse users, instead of showing this document or showing no document
at all, this CL renders a placeholder "Document not available" resource,
which explains the situation to the user.

Bug: 1107766
Change-Id: Ie982b85ae89ccc8d8a95790fd1b9e002639859fb
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2643513
Commit-Queue: Wolfgang Beyer <wolfi@chromium.org>
Reviewed-by: Sigurd Schneider <sigurds@chromium.org>
2021-01-29 11:19:03 +00:00
Wolfgang Beyer 00727ebc8d Fix: show OpenedWindowDetailsView when clicking on respective item in
frame tree

Add itemURL getter to FrameWindowTreeElement to prevent 'Unimplemented
Method' error being thrown when clicking on the entry for an opened
window in the frame tree.

This bug has been lingering for some time, and was flushed by
introducing the throw in https://crrev.com/c/2510399.

Fixed: chromium:1169120
Change-Id: I96aaf29ba847fb9f1f5fbdb494965ee40dbfadf4
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2642355
Commit-Queue: Wolfgang Beyer <wolfi@chromium.org>
Reviewed-by: Sigurd Schneider <sigurds@chromium.org>
2021-01-21 15:49:58 +00:00
Songtao Xia 40fbf57386 Service Worker Update Cycle Timeline
This CL adds SW update cycle timeline to the Service Workers
view, Application pane. See the explainers below for
requirements.

A summary of features implemented:
- For the service worker associated with the current target, for
every version still alive (including redundant ones), show a
timeline of the install, wait, or activate events.
- The timeline is a waterfall style, different than in the explainer
but similar to that in network timing.
- Such a timeline is based on the observation in the frontend and
is intended to show for example, if an event takes extra long
time in waiting. It is not meant to be a measurement of execution
time of the event handler at the backend.
- Each event's timeline may be expanded to reveal details of
the event handler, such as the starting and ending time of
the event handling.
- Other details in the explainer are not included.

Timeline for an active sw.
https://imgur.com/o2OHnYq

Timeline for one active and one redundant sw. Note the bar is ultra thin
https://imgur.com/4VBKrH5

Bug:1066604

Explainer:
https://docs.google.com/document/d/1M2xKrlFHrojGHIJ9AVpQdGrmUUU0G8YVToa3kZz3RZA/edit?usp=sharing

Change-Id: I0b3725b342eeb32470ef759bab8a7da5a350dba9
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2409192
Commit-Queue: Songtao Xia <soxia@microsoft.com>
Reviewed-by: Peter Marshall <petermarshall@chromium.org>
Reviewed-by: Brian Cui <brcui@microsoft.com>
2021-01-20 17:50:51 +00:00
Sigurd Schneider 12cf869509 Add performance measureMemory in FrameDetailsView
This CL adds the availability of performance.measureMemory
to the API availablility section in the frame details view.

Screenshot: https://imgur.com/a/INrFzF3
Bug: chromium:1139899
Change-Id: I6406cffac8c96f81719d935ddd30f303ab50ee1b
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2619690
Reviewed-by: Wolfgang Beyer <wolfi@chromium.org>
Commit-Queue: Sigurd Schneider <sigurds@chromium.org>
2021-01-12 08:00:31 +00:00
Wolfgang Beyer 7df55c21d6 Show service workers in the Application Panel's frame tree
This CL adds service workers to the frame tree by listening to new
targets being added.

Screenshot: https://i.imgur.com/EAbI3d8.png
Bug: 1122507

Change-Id: I138430ea4db741ace4ff2e74f80e67ccb89640a6
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2538837
Commit-Queue: Wolfgang Beyer <wolfi@chromium.org>
Reviewed-by: Sigurd Schneider <sigurds@chromium.org>
2020-12-17 15:59:46 +00:00
Sigurd Schneider 9e11913c4d Prevent name-clash of CSS class names
This lead to a style unintendedly applying to an element and
causing a display bug.

Fixed: chromium:1156048
Change-Id: I919521803a77b2079ce65f89f9212d6c76b2649f
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2577557
Commit-Queue: Sigurd Schneider <sigurds@chromium.org>
Commit-Queue: Mathias Bynens <mathias@chromium.org>
Reviewed-by: Mathias Bynens <mathias@chromium.org>
Auto-Submit: Sigurd Schneider <sigurds@chromium.org>
2020-12-08 09:49:41 +00:00
Wolfgang Beyer f928006cb6 Update frame tree when frames are written to via JS
Even though writing to a frame's document via JS is not considered a
navigation by the backend, it can change the information DevTools is
showing about a frame in the frame tree. We are adding a new CDP event
'Page.documentOpen' in the backend, which in the frontend triggers
the same cascade a frame navigation would. This ensures that
ResourceTreeFrame and therefore the frame tree is kept up to date.

Design Doc:
http://docs/document/d/1l-XzjFMdASjRzX4-vMxOoK-MXoxY5uhCe0GNfDsXeDo
Backend CL: https://crrev.com/c/2498482

DISABLE_THIRD_PARTY_CHECK=depedency

Bug: chromium:1140540, chromium:1140481
Change-Id: Ieb72c3ef0830aff19964310b1728d218d6da9943
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2519702
Commit-Queue: Wolfgang Beyer <wolfi@chromium.org>
Reviewed-by: Sigurd Schneider <sigurds@chromium.org>
2020-12-07 15:19:01 +00:00
Jack Franklin 3b3a782f3a Enable interaction tests
This CL introduces the infrastructure and first test for what we're calling
"Interaction tests". These are tests that can be used to test component
behaviour that cannot be tested via Karma unit tests but don't require an e2e
test either.

The best example here is complex user interactions: clicking and dragging a
mouse, or doing multiple tabs to navigate through the UI.

Note that the one interaction test added here for theme_colors isn't the best
example of a complex test, but it's a test that's good enough for now whilst we
get everything set up on infrastructure and make sure it runs without flaking.

Bug: 1153281
Change-Id: Ifb37639a557c459974f703b8954ae68a93d5d368
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2566808
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
Reviewed-by: Paul Lewis <aerotwist@chromium.org>
2020-12-03 10:44:22 +00:00
Jan Scheffler f2697b185f [Storage] Only delete first party cookies by default
This cl changes the default behaviour of removing all cookies that are
somehow related to the current page when clicking the "Clear site data"
button in the Storage tab of the Application panel. This lead to people
unexpectedly removing their session cookies on third party websites like
Google or Facebook when resources from them were included in the page.

To go back to the previous behaviour, this cl adds a checkbox next to
the button to also clear 3rd party cookies.

Screenshot: https://imgur.com/a/2PCz2gi
Bug:chromium:1012337
Change-Id: I171a6e3e07d56d5cbeafb0b2b030e3a5e24aad3b
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2537954
Commit-Queue: Jan Scheffler <janscheffler@chromium.org>
Reviewed-by: Alex Rudenko <alexrudenko@chromium.org>
Reviewed-by: Mathias Bynens <mathias@chromium.org>
2020-11-24 12:34:27 +00:00