chrome-devtools-frontend 1.0.952784 → 1.0.953776
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/devtools_grd_files.gni +4 -0
- package/config/gni/devtools_image_files.gni +1 -0
- package/front_end/.eslintrc.js +1 -0
- package/front_end/Images/src/info-icon.svg +1 -0
- package/front_end/core/common/ParsedURL.ts +31 -0
- package/front_end/core/host/UserMetrics.ts +515 -481
- package/front_end/core/i18n/i18nImpl.ts +8 -30
- package/front_end/core/i18n/locales/af.json +158 -176
- package/front_end/core/i18n/locales/am.json +163 -181
- package/front_end/core/i18n/locales/ar.json +162 -180
- package/front_end/core/i18n/locales/as.json +163 -181
- package/front_end/core/i18n/locales/az.json +161 -179
- package/front_end/core/i18n/locales/be.json +160 -178
- package/front_end/core/i18n/locales/bg.json +159 -177
- package/front_end/core/i18n/locales/bn.json +166 -184
- package/front_end/core/i18n/locales/bs.json +161 -179
- package/front_end/core/i18n/locales/ca.json +159 -177
- package/front_end/core/i18n/locales/cs.json +159 -177
- package/front_end/core/i18n/locales/cy.json +164 -182
- package/front_end/core/i18n/locales/da.json +158 -176
- package/front_end/core/i18n/locales/de.json +160 -178
- package/front_end/core/i18n/locales/el.json +158 -176
- package/front_end/core/i18n/locales/en-GB.json +158 -176
- package/front_end/core/i18n/locales/en-US.json +48 -0
- package/front_end/core/i18n/locales/en-XL.json +48 -0
- package/front_end/core/i18n/locales/es-419.json +160 -178
- package/front_end/core/i18n/locales/es.json +156 -174
- package/front_end/core/i18n/locales/et.json +161 -179
- package/front_end/core/i18n/locales/eu.json +159 -177
- package/front_end/core/i18n/locales/fa.json +166 -184
- package/front_end/core/i18n/locales/fi.json +161 -179
- package/front_end/core/i18n/locales/fil.json +162 -180
- package/front_end/core/i18n/locales/fr-CA.json +159 -177
- package/front_end/core/i18n/locales/fr.json +158 -176
- package/front_end/core/i18n/locales/gl.json +160 -178
- package/front_end/core/i18n/locales/gu.json +179 -197
- package/front_end/core/i18n/locales/he.json +160 -178
- package/front_end/core/i18n/locales/hi.json +166 -184
- package/front_end/core/i18n/locales/hr.json +161 -179
- package/front_end/core/i18n/locales/hu.json +161 -179
- package/front_end/core/i18n/locales/hy.json +157 -175
- package/front_end/core/i18n/locales/id.json +160 -178
- package/front_end/core/i18n/locales/is.json +163 -181
- package/front_end/core/i18n/locales/it.json +162 -180
- package/front_end/core/i18n/locales/ja.json +160 -178
- package/front_end/core/i18n/locales/ka.json +161 -179
- package/front_end/core/i18n/locales/kk.json +164 -182
- package/front_end/core/i18n/locales/km.json +160 -178
- package/front_end/core/i18n/locales/kn.json +162 -180
- package/front_end/core/i18n/locales/ko.json +162 -180
- package/front_end/core/i18n/locales/ky.json +160 -178
- package/front_end/core/i18n/locales/lo.json +159 -177
- package/front_end/core/i18n/locales/lt.json +159 -177
- package/front_end/core/i18n/locales/lv.json +162 -180
- package/front_end/core/i18n/locales/mk.json +162 -180
- package/front_end/core/i18n/locales/ml.json +160 -178
- package/front_end/core/i18n/locales/mn.json +164 -182
- package/front_end/core/i18n/locales/mr.json +163 -181
- package/front_end/core/i18n/locales/ms.json +163 -181
- package/front_end/core/i18n/locales/my.json +164 -182
- package/front_end/core/i18n/locales/ne.json +160 -178
- package/front_end/core/i18n/locales/nl.json +160 -178
- package/front_end/core/i18n/locales/no.json +281 -299
- package/front_end/core/i18n/locales/or.json +165 -183
- package/front_end/core/i18n/locales/pa.json +159 -177
- package/front_end/core/i18n/locales/pl.json +163 -181
- package/front_end/core/i18n/locales/pt-PT.json +160 -178
- package/front_end/core/i18n/locales/pt.json +159 -177
- package/front_end/core/i18n/locales/ro.json +161 -179
- package/front_end/core/i18n/locales/ru.json +159 -177
- package/front_end/core/i18n/locales/si.json +161 -179
- package/front_end/core/i18n/locales/sk.json +158 -176
- package/front_end/core/i18n/locales/sl.json +160 -178
- package/front_end/core/i18n/locales/sq.json +279 -297
- package/front_end/core/i18n/locales/sr-Latn.json +160 -178
- package/front_end/core/i18n/locales/sr.json +160 -178
- package/front_end/core/i18n/locales/sv.json +159 -177
- package/front_end/core/i18n/locales/sw.json +164 -182
- package/front_end/core/i18n/locales/ta.json +160 -178
- package/front_end/core/i18n/locales/te.json +165 -183
- package/front_end/core/i18n/locales/th.json +158 -176
- package/front_end/core/i18n/locales/tr.json +162 -180
- package/front_end/core/i18n/locales/uk.json +160 -178
- package/front_end/core/i18n/locales/ur.json +160 -178
- package/front_end/core/i18n/locales/uz.json +160 -178
- package/front_end/core/i18n/locales/vi.json +162 -180
- package/front_end/core/i18n/locales/zh-HK.json +160 -178
- package/front_end/core/i18n/locales/zh-TW.json +161 -179
- package/front_end/core/i18n/locales/zh.json +162 -180
- package/front_end/core/i18n/locales/zu.json +164 -182
- package/front_end/core/sdk/ChildTargetManager.ts +1 -0
- package/front_end/core/sdk/PageResourceLoader.ts +1 -2
- package/front_end/panels/application/components/BackForwardCacheStrings.ts +93 -15
- package/front_end/panels/application/components/EndpointsGrid.ts +1 -1
- package/front_end/panels/elements/components/elementsBreadcrumbs.css +2 -0
- package/front_end/panels/emulation/components/DeviceSizeInputElement.ts +2 -0
- package/front_end/panels/network/NetworkDataGridNode.ts +0 -2
- package/front_end/panels/network/components/WebBundleInfoView.ts +1 -1
- package/front_end/third_party/lighthouse/lighthouse-dt-bundle.js +188 -185
- package/front_end/third_party/lighthouse/locales/en-US.json +1 -1
- package/front_end/third_party/lighthouse/locales/en-XL.json +1 -1
- package/front_end/third_party/lighthouse/report/bundle.js +3 -3
- package/front_end/third_party/lighthouse/report-assets/report-generator.js +1 -1
- package/front_end/third_party/puppeteer/package/README.md +11 -11
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/AriaQueryHandler.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/AriaQueryHandler.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DOMWorld.d.ts +2 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DOMWorld.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DOMWorld.js +20 -11
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DOMWorld.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/JSHandle.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/JSHandle.js +13 -3
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/JSHandle.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/AriaQueryHandler.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/AriaQueryHandler.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DOMWorld.d.ts +2 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DOMWorld.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DOMWorld.js +20 -11
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DOMWorld.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/JSHandle.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/JSHandle.js +13 -3
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/JSHandle.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/types.d.ts +2 -0
- package/front_end/third_party/puppeteer/package/package.json +1 -1
- package/front_end/ui/components/docs/component_docs.ts +4 -4
- package/front_end/ui/components/docs/component_docs_styles.css +51 -0
- package/front_end/ui/components/input/checkbox.css +11 -0
- package/front_end/ui/components/input/input.ts +3 -3
- package/front_end/ui/components/markdown_view/MarkdownView.ts +1 -1
- package/front_end/ui/components/panel_feedback/PreviewToggle.ts +2 -1
- package/front_end/ui/components/settings/SettingCheckbox.ts +2 -1
- package/front_end/ui/components/settings/settingCheckbox.css +0 -5
- package/front_end/ui/legacy/RemoteDebuggingTerminatedScreen.ts +10 -3
- package/front_end/ui/legacy/UIUtils.ts +0 -12
- package/front_end/ui/legacy/themeColors.css +1 -0
- package/inspector_overlay/main.ts +2 -16
- package/package.json +1 -1
- package/scripts/check_experiments.js +3 -6
- package/scripts/component_server/server.js +4 -12
- package/scripts/eslint_rules/lib/check_enumerated_histograms.js +32 -0
- package/scripts/eslint_rules/lib/lit_html_host_this.js +1 -10
- package/scripts/eslint_rules/lib/utils.js +20 -1
- package/scripts/eslint_rules/tests/check_enumerated_histograms_test.js +32 -0
- package/scripts/eslint_rules/tests/utils_test.js +30 -0
|
@@ -93,6 +93,7 @@ grd_files_release_sources = [
|
|
|
93
93
|
"front_end/Images/ic_suggest_color.svg",
|
|
94
94
|
"front_end/Images/ic_undo_16x16_icon.svg",
|
|
95
95
|
"front_end/Images/ic_warning_black_18dp.svg",
|
|
96
|
+
"front_end/Images/info-icon.svg",
|
|
96
97
|
"front_end/Images/issue-cross-icon.svg",
|
|
97
98
|
"front_end/Images/issue-exclamation-icon.svg",
|
|
98
99
|
"front_end/Images/issue-questionmark-icon.svg",
|
|
@@ -460,6 +461,7 @@ grd_files_release_sources = [
|
|
|
460
461
|
"front_end/ui/components/expandable_list/expandable_list.js",
|
|
461
462
|
"front_end/ui/components/helpers/helpers.js",
|
|
462
463
|
"front_end/ui/components/icon_button/icon_button.js",
|
|
464
|
+
"front_end/ui/components/input/input.js",
|
|
463
465
|
"front_end/ui/components/issue_counter/issue_counter.js",
|
|
464
466
|
"front_end/ui/components/linear_memory_inspector/linear_memory_inspector-meta.js",
|
|
465
467
|
"front_end/ui/components/linear_memory_inspector/linear_memory_inspector.js",
|
|
@@ -1321,6 +1323,8 @@ grd_files_debug_sources = [
|
|
|
1321
1323
|
"front_end/ui/components/icon_button/IconButton.js",
|
|
1322
1324
|
"front_end/ui/components/icon_button/icon.css.js",
|
|
1323
1325
|
"front_end/ui/components/icon_button/iconButton.css.js",
|
|
1326
|
+
"front_end/ui/components/input/checkbox.css.js",
|
|
1327
|
+
"front_end/ui/components/input/textInput.css.js",
|
|
1324
1328
|
"front_end/ui/components/issue_counter/IssueCounter.js",
|
|
1325
1329
|
"front_end/ui/components/issue_counter/IssueLinkIcon.js",
|
|
1326
1330
|
"front_end/ui/components/issue_counter/issueCounter.css.js",
|
package/front_end/.eslintrc.js
CHANGED
|
@@ -37,6 +37,7 @@ module.exports = {
|
|
|
37
37
|
'rulesdir/ban_a_tags_in_lit_html': 2,
|
|
38
38
|
'rulesdir/check_component_naming': 2,
|
|
39
39
|
'rulesdir/check_css_import': 2,
|
|
40
|
+
'rulesdir/check_enumerated_histograms': 2,
|
|
40
41
|
'rulesdir/check_was_shown_methods': 2,
|
|
41
42
|
'rulesdir/static_custom_event_names': 2,
|
|
42
43
|
'rulesdir/lit_html_host_this': 2,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg width="11" height="12" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="5.5" cy="6" r="5" stroke="#202124"/><path fill="#202124" d="M5 4.5h1v5H5zM5 2.5h1v1H5z"/></svg>
|
|
@@ -110,6 +110,30 @@ export class ParsedURL {
|
|
|
110
110
|
return null;
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
+
private static preEncodeSpecialCharactersInPath(path: string): string {
|
|
114
|
+
// Based on net::FilePathToFileURL. Ideally we would handle
|
|
115
|
+
// '\\' as well on non-Windows file systems.
|
|
116
|
+
for (const specialChar of ['%', ';', '#', '?']) {
|
|
117
|
+
(path as string) = path.replaceAll(specialChar, encodeURIComponent(specialChar));
|
|
118
|
+
}
|
|
119
|
+
return path;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
static rawPathToEncodedPathString(path: Platform.DevToolsPath.RawPathString):
|
|
123
|
+
Platform.DevToolsPath.EncodedPathString {
|
|
124
|
+
const partiallyEncoded = ParsedURL.preEncodeSpecialCharactersInPath(path);
|
|
125
|
+
if (path.startsWith('/')) {
|
|
126
|
+
return new URL(partiallyEncoded, 'file:///').pathname as Platform.DevToolsPath.EncodedPathString;
|
|
127
|
+
}
|
|
128
|
+
// URL prepends a '/'
|
|
129
|
+
return new URL('/' + partiallyEncoded, 'file:///').pathname.substr(1) as Platform.DevToolsPath.EncodedPathString;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
static encodedPathToRawPathString(encPath: Platform.DevToolsPath.EncodedPathString):
|
|
133
|
+
Platform.DevToolsPath.RawPathString {
|
|
134
|
+
return decodeURIComponent(encPath) as Platform.DevToolsPath.RawPathString;
|
|
135
|
+
}
|
|
136
|
+
|
|
113
137
|
static rawPathToUrlString(fileSystemPath: Platform.DevToolsPath.RawPathString): Platform.DevToolsPath.UrlString {
|
|
114
138
|
let rawPath: string = fileSystemPath;
|
|
115
139
|
rawPath = rawPath.replace(/\\/g, '/');
|
|
@@ -123,6 +147,13 @@ export class ParsedURL {
|
|
|
123
147
|
return rawPath as Platform.DevToolsPath.UrlString;
|
|
124
148
|
}
|
|
125
149
|
|
|
150
|
+
static relativePathToUrlString(relativePath: string, baseURL: Platform.DevToolsPath.UrlString):
|
|
151
|
+
Platform.DevToolsPath.UrlString {
|
|
152
|
+
const preEncodedPath: string = ParsedURL.preEncodeSpecialCharactersInPath(
|
|
153
|
+
relativePath.replace(/\\/g, '/') as Platform.DevToolsPath.RawPathString);
|
|
154
|
+
return new URL(preEncodedPath, baseURL).toString() as Platform.DevToolsPath.UrlString;
|
|
155
|
+
}
|
|
156
|
+
|
|
126
157
|
static capFilePrefix(fileURL: Platform.DevToolsPath.UrlString, isWindows?: boolean):
|
|
127
158
|
Platform.DevToolsPath.RawPathString {
|
|
128
159
|
console.assert(fileURL.startsWith('file://'), 'This must be a file URL.');
|