Commit Graph
726 Commits
Author SHA1 Message Date
Daniel Cheng 7286d22590 Update convert-3pas-product-registry.js to use blocklist terminology
Bug: 842296
Change-Id: Ib51df38e7f907ef3576000eb180644bdae3c9921
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1566970
Reviewed-by: Andrey Kosyakov <caseq@chromium.org>
Reviewed-by: Dmitry Gozman <dgozman@chromium.org>
Commit-Queue: Daniel Cheng <dcheng@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#650986}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: c9c72272e5cf17296354d41f3d59c67d5a1a5e24
2019-04-15 21:19:56 +00:00
cjamcl@google.com 7b337fae0a [Devtools] Roll Lighthouse to v4.3.0
Changelog: https://github.com/googlechrome/lighthouse/compare/9790337f...v4.3.0

Bug: 772558
Change-Id: I44f09952138833e89ac64124eefd99e88eb867a4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1559401
Reviewed-by: Paul Irish <paulirish@chromium.org>
Reviewed-by: Erik Luo <luoe@chromium.org>
Commit-Queue: Paul Irish <paulirish@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#650561}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 40febcba10416b78ca725980909fefb3f3033863
2019-04-13 02:02:48 +00:00
Erik Luo 2288e9c2b8 DevTools: visually indicate when prompt text is incomplete
- Prompt's '>' icon is dimmed when pressing 'Enter' would
  not evaluate (instead insert newline)
- Icon moves from ConsoleView to ConsolePrompt
- Drive-by: removes obsolete styles related to pins

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

Bug: none
Change-Id: Ia22c905154b78495138a0eaf954a2bc88de9a9c3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1548578
Reviewed-by: Joel Einbinder <einbinder@chromium.org>
Commit-Queue: Erik Luo <luoe@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#650508}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 9aeaec54a33cc368987b9b0a3004c3ad46f3edb1
2019-04-12 23:18:42 +00:00
Erik Luo cedf2be6db Revert "DevTools: prepare Computed sidebar for groups"
This reverts commit 2d8ad76070a840ce3821f3d28e55cd952f7640c0.

Reason for revert: Grouping would break alphabetical sort, which is controversial.

Original change's description:
> DevTools: prepare Computed sidebar for groups
> 
> Computed sidebar
> - Removes even/odd striping
> - Extracts a function to build a property's TreeElement
> 
> Bug: 929536
> Change-Id: I727cf1efa5ac65277a046b52575f35102323c38f
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1548446
> Reviewed-by: Joey Arhar <jarhar@chromium.org>
> Commit-Queue: Erik Luo <luoe@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#648029}

TBR=luoe@chromium.org,jarhar@chromium.org

# Not skipping CQ checks because original CL landed > 1 day ago.

Bug: 929536
Change-Id: Icec233a91c07b2b864830df6419690911070101a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1565380
Reviewed-by: Erik Luo <luoe@chromium.org>
Commit-Queue: Erik Luo <luoe@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#650149}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 37893dee61d4f8d4a23c0d23bd36dbd4ef6d893c
2019-04-12 00:59:26 +00:00
Erik Luo 4da6ecb441 DevTools: update UC browser UA presets
Sources:
- Real Nexus 6P
- https://developers.whatismybrowser.com

Bug: 843414
Change-Id: I9face2da3b61b20e4f0051ba3cda518c0af9b049
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1558153
Reviewed-by: Joel Einbinder <einbinder@chromium.org>
Commit-Queue: Erik Luo <luoe@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#650061}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 871d4d369b663517800f979dc180e49ce014e458
2019-04-11 21:39:04 +00:00
Junyi Xiao 89142cffe3 DevTools: add a shortcut to toggle tab indentation for CodeMirror editor
Accessibility testing revealed that there are tab traps in all of the text editors including read only ones. Once keyboard users tab into the editor, they cannot tab out the editor.

This change adds a shortcut to disable/re-enable tab for indentation, which allows keyboard users continue to use tab to navigate to next UI component.

Settings Shortcuts page screenshot: https://imgur.com/a/qeOjGoB

Change-Id: I026a5a9c47407634a78c2ccf1a0bc532baa39e07
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1545200
Reviewed-by: Joel Einbinder <einbinder@chromium.org>
Commit-Queue: Junyi Xiao <juxiao@microsoft.com>
Cr-Original-Commit-Position: refs/heads/master@{#649901}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 27ff38b767bc1659a596830b864acf60850e6bd0
2019-04-11 16:01:38 +00:00
Pavel Feldman 70a90c0ca4 DevTools: clean up the -theme-selection markup in the css.
All these rule definitions operate CSS variables now.

Bug: 935286
Change-Id: I9cdd4883e0c07e1040da06af8db3ef36f64ebc02
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1562893
Reviewed-by: Joel Einbinder <einbinder@chromium.org>
Commit-Queue: Pavel Feldman <pfeldman@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#649770}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: f8764798ff0e0e0f41052ed0a70637102a499801
2019-04-11 03:53:58 +00:00
Pavel Feldman 0c1a96a0b8 DevTools: introduce Page.getInstallabilityErrors based on InstallableManager.
... and migrate front-end to it.

Bug: 915945
Change-Id: I91220f7d7681fef3faa4c543b729d3475df5b8ce
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1560533
Commit-Queue: Pavel Feldman <pfeldman@chromium.org>
Reviewed-by: Joel Einbinder <einbinder@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#649761}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: c9465362c786f8342fd11ee5a56ae1641b26b600
2019-04-11 03:02:17 +00:00
Harley Li b2ac6e7066 [DevTools] Expose all IndexedDB databases to DevTools
Before this patch, only the main frame's IndexedDBs are exposed in
DevTools>Application>IndexedDB panel.

Bug: 943770
Change-Id: Ia8e13e06065ca7ceedb83f8f6edf0dffabf63f2d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1539214
Reviewed-by: Joel Einbinder <einbinder@chromium.org>
Commit-Queue: Haihong Li (Harley) <hhli@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#649705}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 198fb2cf9272b63c1f7e34d4dc5d292232c6dcb1
2019-04-10 23:19:38 +00:00
cjamcl@google.com 9014750c2a [Devtools] Roll Lighthouse to include new build changes
Changelog: https://github.com/googlechrome/lighthouse/compare/v4.2.0...9790337f9873710c3fd38bafdec819337c8367be

Relevant LH build changes:

https://github.com/GoogleChrome/lighthouse/pull/7421
https://github.com/GoogleChrome/lighthouse/pull/7567

Bug: 772558

Change-Id: I50296da5059d6f90fbd69346691529a5feff15ad
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1510732
Commit-Queue: Connor Clark <cjamcl@google.com>
Reviewed-by: Paul Irish <paulirish@chromium.org>
Reviewed-by: Dmitry Gozman <dgozman@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#649003}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 1df082f1ff78ab6009a972d861537484f967d3d5
2019-04-09 03:41:43 +00:00
Paul Irish 91ff1d728d [DevTools] Timeline: Correct start time of document request
Bug: 793507
Change-Id: I0be2d229a73ffe1fad0c5315b6d264fd8ae0e6f3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1559166
Commit-Queue: Paul Irish <paulirish@chromium.org>
Auto-Submit: Paul Irish <paulirish@chromium.org>
Reviewed-by: Alexei Filippov <alph@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#648980}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: a49ae53e179024ddf915264a8ec70416ce2badad
2019-04-09 02:16:52 +00:00
Rayan Kanso b852ba8011 Add a Save button for Background Services in DevTools.
The button is disabled if there are no events, and saves all events to a
file when clicked (JSON format).

Screenshots: https://bugs.chromium.org/p/chromium/issues/detail?id=942174#c13
Bug: 942174
Change-Id: I2c2d3600814f19050083275f52acbe40e23b0e74
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1552854
Commit-Queue: Rayan Kanso <rayankans@chromium.org>
Reviewed-by: Pavel Feldman <pfeldman@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#648646}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 79d39f2bc7caea1fb114e8b79c66d91f7faece61
2019-04-08 13:48:07 +00:00
Alexei Filippov f57dec2a9b DevTools: Add setting to toggle live heap profile on/off
BUG=937880

Change-Id: I165c6de88f4d63080287704a066728757c2a5c26
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1531561
Commit-Queue: Alexei Filippov <alph@chromium.org>
Reviewed-by: Pavel Feldman <pfeldman@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#648369}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: cbf5a0d137c9b6933d99ef1ae40feef186162d9c
2019-04-05 22:11:20 +00:00
Joey Arhar 61427a74a9 [DevTools] Add renderer request ID to requestIntercepted
Bug: 899386
Change-Id: I5e9157be89a2965bb5261898ed03d843bfbf189b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1536685
Reviewed-by: Pavel Feldman <pfeldman@chromium.org>
Reviewed-by: Andrey Kosyakov <caseq@chromium.org>
Commit-Queue: Andrey Lushnikov <lushnikov@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#648360}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: b8c461097351734d07cef8e5ea6a8d4fa6f484e6
2019-04-05 21:58:03 +00:00
James Lissiak 139ecb46a0 DevTools: Issue 948417 - Adding setting for detailed inspect tooltip
This patch adds a new setting to the Elements category which toggles
showing the styles information on the overlay tooltip when the user is
in inspect mode.

You can see the difference enabled by the new setting in the following
screenshot:
https://imgur.com/a/BjQPwe9

This fixes #948417

Bug: 948417
Change-Id: If15bc5d73fb1571079697bfccd9e5a74e975bd59
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1553465
Commit-Queue: James Lissiak <jalissia@microsoft.com>
Reviewed-by: Pavel Feldman <pfeldman@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#648345}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 47e5d9a0f8f988e4d11d27a21dbf4c0414795f25
2019-04-05 21:25:43 +00:00
Erik Luo 247064ee0f DevTools: prepare Computed sidebar for groups
Computed sidebar
- Removes even/odd striping
- Extracts a function to build a property's TreeElement

Bug: 929536
Change-Id: I727cf1efa5ac65277a046b52575f35102323c38f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1548446
Reviewed-by: Joey Arhar <jarhar@chromium.org>
Commit-Queue: Erik Luo <luoe@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#648029}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 2d8ad76070a840ce3821f3d28e55cd952f7640c0
2019-04-05 01:44:27 +00:00
Rayan Kanso b451b4f38e Update the DevTools Background Services UI.
As per the UX meeting, the following changes have been made:
- Toolbar refresh/clear were removed and delete was renamed to clear.
- Instead of Popovers a container at the bottom will show the metadata.

Screenshots: https://bugs.chromium.org/p/chromium/issues/detail?id=942174#c10
Bug: 942174
Change-Id: Ibb99ade117666367903c739ed5f3acee1f550c18
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1551661
Commit-Queue: Rayan Kanso <rayankans@chromium.org>
Reviewed-by: Pavel Feldman <pfeldman@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#647972}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: cef97b945609619d937da359b0ccb36c0ef39494
2019-04-04 23:12:11 +00:00
Alexei Filippov f2e42e4ca7 DevTools: Make use of Runtime.sharedInstance for PerfUI.LineLevelProfile
Change-Id: Ic07bc33cdd12a18395fd28a458daf10a8e344d4a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1553700
Reviewed-by: Pavel Feldman <pfeldman@chromium.org>
Commit-Queue: Alexei Filippov <alph@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#647925}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: ec57c898b710ad576edfd7001863b756c88824a1
2019-04-04 21:40:45 +00:00
Alexei Filippov 4d51869ac1 DevTools: Support multiple simulateneous sampling heap profiles.
BUG=937880

Change-Id: Iba9c70b2c3420670ab596bbae9cb825a6c3496b2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1552407
Reviewed-by: Pavel Feldman <pfeldman@chromium.org>
Commit-Queue: Alexei Filippov <alph@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#647884}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 492a0202249a8ba6e71c49bf45ac6e9900d20e40
2019-04-04 20:22:35 +00:00
Alexei Filippov 6bd6d4996c DevTools: Replace event based notifications with observers.
Change-Id: I9abfb8f944474220a11b223b93b588e4597ea14f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1549925
Commit-Queue: Alexei Filippov <alph@chromium.org>
Reviewed-by: Pavel Feldman <pfeldman@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#647636}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 38db055e5fc20b2eddca2c829c324fb49de07cbf
2019-04-04 07:02:27 +00:00
Erik Luo 05a85be4de DevTools: avoid clamped sections when editing long style values
In SSP, a section's height is manually set for performance reasons
(see crbug.com/684341)

This CL measures section height after attaching the prompt, giving
a more accurate measurement.

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

Bug: 949383
Change-Id: I9a293a3052c2801dd791eab75317e4a94dd317c3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1552441
Commit-Queue: Erik Luo <luoe@chromium.org>
Reviewed-by: Joel Einbinder <einbinder@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#647585}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 1e24fce975be74f493bc6745cc6ec5856b0b3975
2019-04-04 01:44:54 +00:00
Joel Einbinder 0745b105f2 DevTools: Show columns in the JavaScript breakpoint sidebar
Multiple active inline breakpoints now each get their own entry in
the breakpoints sidebar. The column is shown for every breakpoint after
the first that share a line.

https://i.imgur.com/BoLyzYv.png

Bug: 927961

Change-Id: If07ca26b177bf8fa82c7bf969397101485210c01
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1449152
Commit-Queue: Joel Einbinder <einbinder@chromium.org>
Reviewed-by: Dmitry Gozman <dgozman@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#647509}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 43005f59158e79ce01f4bfa77ea52b9732fc7a4d
2019-04-03 22:43:58 +00:00
Alexei Filippov 51e976ddc3 DevTools: Move IsolateManager to sdk
Change-Id: I30544eb99a6e5352adb5c7b884f39b9c0a796fe2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1550689
Commit-Queue: Alexei Filippov <alph@chromium.org>
Reviewed-by: Pavel Feldman <pfeldman@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#647506}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 2f0eaa90c65b7c1546f48fc3a744a1c99d262e15
2019-04-03 22:41:33 +00:00
Alexei Filippov 3ffedbfe4d DevTools: Bump default live heap sampling rate to 10KB
BUG=937880

Change-Id: I2295b9614543aca976284231cb4d8f33ebe65b42
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1550636
Commit-Queue: Alexei Filippov <alph@chromium.org>
Reviewed-by: Pavel Feldman <pfeldman@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#647502}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 328d55181c30777fc1e58241543a4bf2f795c817
2019-04-03 22:34:50 +00:00
Lorne Mitchell 7aa2c6c30f DevTools: Enabled check_localization presubmit script
* Enabled the check_localization presubmit script.
* Fixed localization issues caught by the check_localization presubmit script.
* Updated the check_localization script to allow contatenation of non-alphabetic strings with localized strings.
  * For example, ls`Status Code` + ": " is a valid concatenation. This allows for decorations to be concatenated with localized strings.

Change-Id: I741940c9ebdac363ac0ccad3f7de20d508204e2b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1544878
Auto-Submit: Lorne Mitchell <lomitch@microsoft.com>
Reviewed-by: Joel Einbinder <einbinder@chromium.org>
Reviewed-by: Pavel Feldman <pfeldman@chromium.org>
Commit-Queue: Pavel Feldman <pfeldman@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#647134}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 7a329cb73b0b5d5cddb89a34fd7da6cb1a3c87dd
2019-04-03 03:50:10 +00:00
Harley Li 85d37f05a9 [DevTools] Treat negative cookie expiration date as 'Session'
Bug: 946386
Change-Id: I19951d9824e989947e474786ede85d97515e9b96
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1546728
Reviewed-by: Erik Luo <luoe@chromium.org>
Commit-Queue: Haihong Li (Harley) <hhli@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#646514}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 396cf92f2384e4e8c252f2ad20a369be1bfe0a91
2019-04-01 21:50:43 +00:00
Alexei Filippov 6e1ddda255 DevTools: Extract IsolateManager class out of profiler isolate view.
The class keeps track of isolates creation/deletion.

Change-Id: I65ab6aa4ef5c2f1b0df6eb3b024e7df9051a251c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1546853
Commit-Queue: Alexei Filippov <alph@chromium.org>
Reviewed-by: Dmitry Gozman <dgozman@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#646472}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 9b628bbd5de0ab7cf4a3bd91f2066fc4b02a0d60
2019-04-01 20:03:43 +00:00
Harley Li cc1c59aeff [DevTools] ApplicationTestRunner.resetState() clean all targets
It should not just clean the main target's storage.

Change-Id: I580a23267e8cd7ca14938debc6f5a8754e59c646
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1546620
Commit-Queue: Haihong Li (Harley) <hhli@chromium.org>
Reviewed-by: Dmitry Gozman <dgozman@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#646431}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: c8ab682450f23f1fdcf70387a9e50b1ec48d741e
2019-04-01 18:48:15 +00:00
Livvie Lin 21e9aec2ae Deprecate InsecureContentStatus and remove it from frontend code
Backend still sends this since it's a required field. We cannot yet
remove it completely since it's non-optional and sent over public
protocol API.

Bug: 744601
Change-Id: Iee1ea175ba1fa9cf8ce596e218f98109836e5b70
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1546498
Reviewed-by: Dmitry Gozman <dgozman@chromium.org>
Commit-Queue: Livvie Lin <livvielin@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#646404}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 9c7d1ffab3ff18776d535bdafea9b147f442119f
2019-04-01 18:08:15 +00:00
Junyi Xiao fa7b79edbc DevTools: Fix a11y issues in tabbed pane UI component
Automated testing revealed:
1. the three-dot button on tabbed pane of the drawer view doesn't have a name property which can impair screenreader's ability to announce the appropriate context of focus;
2. the tab close button doesn't have have a name property which can impair screenreader's ability to announce the appropriate context when users try to access the control with some pointing device;

This change adds
1. a title to the three-dot button mentioned above;
2. a title to the tab close button;
3. a minor fix for misused even.key of Space key.

Change-Id: Ieca67cc385d57fac534d28a2a3631c155e1e27ac
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1536444
Commit-Queue: Junyi Xiao <juxiao@microsoft.com>
Reviewed-by: Joel Einbinder <einbinder@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#646058}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 275582c729d4a3ee1bb456e85aa6e6b060cdfbde
2019-03-30 02:05:11 +00:00
Alexei Filippov bcbb414e0c DevTools: Add DOM event name to the performance tree views.
Drive-by: filter out Task events out of the trees, otherwise the top
level does only consist of those Task events.

BUG=938268

Change-Id: Ieb40dfb00e678d707e492909f6648b85c5d09371
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1545206
Commit-Queue: Alexei Filippov <alph@chromium.org>
Reviewed-by: Andrey Kosyakov <caseq@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#646004}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: dd7a5007a4aa1fb29ebf05de8c37cbee8e75b204
2019-03-29 23:32:40 +00:00
Harley Li d15f269ebf [DevTools] Add a warning comment to TestRunner.js addIframe()
Hopefully this comment could save time.

Change-Id: Ife589c7a7d319d81934363b8bb289ab69deca748
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1544822
Reviewed-by: Dmitry Gozman <dgozman@chromium.org>
Commit-Queue: Haihong Li (Harley) <hhli@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#645997}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 05664af3922588bd528583014347c76e3ffc37d5
2019-03-29 23:20:54 +00:00
Amanda Baker 06da915c02 DevTools: Add aXe test runner and accessibility test
After submiting accessbility fixes for the Sensors tool and Performance
Monitor, we should aim to not regress these improvements.

This change adds the AxeCoreTestRunner module which uses aXe to run
basic accessbility checks on the UI.

It also adds a test that runs aXe against the Performance Monitor and
Sensors tool since they have already received an initial accessibility
pass and are not reporting any violations in aXe.

Change-Id: I6443d5014d9200a9295746aaec7a71b4659a6417
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1534551
Reviewed-by: Joel Einbinder <einbinder@chromium.org>
Commit-Queue: Amanda Baker <ambake@microsoft.com>
Cr-Original-Commit-Position: refs/heads/master@{#645823}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: f854b6f5a7a1e16fe5880c40e8055e92eca37943
2019-03-29 17:04:12 +00:00
Harley Li ee10bd94f7 [DevTools] Modify a test (requested by crbug 947163)
Bug: 947163
Change-Id: Ic54095112e113af18af19e8d35ef95fdb3c7d517
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1544739
Reviewed-by: Erik Luo <luoe@chromium.org>
Commit-Queue: Haihong Li (Harley) <hhli@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#645516}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: f4786643dde183f69249992638b9ff4f162c8257
2019-03-28 21:38:36 +00:00
Harley Li 29038870a3 [DevTools] Add 'clear site data' to the command menu
Users should find it useful because it liberates them from the mouse!

Bug: 942503
Change-Id: I37e7a3dbcd3ed3cecca999d7b05d8e79543a41b4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1534572
Commit-Queue: Haihong Li (Harley) <hhli@chromium.org>
Reviewed-by: Joel Einbinder <einbinder@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#644973}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 37992194975b33cb4c09fa512591f3b7cf06b8b2
2019-03-27 20:50:04 +00:00
Ian Kilpatrick 1b6568ba56 Remove overflow -webkit-paged-x, -webkit-paged-y implementation.
As above. Intent to remove thread:
https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/_UhJEz04sqA

Bug: 940652
Change-Id: I002d8ed65d235f6bc2d5c5caf7973c1547f12ac1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1540081
Reviewed-by: Robert Ma <robertma@chromium.org>
Reviewed-by: Dmitry Gozman <dgozman@chromium.org>
Reviewed-by: Rune Lillesveen <futhark@chromium.org>
Reviewed-by: Morten Stenshorne <mstensho@chromium.org>
Commit-Queue: Ian Kilpatrick <ikilpatrick@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#644923}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: f9c7772fb1b0f50a6dedb6e6dae9b6038ea20065
2019-03-27 19:04:43 +00:00
James Lissiak 02a851d01d DevTools: Accessibility - Fix TreeOutline item contrast ratio
Small patch to fix an issue with the colors of the TreeOutine.
Specifically, in the dark theme the selected item in the tree does not
have sufficient contrast when focus is placed outside the tree.

The following image shows the change:
https://imgur.com/a/WXY2CtT

The fix was to add a new css variable into inspectorStyle.css which is
given the existing foreground color in the light theme, but is over-
ridden in the dark theme with a better contrasting color. The new
color is then applied in treeoutline.css to selected non-focused items.

Change-Id: Iec42e6dbbc2264651dd9c6b0238a1e65ecf6246b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1540270
Reviewed-by: Joel Einbinder <einbinder@chromium.org>
Commit-Queue: James Lissiak <jalissia@microsoft.com>
Cr-Original-Commit-Position: refs/heads/master@{#644826}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 7b9e32ec329e08b58d36ec7affe375fa50e4b9ed
2019-03-27 16:03:22 +00:00
Rayan Kanso aca06e77d4 Add more functionality to the DevTools Background Services UI.
Add an origin checkbox for filtering between events belonging to the
current origin or all origins.

Also replaces the Service Worker ID with the Service Worker source
(script name) to be more user-friendly.

Screenshot: https://bugs.chromium.org/p/chromium/issues/detail?id=942174#c2

Bug: 942174, 927726
Change-Id: I5afb9929d1693d8c1faf0b166b671dddc8111d1d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1526261
Commit-Queue: Rayan Kanso <rayankans@chromium.org>
Reviewed-by: Dmitry Gozman <dgozman@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#644753}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: a1c3a6e39a7a8f4641e08fb5318a8f14270940b1
2019-03-27 11:57:06 +00:00
Rayan Kanso 3252d5e58b Add UI to show Background Service events in DevTools.
Events are shown in a data grid. Clicking on a row will create a popover
to show metadata.

This CL also adds functionality for the refresh/clear buttons.

Screenshots: https://bugs.chromium.org/p/chromium/issues/detail?id=942174#c1

Bug: 942174, 927726
Change-Id: Id6fc6dba7ddbc2e175992e76ffea3e29da947753
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1524290
Commit-Queue: Rayan Kanso <rayankans@chromium.org>
Reviewed-by: Dmitry Gozman <dgozman@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#644745}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: e728204c814742fb6fe33540619e0afc627a8d3a
2019-03-27 11:37:24 +00:00
Dmitry Gozman 091127cfdf [DevTools] Fix NodeMain to not use flatten protocol
We cannot route flatten protocol to node targets, so we should
keep wrapping node subtragets with Target.sendMessageToTarget.

Bug: 941608
Change-Id: I0b04379e143c32b61c3ede6047d6c967cd96af06
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1538484
Reviewed-by: Pavel Feldman <pfeldman@chromium.org>
Commit-Queue: Dmitry Gozman <dgozman@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#644616}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: bce2ece30c5c3644e22cae84f472166542a51309
2019-03-27 00:27:36 +00:00
Harley Li 2ba8ce75f8 [DevTools] Add entry counter to Application>Cache Storage
Without an entry counter, users might get confused how many entries
are in a cache storage, because the UI indication is not obvious enough.
Besides, adding an entry counter is consistent with IndexedDB tables.

When the path filter is not an empty string, the count reflects how
many responses were matched in total.

Bug: 930865
Change-Id: I058562a251163459eeb2adc24def4888f9a9e863
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1537254
Commit-Queue: Haihong Li (Harley) <hhli@chromium.org>
Reviewed-by: Dmitry Gozman <dgozman@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#644523}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 45237b838f0aaf393967a9a8b46d83bbee20851b
2019-03-26 21:17:21 +00:00
Erik Luo ad5f394a8b DevTools: support external links for network logs
Before, Console logs with an associated Network request would link
all links to the request's URL. Now, it uses normal linkifier,
for links with a different URL, allowing external ones.

Bug: 925508
Change-Id: I96e7aaf75ad1597852a8dd5e1b2a5363df3ff844
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1540060
Reviewed-by: Joel Einbinder <einbinder@chromium.org>
Commit-Queue: Erik Luo <luoe@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#644506}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 636c11b47a4c74808356171c53f0d7892ef90d16
2019-03-26 20:53:44 +00:00
Mike Jackson 1026fba040 DevTools: HAR file exported from CDT doesn't load in HttpWatch
When a page makes a 'POST' XHR request, and then sends a typed array as
binary data, there is no request content type.

If the user, then exports the contents of the network tool to a HAR
file, the postData section is missing the mimeType field. HttpWatch
requires the MimeType field, otherwise it treats the file as if its
incorrectly formatted.

The fix is to ensure we always generate the mimeType field for the
postData section.


Change-Id: Id110887fac50057ccab7a257a8de770a9d92b03c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1535348
Commit-Queue: Mike Jackson <mjackson@microsoft.com>
Reviewed-by: Dmitry Gozman <dgozman@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#644467}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 93409376431a411e34a1bce2ab2e7136580a60f2
2019-03-26 19:59:40 +00:00
Alexei Filippov 933306da07 Reland "DevTools: Live heap profile drawer panel."
This is a reland of 1eae21146b29f049253e64d44335e0ac5c654760

Original change's description:
> DevTools: Live heap profile drawer panel.
>
> The panel shows current memory usage broke down by URLs. This is put
> behind an experiment.
>
> BUG=937880
>
> Change-Id: I101e75037d8f1dcc68d220ff9750100e5c9607d7
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1536686
> Commit-Queue: Alexei Filippov <alph@chromium.org>
> Reviewed-by: Dmitry Gozman <dgozman@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#644155}

TBR=dgozman@chromium.org

Bug: 937880
Change-Id: Ic09fe5a6891b076edbba23c62be3203c5729ba8c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1538612
Reviewed-by: Alexei Filippov <alph@chromium.org>
Commit-Queue: Alexei Filippov <alph@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#644409}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 1bc5b87d28c664def8bde37dce2f14e60d85e810
2019-03-26 17:40:51 +00:00
James Lissiak d2f1a2ff9f DevTools: Adding new performance histograms for launch of top 4 tools
This change adds 4 new performance histograms for the DevTools using the
prefix 'DevTools.Launch':
- DevTools.Launch.Console
- DevTools.Launch.Elements
- DevTools.Launch.Network
- DevTools.Launch.Sources

These histograms measure the time between the DevTools window being
shown during 'DevToolsWindow::ToggleDevToolsWindow' and a point in each
tool that corresponds to the 'ready' state as seen by a user. These end
points are unique to each tool but are as follows:
- Console: At the end of the ConsolePrompt constructor
- Elements: At the end of _updateMetrics when the styles panel has
  been populated for the initially selected node
- Network: After the panel is shown
- Sources: After the NetworkNavigatorView has been loaded

These tools were chosen as they represent the most popular in terms of
usage and will allow us to identify any significant performance impact
in the time taken to launch the DevTools when these panels open by
default.

To see time captured by the histograms in terms of a perf trace for
each tool please take a look at the following screenshots:
https://imgur.com/a/rcAgQ8h

In the traces you can see that the end marker for each load is at the
end of the trace near first meaningful paint, and just as the user
will see the content of the tool render fully.

To accomplish the histograms, a new native function has been added to
the DevTools ui bindings/embedder classes called
'recordPerformanceHistogram'. Along with the plumbing and a new helper
function in the frontend javascript Host.UserMetrics file called
'panelLoaded'

When the frontend javascript loads, it will store the initial panel to
be loaded from the preferences. Once that panel has been created and
the appropriate loaded marker has been hit, the duration of the launch
will be calculated using performance.now(). That duration is then sent
to the native code which will fire the appropriate histogram via the
'UMA_HISTOGRAM_TIMES' macros.

The mechanism is similar to the existing one used for enumerated
histograms and can be expanded to fire additional performance histograms
in the future.

Also added a new test for user-metrics to ensure that the panelLoaded
function will correctly record the histograms.

Change-Id: Ib9f0bf80c651231d6d2e308bee36c1a1223f04db
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1506388
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Reviewed-by: Ilya Sherman <isherman@chromium.org>
Reviewed-by: Pavel Feldman <pfeldman@chromium.org>
Commit-Queue: James Lissiak <jalissia@microsoft.com>
Cr-Original-Commit-Position: refs/heads/master@{#644407}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 296f6b12650bd5e38eaf1fe0987c46910fe2d6eb
2019-03-26 17:36:51 +00:00
Tsuyoshi Horo 0cf9fdaff4 Revert "DevTools: Live heap profile drawer panel."
This reverts commit 1eae21146b29f049253e64d44335e0ac5c654760.

Reason for revert: devtools_eslint failes

Bug: 945712

Original change's description:
> DevTools: Live heap profile drawer panel.
> 
> The panel shows current memory usage broke down by URLs. This is put
> behind an experiment.
> 
> BUG=937880
> 
> Change-Id: I101e75037d8f1dcc68d220ff9750100e5c9607d7
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1536686
> Commit-Queue: Alexei Filippov <alph@chromium.org>
> Reviewed-by: Dmitry Gozman <dgozman@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#644155}

TBR=dgozman@chromium.org,alph@chromium.org,kozyatinskiy@chromium.org

Change-Id: I08c05f19d687bde1b82eefd3d7bd356e4acdfd27
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: 937880
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1535305
Reviewed-by: Tsuyoshi Horo <horo@chromium.org>
Commit-Queue: Tsuyoshi Horo <horo@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#644196}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 4baecd8362ea0a345ab43d763b03bf5e8d369673
2019-03-26 05:16:55 +00:00
Alexei Filippov f46b88a2af DevTools: Live heap profile drawer panel.
The panel shows current memory usage broke down by URLs. This is put
behind an experiment.

BUG=937880

Change-Id: I101e75037d8f1dcc68d220ff9750100e5c9607d7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1536686
Commit-Queue: Alexei Filippov <alph@chromium.org>
Reviewed-by: Dmitry Gozman <dgozman@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#644155}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 1eae21146b29f049253e64d44335e0ac5c654760
2019-03-26 02:33:45 +00:00
Andrey Kosyakov 645b5a19a6 Reland "DevTools: add Page.frameRequestedNavigation, deprecate Page.frameScheduledNavigation and frameClearedScheduledNavigation"
TBR=dgozman@chromium.org, japhet@chromium.org

- add FrameRequestedNavigation probe that gets dispatched whenever client-initiated navigation request is sent to browser and carries reason for navigation;
- expose the above as Page.frameRequestedNavigation
- deprecate Page.frameScheduledNavigation and Page.frameClearedScheduledNavigation;

Change-Id: I18e75c591310dd9db13338addb47eb870b9d7722
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1532470
Reviewed-by: Andrey Kosyakov <caseq@chromium.org>
Commit-Queue: Andrey Kosyakov <caseq@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#644133}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 4005fcf1c724629b63ac6fc390d40a2f8f40be3d
2019-03-26 01:41:41 +00:00
Paul Irish dca01d0c77 DevTools: reset emulation in case of Audits panel error
Bug: 945426
Change-Id: I4fb12d35f1ef17029b7cf6d00809e325b3eba8d4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1520350
Commit-Queue: Paul Irish <paulirish@chromium.org>
Auto-Submit: Paul Irish <paulirish@chromium.org>
Reviewed-by: Erik Luo <luoe@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#643977}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 0265f982bdb98ef6a0ceeba7eccb1b0f6d307486
2019-03-25 20:17:56 +00:00
Paul Irish f265907ec4 DevTools: [Audits] Remove linked bug reporting
Change-Id: I02c61f50a2cdb37c073b0d5f495fbb56f74e0abf
Bug: 940498
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1515275
Commit-Queue: Paul Irish <paulirish@chromium.org>
Auto-Submit: Paul Irish <paulirish@chromium.org>
Reviewed-by: Erik Luo <luoe@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#643734}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: df4289eaea2d4b063d3076eca0eba4e3212e0505
2019-03-24 19:08:52 +00:00