chrome-devtools-frontend 1.0.942095 → 1.0.942529
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/config/gni/all_devtools_files.gni +0 -44
- package/config/gni/devtools_grd_files.gni +42 -2
- package/config/gni/devtools_image_files.gni +1 -1
- package/front_end/.eslintrc.js +11 -1
- package/front_end/Images/src/{feedback_thin_16x16_icon.svg → survey_feedback_icon.svg} +1 -1
- package/front_end/core/sdk/DebuggerModel.ts +4 -14
- package/front_end/emulated_devices/module.json +1 -3
- package/front_end/entrypoints/devtools_app/devtools_app.json +0 -2
- package/front_end/entrypoints/shell/shell.json +0 -1
- package/front_end/legacy_test_runner/bindings_test_runner/IsolatedFilesystemTestRunner.js +2 -2
- package/front_end/legacy_test_runner/test_runner/TestRunner.js +3 -1
- package/front_end/panels/application/components/EndpointsGrid.ts +1 -1
- package/front_end/panels/application/components/ReportsGrid.ts +1 -1
- package/front_end/panels/elements/components/StylePropertyEditor.ts +2 -0
- package/front_end/panels/emulation/DeviceModeToolbar.ts +3 -1
- package/front_end/panels/emulation/DeviceModeView.ts +2 -1
- package/front_end/panels/emulation/InspectedPagePlaceholder.ts +3 -1
- package/front_end/panels/emulation/MediaQueryInspector.ts +3 -1
- package/front_end/panels/emulation/emulation-meta.ts +0 -2
- package/front_end/panels/lighthouse/LighthousePanel.ts +2 -4
- package/front_end/panels/lighthouse/LighthouseReportRenderer.ts +1 -4
- package/front_end/panels/lighthouse/module.json +1 -4
- package/front_end/panels/profiler/module.json +1 -3
- package/front_end/panels/screencast/module.json +1 -4
- package/front_end/panels/timeline/module.json +0 -1
- package/front_end/third_party/lighthouse/lighthouse-dt-bundle.js +1128 -1158
- package/front_end/third_party/lighthouse/locales/ar-XB.json +211 -79
- package/front_end/third_party/lighthouse/locales/ar.json +213 -81
- package/front_end/third_party/lighthouse/locales/bg.json +211 -79
- package/front_end/third_party/lighthouse/locales/ca.json +212 -80
- package/front_end/third_party/lighthouse/locales/cs.json +211 -79
- package/front_end/third_party/lighthouse/locales/da.json +211 -79
- package/front_end/third_party/lighthouse/locales/de.json +211 -79
- package/front_end/third_party/lighthouse/locales/el.json +213 -81
- package/front_end/third_party/lighthouse/locales/en-GB.json +211 -79
- package/front_end/third_party/lighthouse/locales/en-US.json +186 -75
- package/front_end/third_party/lighthouse/locales/en-XA.json +211 -79
- package/front_end/third_party/lighthouse/locales/en-XL.json +186 -75
- package/front_end/third_party/lighthouse/locales/es-419.json +211 -79
- package/front_end/third_party/lighthouse/locales/es.json +212 -80
- package/front_end/third_party/lighthouse/locales/fi.json +211 -79
- package/front_end/third_party/lighthouse/locales/fil.json +211 -79
- package/front_end/third_party/lighthouse/locales/fr.json +211 -79
- package/front_end/third_party/lighthouse/locales/he.json +212 -80
- package/front_end/third_party/lighthouse/locales/hi.json +214 -82
- package/front_end/third_party/lighthouse/locales/hr.json +211 -79
- package/front_end/third_party/lighthouse/locales/hu.json +211 -79
- package/front_end/third_party/lighthouse/locales/id.json +211 -79
- package/front_end/third_party/lighthouse/locales/it.json +211 -79
- package/front_end/third_party/lighthouse/locales/ja.json +211 -79
- package/front_end/third_party/lighthouse/locales/ko.json +211 -79
- package/front_end/third_party/lighthouse/locales/lt.json +211 -79
- package/front_end/third_party/lighthouse/locales/lv.json +214 -82
- package/front_end/third_party/lighthouse/locales/nl.json +211 -79
- package/front_end/third_party/lighthouse/locales/no.json +211 -79
- package/front_end/third_party/lighthouse/locales/pl.json +211 -79
- package/front_end/third_party/lighthouse/locales/pt-PT.json +211 -79
- package/front_end/third_party/lighthouse/locales/pt.json +211 -79
- package/front_end/third_party/lighthouse/locales/ro.json +212 -80
- package/front_end/third_party/lighthouse/locales/ru.json +211 -79
- package/front_end/third_party/lighthouse/locales/sk.json +211 -79
- package/front_end/third_party/lighthouse/locales/sl.json +211 -79
- package/front_end/third_party/lighthouse/locales/sr-Latn.json +211 -79
- package/front_end/third_party/lighthouse/locales/sr.json +211 -79
- package/front_end/third_party/lighthouse/locales/sv.json +211 -79
- package/front_end/third_party/lighthouse/locales/ta.json +218 -86
- package/front_end/third_party/lighthouse/locales/te.json +251 -119
- package/front_end/third_party/lighthouse/locales/th.json +211 -79
- package/front_end/third_party/lighthouse/locales/tr.json +211 -79
- package/front_end/third_party/lighthouse/locales/uk.json +212 -80
- package/front_end/third_party/lighthouse/locales/vi.json +211 -79
- package/front_end/third_party/lighthouse/locales/zh-HK.json +211 -79
- package/front_end/third_party/lighthouse/locales/zh-TW.json +211 -79
- package/front_end/third_party/lighthouse/locales/zh.json +211 -79
- package/front_end/third_party/lighthouse/report/bundle.d.ts +72 -34
- package/front_end/third_party/lighthouse/report/bundle.js +698 -492
- package/front_end/third_party/lighthouse/report-assets/report-generator.js +1 -2
- package/front_end/third_party/lighthouse/report-assets/report.js +40 -35
- package/front_end/third_party/lighthouse/report-assets/standalone-template.html +2 -4
- package/front_end/ui/components/docs/icon_button/basic.ts +3 -3
- package/front_end/ui/components/helpers/get-stylesheet.ts +0 -14
- package/front_end/ui/components/markdown_view/MarkdownImagesMap.ts +1 -1
- package/front_end/ui/components/survey_link/SurveyLink.ts +1 -1
- package/front_end/ui/legacy/Dialog.ts +3 -1
- package/front_end/ui/legacy/DropTarget.ts +2 -1
- package/front_end/ui/legacy/EmptyWidget.ts +2 -1
- package/front_end/ui/legacy/FilterBar.ts +2 -1
- package/front_end/ui/legacy/GlassPane.ts +4 -2
- package/front_end/ui/legacy/Infobar.ts +3 -2
- package/front_end/ui/legacy/InspectorView.ts +6 -1
- package/front_end/ui/legacy/ListWidget.ts +2 -1
- package/front_end/ui/legacy/PopoverHelper.ts +2 -1
- package/front_end/ui/legacy/ProgressIndicator.ts +2 -1
- package/front_end/ui/legacy/RemoteDebuggingTerminatedScreen.ts +2 -1
- package/front_end/ui/legacy/ReportView.ts +2 -1
- package/front_end/ui/legacy/RootView.ts +2 -1
- package/front_end/ui/legacy/SearchableView.ts +2 -1
- package/front_end/ui/legacy/SoftContextMenu.ts +2 -1
- package/front_end/ui/legacy/SoftDropDown.ts +4 -2
- package/front_end/ui/legacy/SplitWidget.ts +2 -1
- package/front_end/ui/legacy/SuggestBox.ts +2 -1
- package/front_end/ui/legacy/TabbedPane.ts +2 -1
- package/front_end/ui/legacy/TargetCrashedScreen.ts +2 -1
- package/front_end/ui/legacy/TextPrompt.ts +2 -1
- package/front_end/ui/legacy/Toolbar.ts +3 -2
- package/front_end/ui/legacy/Treeoutline.ts +3 -2
- package/front_end/ui/legacy/UIUtils.ts +16 -13
- package/front_end/ui/legacy/ViewManager.ts +2 -1
- package/front_end/ui/legacy/components/quick_open/filteredListWidget.css +2 -2
- package/front_end/ui/legacy/components/source_frame/FontView.ts +1 -0
- package/front_end/ui/legacy/components/source_frame/ImageView.ts +1 -0
- package/front_end/ui/legacy/components/source_frame/JSONView.ts +1 -0
- package/front_end/ui/legacy/components/source_frame/ResourceSourceFrame.ts +1 -0
- package/front_end/ui/legacy/components/source_frame/XMLView.ts +2 -0
- package/front_end/ui/legacy/components/source_frame/module.json +0 -3
- package/front_end/ui/legacy/components/text_editor/CodeMirrorTextEditor.ts +2 -0
- package/front_end/ui/legacy/components/text_editor/module.json +0 -3
- package/front_end/ui/legacy/components/utils/Linkifier.ts +7 -15
- package/front_end/ui/legacy/theme_support/theme_support_impl.ts +7 -9
- package/front_end/ui/legacy/utils/create-shadow-root-with-core-styles.ts +2 -2
- package/front_end/ui/legacy/utils/inject-core-styles.ts +7 -4
- package/package.json +1 -1
- package/front_end/panels/emulation/module.json +0 -11
- package/front_end/third_party/lighthouse/report-assets/report.css +0 -1774
- package/front_end/ui/legacy/module.json +0 -41
|
@@ -43,11 +43,6 @@ all_devtools_files = [
|
|
|
43
43
|
"front_end/legacy_test_runner/elements_test_runner/SetOuterHTMLTestRunner.js",
|
|
44
44
|
"front_end/legacy_test_runner/elements_test_runner/StylesUpdateLinksTestRunner.js",
|
|
45
45
|
"front_end/emulated_devices/module.json",
|
|
46
|
-
"front_end/panels/emulation/deviceModeToolbar.css",
|
|
47
|
-
"front_end/panels/emulation/deviceModeView.css",
|
|
48
|
-
"front_end/panels/emulation/inspectedPagePlaceholder.css",
|
|
49
|
-
"front_end/panels/emulation/mediaQueryInspector.css",
|
|
50
|
-
"front_end/panels/emulation/module.json",
|
|
51
46
|
"front_end/legacy_test_runner/extensions_test_runner/extensions_test_runner.js",
|
|
52
47
|
"front_end/legacy_test_runner/extensions_test_runner/ExtensionsNetworkTestRunner.js",
|
|
53
48
|
"front_end/legacy_test_runner/extensions_test_runner/ExtensionsTestRunner.js",
|
|
@@ -143,48 +138,9 @@ all_devtools_files = [
|
|
|
143
138
|
"front_end/ui/legacy/components/text_editor/autocompleteTooltip.css",
|
|
144
139
|
"front_end/ui/legacy/components/text_editor/cmdevtools.css",
|
|
145
140
|
"front_end/ui/legacy/components/text_editor/module.json",
|
|
146
|
-
"front_end/third_party/lighthouse/report-assets/report.css",
|
|
147
141
|
"front_end/third_party/lighthouse/report-assets/report.js",
|
|
148
142
|
"front_end/third_party/lighthouse/report-assets/standalone-template.html",
|
|
149
143
|
"front_end/panels/timeline/module.json",
|
|
150
|
-
"front_end/ui/legacy/checkboxTextLabel.css",
|
|
151
|
-
"front_end/ui/legacy/closeButton.css",
|
|
152
|
-
"front_end/ui/legacy/confirmDialog.css",
|
|
153
|
-
"front_end/ui/legacy/dialog.css",
|
|
154
|
-
"front_end/ui/legacy/dropTarget.css",
|
|
155
|
-
"front_end/ui/legacy/emptyWidget.css",
|
|
156
|
-
"front_end/ui/legacy/filter.css",
|
|
157
|
-
"front_end/ui/legacy/glassPane.css",
|
|
158
|
-
"front_end/ui/legacy/infobar.css",
|
|
159
|
-
"front_end/ui/legacy/inlineButton.css",
|
|
160
|
-
"front_end/ui/legacy/inspectorCommon.css",
|
|
161
|
-
"front_end/ui/legacy/themeColors.css",
|
|
162
|
-
"front_end/ui/legacy/inspectorSyntaxHighlight.css",
|
|
163
|
-
"front_end/ui/legacy/inspectorSyntaxHighlightDark.css",
|
|
164
|
-
"front_end/ui/legacy/inspectorViewTabbedPane.css",
|
|
165
|
-
"front_end/ui/legacy/listWidget.css",
|
|
166
|
-
"front_end/ui/legacy/module.json",
|
|
167
|
-
"front_end/ui/legacy/popover.css",
|
|
168
|
-
"front_end/ui/legacy/progressIndicator.css",
|
|
169
|
-
"front_end/ui/legacy/radioButton.css",
|
|
170
|
-
"front_end/ui/legacy/remoteDebuggingTerminatedScreen.css",
|
|
171
|
-
"front_end/ui/legacy/reportView.css",
|
|
172
|
-
"front_end/ui/legacy/rootView.css",
|
|
173
|
-
"front_end/ui/legacy/searchableView.css",
|
|
174
|
-
"front_end/ui/legacy/slider.css",
|
|
175
|
-
"front_end/ui/legacy/smallBubble.css",
|
|
176
|
-
"front_end/ui/legacy/softContextMenu.css",
|
|
177
|
-
"front_end/ui/legacy/softDropDown.css",
|
|
178
|
-
"front_end/ui/legacy/softDropDownButton.css",
|
|
179
|
-
"front_end/ui/legacy/splitWidget.css",
|
|
180
|
-
"front_end/ui/legacy/suggestBox.css",
|
|
181
|
-
"front_end/ui/legacy/tabbedPane.css",
|
|
182
|
-
"front_end/ui/legacy/targetCrashedScreen.css",
|
|
183
|
-
"front_end/ui/legacy/textButton.css",
|
|
184
|
-
"front_end/ui/legacy/textPrompt.css",
|
|
185
|
-
"front_end/ui/legacy/toolbar.css",
|
|
186
|
-
"front_end/ui/legacy/treeoutline.css",
|
|
187
|
-
"front_end/ui/legacy/viewContainers.css",
|
|
188
144
|
]
|
|
189
145
|
|
|
190
146
|
lighthouse_locale_files = [
|
|
@@ -53,7 +53,6 @@ grd_files_release_sources = [
|
|
|
53
53
|
"front_end/Images/errorWave.svg",
|
|
54
54
|
"front_end/Images/error_icon.svg",
|
|
55
55
|
"front_end/Images/feedback_button_icon.svg",
|
|
56
|
-
"front_end/Images/feedback_thin_16x16_icon.svg",
|
|
57
56
|
"front_end/Images/flex-direction-icon.svg",
|
|
58
57
|
"front_end/Images/flex-nowrap-icon.svg",
|
|
59
58
|
"front_end/Images/flex-wrap-icon.svg",
|
|
@@ -133,6 +132,7 @@ grd_files_release_sources = [
|
|
|
133
132
|
"front_end/Images/smallIcons.svg",
|
|
134
133
|
"front_end/Images/sources_panel_icon.svg",
|
|
135
134
|
"front_end/Images/speech.png",
|
|
135
|
+
"front_end/Images/survey_feedback_icon.svg",
|
|
136
136
|
"front_end/Images/switcherIcon.svg",
|
|
137
137
|
"front_end/Images/three_dots_menu_icon.svg",
|
|
138
138
|
"front_end/Images/toolbarResizerVertical.png",
|
|
@@ -964,6 +964,10 @@ grd_files_debug_sources = [
|
|
|
964
964
|
"front_end/panels/emulation/InspectedPagePlaceholder.js",
|
|
965
965
|
"front_end/panels/emulation/MediaQueryInspector.js",
|
|
966
966
|
"front_end/panels/emulation/components/DeviceSizeInputElement.js",
|
|
967
|
+
"front_end/panels/emulation/deviceModeToolbar.css.legacy.js",
|
|
968
|
+
"front_end/panels/emulation/deviceModeView.css.legacy.js",
|
|
969
|
+
"front_end/panels/emulation/inspectedPagePlaceholder.css.legacy.js",
|
|
970
|
+
"front_end/panels/emulation/mediaQueryInspector.css.legacy.js",
|
|
967
971
|
"front_end/panels/event_listeners/EventListenersUtils.js",
|
|
968
972
|
"front_end/panels/event_listeners/EventListenersView.js",
|
|
969
973
|
"front_end/panels/event_listeners/eventListenersView.css.js",
|
|
@@ -1297,7 +1301,6 @@ grd_files_debug_sources = [
|
|
|
1297
1301
|
"front_end/third_party/i18n/localized-string-set.js",
|
|
1298
1302
|
"front_end/third_party/intl-messageformat/package/intl-messageformat.esm.js",
|
|
1299
1303
|
"front_end/third_party/lighthouse/report-assets/report-generator.js",
|
|
1300
|
-
"front_end/third_party/lighthouse/report-assets/report.css.js",
|
|
1301
1304
|
"front_end/third_party/lighthouse/report-assets/report.js",
|
|
1302
1305
|
"front_end/third_party/lighthouse/report/bundle.js",
|
|
1303
1306
|
"front_end/third_party/lit-html/directive.js",
|
|
@@ -1469,6 +1472,8 @@ grd_files_debug_sources = [
|
|
|
1469
1472
|
"front_end/ui/legacy/XLink.js",
|
|
1470
1473
|
"front_end/ui/legacy/XWidget.js",
|
|
1471
1474
|
"front_end/ui/legacy/ZoomManager.js",
|
|
1475
|
+
"front_end/ui/legacy/checkboxTextLabel.css.legacy.js",
|
|
1476
|
+
"front_end/ui/legacy/closeButton.css.legacy.js",
|
|
1472
1477
|
"front_end/ui/legacy/components/color_picker/ContrastDetails.js",
|
|
1473
1478
|
"front_end/ui/legacy/components/color_picker/ContrastInfo.js",
|
|
1474
1479
|
"front_end/ui/legacy/components/color_picker/ContrastOverlay.js",
|
|
@@ -1564,15 +1569,50 @@ grd_files_debug_sources = [
|
|
|
1564
1569
|
"front_end/ui/legacy/components/utils/TargetDetachedDialog.js",
|
|
1565
1570
|
"front_end/ui/legacy/components/utils/imagePreview.css.js",
|
|
1566
1571
|
"front_end/ui/legacy/components/utils/jsUtils.css.js",
|
|
1572
|
+
"front_end/ui/legacy/confirmDialog.css.legacy.js",
|
|
1573
|
+
"front_end/ui/legacy/dialog.css.legacy.js",
|
|
1574
|
+
"front_end/ui/legacy/dropTarget.css.legacy.js",
|
|
1567
1575
|
"front_end/ui/legacy/emptyWidget.css.js",
|
|
1576
|
+
"front_end/ui/legacy/emptyWidget.css.legacy.js",
|
|
1577
|
+
"front_end/ui/legacy/filter.css.legacy.js",
|
|
1578
|
+
"front_end/ui/legacy/glassPane.css.legacy.js",
|
|
1579
|
+
"front_end/ui/legacy/infobar.css.legacy.js",
|
|
1580
|
+
"front_end/ui/legacy/inlineButton.css.legacy.js",
|
|
1568
1581
|
"front_end/ui/legacy/inspectorCommon.css.js",
|
|
1582
|
+
"front_end/ui/legacy/inspectorCommon.css.legacy.js",
|
|
1583
|
+
"front_end/ui/legacy/inspectorSyntaxHighlight.css.legacy.js",
|
|
1584
|
+
"front_end/ui/legacy/inspectorSyntaxHighlightDark.css.legacy.js",
|
|
1585
|
+
"front_end/ui/legacy/inspectorViewTabbedPane.css.legacy.js",
|
|
1586
|
+
"front_end/ui/legacy/listWidget.css.legacy.js",
|
|
1587
|
+
"front_end/ui/legacy/popover.css.legacy.js",
|
|
1588
|
+
"front_end/ui/legacy/progressIndicator.css.legacy.js",
|
|
1589
|
+
"front_end/ui/legacy/radioButton.css.legacy.js",
|
|
1590
|
+
"front_end/ui/legacy/remoteDebuggingTerminatedScreen.css.legacy.js",
|
|
1591
|
+
"front_end/ui/legacy/reportView.css.legacy.js",
|
|
1592
|
+
"front_end/ui/legacy/rootView.css.legacy.js",
|
|
1593
|
+
"front_end/ui/legacy/searchableView.css.legacy.js",
|
|
1594
|
+
"front_end/ui/legacy/slider.css.legacy.js",
|
|
1595
|
+
"front_end/ui/legacy/smallBubble.css.legacy.js",
|
|
1596
|
+
"front_end/ui/legacy/softContextMenu.css.legacy.js",
|
|
1597
|
+
"front_end/ui/legacy/softDropDown.css.legacy.js",
|
|
1598
|
+
"front_end/ui/legacy/softDropDownButton.css.legacy.js",
|
|
1599
|
+
"front_end/ui/legacy/splitWidget.css.legacy.js",
|
|
1600
|
+
"front_end/ui/legacy/suggestBox.css.legacy.js",
|
|
1601
|
+
"front_end/ui/legacy/tabbedPane.css.legacy.js",
|
|
1602
|
+
"front_end/ui/legacy/targetCrashedScreen.css.legacy.js",
|
|
1603
|
+
"front_end/ui/legacy/textButton.css.legacy.js",
|
|
1604
|
+
"front_end/ui/legacy/textPrompt.css.legacy.js",
|
|
1605
|
+
"front_end/ui/legacy/themeColors.css.legacy.js",
|
|
1569
1606
|
"front_end/ui/legacy/theme_support/theme_support_impl.js",
|
|
1607
|
+
"front_end/ui/legacy/toolbar.css.legacy.js",
|
|
1608
|
+
"front_end/ui/legacy/treeoutline.css.legacy.js",
|
|
1570
1609
|
"front_end/ui/legacy/utils/append-style.js",
|
|
1571
1610
|
"front_end/ui/legacy/utils/create-shadow-root-with-core-styles.js",
|
|
1572
1611
|
"front_end/ui/legacy/utils/focus-changed.js",
|
|
1573
1612
|
"front_end/ui/legacy/utils/inject-core-styles.js",
|
|
1574
1613
|
"front_end/ui/legacy/utils/measured-scrollbar-width.js",
|
|
1575
1614
|
"front_end/ui/legacy/utils/register-custom-element.js",
|
|
1615
|
+
"front_end/ui/legacy/viewContainers.css.legacy.js",
|
|
1576
1616
|
"front_end/ui/lit-html/static.js",
|
|
1577
1617
|
]
|
|
1578
1618
|
|
|
@@ -63,7 +63,6 @@ devtools_svg_sources = [
|
|
|
63
63
|
"errorWave.svg",
|
|
64
64
|
"error_icon.svg",
|
|
65
65
|
"feedback_button_icon.svg",
|
|
66
|
-
"feedback_thin_16x16_icon.svg",
|
|
67
66
|
"flex-direction-icon.svg",
|
|
68
67
|
"flex-nowrap-icon.svg",
|
|
69
68
|
"flex-wrap-icon.svg",
|
|
@@ -132,6 +131,7 @@ devtools_svg_sources = [
|
|
|
132
131
|
"settings_14x14_icon.svg",
|
|
133
132
|
"smallIcons.svg",
|
|
134
133
|
"sources_panel_icon.svg",
|
|
134
|
+
"survey_feedback_icon.svg",
|
|
135
135
|
"switcherIcon.svg",
|
|
136
136
|
"three_dots_menu_icon.svg",
|
|
137
137
|
"trash_bin_icon.svg",
|
package/front_end/.eslintrc.js
CHANGED
|
@@ -110,7 +110,17 @@ module.exports = {
|
|
|
110
110
|
'format': ['camelCase'],
|
|
111
111
|
'leadingUnderscore': 'allow',
|
|
112
112
|
}
|
|
113
|
-
]
|
|
113
|
+
],
|
|
114
|
+
'no-restricted-syntax': [
|
|
115
|
+
'warn', {
|
|
116
|
+
// Matches the common pattern of `.registerRequiredCSS('path\to\module-styles.css');`.
|
|
117
|
+
'selector':
|
|
118
|
+
'CallExpression[callee.property.name="registerRequiredCSS"][arguments.length=1]:has(Literal[value=/css$/])',
|
|
119
|
+
'message': 'Styles should be imported using `import styles from \'[file name].css(.legacy).js\';` and' +
|
|
120
|
+
// Intentional double periods.. since trailing period is stripped from output.
|
|
121
|
+
' registered using `.registerCSSFiles([styles]);` or `.registerRequiredCSS(legacyStyles);` syntax..',
|
|
122
|
+
}
|
|
123
|
+
],
|
|
114
124
|
}
|
|
115
125
|
},
|
|
116
126
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg width="16" height="16" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M5 11.5h9a1 1 0 001-1v-8a1 1 0 00-1-1H3a1 1 0 00-1 1v12l3-3zm-2 .586L4.586 10.5H14v-8H3v9.586z" fill="#000"/><path fill="#000" d="M8 4h1v3H8zM8 8h1v1H8z"/></svg>
|
|
1
|
+
<svg width="16" height="16" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M5 11.5h9a1 1 0 001-1v-8a1 1 0 00-1-1H3a1 1 0 00-1 1v12l3-3zm-2 .586L4.586 10.5H14v-8H3v9.586z" fill="#000"/><path fill="#000" d="M8 4h1v3H8zM8 8h1v1H8z"/></svg>
|
|
@@ -815,20 +815,10 @@ export class DebuggerModel extends SDKModel<EventTypes> {
|
|
|
815
815
|
}
|
|
816
816
|
|
|
817
817
|
createRawLocationsByStackTrace(stackTrace: Protocol.Runtime.StackTrace): Location[] {
|
|
818
|
-
const
|
|
819
|
-
let current:
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
frames.push(frame);
|
|
823
|
-
}
|
|
824
|
-
current = current.parent;
|
|
825
|
-
}
|
|
826
|
-
|
|
827
|
-
const rawLocations = [];
|
|
828
|
-
for (const frame of frames) {
|
|
829
|
-
const rawLocation = this.createRawLocationByScriptId(frame.scriptId, frame.lineNumber, frame.columnNumber);
|
|
830
|
-
if (rawLocation) {
|
|
831
|
-
rawLocations.push(rawLocation);
|
|
818
|
+
const rawLocations: Location[] = [];
|
|
819
|
+
for (let current: Protocol.Runtime.StackTrace|undefined = stackTrace; current; current = current.parent) {
|
|
820
|
+
for (const {scriptId, lineNumber, columnNumber} of current.callFrames) {
|
|
821
|
+
rawLocations.push(this.createRawLocationByScriptId(scriptId, lineNumber, columnNumber));
|
|
832
822
|
}
|
|
833
823
|
}
|
|
834
824
|
return rawLocations;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// Copyright 2017 The Chromium Authors. All rights reserved.
|
|
2
2
|
// Use of this source code is governed by a BSD-style license that can be
|
|
3
3
|
// found in the LICENSE file.
|
|
4
|
+
import * as Common from '../../core/common/common.js';
|
|
4
5
|
|
|
5
6
|
/**
|
|
6
7
|
* @fileoverview using private properties isn't a Closure violation in tests.
|
|
@@ -52,8 +53,7 @@ BindingsTestRunner.TestFileSystem.prototype = {
|
|
|
52
53
|
|
|
53
54
|
function created(event) {
|
|
54
55
|
const fileSystem = event.data;
|
|
55
|
-
|
|
56
|
-
if (fileSystem.path() !== fileSystemPath) {
|
|
56
|
+
if (fileSystem.path() !== Common.ParsedURL.ParsedURL.rawPathToUrlString(fileSystemPath)) {
|
|
57
57
|
return;
|
|
58
58
|
}
|
|
59
59
|
|
|
@@ -398,7 +398,9 @@ export function textContentWithLineBreaks(node) {
|
|
|
398
398
|
* @return {string}
|
|
399
399
|
*/
|
|
400
400
|
export function textContentWithLineBreaksTrimmed(node) {
|
|
401
|
-
|
|
401
|
+
// We want to allow single empty lines (2 white space characters), but
|
|
402
|
+
// compress occurences of 3 or more whitespaces.
|
|
403
|
+
return textContentWithLineBreaks(node).replace(/\s{3,}/g, ' ');
|
|
402
404
|
}
|
|
403
405
|
|
|
404
406
|
/**
|
|
@@ -36,7 +36,7 @@ export class EndpointsGrid extends HTMLElement {
|
|
|
36
36
|
// clang-format off
|
|
37
37
|
render(html`
|
|
38
38
|
<div class="reporting-container">
|
|
39
|
-
<div class="reporting-header"
|
|
39
|
+
<div class="reporting-header">${i18n.i18n.lockedString('Endpoints')}</div>
|
|
40
40
|
<div class="reporting-placeholder">
|
|
41
41
|
<div>${i18nString(UIStrings.noEndpointsToDisplay)}</div>
|
|
42
42
|
</div>
|
|
@@ -136,7 +136,7 @@ export class ReportsGrid extends HTMLElement {
|
|
|
136
136
|
// clang-format off
|
|
137
137
|
render(html`
|
|
138
138
|
<div class="reporting-container">
|
|
139
|
-
<div class="reporting-header"
|
|
139
|
+
<div class="reporting-header">${i18n.i18n.lockedString('Reports')}</div>
|
|
140
140
|
${this.reports.length > 0 ? html`
|
|
141
141
|
<${DataGrid.DataGridController.DataGridController.litTagName} .data=${
|
|
142
142
|
reportsGridData as DataGrid.DataGridController.DataGridControllerData}>
|
|
@@ -11,6 +11,8 @@ import * as UI from '../../ui/legacy/legacy.js';
|
|
|
11
11
|
import * as MobileThrottling from '../mobile_throttling/mobile_throttling.js';
|
|
12
12
|
import * as EmulationComponents from './components/components.js';
|
|
13
13
|
|
|
14
|
+
import deviceModeToolbarStyles from './deviceModeToolbar.css.legacy.js';
|
|
15
|
+
|
|
14
16
|
const UIStrings = {
|
|
15
17
|
/**
|
|
16
18
|
* @description Title of the device dimensions selection iteam in the Device Mode Toolbar.
|
|
@@ -518,7 +520,7 @@ export class DeviceModeToolbar {
|
|
|
518
520
|
private wrapToolbarItem(element: Element): UI.Toolbar.ToolbarItem {
|
|
519
521
|
const container = document.createElement('div');
|
|
520
522
|
const shadowRoot = UI.Utils.createShadowRootWithCoreStyles(
|
|
521
|
-
container, {cssFile:
|
|
523
|
+
container, {cssFile: deviceModeToolbarStyles, delegatesFocus: undefined});
|
|
522
524
|
shadowRoot.appendChild(element);
|
|
523
525
|
return new UI.Toolbar.ToolbarItem(container);
|
|
524
526
|
}
|
|
@@ -12,6 +12,7 @@ import * as EmulationModel from '../../models/emulation/emulation.js';
|
|
|
12
12
|
|
|
13
13
|
import {DeviceModeToolbar} from './DeviceModeToolbar.js';
|
|
14
14
|
import {MediaQueryInspector} from './MediaQueryInspector.js';
|
|
15
|
+
import deviceModeViewStyles from './deviceModeView.css.legacy.js';
|
|
15
16
|
|
|
16
17
|
const UIStrings = {
|
|
17
18
|
/**
|
|
@@ -98,7 +99,7 @@ export class DeviceModeView extends UI.Widget.VBox {
|
|
|
98
99
|
|
|
99
100
|
this.setMinimumSize(150, 150);
|
|
100
101
|
this.element.classList.add('device-mode-view');
|
|
101
|
-
this.registerRequiredCSS(
|
|
102
|
+
this.registerRequiredCSS(deviceModeViewStyles);
|
|
102
103
|
|
|
103
104
|
this.model = EmulationModel.DeviceModeModel.DeviceModeModel.instance();
|
|
104
105
|
this.model.addEventListener(EmulationModel.DeviceModeModel.Events.Updated, this.updateUI, this);
|
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
import * as Common from '../../core/common/common.js';
|
|
6
6
|
import * as UI from '../../ui/legacy/legacy.js';
|
|
7
7
|
|
|
8
|
+
import inspectedPagePlaceholderStyles from './inspectedPagePlaceholder.css.legacy.js';
|
|
9
|
+
|
|
8
10
|
let inspectedPagePlaceholderInstance: InspectedPagePlaceholder;
|
|
9
11
|
|
|
10
12
|
export class InspectedPagePlaceholder extends Common.ObjectWrapper.eventMixin<EventTypes, typeof UI.Widget.Widget>(
|
|
@@ -12,7 +14,7 @@ export class InspectedPagePlaceholder extends Common.ObjectWrapper.eventMixin<Ev
|
|
|
12
14
|
private updateId?: number;
|
|
13
15
|
constructor() {
|
|
14
16
|
super(true);
|
|
15
|
-
this.registerRequiredCSS(
|
|
17
|
+
this.registerRequiredCSS(inspectedPagePlaceholderStyles);
|
|
16
18
|
UI.ZoomManager.ZoomManager.instance().addEventListener(UI.ZoomManager.Events.ZoomChanged, this.onResize, this);
|
|
17
19
|
this.restoreMinimumSize();
|
|
18
20
|
}
|
|
@@ -10,6 +10,8 @@ import * as Bindings from '../../models/bindings/bindings.js';
|
|
|
10
10
|
import type * as Workspace from '../../models/workspace/workspace.js';
|
|
11
11
|
import * as UI from '../../ui/legacy/legacy.js';
|
|
12
12
|
|
|
13
|
+
import mediaQueryInspectorStyles from './mediaQueryInspector.css.legacy.js';
|
|
14
|
+
|
|
13
15
|
const UIStrings = {
|
|
14
16
|
/**
|
|
15
17
|
* @description A context menu item/command in the Media Query Inspector of the Device Toolbar.
|
|
@@ -32,7 +34,7 @@ export class MediaQueryInspector extends UI.Widget.Widget implements
|
|
|
32
34
|
|
|
33
35
|
constructor(getWidthCallback: () => number, setWidthCallback: (arg0: number) => void) {
|
|
34
36
|
super(true);
|
|
35
|
-
this.registerRequiredCSS(
|
|
37
|
+
this.registerRequiredCSS(mediaQueryInspectorStyles);
|
|
36
38
|
this.contentElement.classList.add('media-inspector-view');
|
|
37
39
|
this.contentElement.addEventListener('click', this.onMediaQueryClicked.bind(this), false);
|
|
38
40
|
this.contentElement.addEventListener('contextmenu', this.onContextMenu.bind(this), false);
|
|
@@ -69,8 +69,6 @@ let loadedEmulationModule: (typeof Emulation|undefined);
|
|
|
69
69
|
|
|
70
70
|
async function loadEmulationModule(): Promise<typeof Emulation> {
|
|
71
71
|
if (!loadedEmulationModule) {
|
|
72
|
-
// Side-effect import resources in module.json
|
|
73
|
-
await Root.Runtime.Runtime.instance().loadModulePromise('panels/emulation');
|
|
74
72
|
loadedEmulationModule = await import('./emulation.js');
|
|
75
73
|
}
|
|
76
74
|
return loadedEmulationModule;
|
|
@@ -7,8 +7,6 @@ import * as Host from '../../core/host/host.js';
|
|
|
7
7
|
import * as i18n from '../../core/i18n/i18n.js';
|
|
8
8
|
import * as SDK from '../../core/sdk/sdk.js';
|
|
9
9
|
import * as EmulationModel from '../../models/emulation/emulation.js';
|
|
10
|
-
/* eslint-disable rulesdir/es_modules_import */
|
|
11
|
-
import reportStyles from '../../third_party/lighthouse/report-assets/report.css.js';
|
|
12
10
|
import * as UI from '../../ui/legacy/legacy.js';
|
|
13
11
|
import * as Emulation from '../emulation/emulation.js';
|
|
14
12
|
|
|
@@ -263,7 +261,6 @@ export class LighthousePanel extends UI.Panel.Panel {
|
|
|
263
261
|
|
|
264
262
|
const reportContainer = this.auditResultsElement.createChild('div', 'lh-vars lh-root lh-devtools');
|
|
265
263
|
|
|
266
|
-
// @ts-ignore: Second argument will soon be required.
|
|
267
264
|
const dom = new LighthouseReport.DOM(this.auditResultsElement.ownerDocument as Document, reportContainer);
|
|
268
265
|
const renderer = new LighthouseReportRenderer(dom) as LighthouseReport.ReportRenderer;
|
|
269
266
|
|
|
@@ -451,8 +448,9 @@ export class LighthousePanel extends UI.Panel.Panel {
|
|
|
451
448
|
const inspectedURL = await this.controller.getInspectedURL();
|
|
452
449
|
await resourceTreeModel.navigate(inspectedURL);
|
|
453
450
|
}
|
|
451
|
+
|
|
454
452
|
wasShown(): void {
|
|
455
453
|
super.wasShown();
|
|
456
|
-
this.registerCSSFiles([lighthousePanelStyles
|
|
454
|
+
this.registerCSSFiles([lighthousePanelStyles]);
|
|
457
455
|
}
|
|
458
456
|
}
|
|
@@ -6,7 +6,6 @@ import * as Common from '../../core/common/common.js';
|
|
|
6
6
|
import * as Host from '../../core/host/host.js';
|
|
7
7
|
import * as i18n from '../../core/i18n/i18n.js';
|
|
8
8
|
import * as Platform from '../../core/platform/platform.js';
|
|
9
|
-
import * as Root from '../../core/root/root.js';
|
|
10
9
|
import * as SDK from '../../core/sdk/sdk.js';
|
|
11
10
|
import * as Workspace from '../../models/workspace/workspace.js';
|
|
12
11
|
import * as LighthouseReport from '../../third_party/lighthouse/report/report.js';
|
|
@@ -202,9 +201,7 @@ export class LighthouseReportUIFeatures extends LighthouseReport.ReportUIFeature
|
|
|
202
201
|
if (!printWindow) {
|
|
203
202
|
return;
|
|
204
203
|
}
|
|
205
|
-
|
|
206
|
-
style.textContent = Root.Runtime.cachedResources.get('third_party/lighthouse/report-assets/report.css') || '';
|
|
207
|
-
printWindow.document.head.appendChild(style);
|
|
204
|
+
|
|
208
205
|
printWindow.document.body.replaceWith(clonedReport);
|
|
209
206
|
// Linkified nodes are shadow elements, which aren't exposed via `cloneNode`.
|
|
210
207
|
await LighthouseReportRenderer.linkifyNodeDetails(clonedReport as HTMLElement);
|
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"dependencies": [
|
|
3
|
-
"panels/
|
|
4
|
-
"panels/timeline",
|
|
5
|
-
"ui/legacy"
|
|
3
|
+
"panels/timeline"
|
|
6
4
|
],
|
|
7
5
|
"resources": [
|
|
8
6
|
"../../third_party/lighthouse/report-assets/standalone-template.html",
|
|
9
|
-
"../../third_party/lighthouse/report-assets/report.css",
|
|
10
7
|
"../../third_party/lighthouse/report-assets/report.js"
|
|
11
8
|
]
|
|
12
9
|
}
|