Skip to content

Commit ab8c828

Browse files
authored
Merge branch 'ChromeDevTools:main' into main
2 parents 6f9b5cd + 86e8e6c commit ab8c828

File tree

789 files changed

+24922
-22671
lines changed

Some content is hidden

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

789 files changed

+24922
-22671
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
/scripts/visualize_deps/out
2222
config.gypi
2323
/karma-coverage
24-
/interactions-coverage
2524
/perf-data
2625
npm-debug.log
2726
/scripts/protocol_typescript/*.js

.stylelintignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
front_end/third_party
22
karma-coverage
3-
interactions-coverage
43
node_modules
54
out
65
test/**/fixtures

BUILD.gn

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,9 @@ action("assert_third_party_readmes") {
8989
}
9090

9191
_expected_grd_files = []
92-
_expected_grd_files += grd_files_release_sources
93-
if (is_debug) {
94-
_expected_grd_files += grd_files_debug_sources
92+
_expected_grd_files += grd_files_bundled_sources
93+
if (!devtools_bundle) {
94+
_expected_grd_files += grd_files_unbundled_sources
9595
}
9696

9797
generated_file("expected_grd_files") {

DEPS

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,24 +15,24 @@ vars = {
1515
'build_revision': 'e13953ced04ed05f45aa3c961bd6d802aced74ec',
1616

1717
'buildtools_url': 'https://chromium.googlesource.com/chromium/src/buildtools.git',
18-
'buildtools_revision': '64b9f65d16a4de27d1d3e7d880ddc983f281151f',
18+
'buildtools_revision': 'f7862e515c44313f6942517fef6d7718d92283d3',
1919

2020
'depot_tools_url': 'https://chromium.googlesource.com/chromium/tools/depot_tools.git',
21-
'depot_tools_revision': 'd255a8d41e7a2fdc6b50fee69e70014f875d47ef',
21+
'depot_tools_revision': '5cc29c7a217801cfa7b7b0aa23144300b49b750d',
2222

2323
'inspector_protocol_url': 'https://chromium.googlesource.com/deps/inspector_protocol',
2424
'inspector_protocol_revision': '6d1ae0f13aae6ad381ca31b17b88a0f5af29ca94',
2525

2626
# Keeping track of the last time we rollerd the browser protocol files.
27-
'chromium_browser_protocol_revision' : 'd2038f87e77355d9568c6446169e2e3f07197ee8',
27+
'chromium_browser_protocol_revision' : '9a6cdde91b579b777f10c566efb8b25d7552f21e',
2828

2929
'clang_format_url': 'https://chromium.googlesource.com/external/github.com/llvm/llvm-project/clang/tools/clang-format.git',
3030
'clang_format_revision': '37f6e68a107df43b7d7e044fd36a13cbae3413f2',
3131

3232
'emscripten_tag': 'ade9d780ff17c88d81aa13860361743e3c1e1396',
3333

3434
# GN CIPD package version.
35-
'gn_version': 'git_revision:e5c4d1881b85b82789b7013233a944cf1a46370f',
35+
'gn_version': 'git_revision:97b68a0bb62b7528bc3491c7949d6804223c2b82',
3636

3737
'cmake_version': 'version:2@3.21.3',
3838

@@ -49,7 +49,7 @@ vars = {
4949
# Chrome version used for tests. It should be regularly updated to
5050
# match the Canary version listed here:
5151
# https://googlechromelabs.github.io/chrome-for-testing/last-known-good-versions.json
52-
'chrome': '139.0.7222.0',
52+
'chrome': '139.0.7247.0',
5353

5454
# 'magic' text to tell depot_tools that git submodules should be accepted but
5555
# but parity with DEPS file is expected.
@@ -59,7 +59,7 @@ vars = {
5959
'non_git_source': 'True',
6060

6161
# siso CIPD package version
62-
'siso_version': 'git_revision:963177240b1a36697c9762856f51ad36ab545ceb',
62+
'siso_version': 'git_revision:4ac6aa83563aed91e78947b2b466eb6d49d51a21',
6363
}
6464

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

PRESUBMIT.py

Lines changed: 13 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -51,28 +51,25 @@
5151
def _ExecuteSubProcess(input_api,
5252
output_api,
5353
script_path,
54-
script_arguments=[],
55-
results=[],
54+
script_arguments=None,
5655
message=None):
5756
if isinstance(script_path, six.string_types):
5857
script_path = [input_api.python3_executable, script_path]
5958

6059
start_time = time.time()
61-
process = input_api.subprocess.Popen(script_path + script_arguments,
60+
process = input_api.subprocess.Popen(script_path +
61+
(script_arguments or []),
6262
stdout=input_api.subprocess.PIPE,
6363
stderr=input_api.subprocess.STDOUT)
6464
out, _ = process.communicate()
6565
end_time = time.time()
6666
time_difference = end_time - start_time
67-
if process.returncode != 0:
68-
results.extend([
69-
output_api.PresubmitError(
70-
"%s (%.1fs): %s" %
71-
(message if message is not None else script_path,
72-
time_difference, out.decode('utf-8').strip()))
73-
])
74-
75-
return results
67+
return [
68+
output_api.PresubmitError(
69+
"%s (%.1fs): %s" %
70+
(message if message is not None else script_path, time_difference,
71+
out.decode('utf-8').strip()))
72+
] if process.returncode != 0 else []
7673

7774

7875
def _IsEnvCog(input_api):
@@ -113,7 +110,7 @@ def _GetAffectedFiles(input_api, parent_directories, excluded_actions,
113110
def _CheckWithNodeScript(input_api,
114111
output_api,
115112
script_path,
116-
script_arguments=[],
113+
script_arguments=None,
117114
allow_typescript=False,
118115
message=None):
119116
original_sys_path = sys.path
@@ -170,19 +167,9 @@ def _CheckFormat(input_api, output_api):
170167
'Non-git environment detected, skipping _CheckFormat.')
171168
]
172169

173-
results = []
174-
175-
_ExecuteSubProcess(input_api,
176-
output_api, ['git', 'cl', 'format', '--js'],
177-
results=results,
178-
message='Format JS')
179-
180-
_ExecuteSubProcess(input_api,
181-
output_api, ['git', 'cl', 'format'],
182-
results=results,
183-
message='Format')
184-
185-
return results
170+
return _ExecuteSubProcess(input_api,
171+
output_api, ['git', 'cl', 'format', '--js'],
172+
message='Format')
186173

187174

188175
def CheckBugAssociationOnCommit(input_api, output_api):
@@ -449,15 +436,6 @@ def CheckForTooLargeFiles(input_api, output_api):
449436

450437

451438
def CheckObsoleteScreenshotGoldens(input_api, output_api):
452-
interaction_test_root_path = input_api.os_path.join(
453-
input_api.PresubmitLocalPath(), 'test', 'interactions')
454-
interaction_test_files = [interaction_test_root_path]
455-
456-
interaction_test_files_changed = _GetAffectedFiles(input_api,
457-
interaction_test_files,
458-
[], [])
459-
if len(interaction_test_files_changed) == 0:
460-
return []
461439
script_path = input_api.os_path.join(input_api.PresubmitLocalPath(),
462440
'scripts', 'test',
463441
'check_obsolete_goldens.js')

buildtools

Submodule buildtools updated from 64b9f65 to f7862e5

config/gni/devtools_grd_files.gni

Lines changed: 26 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
# found in the LICENSE file.
44

55
# This represents all the files expected to be be in the GRD. The file
6-
# has two lists, one for files expected for the Release build
7-
# (is_debug=false), and another for the Debug build (is_debug=true).
6+
# has two lists, one for files expected for the "bundled" build
7+
# (devtools_bundle=true), and another for the "unbundled" build (devtools_bundle=false).
88
# The two lists are checked for overlap, and an error thrown if there is
99
# any. In the root BUILD.gn these lists are used to ensure that no files
1010
# are missed from the GRD.
1111

12-
grd_files_release_sources = [
12+
grd_files_bundled_sources = [
1313
"front_end/Images/3d-center.svg",
1414
"front_end/Images/3d-pan.svg",
1515
"front_end/Images/3d-rotate.svg",
@@ -869,7 +869,7 @@ grd_files_release_sources = [
869869
"front_end/worker_app.html",
870870
]
871871

872-
grd_files_debug_sources = [
872+
grd_files_unbundled_sources = [
873873
"front_end/core/common/App.js",
874874
"front_end/core/common/AppProvider.js",
875875
"front_end/core/common/Base64.js",
@@ -1187,11 +1187,8 @@ grd_files_debug_sources = [
11871187
"front_end/models/trace/LanternComputationData.js",
11881188
"front_end/models/trace/ModelImpl.js",
11891189
"front_end/models/trace/Processor.js",
1190-
"front_end/models/trace/TracingManager.js",
1191-
"front_end/models/trace/extras/FetchNodes.js",
11921190
"front_end/models/trace/extras/FilmStrip.js",
11931191
"front_end/models/trace/extras/MainThreadActivity.js",
1194-
"front_end/models/trace/extras/Metadata.js",
11951192
"front_end/models/trace/extras/ScriptDuplication.js",
11961193
"front_end/models/trace/extras/StackTraceForEvent.js",
11971194
"front_end/models/trace/extras/ThirdParties.js",
@@ -1246,10 +1243,10 @@ grd_files_debug_sources = [
12461243
"front_end/models/trace/insights/DuplicatedJavaScript.js",
12471244
"front_end/models/trace/insights/FontDisplay.js",
12481245
"front_end/models/trace/insights/ForcedReflow.js",
1246+
"front_end/models/trace/insights/INPBreakdown.js",
12491247
"front_end/models/trace/insights/ImageDelivery.js",
1250-
"front_end/models/trace/insights/InteractionToNextPaint.js",
1248+
"front_end/models/trace/insights/LCPBreakdown.js",
12511249
"front_end/models/trace/insights/LCPDiscovery.js",
1252-
"front_end/models/trace/insights/LCPPhases.js",
12531250
"front_end/models/trace/insights/LegacyJavaScript.js",
12541251
"front_end/models/trace/insights/Models.js",
12551252
"front_end/models/trace/insights/ModernHTTP.js",
@@ -1315,10 +1312,8 @@ grd_files_debug_sources = [
13151312
"front_end/panels/ai_assistance/components/userActionRow.css.js",
13161313
"front_end/panels/ai_assistance/selectWorkspaceDialog.css.js",
13171314
"front_end/panels/animation/AnimationGroupPreviewUI.js",
1318-
"front_end/panels/animation/AnimationScreenshotPopover.js",
13191315
"front_end/panels/animation/AnimationTimeline.js",
13201316
"front_end/panels/animation/AnimationUI.js",
1321-
"front_end/panels/animation/animationScreenshotPopover.css.js",
13221317
"front_end/panels/animation/animationTimeline.css.js",
13231318
"front_end/panels/application/AppManifestView.js",
13241319
"front_end/panels/application/ApplicationPanelSidebar.js",
@@ -1499,6 +1494,7 @@ grd_files_debug_sources = [
14991494
"front_end/panels/elements/ImagePreviewPopover.js",
15001495
"front_end/panels/elements/InspectElementModeController.js",
15011496
"front_end/panels/elements/LayersWidget.js",
1497+
"front_end/panels/elements/LayoutPane.js",
15021498
"front_end/panels/elements/MarkerDecorator.js",
15031499
"front_end/panels/elements/MetricsSidebarPane.js",
15041500
"front_end/panels/elements/NodeStackTraceWidget.js",
@@ -1529,8 +1525,6 @@ grd_files_debug_sources = [
15291525
"front_end/panels/elements/components/ElementsBreadcrumbsUtils.js",
15301526
"front_end/panels/elements/components/ElementsTreeExpandButton.js",
15311527
"front_end/panels/elements/components/Helper.js",
1532-
"front_end/panels/elements/components/LayoutPane.js",
1533-
"front_end/panels/elements/components/LayoutPaneUtils.js",
15341528
"front_end/panels/elements/components/QueryContainer.js",
15351529
"front_end/panels/elements/components/StylePropertyEditor.js",
15361530
"front_end/panels/elements/components/accessibilityTreeNode.css.js",
@@ -1542,7 +1536,6 @@ grd_files_debug_sources = [
15421536
"front_end/panels/elements/components/cssVariableValueView.css.js",
15431537
"front_end/panels/elements/components/elementsBreadcrumbs.css.js",
15441538
"front_end/panels/elements/components/elementsTreeExpandButton.css.js",
1545-
"front_end/panels/elements/components/layoutPane.css.js",
15461539
"front_end/panels/elements/components/queryContainer.css.js",
15471540
"front_end/panels/elements/components/stylePropertyEditor.css.js",
15481541
"front_end/panels/elements/computedStyleSidebarPane.css.js",
@@ -1552,6 +1545,7 @@ grd_files_debug_sources = [
15521545
"front_end/panels/elements/elementsPanel.css.js",
15531546
"front_end/panels/elements/elementsTreeOutline.css.js",
15541547
"front_end/panels/elements/layersWidget.css.js",
1548+
"front_end/panels/elements/layoutPane.css.js",
15551549
"front_end/panels/elements/metricsSidebarPane.css.js",
15561550
"front_end/panels/elements/nodeStackTraceWidget.css.js",
15571551
"front_end/panels/elements/platformFontsWidget.css.js",
@@ -1879,6 +1873,8 @@ grd_files_debug_sources = [
18791873
"front_end/panels/sources/AddSourceMapURLDialog.js",
18801874
"front_end/panels/sources/AiWarningInfobarPlugin.js",
18811875
"front_end/panels/sources/BreakpointEditDialog.js",
1876+
"front_end/panels/sources/BreakpointsView.js",
1877+
"front_end/panels/sources/BreakpointsViewUtils.js",
18821878
"front_end/panels/sources/CSSPlugin.js",
18831879
"front_end/panels/sources/CallStackSidebarPane.js",
18841880
"front_end/panels/sources/CategorizedBreakpointL10n.js",
@@ -1908,12 +1904,10 @@ grd_files_debug_sources = [
19081904
"front_end/panels/sources/UISourceCodeFrame.js",
19091905
"front_end/panels/sources/WatchExpressionsSidebarPane.js",
19101906
"front_end/panels/sources/breakpointEditDialog.css.js",
1907+
"front_end/panels/sources/breakpointsView.css.js",
19111908
"front_end/panels/sources/callStackSidebarPane.css.js",
1912-
"front_end/panels/sources/components/BreakpointsView.js",
1913-
"front_end/panels/sources/components/BreakpointsViewUtils.js",
19141909
"front_end/panels/sources/components/HeadersView.css.js",
19151910
"front_end/panels/sources/components/HeadersView.js",
1916-
"front_end/panels/sources/components/breakpointsView.css.js",
19171911
"front_end/panels/sources/debuggerPausedMessage.css.js",
19181912
"front_end/panels/sources/dialog.css.js",
19191913
"front_end/panels/sources/navigatorTree.css.js",
@@ -1945,6 +1939,7 @@ grd_files_debug_sources = [
19451939
"front_end/panels/timeline/LayoutShiftsTrackAppender.js",
19461940
"front_end/panels/timeline/ModificationsManager.js",
19471941
"front_end/panels/timeline/NetworkTrackAppender.js",
1942+
"front_end/panels/timeline/RecordingMetadata.js",
19481943
"front_end/panels/timeline/SaveFileFormatter.js",
19491944
"front_end/panels/timeline/StatusDialog.js",
19501945
"front_end/panels/timeline/TargetForEvent.js",
@@ -1969,6 +1964,7 @@ grd_files_debug_sources = [
19691964
"front_end/panels/timeline/TimelineUIUtils.js",
19701965
"front_end/panels/timeline/TimingsTrackAppender.js",
19711966
"front_end/panels/timeline/TracingLayerTree.js",
1967+
"front_end/panels/timeline/TrackConfiguration.js",
19721968
"front_end/panels/timeline/UIDevtoolsController.js",
19731969
"front_end/panels/timeline/UIDevtoolsUtils.js",
19741970
"front_end/panels/timeline/components/Breadcrumbs.js",
@@ -2008,10 +2004,10 @@ grd_files_debug_sources = [
20082004
"front_end/panels/timeline/components/insights/FontDisplay.js",
20092005
"front_end/panels/timeline/components/insights/ForcedReflow.js",
20102006
"front_end/panels/timeline/components/insights/Helpers.js",
2007+
"front_end/panels/timeline/components/insights/INPBreakdown.js",
20112008
"front_end/panels/timeline/components/insights/ImageDelivery.js",
2012-
"front_end/panels/timeline/components/insights/InteractionToNextPaint.js",
2009+
"front_end/panels/timeline/components/insights/LCPBreakdown.js",
20132010
"front_end/panels/timeline/components/insights/LCPDiscovery.js",
2014-
"front_end/panels/timeline/components/insights/LCPPhases.js",
20152011
"front_end/panels/timeline/components/insights/LegacyJavaScript.js",
20162012
"front_end/panels/timeline/components/insights/ModernHTTP.js",
20172013
"front_end/panels/timeline/components/insights/NetworkDependencyTree.js",
@@ -2052,6 +2048,7 @@ grd_files_debug_sources = [
20522048
"front_end/panels/timeline/overlays/components/entryLabelOverlay.css.js",
20532049
"front_end/panels/timeline/overlays/components/timeRangeOverlay.css.js",
20542050
"front_end/panels/timeline/overlays/components/timespanBreakdownOverlay.css.js",
2051+
"front_end/panels/timeline/thirdPartyTreeView.css.js",
20552052
"front_end/panels/timeline/timelineFlameChartView.css.js",
20562053
"front_end/panels/timeline/timelineFlamechartPopover.css.js",
20572054
"front_end/panels/timeline/timelineHistoryManager.css.js",
@@ -2064,6 +2061,7 @@ grd_files_debug_sources = [
20642061
"front_end/panels/timeline/utils/AICallTree.js",
20652062
"front_end/panels/timeline/utils/EntityMapper.js",
20662063
"front_end/panels/timeline/utils/EntryName.js",
2064+
"front_end/panels/timeline/utils/EntryNodes.js",
20672065
"front_end/panels/timeline/utils/EntryStyles.js",
20682066
"front_end/panels/timeline/utils/Helpers.js",
20692067
"front_end/panels/timeline/utils/IgnoreList.js",
@@ -2092,6 +2090,7 @@ grd_files_debug_sources = [
20922090
"front_end/services/puppeteer/PuppeteerConnection.js",
20932091
"front_end/services/trace_bounds/TraceBounds.js",
20942092
"front_end/services/tracing/PerformanceTracing.js",
2093+
"front_end/services/tracing/TracingManager.js",
20952094
"front_end/services/window_bounds/WindowBoundsService.js",
20962095
"front_end/third_party/acorn/package/dist/acorn.mjs",
20972096
"front_end/third_party/chromium/client-variations/ClientVariations.js",
@@ -2660,12 +2659,12 @@ grd_files_debug_sources = [
26602659
]
26612660

26622661
# Confirm that there is no overlap between the two lists.
2663-
_grd_files_release_sources =
2664-
filter_exclude(grd_files_release_sources, grd_files_debug_sources)
2665-
assert(_grd_files_release_sources == grd_files_release_sources,
2666-
"Debug and Release file lists overlap")
2662+
_grd_files_bundled_sources =
2663+
filter_exclude(grd_files_bundled_sources, grd_files_unbundled_sources)
2664+
assert(_grd_files_bundled_sources == grd_files_bundled_sources,
2665+
"Bundled and Bundled file lists overlap")
26672666

2668-
_grd_files_debug_sources =
2669-
filter_exclude(grd_files_debug_sources, grd_files_release_sources)
2670-
assert(_grd_files_debug_sources == grd_files_debug_sources,
2671-
"Debug and Release file lists overlap")
2667+
_grd_files_unbundled_sources =
2668+
filter_exclude(grd_files_unbundled_sources, grd_files_bundled_sources)
2669+
assert(_grd_files_unbundled_sources == grd_files_unbundled_sources,
2670+
"Bundled and Bundled file lists overlap")

config/gni/i18n.gni

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
# found in the LICENSE file.
44

55
import("//build/config/devtools.gni")
6+
import("../../scripts/build/ninja/vars.gni")
67

78
remote_devtools_locales = [
89
"af",
@@ -92,7 +93,7 @@ bundled_devtools_locales = [
9293
"zh",
9394
]
9495

95-
include_en_xl = is_debug
96+
include_en_xl = !devtools_bundle
9697
if (include_en_xl) {
9798
bundled_devtools_locales += [ "en-XL" ]
9899
}

0 commit comments

Comments
 (0)