chrome-devtools-frontend 1.0.1650035 → 1.0.1650232
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/front_end/core/host/UserMetrics.ts +0 -15
- package/front_end/core/sdk/CSSMetadata.ts +91 -1
- package/front_end/generated/SupportedCSSProperties.js +342 -114
- package/front_end/models/ai_assistance/AiConversation.ts +2 -1
- package/front_end/models/ai_assistance/agents/AccessibilityAgent.ts +10 -57
- package/front_end/models/ai_assistance/agents/ContextSelectionAgent.ts +1 -1
- package/front_end/models/ai_assistance/agents/ExecuteJavascript.ts +13 -4
- package/front_end/models/ai_assistance/agents/PerformanceAgent.ts +1 -7
- package/front_end/models/ai_assistance/ai_assistance.ts +2 -0
- package/front_end/models/ai_assistance/contexts/AccessibilityContext.snapshot.txt +26 -0
- package/front_end/models/ai_assistance/contexts/AccessibilityContext.ts +63 -0
- package/front_end/models/bindings/DebuggerWorkspaceBinding.ts +3 -2
- package/front_end/models/stack_trace/DetailedErrorStackParser.ts +18 -0
- package/front_end/models/stack_trace/stack_trace.ts +0 -4
- package/front_end/panels/accessibility/ARIAAttributesView.ts +1 -0
- package/front_end/panels/ai_assistance/AiAssistancePanel.ts +5 -5
- package/front_end/panels/ai_assistance/components/ChatInput.ts +1 -1
- package/front_end/panels/network/RequestConditionsDrawer.ts +236 -198
- package/front_end/panels/network/requestConditionsDrawer.css +3 -0
- package/front_end/panels/whats_new/ReleaseNoteText.ts +12 -6
- package/front_end/panels/whats_new/resources/WNDT.md +8 -7
- package/front_end/third_party/third-party-web/lib/nostats-subset.js +21 -15
- package/front_end/third_party/third-party-web/package/README.md +619 -582
- package/front_end/third_party/third-party-web/package/dist/entities-httparchive-nostats.json +1 -1
- package/front_end/third_party/third-party-web/package/dist/entities-httparchive.json +1 -1
- package/front_end/third_party/third-party-web/package/dist/entities-nostats.json +1 -1
- package/front_end/third_party/third-party-web/package/dist/entities.json +1 -1
- package/front_end/third_party/third-party-web/package/lib/create-entity-finder-api.js +27 -15
- package/front_end/third_party/third-party-web/package/lib/create-entity-finder-api.test.js +14 -0
- package/front_end/third_party/third-party-web/package/lib/entities.test.js +10 -0
- package/front_end/third_party/third-party-web/package/lib/index.test.js +6 -6
- package/front_end/third_party/third-party-web/package/lib/markdown/template.md +1 -3
- package/front_end/third_party/third-party-web/package/package.json +7 -3
- package/front_end/third_party/third-party-web/package.json +1 -1
- package/front_end/ui/components/buttons/floatingButton.css +3 -3
- package/front_end/ui/components/lists/list.css +2 -0
- package/front_end/ui/legacy/ListWidget.ts +8 -5
- package/front_end/ui/legacy/TextPrompt.ts +5 -2
- package/front_end/ui/legacy/components/utils/Linkifier.ts +12 -6
- package/front_end/ui/legacy/textPrompt.css +1 -0
- package/front_end/ui/visual_logging/KnownContextValues.ts +1 -0
- package/package.json +1 -1
- package/front_end/models/stack_trace/ErrorStackParser.ts +0 -174
|
@@ -204,21 +204,6 @@ export class UserMetrics {
|
|
|
204
204
|
InspectorFrontendHostInstance.recordCountHistogram('DevTools.Freestyler.EvalResponseSize', bytes, 0, 100_000, 100);
|
|
205
205
|
}
|
|
206
206
|
|
|
207
|
-
performanceAINetworkSummaryResponseSize(bytes: number): void {
|
|
208
|
-
InspectorFrontendHostInstance.recordCountHistogram(
|
|
209
|
-
'DevTools.PerformanceAI.NetworkSummaryResponseSize', bytes, 0, 100_000, 100);
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
performanceAINetworkRequestDetailResponseSize(bytes: number): void {
|
|
213
|
-
InspectorFrontendHostInstance.recordCountHistogram(
|
|
214
|
-
'DevTools.PerformanceAI.NetworkRequestDetailResponseSize', bytes, 0, 100_000, 100);
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
performanceAIMainThreadActivityResponseSize(bytes: number): void {
|
|
218
|
-
InspectorFrontendHostInstance.recordCountHistogram(
|
|
219
|
-
'DevTools.PerformanceAI.MainThreadActivityResponseSize', bytes, 0, 100_000, 100);
|
|
220
|
-
}
|
|
221
|
-
|
|
222
207
|
builtInAiAvailability(availability: BuiltInAiAvailability): void {
|
|
223
208
|
InspectorFrontendHostInstance.recordEnumeratedHistogram(
|
|
224
209
|
EnumeratedHistogram.BuiltInAiAvailability, availability, BuiltInAiAvailability.MAX_VALUE);
|
|
@@ -60,6 +60,10 @@ export class CSSMetadata {
|
|
|
60
60
|
continue;
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
|
+
const runtimeFlagStatus = property.runtime_flag_status;
|
|
64
|
+
if (Boolean(runtimeFlagStatus) && runtimeFlagStatus !== 'stable') {
|
|
65
|
+
continue;
|
|
66
|
+
}
|
|
63
67
|
if (!CSS.supports(propertyName, 'initial')) {
|
|
64
68
|
continue;
|
|
65
69
|
}
|
|
@@ -127,7 +131,18 @@ export class CSSMetadata {
|
|
|
127
131
|
|
|
128
132
|
for (const name of this.#valuesSet) {
|
|
129
133
|
const values = this.specificPropertyValues(name)
|
|
130
|
-
.filter(value =>
|
|
134
|
+
.filter(value => {
|
|
135
|
+
// Filter out values which are just the function name (e.g. 'url', 'radial-gradient', etc.)
|
|
136
|
+
// The 'preset' is the full function (e.g. 'url(||)').
|
|
137
|
+
const preset = valuePresets.get(name)?.get(value);
|
|
138
|
+
if (preset && preset !== value) {
|
|
139
|
+
return false;
|
|
140
|
+
}
|
|
141
|
+
if (partialValueKeywordsNoPresets.get(name)?.has(value)) {
|
|
142
|
+
return false;
|
|
143
|
+
}
|
|
144
|
+
return CSS.supports(name, value);
|
|
145
|
+
})
|
|
131
146
|
.sort(CSSMetadata.sortPrefixesAndCSSWideKeywordsToEnd);
|
|
132
147
|
const presets = values.map(value => `${name}: ${value}`);
|
|
133
148
|
if (!this.isSVGProperty(name)) {
|
|
@@ -505,9 +520,78 @@ const valuePresets = new Map([
|
|
|
505
520
|
['ornaments', 'ornaments(||)'],
|
|
506
521
|
['annotation', 'annotation(||)'],
|
|
507
522
|
]),
|
|
523
|
+
],
|
|
524
|
+
[
|
|
525
|
+
'clip-path', new Map([
|
|
526
|
+
['inset', 'inset(|10px|)'],
|
|
527
|
+
['circle', 'circle(|100px|)'],
|
|
528
|
+
['ellipse', 'ellipse(|100px 100px|)'],
|
|
529
|
+
['polygon', 'polygon(|50px 0px, 100px 100px, 0px 100px|)'],
|
|
530
|
+
['url', 'url(||)'],
|
|
531
|
+
])
|
|
532
|
+
],
|
|
533
|
+
[
|
|
534
|
+
'transition-timing-function', new Map([
|
|
535
|
+
['steps', 'steps(|5, end|)'],
|
|
536
|
+
['cubic-bezier', 'cubic-bezier(|0.25, 0.1, 0.25, 1|)'],
|
|
537
|
+
])
|
|
538
|
+
],
|
|
539
|
+
[
|
|
540
|
+
'animation-timing-function', new Map([
|
|
541
|
+
['steps', 'steps(|5, end|)'],
|
|
542
|
+
['cubic-bezier', 'cubic-bezier(|0.25, 0.1, 0.25, 1|)'],
|
|
543
|
+
])
|
|
544
|
+
],
|
|
545
|
+
[
|
|
546
|
+
'box-shadow',
|
|
547
|
+
new Map([
|
|
548
|
+
['inset', 'inset |0 0 10px black|'],
|
|
549
|
+
]),
|
|
550
|
+
],
|
|
551
|
+
[
|
|
552
|
+
'font-size-adjust',
|
|
553
|
+
new Map([
|
|
554
|
+
['ex-height', 'ex-height |0.5|'],
|
|
555
|
+
['cap-height', 'cap-height |0.5|'],
|
|
556
|
+
['ch-width', 'ch-width |0.5|'],
|
|
557
|
+
['ic-width', 'ic-width |0.5|'],
|
|
558
|
+
['ic-height', 'ic-height |0.5|'],
|
|
559
|
+
]),
|
|
560
|
+
],
|
|
561
|
+
[
|
|
562
|
+
'initial-letter',
|
|
563
|
+
new Map([
|
|
564
|
+
['drop', 'drop |2|'],
|
|
565
|
+
['raise', 'raise |2|'],
|
|
566
|
+
]),
|
|
567
|
+
],
|
|
568
|
+
[
|
|
569
|
+
'text-box-edge', new Map([
|
|
570
|
+
['cap', 'cap alphabetic'],
|
|
571
|
+
['ex', 'ex alphabetic'],
|
|
572
|
+
])
|
|
508
573
|
]
|
|
509
574
|
]);
|
|
510
575
|
|
|
576
|
+
const partialValueKeywordsNoPresets = new Map<string, Set<string>>([
|
|
577
|
+
['scroll-snap-type', new Set(['mandatory', 'proximity'])],
|
|
578
|
+
['scrollbar-gutter', new Set(['both-edges'])],
|
|
579
|
+
['animation-timing-function', new Set(['jump-both', 'jump-end', 'jump-none', 'jump-start'])],
|
|
580
|
+
['transition-timing-function', new Set(['jump-both', 'jump-end', 'jump-none', 'jump-start'])],
|
|
581
|
+
[
|
|
582
|
+
'animation-trigger', new Set([
|
|
583
|
+
'play',
|
|
584
|
+
'pause',
|
|
585
|
+
'play-once',
|
|
586
|
+
'play-alternate',
|
|
587
|
+
'play-forwards',
|
|
588
|
+
'play-backwards',
|
|
589
|
+
'play-pause',
|
|
590
|
+
'replay',
|
|
591
|
+
])
|
|
592
|
+
],
|
|
593
|
+
]);
|
|
594
|
+
|
|
511
595
|
const distanceProperties = new Set<string>([
|
|
512
596
|
'background-position',
|
|
513
597
|
'border-spacing',
|
|
@@ -1424,6 +1508,10 @@ const extraPropertyValues = new Map<string, Set<string>>([
|
|
|
1424
1508
|
]),
|
|
1425
1509
|
],
|
|
1426
1510
|
['outline-style', new Set(['auto'])],
|
|
1511
|
+
['overflow-block', new Set(['auto', 'hidden', 'visible', 'overlay', 'scroll', 'clip'])],
|
|
1512
|
+
['overflow-inline', new Set(['auto', 'hidden', 'visible', 'overlay', 'scroll', 'clip'])],
|
|
1513
|
+
['overscroll-behavior-block', new Set(['auto', 'none', 'contain'])],
|
|
1514
|
+
['overscroll-behavior-inline', new Set(['auto', 'none', 'contain'])],
|
|
1427
1515
|
]);
|
|
1428
1516
|
|
|
1429
1517
|
// Weight of CSS properties based on their usage from https://www.chromestatus.com/metrics/css/popularity
|
|
@@ -1693,4 +1781,6 @@ export interface CSSPropertyDefinition {
|
|
|
1693
1781
|
is_descriptor?: boolean;
|
|
1694
1782
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
1695
1783
|
is_property?: boolean;
|
|
1784
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
1785
|
+
runtime_flag_status?: string;
|
|
1696
1786
|
}
|