chrome-devtools-frontend 1.0.1013367 → 1.0.1013875
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/docs/workflows.md +28 -0
- package/front_end/core/i18n/locales/en-US.json +4 -1
- package/front_end/core/i18n/locales/en-XL.json +4 -1
- package/front_end/models/issues_manager/DeprecationIssue.ts +14 -2
- package/front_end/models/javascript_metadata/DOMPinnedProperties.ts +1754 -0
- package/front_end/models/source_map_scopes/NamesResolver.ts +48 -19
- package/front_end/models/workspace/UISourceCode.ts +1 -1
- package/front_end/panels/sources/TabbedEditorContainer.ts +16 -4
- package/front_end/ui/components/linear_memory_inspector/ValueInterpreterDisplay.ts +6 -6
- package/front_end/ui/components/linear_memory_inspector/valueInterpreterDisplay.css +8 -0
- package/package.json +1 -1
- package/scripts/devtools_paths.js +1 -1
- package/scripts/webidl-properties/config.js +279 -0
- package/scripts/webidl-properties/get-props.js +139 -0
- package/scripts/webidl-properties/index.js +85 -0
- package/scripts/webidl-properties/package.json +9 -0
- package/scripts/webidl-properties/tests.js +118 -0
- package/scripts/webidl-properties/util.js +81 -0
package/docs/workflows.md
CHANGED
@@ -246,6 +246,34 @@ third_party/blink/tools/run_web_tests.py -t Default http/tests/devtools
|
|
246
246
|
|
247
247
|
Usual [steps](https://chromium.googlesource.com/chromium/src/+/main/docs/contributing.md#creating-a-change) for creating a change work out of the box, when executed in the DevTools frontend repository.
|
248
248
|
|
249
|
+
Tips to create meaningful CL descriptions:
|
250
|
+
- Provide information on what was changed and why
|
251
|
+
- Provide before/after screenshots (if applicable)
|
252
|
+
- Provide relevant link to demo or example (if applicable)
|
253
|
+
- Provide link to design doc (if applicable)
|
254
|
+
|
255
|
+
Example CL, adapted from [Chromium guidelines](https://chromium.googlesource.com/chromium/src/+/main/docs/contributing.md#uploading-a-change-for-review):
|
256
|
+
|
257
|
+
```
|
258
|
+
Summary of change (one line)
|
259
|
+
|
260
|
+
Longer description of change addressing as appropriate:
|
261
|
+
what change was made, why the change is made, context if
|
262
|
+
it is part of many changes, description of previous behavior
|
263
|
+
and newly introduced differences, etc.
|
264
|
+
|
265
|
+
Long lines should be wrapped to 72 columns for easier log message
|
266
|
+
viewing in terminals.
|
267
|
+
|
268
|
+
How to test:
|
269
|
+
1. ..
|
270
|
+
2. ..
|
271
|
+
|
272
|
+
Before: https://page-to-before-screenshot.com/before
|
273
|
+
After: https://page-to-after-screenshot.com/after
|
274
|
+
Bug: 123456
|
275
|
+
|
276
|
+
```
|
249
277
|
## Managing dependencies
|
250
278
|
|
251
279
|
- To sync dependencies from Chromium to DevTools frontend, use `scripts/deps/roll_deps.py && npm run generate-protocol-resources`.
|
@@ -1442,11 +1442,14 @@
|
|
1442
1442
|
"models/issues_manager/DeprecationIssue.ts | obsoleteWebRtcCipherSuite": {
|
1443
1443
|
"message": "Your partner is negotiating an obsolete (D)TLS version. Please check with your partner to have this fixed."
|
1444
1444
|
},
|
1445
|
+
"models/issues_manager/DeprecationIssue.ts | openWebDatabaseInsecureContext": {
|
1446
|
+
"message": "WebSQL in non-secure contexts is deprecated and will be removed in M107. Please use Web Storage or Indexed Database."
|
1447
|
+
},
|
1445
1448
|
"models/issues_manager/DeprecationIssue.ts | pictureSourceSrc": {
|
1446
1449
|
"message": "<source src> with a <picture> parent is invalid and therefore ignored. Please use <source srcset> instead."
|
1447
1450
|
},
|
1448
1451
|
"models/issues_manager/DeprecationIssue.ts | prefixedStorageInfo": {
|
1449
|
-
"message": "window.webkitStorageInfo is deprecated. Please use
|
1452
|
+
"message": "window.webkitStorageInfo is deprecated. Please use standardized navigator.storage instead."
|
1450
1453
|
},
|
1451
1454
|
"models/issues_manager/DeprecationIssue.ts | requestedSubresourceWithEmbeddedCredentials": {
|
1452
1455
|
"message": "Subresource requests whose URLs contain embedded credentials (e.g. https://user:pass@host/) are blocked."
|
@@ -1442,11 +1442,14 @@
|
|
1442
1442
|
"models/issues_manager/DeprecationIssue.ts | obsoleteWebRtcCipherSuite": {
|
1443
1443
|
"message": "Ŷóûŕ p̂ár̂t́n̂ér̂ íŝ ńêǵôt́îát̂ín̂ǵ âń ôb́ŝól̂ét̂é (D̂)T́L̂Ś v̂ér̂śîón̂. Ṕl̂éâśê ćĥéĉḱ ŵít̂h́ ŷóûŕ p̂ár̂t́n̂ér̂ t́ô h́âv́ê t́ĥíŝ f́îx́êd́."
|
1444
1444
|
},
|
1445
|
+
"models/issues_manager/DeprecationIssue.ts | openWebDatabaseInsecureContext": {
|
1446
|
+
"message": "Ŵéb̂ŚQ̂Ĺ îń n̂ón̂-śêćûŕê ćôńt̂éx̂t́ŝ íŝ d́êṕr̂éĉát̂éd̂ án̂d́ ŵíl̂ĺ b̂é r̂ém̂óv̂éd̂ ín̂ Ḿ107. P̂ĺêáŝé ûśê Ẃêb́ Ŝt́ôŕâǵê ór̂ Ín̂d́êx́êd́ D̂át̂áb̂áŝé."
|
1447
|
+
},
|
1445
1448
|
"models/issues_manager/DeprecationIssue.ts | pictureSourceSrc": {
|
1446
1449
|
"message": "<source src> ŵít̂h́ â <picture> ṕâŕêńt̂ íŝ ín̂v́âĺîd́ âńd̂ t́ĥér̂éf̂ór̂é îǵn̂ór̂éd̂. Ṕl̂éâśê úŝé <source srcset> îńŝt́êád̂."
|
1447
1450
|
},
|
1448
1451
|
"models/issues_manager/DeprecationIssue.ts | prefixedStorageInfo": {
|
1449
|
-
"message": "window.webkitStorageInfo îś d̂ép̂ŕêćât́êd́. P̂ĺêáŝé ûśê
|
1452
|
+
"message": "window.webkitStorageInfo îś d̂ép̂ŕêćât́êd́. P̂ĺêáŝé ûśê śt̂án̂d́âŕd̂íẑéd̂ navigator.storage ín̂śt̂éâd́."
|
1450
1453
|
},
|
1451
1454
|
"models/issues_manager/DeprecationIssue.ts | requestedSubresourceWithEmbeddedCredentials": {
|
1452
1455
|
"message": "Ŝúb̂ŕêśôúr̂ćê ŕêq́ûéŝt́ŝ ẃĥóŝé ÛŔL̂ś ĉón̂t́âín̂ ém̂b́êd́d̂éd̂ ćr̂éd̂én̂t́îál̂ś (ê.ǵ. https://user:pass@host/) âŕê b́l̂óĉḱêd́."
|
@@ -77,7 +77,9 @@ const UIStrings = {
|
|
77
77
|
*/
|
78
78
|
crossOriginWindowApi: 'Triggering {PH1} from cross origin iframes has been deprecated and will be removed in the future.',
|
79
79
|
/**
|
80
|
-
* @description
|
80
|
+
* @description Warning displayed to developers when they hide the Cast button
|
81
|
+
* on a video element using the deprecated CSS selector instead of using the
|
82
|
+
* disableRemotePlayback attribute on the element.
|
81
83
|
*/
|
82
84
|
cssSelectorInternalMediaControlsOverlayCastButton:
|
83
85
|
'The `disableRemotePlayback` attribute should be used in order to disable the default Cast integration instead of using `-internal-media-controls-overlay-cast-button` selector.',
|
@@ -164,6 +166,11 @@ const UIStrings = {
|
|
164
166
|
*/
|
165
167
|
obsoleteWebRtcCipherSuite:
|
166
168
|
'Your partner is negotiating an obsolete (D)TLS version. Please check with your partner to have this fixed.',
|
169
|
+
/**
|
170
|
+
* @description Warning displayed to developers when `window.openDatabase` is used in non-secure contexts to notify that the API is deprecated and will be removed.
|
171
|
+
*/
|
172
|
+
openWebDatabaseInsecureContext:
|
173
|
+
'WebSQL in non-secure contexts is deprecated and will be removed in M107. Please use Web Storage or Indexed Database.',
|
167
174
|
/**
|
168
175
|
* @description This issue indicates that a `<source>` element with a `<picture>` parent was using an `src` attribute, which is not valid and is ignored by the browser. The `srcset` attribute should be used instead.
|
169
176
|
*/
|
@@ -180,7 +187,7 @@ const UIStrings = {
|
|
180
187
|
* @description Warning displayed to developers when `window.webkitStorageInfo` is used to notify that the API is deprecated.
|
181
188
|
*/
|
182
189
|
prefixedStorageInfo:
|
183
|
-
'`window.webkitStorageInfo` is deprecated. Please use
|
190
|
+
'`window.webkitStorageInfo` is deprecated. Please use standardized `navigator.storage` instead.',
|
184
191
|
/**
|
185
192
|
* @description Standard message when one web API is deprecated in favor of another. Both
|
186
193
|
* placeholders are always web API functions.
|
@@ -407,6 +414,11 @@ export class DeprecationIssue extends Issue {
|
|
407
414
|
messageFunction = i18nLazyString(UIStrings.obsoleteWebRtcCipherSuite);
|
408
415
|
milestone = 81;
|
409
416
|
break;
|
417
|
+
case Protocol.Audits.DeprecationIssueType.OpenWebDatabaseInsecureContext:
|
418
|
+
messageFunction = i18nLazyString(UIStrings.openWebDatabaseInsecureContext);
|
419
|
+
feature = 5175124599767040;
|
420
|
+
milestone = 105;
|
421
|
+
break;
|
410
422
|
case Protocol.Audits.DeprecationIssueType.PictureSourceSrc:
|
411
423
|
messageFunction = i18nLazyString(UIStrings.pictureSourceSrc);
|
412
424
|
break;
|