Skip to content

Commit f4e90f9

Browse files
committed
squash 'resources/unpacked/devtools' changes from 584b79d..e841464
e841464 Update DevTools DEPS. e14c2ba Update DevTools Chromium DEPS. 412c7c0 Update DevTools DEPS. 7fbd457 Update DevTools DEPS. d186adc Add telemetry for keyboard shortcuts 6e53c0c Audits: Roll Lighthouse to front_end/third_party ead1214 [utilities] Remove Array#select 24054e6 Enable no-else-return lint rule with autofix 395cc9a [e2e] Ensures console messages are populated 52f66b9 Fix copy-paste error on dir check cfeaf15 Updates boot perf timing to be 2 decimal places 60d3017 [e2e] Migrate http/tests/devtools/search/sources-search-scope.js to e2e aff4ec7 Update DevTools DEPS. 732b47f Fix clicking on labels for checkboxes 722ed11 Ensure we import `errno` in ts_library.py 5922326 Remove `String.prototype.computeLineEndings` 39d01b8 Typecheck EventTarget.js 56e8c7a TypeScript CharacterIdMap_test into Ninja c51e8b9 [perf] Updates boot perf test 6919027 Typecheck Common.UIString 8ea153c Reland "Typescriptify FormattedContentBuilder + move tests" 0ea6f7e Prepare BreakpointManager.js for asynchronous source mapping 0b5b87d Revert "Typescriptify FormattedContentBuilder + move tests" d63d4ea Update DevTools DEPS. dcafda8 Switch the Media tab to ES Modules eecf850 Fix Grid accessibility name. 6455c39 Move Trie test to being built with Ninja e2dc3fd Typescriptify FormattedContentBuilder + move tests 7e3f65f Remove transparent border-top from Elements tree rows 04a5635 Run TypeScript without building mode 0740564 Update screenshot testing to enable element screenshots d03ab1d Add toolbar showing count of warnings to issues panel git-subtree-dir: resources/unpacked/devtools git-subtree-split: e841464
1 parent 6c3dbde commit f4e90f9

File tree

193 files changed

+72827
-72552
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

193 files changed

+72827
-72552
lines changed

.eslintignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ front_end/.eslintrc.js
88
front_end/InspectorBackendCommands.js
99
front_end/SupportedCSSProperties.js
1010
front_end/accessibility/ARIAProperties.js
11-
front_end/lighthouse_worker/lighthouse/
12-
front_end/lighthouse/lighthouse/
1311
front_end/cm/
1412
front_end/cm_headless/
1513
front_end/cm_modes/

.eslintrc.js

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -43,28 +43,29 @@ module.exports = {
4343
'eol-last': 2,
4444

4545
// anti-patterns
46-
'no-with': 2,
47-
'no-multi-str': 2,
4846
'no-caller': 2,
47+
'no-cond-assign': 2,
48+
'no-console': [2, {'allow': ['assert', 'context', 'error', 'timeStamp', 'time', 'timeEnd', 'warn']}],
49+
'no-debugger': 2,
50+
'no-dupe-keys': 2,
51+
'no-duplicate-case': 2,
52+
'no-else-return': [2, {'allowElseIf': false}],
53+
'no-empty-character-class': 2,
4954
'no-implied-eval': 2,
5055
'no-labels': 2,
56+
'no-multi-str': 2,
5157
'no-new-object': 2,
5258
'no-octal-escape': 2,
5359
'no-self-compare': 2,
5460
'no-shadow-restricted-names': 2,
55-
'no-cond-assign': 2,
56-
'no-debugger': 2,
57-
'no-console': [2, {'allow': ['assert', 'context', 'error', 'timeStamp', 'time', 'timeEnd', 'warn']}],
58-
'no-dupe-keys': 2,
59-
'no-duplicate-case': 2,
60-
'no-empty-character-class': 2,
6161
'no-unreachable': 2,
6262
'no-unsafe-negation': 2,
63-
'radix': 2,
64-
'valid-typeof': 2,
63+
'no-unused-vars': [2, {'args': 'none', 'vars': 'local'}],
6564
'no-var': 2,
65+
'no-with': 2,
6666
'prefer-const': 2,
67-
'no-unused-vars': [2, {'args': 'none', 'vars': 'local'}],
67+
'radix': 2,
68+
'valid-typeof': 2,
6869

6970
// es2015 features
7071
'require-yield': 2,

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,6 @@ test/screenshots/**/*.js
4646
!test/screenshots/**/interactive.js
4747
test/screenshots/**/*.tsbuildinfo
4848
test/screenshots/.generated
49+
test/perf/.generated
50+
test/perf/**/*.js
51+
test/perf/**/*.tsbuildinfo

BUILD.gn

Lines changed: 82 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,10 @@ all_devtools_files = [
2626
"front_end/lighthouse_worker.js",
2727
"front_end/lighthouse_worker.json",
2828
"front_end/lighthouse_worker/LighthouseService.js",
29-
"front_end/lighthouse_worker/lighthouse/lighthouse-dt-bundle.js",
3029
"front_end/lighthouse_worker/module.json",
3130
"front_end/lighthouse/lighthouseDialog.css",
3231
"front_end/lighthouse/lighthousePanel.css",
3332
"front_end/lighthouse/lighthouseStartView.css",
34-
"front_end/lighthouse/lighthouse/report.css",
35-
"front_end/lighthouse/lighthouse/report.js",
36-
"front_end/lighthouse/lighthouse/template.html",
37-
"front_end/lighthouse/lighthouse/templates.html",
3833
"front_end/lighthouse/module.json",
3934
"front_end/axe_core_test_runner/AxeCoreTestRunner.js",
4035
"front_end/axe_core_test_runner/module.json",
@@ -177,18 +172,11 @@ all_devtools_files = [
177172
"front_end/layers/module.json",
178173
"front_end/main/module.json",
179174
"front_end/media/chevronTabbedPanel.css",
180-
"front_end/media/ChevronTabbedPanel.js",
181175
"front_end/media/eventDisplayTable.css",
182-
"front_end/media/EventDisplayTable.js",
183-
"front_end/media/MainView.js",
184-
"front_end/media/MediaModel.js",
185176
"front_end/media/mediaView.css",
186177
"front_end/media/module.json",
187-
"front_end/media/PlayerDetailView.js",
188178
"front_end/media/playerListView.css",
189-
"front_end/media/PlayerListView.js",
190179
"front_end/media/playerPropertiesView.css",
191-
"front_end/media/PlayerPropertiesView.js",
192180
"front_end/mobile_throttling/module.json",
193181
"front_end/mobile_throttling/throttlingSettingsTab.css",
194182
"front_end/ndb_app.json",
@@ -316,6 +304,12 @@ all_devtools_files = [
316304
"front_end/text_utils/module.json",
317305
"front_end/third_party/fabricjs/fabric.js",
318306
"front_end/third_party/fabricjs/module.json",
307+
"front_end/third_party/lighthouse/lighthouse-dt-bundle.js",
308+
"front_end/third_party/lighthouse/report-assets/report.css",
309+
"front_end/third_party/lighthouse/report-assets/report.js",
310+
"front_end/third_party/lighthouse/report-assets/report-generator.js",
311+
"front_end/third_party/lighthouse/report-assets/template.html",
312+
"front_end/third_party/lighthouse/report-assets/templates.html",
319313
"front_end/third_party/wasmparser/module.json",
320314
"front_end/timeline_model/module.json",
321315
"front_end/timeline/historyToolbarButton.css",
@@ -381,54 +375,54 @@ all_devtools_files = [
381375
]
382376

383377
lighthouse_locale_files = [
384-
"front_end/lighthouse_worker/lighthouse/locales/ar-XB.json",
385-
"front_end/lighthouse_worker/lighthouse/locales/ar.json",
386-
"front_end/lighthouse_worker/lighthouse/locales/bg.json",
387-
"front_end/lighthouse_worker/lighthouse/locales/ca.json",
388-
"front_end/lighthouse_worker/lighthouse/locales/cs.json",
389-
"front_end/lighthouse_worker/lighthouse/locales/da.json",
390-
"front_end/lighthouse_worker/lighthouse/locales/de.json",
391-
"front_end/lighthouse_worker/lighthouse/locales/el.json",
392-
"front_end/lighthouse_worker/lighthouse/locales/en-GB.json",
393-
"front_end/lighthouse_worker/lighthouse/locales/en-US.json",
394-
"front_end/lighthouse_worker/lighthouse/locales/en-XA.json",
395-
"front_end/lighthouse_worker/lighthouse/locales/en-XL.json",
396-
"front_end/lighthouse_worker/lighthouse/locales/es-419.json",
397-
"front_end/lighthouse_worker/lighthouse/locales/es.json",
398-
"front_end/lighthouse_worker/lighthouse/locales/fi.json",
399-
"front_end/lighthouse_worker/lighthouse/locales/fil.json",
400-
"front_end/lighthouse_worker/lighthouse/locales/fr.json",
401-
"front_end/lighthouse_worker/lighthouse/locales/he.json",
402-
"front_end/lighthouse_worker/lighthouse/locales/hi.json",
403-
"front_end/lighthouse_worker/lighthouse/locales/hr.json",
404-
"front_end/lighthouse_worker/lighthouse/locales/hu.json",
405-
"front_end/lighthouse_worker/lighthouse/locales/id.json",
406-
"front_end/lighthouse_worker/lighthouse/locales/it.json",
407-
"front_end/lighthouse_worker/lighthouse/locales/ja.json",
408-
"front_end/lighthouse_worker/lighthouse/locales/ko.json",
409-
"front_end/lighthouse_worker/lighthouse/locales/lt.json",
410-
"front_end/lighthouse_worker/lighthouse/locales/lv.json",
411-
"front_end/lighthouse_worker/lighthouse/locales/nl.json",
412-
"front_end/lighthouse_worker/lighthouse/locales/no.json",
413-
"front_end/lighthouse_worker/lighthouse/locales/pl.json",
414-
"front_end/lighthouse_worker/lighthouse/locales/pt-PT.json",
415-
"front_end/lighthouse_worker/lighthouse/locales/pt.json",
416-
"front_end/lighthouse_worker/lighthouse/locales/ro.json",
417-
"front_end/lighthouse_worker/lighthouse/locales/ru.json",
418-
"front_end/lighthouse_worker/lighthouse/locales/sk.json",
419-
"front_end/lighthouse_worker/lighthouse/locales/sl.json",
420-
"front_end/lighthouse_worker/lighthouse/locales/sr-Latn.json",
421-
"front_end/lighthouse_worker/lighthouse/locales/sr.json",
422-
"front_end/lighthouse_worker/lighthouse/locales/sv.json",
423-
"front_end/lighthouse_worker/lighthouse/locales/ta.json",
424-
"front_end/lighthouse_worker/lighthouse/locales/te.json",
425-
"front_end/lighthouse_worker/lighthouse/locales/th.json",
426-
"front_end/lighthouse_worker/lighthouse/locales/tr.json",
427-
"front_end/lighthouse_worker/lighthouse/locales/uk.json",
428-
"front_end/lighthouse_worker/lighthouse/locales/vi.json",
429-
"front_end/lighthouse_worker/lighthouse/locales/zh-HK.json",
430-
"front_end/lighthouse_worker/lighthouse/locales/zh-TW.json",
431-
"front_end/lighthouse_worker/lighthouse/locales/zh.json",
378+
"front_end/third_party/lighthouse/locales/ar-XB.json",
379+
"front_end/third_party/lighthouse/locales/ar.json",
380+
"front_end/third_party/lighthouse/locales/bg.json",
381+
"front_end/third_party/lighthouse/locales/ca.json",
382+
"front_end/third_party/lighthouse/locales/cs.json",
383+
"front_end/third_party/lighthouse/locales/da.json",
384+
"front_end/third_party/lighthouse/locales/de.json",
385+
"front_end/third_party/lighthouse/locales/el.json",
386+
"front_end/third_party/lighthouse/locales/en-GB.json",
387+
"front_end/third_party/lighthouse/locales/en-US.json",
388+
"front_end/third_party/lighthouse/locales/en-XA.json",
389+
"front_end/third_party/lighthouse/locales/en-XL.json",
390+
"front_end/third_party/lighthouse/locales/es-419.json",
391+
"front_end/third_party/lighthouse/locales/es.json",
392+
"front_end/third_party/lighthouse/locales/fi.json",
393+
"front_end/third_party/lighthouse/locales/fil.json",
394+
"front_end/third_party/lighthouse/locales/fr.json",
395+
"front_end/third_party/lighthouse/locales/he.json",
396+
"front_end/third_party/lighthouse/locales/hi.json",
397+
"front_end/third_party/lighthouse/locales/hr.json",
398+
"front_end/third_party/lighthouse/locales/hu.json",
399+
"front_end/third_party/lighthouse/locales/id.json",
400+
"front_end/third_party/lighthouse/locales/it.json",
401+
"front_end/third_party/lighthouse/locales/ja.json",
402+
"front_end/third_party/lighthouse/locales/ko.json",
403+
"front_end/third_party/lighthouse/locales/lt.json",
404+
"front_end/third_party/lighthouse/locales/lv.json",
405+
"front_end/third_party/lighthouse/locales/nl.json",
406+
"front_end/third_party/lighthouse/locales/no.json",
407+
"front_end/third_party/lighthouse/locales/pl.json",
408+
"front_end/third_party/lighthouse/locales/pt-PT.json",
409+
"front_end/third_party/lighthouse/locales/pt.json",
410+
"front_end/third_party/lighthouse/locales/ro.json",
411+
"front_end/third_party/lighthouse/locales/ru.json",
412+
"front_end/third_party/lighthouse/locales/sk.json",
413+
"front_end/third_party/lighthouse/locales/sl.json",
414+
"front_end/third_party/lighthouse/locales/sr-Latn.json",
415+
"front_end/third_party/lighthouse/locales/sr.json",
416+
"front_end/third_party/lighthouse/locales/sv.json",
417+
"front_end/third_party/lighthouse/locales/ta.json",
418+
"front_end/third_party/lighthouse/locales/te.json",
419+
"front_end/third_party/lighthouse/locales/th.json",
420+
"front_end/third_party/lighthouse/locales/tr.json",
421+
"front_end/third_party/lighthouse/locales/uk.json",
422+
"front_end/third_party/lighthouse/locales/vi.json",
423+
"front_end/third_party/lighthouse/locales/zh-HK.json",
424+
"front_end/third_party/lighthouse/locales/zh-TW.json",
425+
"front_end/third_party/lighthouse/locales/zh.json",
432426
]
433427

434428
all_devtools_files += lighthouse_locale_files
@@ -460,8 +454,8 @@ all_devtools_modules = [
460454
"front_end/lighthouse/LighthouseReportSelector.js",
461455
"front_end/lighthouse/LighthouseStartView.js",
462456
"front_end/lighthouse/LighthouseStatusView.js",
463-
"front_end/lighthouse/lighthouse/report-generator.js",
464-
"front_end/lighthouse/lighthouse/report.js",
457+
"front_end/third_party/lighthouse/report-assets/report-generator.js",
458+
"front_end/third_party/lighthouse/report-assets/report.js",
465459
"front_end/lighthouse/RadioSetting.js",
466460
"front_end/bindings/bindings.js",
467461
"front_end/bindings/bindings-legacy.js",
@@ -754,6 +748,15 @@ all_devtools_modules = [
754748
"front_end/main/main-legacy.js",
755749
"front_end/main/MainImpl.js",
756750
"front_end/main/SimpleApp.js",
751+
"front_end/media/ChevronTabbedPanel.js",
752+
"front_end/media/EventDisplayTable.js",
753+
"front_end/media/MainView.js",
754+
"front_end/media/media.js",
755+
"front_end/media/media-legacy.js",
756+
"front_end/media/MediaModel.js",
757+
"front_end/media/PlayerDetailView.js",
758+
"front_end/media/PlayerListView.js",
759+
"front_end/media/PlayerPropertiesView.js",
757760
"front_end/mobile_throttling/mobile_throttling.js",
758761
"front_end/mobile_throttling/mobile_throttling-legacy.js",
759762
"front_end/mobile_throttling/MobileThrottlingSelector.js",
@@ -1387,8 +1390,8 @@ copied_devtools_modules = [
13871390
"$resources_out_dir/lighthouse/LighthouseReportSelector.js",
13881391
"$resources_out_dir/lighthouse/LighthouseStartView.js",
13891392
"$resources_out_dir/lighthouse/LighthouseStatusView.js",
1390-
"$resources_out_dir/lighthouse/lighthouse/report-generator.js",
1391-
"$resources_out_dir/lighthouse/lighthouse/report.js",
1393+
"$resources_out_dir/third_party/lighthouse/report-assets/report-generator.js",
1394+
"$resources_out_dir/third_party/lighthouse/report-assets/report.js",
13921395
"$resources_out_dir/lighthouse/RadioSetting.js",
13931396
"$resources_out_dir/bindings/bindings.js",
13941397
"$resources_out_dir/bindings/bindings-legacy.js",
@@ -1681,6 +1684,15 @@ copied_devtools_modules = [
16811684
"$resources_out_dir/main/main-legacy.js",
16821685
"$resources_out_dir/main/MainImpl.js",
16831686
"$resources_out_dir/main/SimpleApp.js",
1687+
"$resources_out_dir/media/ChevronTabbedPanel.js",
1688+
"$resources_out_dir/media/EventDisplayTable.js",
1689+
"$resources_out_dir/media/MainView.js",
1690+
"$resources_out_dir/media/media.js",
1691+
"$resources_out_dir/media/media-legacy.js",
1692+
"$resources_out_dir/media/MediaModel.js",
1693+
"$resources_out_dir/media/PlayerDetailView.js",
1694+
"$resources_out_dir/media/PlayerListView.js",
1695+
"$resources_out_dir/media/PlayerPropertiesView.js",
16841696
"$resources_out_dir/mobile_throttling/mobile_throttling.js",
16851697
"$resources_out_dir/mobile_throttling/mobile_throttling-legacy.js",
16861698
"$resources_out_dir/mobile_throttling/MobileThrottlingSelector.js",
@@ -2232,7 +2244,10 @@ group("devtools_all_files") {
22322244
deps = [ ":devtools_frontend_resources_data" ]
22332245
}
22342246

2235-
devtools_typescript_deps = [ "front_end/common:common" ]
2247+
devtools_typescript_deps = [
2248+
"front_end/common:common",
2249+
"front_end/formatter_worker",
2250+
]
22362251

22372252
devtools_frontend_resources_deps = devtools_typescript_deps + [
22382253
":aria_properties",
@@ -2265,6 +2280,7 @@ if (!is_android) {
22652280
devtools_frontend_resources_deps += [
22662281
":copy_karma_conf",
22672282
"test/unittests/front_end/common",
2283+
"test/unittests/front_end/formatter_worker",
22682284
]
22692285
}
22702286

@@ -2304,7 +2320,7 @@ copy("copy_emulated_devices_images") {
23042320

23052321
copy("copy_lighthouse_locale_files") {
23062322
sources = lighthouse_locale_files
2307-
outputs = [ "$resources_out_dir/lighthouse_worker/lighthouse/locales/{{source_file_part}}" ]
2323+
outputs = [ "$resources_out_dir/third_party/lighthouse/locales/{{source_file_part}}" ]
23082324
}
23092325

23102326
copy("copy_wasm_deps") {

DEPS

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44

55
vars = {
66
'build_url': 'https://chromium.googlesource.com/chromium/src/build.git',
7-
'build_revision': '05fc2f579a9b9044eb6c66f7c076e6fffec9f9f8',
7+
'build_revision': 'f0f1f409ecb5e7ce3e4e3ae5ac1f01eb5550837f',
88

99
'buildtools_url': 'https://chromium.googlesource.com/chromium/src/buildtools.git',
10-
'buildtools_revision': 'ef2f1b324945dd1451ef58653e7723b92dcb23cc',
10+
'buildtools_revision': 'fa6ae42dcfbf3bf965439c0bdfeb03cf4e2a5840',
1111

1212
'depot_tools_url': 'https://chromium.googlesource.com/chromium/tools/depot_tools.git',
13-
'depot_tools_revision': '29d5cf85ac28d9ef59228e8805ab7b1078baa667',
13+
'depot_tools_revision': '9ca9c52c4c04eee136f37bab1404ae0c2319bf06',
1414

1515
'inspector_protocol_url': 'https://chromium.googlesource.com/deps/inspector_protocol',
1616
'inspector_protocol_revision': '81ef742ba3587767fc08652d299df9e9b7051407',
@@ -23,11 +23,11 @@ vars = {
2323

2424
# Chromium build number for unit tests. It should be regularly updated to
2525
# the content of https://commondatastorage.googleapis.com/chromium-browser-snapshots/Linux_x64/LAST_CHANGE
26-
'chromium_linux': '744926',
26+
'chromium_linux': '745768',
2727
# the content of https://commondatastorage.googleapis.com/chromium-browser-snapshots/Win_x64/LAST_CHANGE
28-
'chromium_win': '744921',
28+
'chromium_win': '745766',
2929
# the content of https://commondatastorage.googleapis.com/chromium-browser-snapshots/Mac/LAST_CHANGE
30-
'chromium_mac': '744917',
30+
'chromium_mac': '745768',
3131
}
3232

3333
# Only these hosts are allowed for dependencies in this DEPS file.

front_end/Tests.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1146,7 +1146,8 @@
11461146
const text = messages[i].messageText;
11471147
if (text === 'PASS') {
11481148
return;
1149-
} else if (/^FAIL/.test(text)) {
1149+
}
1150+
if (/^FAIL/.test(text)) {
11501151
this.fail(text);
11511152
} // This will throw.
11521153
}

front_end/accessibility/AccessibilityNodeView.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,8 @@ export class AXNodePropertyTreeElement extends UI.TreeOutline.TreeElement {
211211
value.type === AXValueType.NodeList) {
212212
this.appendRelatedNodeListValueElement(value);
213213
return;
214-
} else if (value.sources) {
214+
}
215+
if (value.sources) {
215216
const sources = value.sources;
216217
for (let i = 0; i < sources.length; i++) {
217218
const source = sources[i];

front_end/animation/AnimationModel.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -682,9 +682,8 @@ export class AnimationGroup {
682682
function extractId(anim) {
683683
if (anim.type() === Type.WebAnimation) {
684684
return anim.type() + anim.id();
685-
} else {
686-
return anim._cssId();
687685
}
686+
return anim._cssId();
688687
}
689688

690689
if (this._animations.length !== group._animations.length) {

0 commit comments

Comments
 (0)