chrome-devtools-frontend 1.0.960864 → 1.0.961109
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/.vscode/devtools-workspace-launch.json +29 -0
- package/.vscode/devtools-workspace-settings.json +6 -1
- package/.vscode/devtools-workspace-tasks.json +28 -0
- package/front_end/core/i18n/locales/en-US.json +30 -0
- package/front_end/core/i18n/locales/en-XL.json +30 -0
- package/front_end/core/sdk/DebuggerModel.ts +8 -1
- package/front_end/core/sdk/ServiceWorkerCacheModel.ts +3 -0
- package/front_end/generated/InspectorBackendCommands.js +21 -2
- package/front_end/generated/SupportedCSSProperties.js +3 -1
- package/front_end/generated/protocol-mapping.d.ts +17 -1
- package/front_end/generated/protocol-proxy-api.d.ts +18 -1
- package/front_end/generated/protocol.d.ts +79 -0
- package/front_end/panels/application/IndexedDBModel.ts +3 -0
- package/front_end/panels/console/ConsoleView.ts +10 -1
- package/front_end/panels/elements/ElementsPanel.ts +10 -1
- package/front_end/panels/sources/SourcesPanel.ts +20 -2
- package/front_end/panels/timeline/TimelineTreeView.ts +10 -1
- package/front_end/ui/components/buttons/Button.ts +6 -1
- package/front_end/ui/components/docs/button/basic.ts +1 -0
- package/front_end/ui/legacy/SplitWidget.ts +6 -2
- package/package.json +1 -1
@@ -0,0 +1,29 @@
|
|
1
|
+
{
|
2
|
+
"version": "0.2.0",
|
3
|
+
"configurations": [
|
4
|
+
{
|
5
|
+
"type": "pwa-chrome",
|
6
|
+
"request": "launch",
|
7
|
+
"name": "Run unit tests in VS Code debugger",
|
8
|
+
"preLaunchTask": "1-build_Debug",
|
9
|
+
"runtimeExecutable": "/usr/bin/npm",
|
10
|
+
"runtimeArgs": ["run", "unittest"],
|
11
|
+
"port": 9222,
|
12
|
+
"timeout": 30000,
|
13
|
+
"browserLaunchLocation": "workspace",
|
14
|
+
"outputCapture": "std",
|
15
|
+
"trace": true,
|
16
|
+
"env" : {
|
17
|
+
"KARMA_TIMEOUT": "3600000"
|
18
|
+
}
|
19
|
+
},
|
20
|
+
{
|
21
|
+
"type": "pwa-node",
|
22
|
+
"request": "launch",
|
23
|
+
"name": "Run end-to-end tests in VS Code debugger",
|
24
|
+
"preLaunchTask": "1-build_Debug",
|
25
|
+
"runtimeExecutable": "/usr/bin/npm",
|
26
|
+
"runtimeArgs": ["run", "e2etest"]
|
27
|
+
}
|
28
|
+
]
|
29
|
+
}
|
@@ -0,0 +1,28 @@
|
|
1
|
+
{
|
2
|
+
"version": "2.0.0",
|
3
|
+
"runner": "terminal",
|
4
|
+
"tasks": [
|
5
|
+
{
|
6
|
+
"label": "1-build_Debug",
|
7
|
+
"type": "shell",
|
8
|
+
"command": "npm run build",
|
9
|
+
"group": {"kind": "build", "isDefault": true},
|
10
|
+
"presentation": {
|
11
|
+
"echo": true,
|
12
|
+
"reveal": "always"
|
13
|
+
},
|
14
|
+
"problemMatcher": [
|
15
|
+
{
|
16
|
+
"owner": "typescript",
|
17
|
+
"fileLocation": ["relative", "${workspaceRoot}/out/Default"],
|
18
|
+
"pattern": {
|
19
|
+
"regexp": "^([^\\s].*)\\((\\d+,\\d+)\\):\\s*(.*)$",
|
20
|
+
"file": 1,
|
21
|
+
"location": 2,
|
22
|
+
"message": 3
|
23
|
+
}
|
24
|
+
}
|
25
|
+
]
|
26
|
+
}
|
27
|
+
]
|
28
|
+
}
|
@@ -3806,6 +3806,12 @@
|
|
3806
3806
|
"panels/console/ConsoleView.ts | consoleSettings": {
|
3807
3807
|
"message": "Console settings"
|
3808
3808
|
},
|
3809
|
+
"panels/console/ConsoleView.ts | consoleSidebarHidden": {
|
3810
|
+
"message": "Console sidebar hidden"
|
3811
|
+
},
|
3812
|
+
"panels/console/ConsoleView.ts | consoleSidebarShown": {
|
3813
|
+
"message": "Console sidebar shown"
|
3814
|
+
},
|
3809
3815
|
"panels/console/ConsoleView.ts | copyVisibleStyledSelection": {
|
3810
3816
|
"message": "Copy visible styled selection"
|
3811
3817
|
},
|
@@ -4499,6 +4505,12 @@
|
|
4499
4505
|
"panels/elements/ElementsPanel.ts | computed": {
|
4500
4506
|
"message": "Computed"
|
4501
4507
|
},
|
4508
|
+
"panels/elements/ElementsPanel.ts | computedStylesHidden": {
|
4509
|
+
"message": "Computed Styles sidebar hidden"
|
4510
|
+
},
|
4511
|
+
"panels/elements/ElementsPanel.ts | computedStylesShown": {
|
4512
|
+
"message": "Computed Styles sidebar shown"
|
4513
|
+
},
|
4502
4514
|
"panels/elements/ElementsPanel.ts | domTreeExplorer": {
|
4503
4515
|
"message": "DOM tree explorer"
|
4504
4516
|
},
|
@@ -9794,6 +9806,12 @@
|
|
9794
9806
|
"panels/sources/SourcesPanel.ts | copyStringContents": {
|
9795
9807
|
"message": "Copy string contents"
|
9796
9808
|
},
|
9809
|
+
"panels/sources/SourcesPanel.ts | debuggerHidden": {
|
9810
|
+
"message": "Debugger sidebar hidden"
|
9811
|
+
},
|
9812
|
+
"panels/sources/SourcesPanel.ts | debuggerShown": {
|
9813
|
+
"message": "Debugger sidebar shown"
|
9814
|
+
},
|
9797
9815
|
"panels/sources/SourcesPanel.ts | dontPauseOnExceptions": {
|
9798
9816
|
"message": "Don't pause on exceptions"
|
9799
9817
|
},
|
@@ -9812,6 +9830,12 @@
|
|
9812
9830
|
"panels/sources/SourcesPanel.ts | moreOptions": {
|
9813
9831
|
"message": "More options"
|
9814
9832
|
},
|
9833
|
+
"panels/sources/SourcesPanel.ts | navigatorHidden": {
|
9834
|
+
"message": "Navigator sidebar hidden"
|
9835
|
+
},
|
9836
|
+
"panels/sources/SourcesPanel.ts | navigatorShown": {
|
9837
|
+
"message": "Navigator sidebar shown"
|
9838
|
+
},
|
9815
9839
|
"panels/sources/SourcesPanel.ts | openInSourcesPanel": {
|
9816
9840
|
"message": "Open in Sources panel"
|
9817
9841
|
},
|
@@ -10346,6 +10370,12 @@
|
|
10346
10370
|
"panels/timeline/TimelineTreeView.ts | heaviestStack": {
|
10347
10371
|
"message": "Heaviest stack"
|
10348
10372
|
},
|
10373
|
+
"panels/timeline/TimelineTreeView.ts | heaviestStackHidden": {
|
10374
|
+
"message": "Heaviest stack sidebar hidden"
|
10375
|
+
},
|
10376
|
+
"panels/timeline/TimelineTreeView.ts | heaviestStackShown": {
|
10377
|
+
"message": "Heaviest stack sidebar shown"
|
10378
|
+
},
|
10349
10379
|
"panels/timeline/TimelineTreeView.ts | hideHeaviestStack": {
|
10350
10380
|
"message": "Hide Heaviest stack"
|
10351
10381
|
},
|
@@ -3806,6 +3806,12 @@
|
|
3806
3806
|
"panels/console/ConsoleView.ts | consoleSettings": {
|
3807
3807
|
"message": "Ĉón̂śôĺê śêt́t̂ín̂ǵŝ"
|
3808
3808
|
},
|
3809
|
+
"panels/console/ConsoleView.ts | consoleSidebarHidden": {
|
3810
|
+
"message": "Ĉón̂śôĺê śîd́êb́âŕ ĥíd̂d́êń"
|
3811
|
+
},
|
3812
|
+
"panels/console/ConsoleView.ts | consoleSidebarShown": {
|
3813
|
+
"message": "Ĉón̂śôĺê śîd́êb́âŕ ŝh́ôẃn̂"
|
3814
|
+
},
|
3809
3815
|
"panels/console/ConsoleView.ts | copyVisibleStyledSelection": {
|
3810
3816
|
"message": "Ĉóp̂ý v̂íŝíb̂ĺê śt̂ýl̂éd̂ śêĺêćt̂íôń"
|
3811
3817
|
},
|
@@ -4499,6 +4505,12 @@
|
|
4499
4505
|
"panels/elements/ElementsPanel.ts | computed": {
|
4500
4506
|
"message": "Ĉóm̂ṕût́êd́"
|
4501
4507
|
},
|
4508
|
+
"panels/elements/ElementsPanel.ts | computedStylesHidden": {
|
4509
|
+
"message": "Ĉóm̂ṕût́êd́ Ŝt́ŷĺêś ŝíd̂éb̂ár̂ h́îd́d̂én̂"
|
4510
|
+
},
|
4511
|
+
"panels/elements/ElementsPanel.ts | computedStylesShown": {
|
4512
|
+
"message": "Ĉóm̂ṕût́êd́ Ŝt́ŷĺêś ŝíd̂éb̂ár̂ śĥóŵń"
|
4513
|
+
},
|
4502
4514
|
"panels/elements/ElementsPanel.ts | domTreeExplorer": {
|
4503
4515
|
"message": "D̂ÓM̂ t́r̂éê éx̂ṕl̂ór̂ér̂"
|
4504
4516
|
},
|
@@ -9794,6 +9806,12 @@
|
|
9794
9806
|
"panels/sources/SourcesPanel.ts | copyStringContents": {
|
9795
9807
|
"message": "Ĉóp̂ý ŝt́r̂ín̂ǵ ĉón̂t́êńt̂ś"
|
9796
9808
|
},
|
9809
|
+
"panels/sources/SourcesPanel.ts | debuggerHidden": {
|
9810
|
+
"message": "D̂éb̂úĝǵêŕ ŝíd̂éb̂ár̂ h́îd́d̂én̂"
|
9811
|
+
},
|
9812
|
+
"panels/sources/SourcesPanel.ts | debuggerShown": {
|
9813
|
+
"message": "D̂éb̂úĝǵêŕ ŝíd̂éb̂ár̂ śĥóŵń"
|
9814
|
+
},
|
9797
9815
|
"panels/sources/SourcesPanel.ts | dontPauseOnExceptions": {
|
9798
9816
|
"message": "D̂ón̂'t́ p̂áûśê ón̂ éx̂ćêṕt̂íôńŝ"
|
9799
9817
|
},
|
@@ -9812,6 +9830,12 @@
|
|
9812
9830
|
"panels/sources/SourcesPanel.ts | moreOptions": {
|
9813
9831
|
"message": "M̂ór̂é ôṕt̂íôńŝ"
|
9814
9832
|
},
|
9833
|
+
"panels/sources/SourcesPanel.ts | navigatorHidden": {
|
9834
|
+
"message": "N̂áv̂íĝát̂ór̂ śîd́êb́âŕ ĥíd̂d́êń"
|
9835
|
+
},
|
9836
|
+
"panels/sources/SourcesPanel.ts | navigatorShown": {
|
9837
|
+
"message": "N̂áv̂íĝát̂ór̂ śîd́êb́âŕ ŝh́ôẃn̂"
|
9838
|
+
},
|
9815
9839
|
"panels/sources/SourcesPanel.ts | openInSourcesPanel": {
|
9816
9840
|
"message": "Ôṕêń îń Ŝóûŕĉéŝ ṕâńêĺ"
|
9817
9841
|
},
|
@@ -10346,6 +10370,12 @@
|
|
10346
10370
|
"panels/timeline/TimelineTreeView.ts | heaviestStack": {
|
10347
10371
|
"message": "Ĥéâv́îéŝt́ ŝt́âćk̂"
|
10348
10372
|
},
|
10373
|
+
"panels/timeline/TimelineTreeView.ts | heaviestStackHidden": {
|
10374
|
+
"message": "Ĥéâv́îéŝt́ ŝt́âćk̂ śîd́êb́âŕ ĥíd̂d́êń"
|
10375
|
+
},
|
10376
|
+
"panels/timeline/TimelineTreeView.ts | heaviestStackShown": {
|
10377
|
+
"message": "Ĥéâv́îéŝt́ ŝt́âćk̂ śîd́êb́âŕ ŝh́ôẃn̂"
|
10378
|
+
},
|
10349
10379
|
"panels/timeline/TimelineTreeView.ts | hideHeaviestStack": {
|
10350
10380
|
"message": "Ĥíd̂é Ĥéâv́îéŝt́ ŝt́âćk̂"
|
10351
10381
|
},
|
@@ -548,6 +548,10 @@ export class DebuggerModel extends SDKModel<EventTypes> {
|
|
548
548
|
return this.#scriptsInternal.get(scriptId) || null;
|
549
549
|
}
|
550
550
|
|
551
|
+
/**
|
552
|
+
* Returns all `Script` objects with the same provided `sourceURL`. The
|
553
|
+
* resulting array is sorted by time with the newest `Script` in the front.
|
554
|
+
*/
|
551
555
|
scriptsForSourceURL(sourceURL: string|null): Script[] {
|
552
556
|
if (!sourceURL) {
|
553
557
|
return [];
|
@@ -770,7 +774,10 @@ export class DebuggerModel extends SDKModel<EventTypes> {
|
|
770
774
|
scripts = [];
|
771
775
|
this.#scriptsBySourceURL.set(script.sourceURL, scripts);
|
772
776
|
}
|
773
|
-
scripts
|
777
|
+
// Newer scripts with the same URL should be preferred so we put them in
|
778
|
+
// the front. Consuming code usually will iterate over the array and pick
|
779
|
+
// the first script that works.
|
780
|
+
scripts.unshift(script);
|
774
781
|
}
|
775
782
|
|
776
783
|
private unregisterScript(script: Script): void {
|
@@ -250,6 +250,9 @@ export class ServiceWorkerCacheModel extends SDKModel<EventTypes> implements Pro
|
|
250
250
|
indexedDBContentUpdated(_event: Protocol.Storage.IndexedDBContentUpdatedEvent): void {
|
251
251
|
}
|
252
252
|
|
253
|
+
interestGroupAccessed(_event: Protocol.Storage.InterestGroupAccessedEvent): void {
|
254
|
+
}
|
255
|
+
|
253
256
|
setThrottlerSchedulesAsSoonAsPossibleForTest(): void {
|
254
257
|
this.#scheduleAsSoonAsPossible = true;
|
255
258
|
}
|
@@ -2048,7 +2048,8 @@ export function registerCommands(inspectorBackend) {
|
|
2048
2048
|
XrSpatialTracking: 'xr-spatial-tracking'
|
2049
2049
|
});
|
2050
2050
|
inspectorBackend.registerEnum(
|
2051
|
-
'Page.PermissionsPolicyBlockReason',
|
2051
|
+
'Page.PermissionsPolicyBlockReason',
|
2052
|
+
{Header: 'Header', IframeAttribute: 'IframeAttribute', InFencedFrameTree: 'InFencedFrameTree'});
|
2052
2053
|
inspectorBackend.registerEnum('Page.OriginTrialTokenStatus', {
|
2053
2054
|
Success: 'Success',
|
2054
2055
|
NotSupported: 'NotSupported',
|
@@ -2430,7 +2431,12 @@ export function registerCommands(inspectorBackend) {
|
|
2430
2431
|
],
|
2431
2432
|
[]);
|
2432
2433
|
inspectorBackend.registerCommand(
|
2433
|
-
'Page.setFontFamilies',
|
2434
|
+
'Page.setFontFamilies',
|
2435
|
+
[
|
2436
|
+
{'name': 'fontFamilies', 'type': 'object', 'optional': false},
|
2437
|
+
{'name': 'forScripts', 'type': 'object', 'optional': true}
|
2438
|
+
],
|
2439
|
+
[]);
|
2434
2440
|
inspectorBackend.registerCommand(
|
2435
2441
|
'Page.setFontSizes', [{'name': 'fontSizes', 'type': 'object', 'optional': false}], []);
|
2436
2442
|
inspectorBackend.registerCommand(
|
@@ -2621,13 +2627,17 @@ export function registerCommands(inspectorBackend) {
|
|
2621
2627
|
Websql: 'websql',
|
2622
2628
|
Service_workers: 'service_workers',
|
2623
2629
|
Cache_storage: 'cache_storage',
|
2630
|
+
Interest_groups: 'interest_groups',
|
2624
2631
|
All: 'all',
|
2625
2632
|
Other: 'other'
|
2626
2633
|
});
|
2634
|
+
inspectorBackend.registerEnum(
|
2635
|
+
'Storage.InterestGroupAccessType', {Join: 'join', Leave: 'leave', Update: 'update', Bid: 'bid', Win: 'win'});
|
2627
2636
|
inspectorBackend.registerEvent('Storage.cacheStorageContentUpdated', ['origin', 'cacheName']);
|
2628
2637
|
inspectorBackend.registerEvent('Storage.cacheStorageListUpdated', ['origin']);
|
2629
2638
|
inspectorBackend.registerEvent('Storage.indexedDBContentUpdated', ['origin', 'databaseName', 'objectStoreName']);
|
2630
2639
|
inspectorBackend.registerEvent('Storage.indexedDBListUpdated', ['origin']);
|
2640
|
+
inspectorBackend.registerEvent('Storage.interestGroupAccessed', ['type', 'ownerOrigin', 'name']);
|
2631
2641
|
inspectorBackend.registerCommand(
|
2632
2642
|
'Storage.clearDataForOrigin',
|
2633
2643
|
[
|
@@ -2667,6 +2677,15 @@ export function registerCommands(inspectorBackend) {
|
|
2667
2677
|
inspectorBackend.registerCommand('Storage.getTrustTokens', [], ['tokens']);
|
2668
2678
|
inspectorBackend.registerCommand(
|
2669
2679
|
'Storage.clearTrustTokens', [{'name': 'issuerOrigin', 'type': 'string', 'optional': false}], ['didDeleteTokens']);
|
2680
|
+
inspectorBackend.registerCommand(
|
2681
|
+
'Storage.getInterestGroupDetails',
|
2682
|
+
[
|
2683
|
+
{'name': 'ownerOrigin', 'type': 'string', 'optional': false},
|
2684
|
+
{'name': 'name', 'type': 'string', 'optional': false}
|
2685
|
+
],
|
2686
|
+
['details']);
|
2687
|
+
inspectorBackend.registerCommand(
|
2688
|
+
'Storage.setInterestGroupTracking', [{'name': 'enable', 'type': 'boolean', 'optional': false}], []);
|
2670
2689
|
|
2671
2690
|
// SystemInfo.
|
2672
2691
|
inspectorBackend.registerEnum('SystemInfo.SubsamplingFormat', {Yuv420: 'yuv420', Yuv422: 'yuv422', Yuv444: 'yuv444'});
|
@@ -302,7 +302,7 @@ export const generatedProperties = [
|
|
302
302
|
{'name': 'clip', 'keywords': ['auto']},
|
303
303
|
{'name': 'clip-path', 'keywords': ['none']},
|
304
304
|
{'name': 'clip-rule', 'inherited': true, 'keywords': ['nonzero', 'evenodd']},
|
305
|
-
{'name': 'color', '
|
305
|
+
{'name': 'color', 'keywords': ['currentcolor'], 'inherited': true},
|
306
306
|
{'name': 'color-interpolation', 'inherited': true, 'keywords': ['auto', 'srgb', 'linearrgb']},
|
307
307
|
{'name': 'color-interpolation-filters', 'inherited': true, 'keywords': ['auto', 'srgb', 'linearrgb']},
|
308
308
|
{'name': 'color-rendering', 'inherited': true, 'keywords': ['auto', 'optimizespeed', 'optimizequality']},
|
@@ -419,6 +419,7 @@ export const generatedProperties = [
|
|
419
419
|
{'name': 'font-feature-settings', 'inherited': true, 'keywords': ['normal']},
|
420
420
|
{'name': 'font-kerning', 'inherited': true, 'keywords': ['auto', 'normal', 'none']},
|
421
421
|
{'name': 'font-optical-sizing', 'inherited': true, 'keywords': ['auto', 'none']},
|
422
|
+
{'inherited': true, 'keywords': ['normal', 'light', 'dark'], 'name': 'font-palette'},
|
422
423
|
{
|
423
424
|
'name': 'font-size',
|
424
425
|
'inherited': true,
|
@@ -1000,6 +1001,7 @@ export const generatedPropertyValues = {
|
|
1000
1001
|
'font-feature-settings': {'values': ['normal']},
|
1001
1002
|
'font-kerning': {'values': ['auto', 'normal', 'none']},
|
1002
1003
|
'font-optical-sizing': {'values': ['auto', 'none']},
|
1004
|
+
'font-palette': {'values': ['normal', 'light', 'dark']},
|
1003
1005
|
'font-size': {
|
1004
1006
|
'values': [
|
1005
1007
|
'xx-small', 'x-small', 'small', 'medium', 'large', 'x-large', 'xx-large', 'xxx-large', 'larger', 'smaller',
|
@@ -470,6 +470,10 @@ export namespace ProtocolMapping {
|
|
470
470
|
* The origin's IndexedDB database list has been modified.
|
471
471
|
*/
|
472
472
|
'Storage.indexedDBListUpdated': [Protocol.Storage.IndexedDBListUpdatedEvent];
|
473
|
+
/**
|
474
|
+
* One of the interest groups was accessed by the associated page.
|
475
|
+
*/
|
476
|
+
'Storage.interestGroupAccessed': [Protocol.Storage.InterestGroupAccessedEvent];
|
473
477
|
/**
|
474
478
|
* Issued when attached to target because of auto-attach or `attachToTarget` command.
|
475
479
|
*/
|
@@ -2096,7 +2100,7 @@ export namespace ProtocolMapping {
|
|
2096
2100
|
'Overlay.setShowScrollBottleneckRects':
|
2097
2101
|
{paramsType: [Protocol.Overlay.SetShowScrollBottleneckRectsRequest]; returnType: void;};
|
2098
2102
|
/**
|
2099
|
-
*
|
2103
|
+
* Deprecated, no longer has any effect.
|
2100
2104
|
*/
|
2101
2105
|
'Overlay.setShowHitTestBorders': {paramsType: [Protocol.Overlay.SetShowHitTestBordersRequest]; returnType: void;};
|
2102
2106
|
/**
|
@@ -2501,6 +2505,18 @@ export namespace ProtocolMapping {
|
|
2501
2505
|
'Storage.clearTrustTokens': {
|
2502
2506
|
paramsType: [Protocol.Storage.ClearTrustTokensRequest]; returnType: Protocol.Storage.ClearTrustTokensResponse;
|
2503
2507
|
};
|
2508
|
+
/**
|
2509
|
+
* Gets details for a named interest group.
|
2510
|
+
*/
|
2511
|
+
'Storage.getInterestGroupDetails': {
|
2512
|
+
paramsType: [Protocol.Storage.GetInterestGroupDetailsRequest];
|
2513
|
+
returnType: Protocol.Storage.GetInterestGroupDetailsResponse;
|
2514
|
+
};
|
2515
|
+
/**
|
2516
|
+
* Enables/Disables issuing of interestGroupAccessed events.
|
2517
|
+
*/
|
2518
|
+
'Storage.setInterestGroupTracking':
|
2519
|
+
{paramsType: [Protocol.Storage.SetInterestGroupTrackingRequest]; returnType: void;};
|
2504
2520
|
/**
|
2505
2521
|
* Returns information about the system.
|
2506
2522
|
*/
|
@@ -2318,7 +2318,7 @@ declare namespace ProtocolProxyApi {
|
|
2318
2318
|
Promise<Protocol.ProtocolResponseWithError>;
|
2319
2319
|
|
2320
2320
|
/**
|
2321
|
-
*
|
2321
|
+
* Deprecated, no longer has any effect.
|
2322
2322
|
*/
|
2323
2323
|
invoke_setShowHitTestBorders(params: Protocol.Overlay.SetShowHitTestBordersRequest):
|
2324
2324
|
Promise<Protocol.ProtocolResponseWithError>;
|
@@ -3035,6 +3035,18 @@ declare namespace ProtocolProxyApi {
|
|
3035
3035
|
*/
|
3036
3036
|
invoke_clearTrustTokens(params: Protocol.Storage.ClearTrustTokensRequest):
|
3037
3037
|
Promise<Protocol.Storage.ClearTrustTokensResponse>;
|
3038
|
+
|
3039
|
+
/**
|
3040
|
+
* Gets details for a named interest group.
|
3041
|
+
*/
|
3042
|
+
invoke_getInterestGroupDetails(params: Protocol.Storage.GetInterestGroupDetailsRequest):
|
3043
|
+
Promise<Protocol.Storage.GetInterestGroupDetailsResponse>;
|
3044
|
+
|
3045
|
+
/**
|
3046
|
+
* Enables/Disables issuing of interestGroupAccessed events.
|
3047
|
+
*/
|
3048
|
+
invoke_setInterestGroupTracking(params: Protocol.Storage.SetInterestGroupTrackingRequest):
|
3049
|
+
Promise<Protocol.ProtocolResponseWithError>;
|
3038
3050
|
}
|
3039
3051
|
export interface StorageDispatcher {
|
3040
3052
|
/**
|
@@ -3056,6 +3068,11 @@ declare namespace ProtocolProxyApi {
|
|
3056
3068
|
* The origin's IndexedDB database list has been modified.
|
3057
3069
|
*/
|
3058
3070
|
indexedDBListUpdated(params: Protocol.Storage.IndexedDBListUpdatedEvent): void;
|
3071
|
+
|
3072
|
+
/**
|
3073
|
+
* One of the interest groups was accessed by the associated page.
|
3074
|
+
*/
|
3075
|
+
interestGroupAccessed(params: Protocol.Storage.InterestGroupAccessedEvent): void;
|
3059
3076
|
}
|
3060
3077
|
|
3061
3078
|
export interface SystemInfoApi {
|
@@ -10031,6 +10031,7 @@ declare namespace Protocol {
|
|
10031
10031
|
export const enum PermissionsPolicyBlockReason {
|
10032
10032
|
Header = 'Header',
|
10033
10033
|
IframeAttribute = 'IframeAttribute',
|
10034
|
+
InFencedFrameTree = 'InFencedFrameTree',
|
10034
10035
|
}
|
10035
10036
|
|
10036
10037
|
export interface PermissionsPolicyBlockLocator {
|
@@ -10480,6 +10481,20 @@ declare namespace Protocol {
|
|
10480
10481
|
pictograph?: string;
|
10481
10482
|
}
|
10482
10483
|
|
10484
|
+
/**
|
10485
|
+
* Font families collection for a script.
|
10486
|
+
*/
|
10487
|
+
export interface ScriptFontFamilies {
|
10488
|
+
/**
|
10489
|
+
* Name of the script which these font families are defined for.
|
10490
|
+
*/
|
10491
|
+
script: string;
|
10492
|
+
/**
|
10493
|
+
* Generic font families collection for the script.
|
10494
|
+
*/
|
10495
|
+
fontFamilies: FontFamilies;
|
10496
|
+
}
|
10497
|
+
|
10483
10498
|
/**
|
10484
10499
|
* Default font sizes.
|
10485
10500
|
*/
|
@@ -11286,6 +11301,10 @@ declare namespace Protocol {
|
|
11286
11301
|
* Specifies font families to set. If a font family is not specified, it won't be changed.
|
11287
11302
|
*/
|
11288
11303
|
fontFamilies: FontFamilies;
|
11304
|
+
/**
|
11305
|
+
* Specifies font families to set for individual scripts.
|
11306
|
+
*/
|
11307
|
+
forScripts?: ScriptFontFamilies[];
|
11289
11308
|
}
|
11290
11309
|
|
11291
11310
|
export interface SetFontSizesRequest {
|
@@ -12416,6 +12435,7 @@ declare namespace Protocol {
|
|
12416
12435
|
Websql = 'websql',
|
12417
12436
|
Service_workers = 'service_workers',
|
12418
12437
|
Cache_storage = 'cache_storage',
|
12438
|
+
Interest_groups = 'interest_groups',
|
12419
12439
|
All = 'all',
|
12420
12440
|
Other = 'other',
|
12421
12441
|
}
|
@@ -12443,6 +12463,43 @@ declare namespace Protocol {
|
|
12443
12463
|
count: number;
|
12444
12464
|
}
|
12445
12465
|
|
12466
|
+
/**
|
12467
|
+
* Enum of interest group access types.
|
12468
|
+
*/
|
12469
|
+
export const enum InterestGroupAccessType {
|
12470
|
+
Join = 'join',
|
12471
|
+
Leave = 'leave',
|
12472
|
+
Update = 'update',
|
12473
|
+
Bid = 'bid',
|
12474
|
+
Win = 'win',
|
12475
|
+
}
|
12476
|
+
|
12477
|
+
/**
|
12478
|
+
* Ad advertising element inside an interest group.
|
12479
|
+
*/
|
12480
|
+
export interface InterestGroupAd {
|
12481
|
+
renderUrl: string;
|
12482
|
+
metadata?: string;
|
12483
|
+
}
|
12484
|
+
|
12485
|
+
/**
|
12486
|
+
* The full details of an interest group.
|
12487
|
+
*/
|
12488
|
+
export interface InterestGroupDetails {
|
12489
|
+
ownerOrigin: string;
|
12490
|
+
name: string;
|
12491
|
+
expirationTime: number;
|
12492
|
+
joiningOrigin: string;
|
12493
|
+
biddingUrl?: string;
|
12494
|
+
biddingWasmHelperUrl?: string;
|
12495
|
+
updateUrl?: string;
|
12496
|
+
trustedBiddingSignalsUrl?: string;
|
12497
|
+
trustedBiddingSignalsKeys: string[];
|
12498
|
+
userBiddingSignals?: string;
|
12499
|
+
ads: InterestGroupAd[];
|
12500
|
+
adComponents: InterestGroupAd[];
|
12501
|
+
}
|
12502
|
+
|
12446
12503
|
export interface ClearDataForOriginRequest {
|
12447
12504
|
/**
|
12448
12505
|
* Security origin.
|
@@ -12572,6 +12629,19 @@ declare namespace Protocol {
|
|
12572
12629
|
didDeleteTokens: boolean;
|
12573
12630
|
}
|
12574
12631
|
|
12632
|
+
export interface GetInterestGroupDetailsRequest {
|
12633
|
+
ownerOrigin: string;
|
12634
|
+
name: string;
|
12635
|
+
}
|
12636
|
+
|
12637
|
+
export interface GetInterestGroupDetailsResponse extends ProtocolResponseWithError {
|
12638
|
+
details: InterestGroupDetails;
|
12639
|
+
}
|
12640
|
+
|
12641
|
+
export interface SetInterestGroupTrackingRequest {
|
12642
|
+
enable: boolean;
|
12643
|
+
}
|
12644
|
+
|
12575
12645
|
/**
|
12576
12646
|
* A cache's contents have been modified.
|
12577
12647
|
*/
|
@@ -12623,6 +12693,15 @@ declare namespace Protocol {
|
|
12623
12693
|
*/
|
12624
12694
|
origin: string;
|
12625
12695
|
}
|
12696
|
+
|
12697
|
+
/**
|
12698
|
+
* One of the interest groups was accessed by the associated page.
|
12699
|
+
*/
|
12700
|
+
export interface InterestGroupAccessedEvent {
|
12701
|
+
type: InterestGroupAccessType;
|
12702
|
+
ownerOrigin: string;
|
12703
|
+
name: string;
|
12704
|
+
}
|
12626
12705
|
}
|
12627
12706
|
|
12628
12707
|
/**
|
@@ -410,6 +410,9 @@ export class IndexedDBModel extends SDK.SDKModel.SDKModel<EventTypes> implements
|
|
410
410
|
|
411
411
|
cacheStorageContentUpdated(_event: Protocol.Storage.CacheStorageContentUpdatedEvent): void {
|
412
412
|
}
|
413
|
+
|
414
|
+
interestGroupAccessed(_event: Protocol.Storage.InterestGroupAccessedEvent): void {
|
415
|
+
}
|
413
416
|
}
|
414
417
|
|
415
418
|
SDK.SDKModel.SDKModel.register(IndexedDBModel, {capabilities: SDK.Target.Capability.Storage, autostart: false});
|
@@ -107,6 +107,14 @@ const UIStrings = {
|
|
107
107
|
* open/show the sidebar.
|
108
108
|
*/
|
109
109
|
hideConsoleSidebar: 'Hide console sidebar',
|
110
|
+
/**
|
111
|
+
* @description Screen reader announcement when the sidebar is shown in the Console panel.
|
112
|
+
*/
|
113
|
+
consoleSidebarShown: 'Console sidebar shown',
|
114
|
+
/**
|
115
|
+
* @description Screen reader announcement when the sidebar is hidden in the Console panel.
|
116
|
+
*/
|
117
|
+
consoleSidebarHidden: 'Console sidebar hidden',
|
110
118
|
/**
|
111
119
|
*@description Tooltip text that appears on the setting to preserve log when hovering over the item
|
112
120
|
*/
|
@@ -382,7 +390,8 @@ export class ConsoleView extends UI.Widget.VBox implements UI.SearchableView.Sea
|
|
382
390
|
toolbar.makeWrappable(true);
|
383
391
|
const rightToolbar = new UI.Toolbar.Toolbar('', this.consoleToolbarContainer);
|
384
392
|
toolbar.appendToolbarItem(this.splitWidget.createShowHideSidebarButton(
|
385
|
-
i18nString(UIStrings.showConsoleSidebar), i18nString(UIStrings.hideConsoleSidebar)
|
393
|
+
i18nString(UIStrings.showConsoleSidebar), i18nString(UIStrings.hideConsoleSidebar),
|
394
|
+
i18nString(UIStrings.consoleSidebarShown), i18nString(UIStrings.consoleSidebarHidden)));
|
386
395
|
toolbar.appendToolbarItem(UI.Toolbar.Toolbar.createActionButton(
|
387
396
|
(UI.ActionRegistry.ActionRegistry.instance().action('console.clear') as UI.ActionRegistration.Action)));
|
388
397
|
toolbar.appendSeparator();
|
@@ -88,6 +88,14 @@ const UIStrings = {
|
|
88
88
|
* close/hide the sidebar.
|
89
89
|
*/
|
90
90
|
hideComputedStylesSidebar: 'Hide Computed Styles sidebar',
|
91
|
+
/**
|
92
|
+
* @description Screen reader announcement when the computed styles sidebar is shown in the Elements panel.
|
93
|
+
*/
|
94
|
+
computedStylesShown: 'Computed Styles sidebar shown',
|
95
|
+
/**
|
96
|
+
* @description Screen reader announcement when the computed styles sidebar is hidden in the Elements panel.
|
97
|
+
*/
|
98
|
+
computedStylesHidden: 'Computed Styles sidebar hidden',
|
91
99
|
/**
|
92
100
|
* @description Title of a pane in the Elements panel that shows computed styles for the selected
|
93
101
|
* HTML element. Computed styles are the final, actual styles of the element, including all
|
@@ -962,7 +970,8 @@ export class ElementsPanel extends UI.Panel.Panel implements UI.SearchableView.S
|
|
962
970
|
});
|
963
971
|
this.stylesWidget.addEventListener(StylesSidebarPaneEvents.InitialUpdateCompleted, () => {
|
964
972
|
this.stylesWidget.appendToolbarItem(stylesSplitWidget.createShowHideSidebarButton(
|
965
|
-
i18nString(UIStrings.showComputedStylesSidebar), i18nString(UIStrings.hideComputedStylesSidebar)
|
973
|
+
i18nString(UIStrings.showComputedStylesSidebar), i18nString(UIStrings.hideComputedStylesSidebar),
|
974
|
+
i18nString(UIStrings.computedStylesShown), i18nString(UIStrings.computedStylesHidden)));
|
966
975
|
});
|
967
976
|
|
968
977
|
const showMetricsWidgetInComputedPane = (): void => {
|
@@ -69,6 +69,22 @@ const UIStrings = {
|
|
69
69
|
* the sidebar containing the navigator tool.
|
70
70
|
*/
|
71
71
|
hideNavigator: 'Hide navigator',
|
72
|
+
/**
|
73
|
+
* @description Screen reader announcement when the navigator sidebar is shown in the Sources panel.
|
74
|
+
*/
|
75
|
+
navigatorShown: 'Navigator sidebar shown',
|
76
|
+
/**
|
77
|
+
* @description Screen reader announcement when the navigator sidebar is hidden in the Sources panel.
|
78
|
+
*/
|
79
|
+
navigatorHidden: 'Navigator sidebar hidden',
|
80
|
+
/**
|
81
|
+
* @description Screen reader announcement when the navigator sidebar is shown in the Sources panel.
|
82
|
+
*/
|
83
|
+
debuggerShown: 'Debugger sidebar shown',
|
84
|
+
/**
|
85
|
+
* @description Screen reader announcement when the navigator sidebar is hidden in the Sources panel.
|
86
|
+
*/
|
87
|
+
debuggerHidden: 'Debugger sidebar hidden',
|
72
88
|
/**
|
73
89
|
* @description Tooltip for the the debugger toggle in the Sources panel. Command to open/show the
|
74
90
|
* sidebar containing the debugger tool.
|
@@ -252,9 +268,11 @@ export class SourcesPanel extends UI.Panel.Panel implements UI.ContextMenu.Provi
|
|
252
268
|
this.sourcesViewInternal.addEventListener(Events.EditorSelected, this.editorSelected.bind(this));
|
253
269
|
|
254
270
|
this.toggleNavigatorSidebarButton = this.editorView.createShowHideSidebarButton(
|
255
|
-
i18nString(UIStrings.showNavigator), i18nString(UIStrings.hideNavigator))
|
271
|
+
i18nString(UIStrings.showNavigator), i18nString(UIStrings.hideNavigator), i18nString(UIStrings.navigatorShown),
|
272
|
+
i18nString(UIStrings.navigatorHidden));
|
256
273
|
this.toggleDebuggerSidebarButton = this.splitWidget.createShowHideSidebarButton(
|
257
|
-
i18nString(UIStrings.showDebugger), i18nString(UIStrings.hideDebugger))
|
274
|
+
i18nString(UIStrings.showDebugger), i18nString(UIStrings.hideDebugger), i18nString(UIStrings.debuggerShown),
|
275
|
+
i18nString(UIStrings.debuggerHidden));
|
258
276
|
this.editorView.setMainWidget(this.sourcesViewInternal);
|
259
277
|
|
260
278
|
this.threadsSidebarPane = null;
|
@@ -137,6 +137,14 @@ const UIStrings = {
|
|
137
137
|
* Performance panel. Command to close/hide the sidebar.
|
138
138
|
*/
|
139
139
|
hideHeaviestStack: 'Hide Heaviest stack',
|
140
|
+
/**
|
141
|
+
* @description Screen reader announcement when the heaviest stack sidebar is shown in the Performance panel.
|
142
|
+
*/
|
143
|
+
heaviestStackShown: 'Heaviest stack sidebar shown',
|
144
|
+
/**
|
145
|
+
* @description Screen reader announcement when the heaviest stack sidebar is hidden in the Performance panel.
|
146
|
+
*/
|
147
|
+
heaviestStackHidden: 'Heaviest stack sidebar hidden',
|
140
148
|
/**
|
141
149
|
*@description Data grid name for Timeline Stack data grids
|
142
150
|
*/
|
@@ -832,7 +840,8 @@ export class AggregatedTimelineTreeView extends TimelineTreeView {
|
|
832
840
|
new UI.Toolbar.ToolbarSettingComboBox(options, this.groupBySetting, i18nString(UIStrings.groupBy)));
|
833
841
|
toolbar.appendSpacer();
|
834
842
|
toolbar.appendToolbarItem(this.splitWidget.createShowHideSidebarButton(
|
835
|
-
i18nString(UIStrings.showHeaviestStack), i18nString(UIStrings.hideHeaviestStack)
|
843
|
+
i18nString(UIStrings.showHeaviestStack), i18nString(UIStrings.hideHeaviestStack),
|
844
|
+
i18nString(UIStrings.heaviestStackShown), i18nString(UIStrings.heaviestStackHidden)));
|
836
845
|
}
|
837
846
|
|
838
847
|
private buildHeaviestStack(treeNode: TimelineModel.TimelineProfileTree.Node):
|
@@ -128,6 +128,11 @@ export class Button extends HTMLElement {
|
|
128
128
|
void ComponentHelpers.ScheduledRender.scheduleRender(this, this.#boundRender);
|
129
129
|
}
|
130
130
|
|
131
|
+
set title(title: string) {
|
132
|
+
this.#props.title = title;
|
133
|
+
void ComponentHelpers.ScheduledRender.scheduleRender(this, this.#boundRender);
|
134
|
+
}
|
135
|
+
|
131
136
|
set disabled(disabled: boolean) {
|
132
137
|
this.#setDisabledProperty(disabled);
|
133
138
|
void ComponentHelpers.ScheduledRender.scheduleRender(this, this.#boundRender);
|
@@ -212,7 +217,7 @@ export class Button extends HTMLElement {
|
|
212
217
|
// clang-format off
|
213
218
|
LitHtml.render(
|
214
219
|
LitHtml.html`
|
215
|
-
<button
|
220
|
+
<button title=${LitHtml.Directives.ifDefined(this.#props.title)} .disabled=${this.#props.disabled} class=${LitHtml.Directives.classMap(classes)}>
|
216
221
|
${this.#props.iconUrl ? LitHtml.html`<${IconButton.Icon.Icon.litTagName}
|
217
222
|
.data=${{
|
218
223
|
iconPath: this.#props.iconUrl,
|
@@ -31,6 +31,7 @@
|
|
31
31
|
import * as Common from '../../core/common/common.js';
|
32
32
|
import * as Platform from '../../core/platform/platform.js';
|
33
33
|
|
34
|
+
import * as ARIAUtils from './ARIAUtils.js';
|
34
35
|
import {Constraints} from './Geometry.js';
|
35
36
|
import type {ResizeUpdatePositionEvent} from './ResizerWidget.js';
|
36
37
|
import {Events as ResizerWidgetEvents, SimpleResizerWidget} from './ResizerWidget.js';
|
@@ -815,8 +816,9 @@ export class SplitWidget extends Common.ObjectWrapper.eventMixin<EventTypes, typ
|
|
815
816
|
this.forceUpdateLayout();
|
816
817
|
}
|
817
818
|
|
818
|
-
createShowHideSidebarButton(
|
819
|
-
|
819
|
+
createShowHideSidebarButton(
|
820
|
+
showTitle: Common.UIString.LocalizedString, hideTitle: Common.UIString.LocalizedString,
|
821
|
+
shownString: Common.UIString.LocalizedString, hiddenString: Common.UIString.LocalizedString): ToolbarButton {
|
820
822
|
this.showSidebarButtonTitle = showTitle;
|
821
823
|
this.hideSidebarButtonTitle = hideTitle;
|
822
824
|
this.showHideSidebarButton = new ToolbarButton('', '');
|
@@ -826,8 +828,10 @@ export class SplitWidget extends Common.ObjectWrapper.eventMixin<EventTypes, typ
|
|
826
828
|
function buttonClicked(this: SplitWidget): void {
|
827
829
|
if (this.showModeInternal !== ShowMode.Both) {
|
828
830
|
this.showBoth(true);
|
831
|
+
ARIAUtils.alert(shownString);
|
829
832
|
} else {
|
830
833
|
this.hideSidebar(true);
|
834
|
+
ARIAUtils.alert(hiddenString);
|
831
835
|
}
|
832
836
|
}
|
833
837
|
|
package/package.json
CHANGED