chrome-devtools-frontend 1.0.1019017 → 1.0.1019389
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/i18n/locales/en-US.json +1 -1
- package/front_end/core/i18n/locales/en-XL.json +1 -1
- package/front_end/entrypoints/inspector_main/RenderingOptions.ts +7 -6
- package/front_end/entrypoints/inspector_main/inspector_main-meta.ts +1 -1
- package/front_end/generated/InspectorBackendCommands.js +13 -3
- package/front_end/generated/SupportedCSSProperties.js +2 -2
- package/front_end/generated/protocol-mapping.d.ts +5 -0
- package/front_end/generated/protocol-proxy-api.d.ts +5 -0
- package/front_end/generated/protocol.ts +43 -0
- package/front_end/models/javascript_metadata/NativeFunctions.js +4 -19
- package/front_end/panels/emulation/DeviceModeToolbar.ts +1 -0
- package/front_end/panels/network/components/RequestHeadersView.ts +16 -16
- package/front_end/ui/components/node_text/nodeText.css +5 -5
- package/front_end/ui/components/tree_outline/treeOutline.css +1 -0
- package/package.json +1 -1
@@ -903,7 +903,7 @@
|
|
903
903
|
"message": "Show Rendering"
|
904
904
|
},
|
905
905
|
"entrypoints/inspector_main/inspector_main-meta.ts | toggleCssPrefersColorSchemeMedia": {
|
906
|
-
"message": "Toggle
|
906
|
+
"message": "Toggle CSS media feature prefers-color-scheme"
|
907
907
|
},
|
908
908
|
"entrypoints/inspector_main/inspector_main-meta.ts | visionDeficiency": {
|
909
909
|
"message": "vision deficiency"
|
@@ -903,7 +903,7 @@
|
|
903
903
|
"message": "Ŝh́ôẃ R̂én̂d́êŕîńĝ"
|
904
904
|
},
|
905
905
|
"entrypoints/inspector_main/inspector_main-meta.ts | toggleCssPrefersColorSchemeMedia": {
|
906
|
-
"message": "T̂óĝǵl̂é
|
906
|
+
"message": "T̂óĝǵl̂é ĈŚŜ ḿêd́îá f̂éât́ûŕê ṕr̂éf̂ér̂ś-ĉól̂ór̂-śĉh́êḿê"
|
907
907
|
},
|
908
908
|
"entrypoints/inspector_main/inspector_main-meta.ts | visionDeficiency": {
|
909
909
|
"message": "v̂íŝíôń d̂éf̂íĉíêńĉý"
|
@@ -366,13 +366,14 @@ export class ReloadActionDelegate implements UI.ActionRegistration.ActionDelegat
|
|
366
366
|
Common.Settings.Settings.instance().moduleSetting('emulatedCSSMediaFeaturePrefersColorScheme');
|
367
367
|
|
368
368
|
switch (actionId) {
|
369
|
-
case 'rendering.toggle-prefers-color-scheme':
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
369
|
+
case 'rendering.toggle-prefers-color-scheme': {
|
370
|
+
// Cycle between no emulation, light, dark
|
371
|
+
const options = ['', 'light', 'dark'];
|
372
|
+
const current = options.findIndex(x => x === emulatedCSSMediaFeaturePrefersColorSchemeSetting.get() || '');
|
373
|
+
emulatedCSSMediaFeaturePrefersColorSchemeSetting.set(options[(current + 1) % 3]);
|
374
|
+
|
375
375
|
return true;
|
376
|
+
}
|
376
377
|
}
|
377
378
|
return false;
|
378
379
|
}
|
@@ -103,7 +103,7 @@ const UIStrings = {
|
|
103
103
|
* @description Title of an action that toggle
|
104
104
|
* "forces CSS prefers-color-scheme" color
|
105
105
|
*/
|
106
|
-
toggleCssPrefersColorSchemeMedia: 'Toggle
|
106
|
+
toggleCssPrefersColorSchemeMedia: 'Toggle CSS media feature prefers-color-scheme',
|
107
107
|
};
|
108
108
|
const str_ = i18n.i18n.registerUIStrings('entrypoints/inspector_main/inspector_main-meta.ts', UIStrings);
|
109
109
|
const i18nLazyString = i18n.i18n.getLazilyComputedLocalizedString.bind(undefined, str_);
|
@@ -615,6 +615,13 @@ export function registerCommands(inspectorBackend) {
|
|
615
615
|
{'name': 'range', 'type': 'object', 'optional': false}, {'name': 'text', 'type': 'string', 'optional': false}
|
616
616
|
],
|
617
617
|
['supports']);
|
618
|
+
inspectorBackend.registerCommand(
|
619
|
+
'CSS.setScopeText',
|
620
|
+
[
|
621
|
+
{'name': 'styleSheetId', 'type': 'string', 'optional': false},
|
622
|
+
{'name': 'range', 'type': 'object', 'optional': false}, {'name': 'text', 'type': 'string', 'optional': false}
|
623
|
+
],
|
624
|
+
['scope']);
|
618
625
|
inspectorBackend.registerCommand(
|
619
626
|
'CSS.setRuleSelector',
|
620
627
|
[
|
@@ -2149,9 +2156,12 @@ export function registerCommands(inspectorBackend) {
|
|
2149
2156
|
WindowPlacement: 'window-placement',
|
2150
2157
|
XrSpatialTracking: 'xr-spatial-tracking'
|
2151
2158
|
});
|
2152
|
-
inspectorBackend.registerEnum(
|
2153
|
-
|
2154
|
-
|
2159
|
+
inspectorBackend.registerEnum('Page.PermissionsPolicyBlockReason', {
|
2160
|
+
Header: 'Header',
|
2161
|
+
IframeAttribute: 'IframeAttribute',
|
2162
|
+
InFencedFrameTree: 'InFencedFrameTree',
|
2163
|
+
InIsolatedApp: 'InIsolatedApp'
|
2164
|
+
});
|
2155
2165
|
inspectorBackend.registerEnum('Page.OriginTrialTokenStatus', {
|
2156
2166
|
Success: 'Success',
|
2157
2167
|
NotSupported: 'NotSupported',
|
@@ -333,7 +333,7 @@ export const generatedProperties = [
|
|
333
333
|
{'name': 'contain-intrinsic-width', 'keywords': ['auto', 'none']},
|
334
334
|
{'longhands': ['container-name', 'container-type'], 'name': 'container'},
|
335
335
|
{'name': 'container-name', 'keywords': ['none']},
|
336
|
-
{'name': 'container-type', 'keywords': ['none', 'inline-size', 'size']},
|
336
|
+
{'name': 'container-type', 'keywords': ['none', 'inline-size', 'size', 'style']},
|
337
337
|
{'name': 'content'},
|
338
338
|
{'name': 'content-visibility', 'keywords': ['visible', 'auto', 'hidden', 'hidden-matchable']},
|
339
339
|
{'name': 'counter-increment', 'keywords': ['none']},
|
@@ -952,7 +952,7 @@ export const generatedPropertyValues = {
|
|
952
952
|
'contain-intrinsic-height': {'values': ['auto', 'none']},
|
953
953
|
'contain-intrinsic-width': {'values': ['auto', 'none']},
|
954
954
|
'container-name': {'values': ['none']},
|
955
|
-
'container-type': {'values': ['none', 'inline-size', 'size']},
|
955
|
+
'container-type': {'values': ['none', 'inline-size', 'size', 'style']},
|
956
956
|
'content-visibility': {'values': ['visible', 'auto', 'hidden', 'hidden-matchable']},
|
957
957
|
'counter-increment': {'values': ['none']},
|
958
958
|
'counter-reset': {'values': ['none']},
|
@@ -1032,6 +1032,11 @@ export namespace ProtocolMapping {
|
|
1032
1032
|
*/
|
1033
1033
|
'CSS.setSupportsText':
|
1034
1034
|
{paramsType: [Protocol.CSS.SetSupportsTextRequest]; returnType: Protocol.CSS.SetSupportsTextResponse;};
|
1035
|
+
/**
|
1036
|
+
* Modifies the expression of a scope at-rule.
|
1037
|
+
*/
|
1038
|
+
'CSS.setScopeText':
|
1039
|
+
{paramsType: [Protocol.CSS.SetScopeTextRequest]; returnType: Protocol.CSS.SetScopeTextResponse;};
|
1035
1040
|
/**
|
1036
1041
|
* Modifies the rule selector.
|
1037
1042
|
*/
|
@@ -645,6 +645,11 @@ declare namespace ProtocolProxyApi {
|
|
645
645
|
*/
|
646
646
|
invoke_setSupportsText(params: Protocol.CSS.SetSupportsTextRequest): Promise<Protocol.CSS.SetSupportsTextResponse>;
|
647
647
|
|
648
|
+
/**
|
649
|
+
* Modifies the expression of a scope at-rule.
|
650
|
+
*/
|
651
|
+
invoke_setScopeText(params: Protocol.CSS.SetScopeTextRequest): Promise<Protocol.CSS.SetScopeTextResponse>;
|
652
|
+
|
648
653
|
/**
|
649
654
|
* Modifies the rule selector.
|
650
655
|
*/
|
@@ -1985,6 +1985,11 @@ export namespace CSS {
|
|
1985
1985
|
* with the innermost layer and going outwards.
|
1986
1986
|
*/
|
1987
1987
|
layers?: CSSLayer[];
|
1988
|
+
/**
|
1989
|
+
* @scope CSS at-rule array.
|
1990
|
+
* The array enumerates @scope at-rules starting with the innermost one, going outwards.
|
1991
|
+
*/
|
1992
|
+
scopes?: CSSScope[];
|
1988
1993
|
}
|
1989
1994
|
|
1990
1995
|
/**
|
@@ -2250,6 +2255,25 @@ export namespace CSS {
|
|
2250
2255
|
styleSheetId?: StyleSheetId;
|
2251
2256
|
}
|
2252
2257
|
|
2258
|
+
/**
|
2259
|
+
* CSS Scope at-rule descriptor.
|
2260
|
+
*/
|
2261
|
+
export interface CSSScope {
|
2262
|
+
/**
|
2263
|
+
* Scope rule text.
|
2264
|
+
*/
|
2265
|
+
text: string;
|
2266
|
+
/**
|
2267
|
+
* The associated rule header range in the enclosing stylesheet (if
|
2268
|
+
* available).
|
2269
|
+
*/
|
2270
|
+
range?: SourceRange;
|
2271
|
+
/**
|
2272
|
+
* Identifier of the stylesheet containing this object (if exists).
|
2273
|
+
*/
|
2274
|
+
styleSheetId?: StyleSheetId;
|
2275
|
+
}
|
2276
|
+
|
2253
2277
|
/**
|
2254
2278
|
* CSS Layer at-rule descriptor.
|
2255
2279
|
*/
|
@@ -2686,6 +2710,19 @@ export namespace CSS {
|
|
2686
2710
|
supports: CSSSupports;
|
2687
2711
|
}
|
2688
2712
|
|
2713
|
+
export interface SetScopeTextRequest {
|
2714
|
+
styleSheetId: StyleSheetId;
|
2715
|
+
range: SourceRange;
|
2716
|
+
text: string;
|
2717
|
+
}
|
2718
|
+
|
2719
|
+
export interface SetScopeTextResponse extends ProtocolResponseWithError {
|
2720
|
+
/**
|
2721
|
+
* The resulting CSS Scope rule after modification.
|
2722
|
+
*/
|
2723
|
+
scope: CSSScope;
|
2724
|
+
}
|
2725
|
+
|
2689
2726
|
export interface SetRuleSelectorRequest {
|
2690
2727
|
styleSheetId: StyleSheetId;
|
2691
2728
|
range: SourceRange;
|
@@ -10291,6 +10328,7 @@ export namespace Page {
|
|
10291
10328
|
Header = 'Header',
|
10292
10329
|
IframeAttribute = 'IframeAttribute',
|
10293
10330
|
InFencedFrameTree = 'InFencedFrameTree',
|
10331
|
+
InIsolatedApp = 'InIsolatedApp',
|
10294
10332
|
}
|
10295
10333
|
|
10296
10334
|
export interface PermissionsPolicyBlockLocator {
|
@@ -13640,6 +13678,11 @@ export namespace Tracing {
|
|
13640
13678
|
* Controls how the trace buffer stores data.
|
13641
13679
|
*/
|
13642
13680
|
recordMode?: TraceConfigRecordMode;
|
13681
|
+
/**
|
13682
|
+
* Size of the trace buffer in kilobytes. If not specified or zero is passed, a default value
|
13683
|
+
* of 200 MB would be used.
|
13684
|
+
*/
|
13685
|
+
traceBufferSizeInKb?: number;
|
13643
13686
|
/**
|
13644
13687
|
* Turns on JavaScript stack sampling.
|
13645
13688
|
*/
|
@@ -981,11 +981,6 @@ export const NativeFunctions = [
|
|
981
981
|
signatures: [['?returnValue']],
|
982
982
|
receivers: ['HTMLDialogElement']
|
983
983
|
},
|
984
|
-
{
|
985
|
-
name: 'close',
|
986
|
-
signatures: [['?options']],
|
987
|
-
receivers: ['TCPSocket','UDPSocket']
|
988
|
-
},
|
989
984
|
{
|
990
985
|
name: 'close',
|
991
986
|
signatures: [['?closeInfo']],
|
@@ -6780,20 +6775,6 @@ export const NativeFunctions = [
|
|
6780
6775
|
name: 'FederatedCredential',
|
6781
6776
|
signatures: [['data']]
|
6782
6777
|
},
|
6783
|
-
{
|
6784
|
-
name: 'login',
|
6785
|
-
signatures: [['?request']]
|
6786
|
-
},
|
6787
|
-
{
|
6788
|
-
name: 'revoke',
|
6789
|
-
signatures: [['hint']],
|
6790
|
-
receivers: ['FederatedCredential']
|
6791
|
-
},
|
6792
|
-
{
|
6793
|
-
name: 'revoke',
|
6794
|
-
signatures: [['permission']],
|
6795
|
-
receivers: ['Permissions']
|
6796
|
-
},
|
6797
6778
|
{
|
6798
6779
|
name: 'logoutRps',
|
6799
6780
|
signatures: [['?logout_requests']]
|
@@ -7384,6 +7365,10 @@ export const NativeFunctions = [
|
|
7384
7365
|
name: 'RTCSessionDescription',
|
7385
7366
|
signatures: [['?descriptionInitDict']]
|
7386
7367
|
},
|
7368
|
+
{
|
7369
|
+
name: 'revoke',
|
7370
|
+
signatures: [['permission']]
|
7371
|
+
},
|
7387
7372
|
{
|
7388
7373
|
name: 'requestAll',
|
7389
7374
|
signatures: [['permissions']]
|
@@ -415,6 +415,7 @@ export class DeviceModeToolbar {
|
|
415
415
|
boundAppendScaleItem('100%', 1);
|
416
416
|
boundAppendScaleItem('125%', 1.25);
|
417
417
|
boundAppendScaleItem('150%', 1.5);
|
418
|
+
boundAppendScaleItem('200%', 2);
|
418
419
|
|
419
420
|
function appendScaleItem(this: DeviceModeToolbar, title: string, value: number): void {
|
420
421
|
contextMenu.defaultSection().appendCheckboxItem(
|
@@ -20,23 +20,23 @@ const UIStrings = {
|
|
20
20
|
/**
|
21
21
|
*@description Text in Request Headers View of the Network panel
|
22
22
|
*/
|
23
|
-
|
23
|
+
fromDiskCache: '(from disk cache)',
|
24
24
|
/**
|
25
25
|
*@description Text in Request Headers View of the Network panel
|
26
26
|
*/
|
27
|
-
|
27
|
+
fromMemoryCache: '(from memory cache)',
|
28
28
|
/**
|
29
29
|
*@description Text in Request Headers View of the Network panel
|
30
30
|
*/
|
31
|
-
|
31
|
+
fromPrefetchCache: '(from prefetch cache)',
|
32
32
|
/**
|
33
33
|
*@description Text in Request Headers View of the Network panel
|
34
34
|
*/
|
35
|
-
|
35
|
+
fromServiceWorker: '(from `service worker`)',
|
36
36
|
/**
|
37
37
|
*@description Text in Request Headers View of the Network panel
|
38
38
|
*/
|
39
|
-
|
39
|
+
fromSignedexchange: '(from signed-exchange)',
|
40
40
|
/**
|
41
41
|
*@description Text in Request Headers View of the Network panel
|
42
42
|
*/
|
@@ -52,16 +52,24 @@ const UIStrings = {
|
|
52
52
|
/**
|
53
53
|
*@description Text in Request Headers View of the Network panel
|
54
54
|
*/
|
55
|
-
|
55
|
+
referrerPolicy: 'Referrer Policy',
|
56
56
|
/**
|
57
|
-
*@description
|
57
|
+
*@description Text in Network Log View Columns of the Network panel
|
58
58
|
*/
|
59
|
-
|
59
|
+
remoteAddress: 'Remote Address',
|
60
|
+
/**
|
61
|
+
*@description Text in Request Headers View of the Network panel
|
62
|
+
*/
|
63
|
+
requestHeaders: 'Request Headers',
|
60
64
|
/**
|
61
65
|
*@description The HTTP method of a request
|
62
66
|
*/
|
63
67
|
requestMethod: 'Request Method',
|
64
68
|
/**
|
69
|
+
*@description The URL of a request
|
70
|
+
*/
|
71
|
+
requestUrl: 'Request URL',
|
72
|
+
/**
|
65
73
|
*@description A context menu item in the Network Log View Columns of the Network panel
|
66
74
|
*/
|
67
75
|
responseHeaders: 'Response Headers',
|
@@ -73,14 +81,6 @@ const UIStrings = {
|
|
73
81
|
*@description HTTP response code
|
74
82
|
*/
|
75
83
|
statusCode: 'Status Code',
|
76
|
-
/**
|
77
|
-
*@description Text in Network Log View Columns of the Network panel
|
78
|
-
*/
|
79
|
-
remoteAddress: 'Remote Address',
|
80
|
-
/**
|
81
|
-
*@description Text in Request Headers View of the Network panel
|
82
|
-
*/
|
83
|
-
referrerPolicy: 'Referrer Policy',
|
84
84
|
};
|
85
85
|
const str_ = i18n.i18n.registerUIStrings('panels/network/components/RequestHeadersView.ts', UIStrings);
|
86
86
|
const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
@@ -7,21 +7,21 @@
|
|
7
7
|
/* See: https://crbug.com/1227651 for details on changing these to --override pattern. */
|
8
8
|
|
9
9
|
.node-label-name {
|
10
|
-
color: var(--override-node-text-label-color, --color-token-tag);
|
10
|
+
color: var(--override-node-text-label-color, var(--color-token-tag));
|
11
11
|
}
|
12
12
|
|
13
13
|
.node-label-class {
|
14
|
-
color: var(--override-node-text-class-color, --color-token-attribute);
|
14
|
+
color: var(--override-node-text-class-color, var(--color-token-attribute));
|
15
15
|
}
|
16
16
|
|
17
17
|
.node-label-id {
|
18
|
-
color: var(--override-node-text-id-color);
|
18
|
+
color: var(--override-node-text-id-color, var(--color-token-attribute));
|
19
19
|
}
|
20
20
|
|
21
21
|
.node-label-class.node-multiple-descriptors {
|
22
|
-
color: var(--override-node-text-multiple-descriptors-class, var(--override-node-text-class-color, --color-token-attribute));
|
22
|
+
color: var(--override-node-text-multiple-descriptors-class, var(--override-node-text-class-color, var(--color-token-attribute)));
|
23
23
|
}
|
24
24
|
|
25
25
|
.node-label-id.node-multiple-descriptors {
|
26
|
-
color: var(--override-node-text-multiple-descriptors-id, var(--override-node-text-id-color, --color-token-attribute));
|
26
|
+
color: var(--override-node-text-multiple-descriptors-id, var(--override-node-text-id-color, var(--color-token-attribute)));
|
27
27
|
}
|
package/package.json
CHANGED