chrome-devtools-frontend 1.0.928589 → 1.0.929998
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 +7 -2
- package/config/gni/devtools_image_files.gni +1 -0
- package/front_end/Images/src/preview_feature_video_thumbnail.svg +92 -0
- package/front_end/Images/whatsnew.avif +0 -0
- package/front_end/core/common/CharacterIdMap.ts +12 -12
- package/front_end/core/common/Color.ts +71 -71
- package/front_end/core/common/Console.ts +4 -4
- package/front_end/core/common/ParsedURL.ts +14 -14
- package/front_end/core/common/Progress.ts +45 -45
- package/front_end/core/common/ResolverBase.ts +8 -8
- package/front_end/core/common/ResourceType.ts +20 -20
- package/front_end/core/common/SegmentedRange.ts +17 -16
- package/front_end/core/common/Settings.ts +84 -66
- package/front_end/core/common/SimpleHistoryManager.ts +33 -33
- package/front_end/core/common/StringOutputStream.ts +4 -4
- package/front_end/core/common/Throttler.ts +44 -40
- package/front_end/core/common/Trie.ts +42 -42
- package/front_end/core/common/WasmDisassembly.ts +11 -11
- package/front_end/core/common/Worker.ts +9 -9
- package/front_end/core/host/InspectorFrontendHost.ts +13 -13
- package/front_end/core/host/UserMetrics.ts +12 -13
- package/front_end/core/i18n/locales/en-US.json +53 -20
- package/front_end/core/i18n/locales/en-XL.json +53 -20
- package/front_end/core/platform/keyboard-utilities.ts +6 -0
- package/front_end/core/sdk/sdk-meta.ts +5 -0
- package/front_end/entrypoints/inspector_main/inspector_main-meta.ts +1 -0
- package/front_end/entrypoints/main/MainImpl.ts +14 -5
- package/front_end/entrypoints/main/main-meta.ts +4 -0
- package/front_end/models/issues_manager/IssuesManager.ts +2 -2
- package/front_end/panels/application/BackForwardCacheView.ts +19 -31
- package/front_end/panels/application/components/OriginTrialTreeView.ts +16 -0
- package/front_end/panels/console/console-meta.ts +6 -0
- package/front_end/panels/css_overview/CSSOverviewPanel.ts +9 -6
- package/front_end/panels/css_overview/components/CSSOverviewStartView.ts +171 -0
- package/front_end/panels/css_overview/components/components.ts +9 -0
- package/front_end/panels/css_overview/components/cssOverviewStartView.css +134 -0
- package/front_end/panels/css_overview/css_overview-meta.ts +2 -1
- package/front_end/panels/css_overview/css_overview.ts +0 -3
- package/front_end/panels/elements/ElementsTreeElement.ts +9 -0
- package/front_end/panels/elements/components/LayoutPane.ts +1 -1
- package/front_end/panels/elements/elements-meta.ts +1 -0
- package/front_end/panels/elements/layoutPane.css +1 -1
- package/front_end/panels/event_listeners/EventListenersView.ts +9 -0
- package/front_end/panels/help/ReleaseNoteText.ts +29 -0
- package/front_end/panels/help/help-meta.ts +1 -0
- package/front_end/panels/issues/IssueKindView.ts +36 -0
- package/front_end/panels/issues/IssueView.ts +19 -4
- package/front_end/panels/issues/IssuesPane.ts +2 -3
- package/front_end/panels/issues/components/HideIssuesMenu.ts +11 -40
- package/front_end/panels/settings/emulation/components/UserAgentClientHintsForm.ts +11 -0
- package/front_end/panels/sources/DebuggerPlugin.ts +23 -4
- package/front_end/panels/sources/FilteredUISourceCodeListProvider.ts +1 -1
- package/front_end/ui/components/helpers/get-stylesheet.ts +4 -0
- package/front_end/ui/components/text_prompt/TextPrompt.ts +21 -19
- package/front_end/ui/components/text_prompt/textPrompt.css +20 -9
- package/front_end/ui/legacy/Infobar.ts +1 -0
- package/front_end/ui/legacy/components/inline_editor/CSSLength.ts +4 -2
- package/front_end/ui/legacy/components/quick_open/FilteredListWidget.ts +17 -7
- package/front_end/ui/legacy/components/quick_open/QuickOpen.ts +6 -6
- package/front_end/ui/legacy/tabbedPane.css +9 -0
- package/package.json +1 -1
- package/scripts/javascript_natives/index.js +31 -25
- package/front_end/panels/css_overview/CSSOverviewStartView.ts +0 -55
- package/front_end/panels/css_overview/cssOverviewStartView.css +0 -29
|
@@ -2336,8 +2336,8 @@
|
|
|
2336
2336
|
"panels/application/BackForwardCacheView.ts | bfcacheStatus": {
|
|
2337
2337
|
"message": "B̂áĉḱ-f̂ór̂ẃâŕd̂ Ćâćĥé Ŝt́ât́ûś"
|
|
2338
2338
|
},
|
|
2339
|
-
"panels/application/BackForwardCacheView.ts |
|
|
2340
|
-
"message": "
|
|
2339
|
+
"panels/application/BackForwardCacheView.ts | circumstantial": {
|
|
2340
|
+
"message": "N̂ót̂ Áĉt́îón̂áb̂ĺê"
|
|
2341
2341
|
},
|
|
2342
2342
|
"panels/application/BackForwardCacheView.ts | lastMainFrameNavigation": {
|
|
2343
2343
|
"message": "L̂áŝt́ M̂áîń F̂ŕâḿê Ńâv́îǵât́îón̂"
|
|
@@ -2346,14 +2346,17 @@
|
|
|
2346
2346
|
"message": "M̂áîń F̂ŕâḿê"
|
|
2347
2347
|
},
|
|
2348
2348
|
"panels/application/BackForwardCacheView.ts | normalNavigation": {
|
|
2349
|
-
"message": "N̂ór̂ḿâĺ n̂áv̂íĝát̂íôń"
|
|
2349
|
+
"message": "N̂ór̂ḿâĺ n̂áv̂íĝát̂íôń (N̂ót̂ ŕêśt̂ór̂éd̂ f́r̂óm̂ b́âćk̂-f́ôŕŵár̂d́ ĉáĉh́ê)"
|
|
2350
2350
|
},
|
|
2351
2351
|
"panels/application/BackForwardCacheView.ts | pageSupportNeeded": {
|
|
2352
|
-
"message": "
|
|
2352
|
+
"message": "Âćt̂íôńâb́l̂é"
|
|
2353
2353
|
},
|
|
2354
2354
|
"panels/application/BackForwardCacheView.ts | restoredFromBFCache": {
|
|
2355
2355
|
"message": "R̂éŝt́ôŕêd́ f̂ŕôḿ b̂áĉḱ-f̂ór̂ẃâŕd̂ ćâćĥé"
|
|
2356
2356
|
},
|
|
2357
|
+
"panels/application/BackForwardCacheView.ts | supportPending": {
|
|
2358
|
+
"message": "P̂én̂d́îńĝ Śûṕp̂ór̂t́"
|
|
2359
|
+
},
|
|
2357
2360
|
"panels/application/BackForwardCacheView.ts | unavailable": {
|
|
2358
2361
|
"message": "ûńâv́âíl̂áb̂ĺê"
|
|
2359
2362
|
},
|
|
@@ -2363,9 +2366,6 @@
|
|
|
2363
2366
|
"panels/application/BackForwardCacheView.ts | url": {
|
|
2364
2367
|
"message": "ÛŔL̂"
|
|
2365
2368
|
},
|
|
2366
|
-
"panels/application/BackForwardCacheView.ts | willBeSupported": {
|
|
2367
|
-
"message": "(Ŝúp̂ṕôŕt̂éd̂ ín̂ á f̂út̂úr̂é v̂ér̂śîón̂ óf̂ Ćĥŕôḿê)"
|
|
2368
|
-
},
|
|
2369
2369
|
"panels/application/BackgroundServiceView.ts | backgroundFetch": {
|
|
2370
2370
|
"message": "B̂áĉḱĝŕôún̂d́ F̂ét̂ćĥ"
|
|
2371
2371
|
},
|
|
@@ -2612,6 +2612,9 @@
|
|
|
2612
2612
|
"panels/application/components/OriginTrialTreeView.ts | tokens": {
|
|
2613
2613
|
"message": "{PH1} t̂ók̂én̂ś"
|
|
2614
2614
|
},
|
|
2615
|
+
"panels/application/components/OriginTrialTreeView.ts | trialName": {
|
|
2616
|
+
"message": "T̂ŕîál̂ Ńâḿê"
|
|
2617
|
+
},
|
|
2615
2618
|
"panels/application/components/OriginTrialTreeView.ts | usageRestriction": {
|
|
2616
2619
|
"message": "Ûśâǵê Ŕêśt̂ŕîćt̂íôń"
|
|
2617
2620
|
},
|
|
@@ -3758,6 +3761,39 @@
|
|
|
3758
3761
|
"panels/coverage/CoverageView.ts | urlFilter": {
|
|
3759
3762
|
"message": "ÛŔL̂ f́îĺt̂ér̂"
|
|
3760
3763
|
},
|
|
3764
|
+
"panels/css_overview/components/CSSOverviewStartView.ts | activelyWorkingAndLookingForS": {
|
|
3765
|
+
"message": "Ôúr̂ t́êám̂ íŝ áĉt́îv́êĺŷ ẃôŕk̂ín̂ǵ ôń t̂h́îś f̂éât́ûŕê án̂d́ ŵé âŕê ĺôók̂ín̂ǵ f̂ór̂ ýôúr̂ {PH1}!"
|
|
3766
|
+
},
|
|
3767
|
+
"panels/css_overview/components/CSSOverviewStartView.ts | captureOverview": {
|
|
3768
|
+
"message": "Ĉáp̂t́ûŕê óv̂ér̂v́îéŵ"
|
|
3769
|
+
},
|
|
3770
|
+
"panels/css_overview/components/CSSOverviewStartView.ts | capturePageCSSOverview": {
|
|
3771
|
+
"message": "Ĉáp̂t́ûŕê án̂ óv̂ér̂v́îéŵ óf̂ ýôúr̂ ṕâǵê’ś ĈŚŜ"
|
|
3772
|
+
},
|
|
3773
|
+
"panels/css_overview/components/CSSOverviewStartView.ts | feedbackInline": {
|
|
3774
|
+
"message": "f̂éêd́b̂áĉḱ"
|
|
3775
|
+
},
|
|
3776
|
+
"panels/css_overview/components/CSSOverviewStartView.ts | feedbackStandalone": {
|
|
3777
|
+
"message": "F̂éêd́b̂áĉḱ"
|
|
3778
|
+
},
|
|
3779
|
+
"panels/css_overview/components/CSSOverviewStartView.ts | identifyCSSImprovements": {
|
|
3780
|
+
"message": "Îd́êńt̂íf̂ý p̂ót̂én̂t́îál̂ ĆŜŚ îḿp̂ŕôv́êḿêńt̂ś"
|
|
3781
|
+
},
|
|
3782
|
+
"panels/css_overview/components/CSSOverviewStartView.ts | identifyCSSImprovementsWithExampleIssues": {
|
|
3783
|
+
"message": "Îd́êńt̂íf̂ý p̂ót̂én̂t́îál̂ ĆŜŚ îḿp̂ŕôv́êḿêńt̂ś (ê.ǵ. l̂óŵ ćôńt̂ŕâśt̂ íŝśûéŝ, ún̂úŝéd̂ d́êćl̂ár̂át̂íôńŝ, ćôĺôŕ ôŕ f̂ón̂t́ m̂íŝḿât́ĉh́êś)"
|
|
3784
|
+
},
|
|
3785
|
+
"panels/css_overview/components/CSSOverviewStartView.ts | locateAffectedElements": {
|
|
3786
|
+
"message": "L̂óĉát̂é t̂h́ê áf̂f́êćt̂éd̂ él̂ém̂én̂t́ŝ ín̂ t́ĥé Êĺêḿêńt̂ś p̂án̂él̂"
|
|
3787
|
+
},
|
|
3788
|
+
"panels/css_overview/components/CSSOverviewStartView.ts | previewFeature": {
|
|
3789
|
+
"message": "P̂ŕêv́îéŵ f́êát̂úr̂é"
|
|
3790
|
+
},
|
|
3791
|
+
"panels/css_overview/components/CSSOverviewStartView.ts | quickStartWithCSSOverview": {
|
|
3792
|
+
"message": "Q̂úîćk̂ śt̂ár̂t́: ĝét̂ śt̂ár̂t́êd́ ŵít̂h́ t̂h́ê ńêẃ ĈŚŜ Óv̂ér̂v́îéŵ ṕâńêĺ"
|
|
3793
|
+
},
|
|
3794
|
+
"panels/css_overview/components/CSSOverviewStartView.ts | videoAndDocumentation": {
|
|
3795
|
+
"message": "V̂íd̂éô án̂d́ d̂óĉúm̂én̂t́ât́îón̂"
|
|
3796
|
+
},
|
|
3761
3797
|
"panels/css_overview/css_overview-meta.ts | cssOverview": {
|
|
3762
3798
|
"message": "ĈŚŜ Óv̂ér̂v́îéŵ"
|
|
3763
3799
|
},
|
|
@@ -3875,12 +3911,6 @@
|
|
|
3875
3911
|
"panels/css_overview/CSSOverviewSidebarPanel.ts | clearOverview": {
|
|
3876
3912
|
"message": "Ĉĺêár̂ óv̂ér̂v́îéŵ"
|
|
3877
3913
|
},
|
|
3878
|
-
"panels/css_overview/CSSOverviewStartView.ts | captureOverview": {
|
|
3879
|
-
"message": "Ĉáp̂t́ûŕê óv̂ér̂v́îéŵ"
|
|
3880
|
-
},
|
|
3881
|
-
"panels/css_overview/CSSOverviewStartView.ts | cssOverview": {
|
|
3882
|
-
"message": "ĈŚŜ Óv̂ér̂v́îéŵ"
|
|
3883
|
-
},
|
|
3884
3914
|
"panels/css_overview/CSSOverviewUnusedDeclarations.ts | bottomAppliedToAStatically": {
|
|
3885
3915
|
"message": "Bottom âṕp̂ĺîéd̂ t́ô á ŝt́ât́îćâĺl̂ý p̂óŝít̂íôńêd́ êĺêḿêńt̂"
|
|
3886
3916
|
},
|
|
@@ -4895,14 +4925,8 @@
|
|
|
4895
4925
|
"panels/issues/AttributionReportingIssueDetailsView.ts | untrustworthyOrigin": {
|
|
4896
4926
|
"message": "Ûńt̂ŕûśt̂ẃôŕt̂h́ŷ ór̂íĝín̂"
|
|
4897
4927
|
},
|
|
4898
|
-
"panels/issues/components/HideIssuesMenu.ts | hideIssueByCode": {
|
|
4899
|
-
"message": "Ĥíd̂é îśŝúêś l̂ík̂é t̂h́îś"
|
|
4900
|
-
},
|
|
4901
4928
|
"panels/issues/components/HideIssuesMenu.ts | tooltipTitle": {
|
|
4902
|
-
"message": "Ĥíd̂é îśŝúêś
|
|
4903
|
-
},
|
|
4904
|
-
"panels/issues/components/HideIssuesMenu.ts | UnhideIssueByCode": {
|
|
4905
|
-
"message": "Ûńĥíd̂é îśŝúêś l̂ík̂é t̂h́îś"
|
|
4929
|
+
"message": "Ĥíd̂é îśŝúêś"
|
|
4906
4930
|
},
|
|
4907
4931
|
"panels/issues/CorsIssueDetailsView.ts | allowCredentialsValueFromHeader": {
|
|
4908
4932
|
"message": "Access-Control-Allow-Credentials Ĥéâd́êŕ V̂ál̂úê"
|
|
@@ -4997,6 +5021,9 @@
|
|
|
4997
5021
|
"panels/issues/HiddenIssuesRow.ts | unhideAll": {
|
|
4998
5022
|
"message": "Ûńĥíd̂é âĺl̂"
|
|
4999
5023
|
},
|
|
5024
|
+
"panels/issues/IssueKindView.ts | hideAllCurrent": {
|
|
5025
|
+
"message": "Ĥíd̂é âĺl̂ ćûŕr̂én̂t́ {PH1}"
|
|
5026
|
+
},
|
|
5000
5027
|
"panels/issues/issues-meta.ts | cspViolations": {
|
|
5001
5028
|
"message": "ĈŚP̂ V́îól̂át̂íôńŝ"
|
|
5002
5029
|
},
|
|
@@ -5078,6 +5105,9 @@
|
|
|
5078
5105
|
"panels/issues/IssueView.ts | blocked": {
|
|
5079
5106
|
"message": "b̂ĺôćk̂éd̂"
|
|
5080
5107
|
},
|
|
5108
|
+
"panels/issues/IssueView.ts | hideIssuesLikeThis": {
|
|
5109
|
+
"message": "Ĥíd̂é îśŝúêś l̂ík̂é t̂h́îś"
|
|
5110
|
+
},
|
|
5081
5111
|
"panels/issues/IssueView.ts | learnMoreS": {
|
|
5082
5112
|
"message": "L̂éâŕn̂ ḿôŕê: {PH1}"
|
|
5083
5113
|
},
|
|
@@ -5093,6 +5123,9 @@
|
|
|
5093
5123
|
"panels/issues/IssueView.ts | restrictionStatus": {
|
|
5094
5124
|
"message": "R̂éŝt́r̂íĉt́îón̂ Śt̂át̂úŝ"
|
|
5095
5125
|
},
|
|
5126
|
+
"panels/issues/IssueView.ts | unhideIssuesLikeThis": {
|
|
5127
|
+
"message": "Ûńĥíd̂é îśŝúêś l̂ík̂é t̂h́îś"
|
|
5128
|
+
},
|
|
5096
5129
|
"panels/issues/IssueView.ts | warned": {
|
|
5097
5130
|
"message": "Ŵár̂ńêd́"
|
|
5098
5131
|
},
|
|
@@ -9,8 +9,14 @@ export const enum ArrowKey {
|
|
|
9
9
|
RIGHT = 'ArrowRight',
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
+
export const enum PageKey {
|
|
13
|
+
UP = 'PageUp',
|
|
14
|
+
DOWN = 'PageDown',
|
|
15
|
+
}
|
|
16
|
+
|
|
12
17
|
export const ENTER_KEY = 'Enter';
|
|
13
18
|
export const ESCAPE_KEY = 'Escape';
|
|
19
|
+
export const TAB_KEY = 'Tab';
|
|
14
20
|
|
|
15
21
|
export const ARROW_KEYS = new Set<ArrowKey>([
|
|
16
22
|
ArrowKey.UP,
|
|
@@ -344,6 +344,7 @@ Common.Settings.registerSettingExtension({
|
|
|
344
344
|
|
|
345
345
|
Common.Settings.registerSettingExtension({
|
|
346
346
|
category: Common.Settings.SettingCategory.CONSOLE,
|
|
347
|
+
storageType: Common.Settings.SettingStorageType.Synced,
|
|
347
348
|
title: i18nLazyString(UIStrings.preserveLogUponNavigation),
|
|
348
349
|
settingName: 'preserveConsoleLog',
|
|
349
350
|
settingType: Common.Settings.SettingType.BOOLEAN,
|
|
@@ -440,6 +441,7 @@ Common.Settings.registerSettingExtension({
|
|
|
440
441
|
|
|
441
442
|
Common.Settings.registerSettingExtension({
|
|
442
443
|
category: Common.Settings.SettingCategory.GRID,
|
|
444
|
+
storageType: Common.Settings.SettingStorageType.Synced,
|
|
443
445
|
title: i18nLazyString(UIStrings.showAreaNames),
|
|
444
446
|
settingName: 'showGridAreas',
|
|
445
447
|
settingType: Common.Settings.SettingType.BOOLEAN,
|
|
@@ -458,6 +460,7 @@ Common.Settings.registerSettingExtension({
|
|
|
458
460
|
|
|
459
461
|
Common.Settings.registerSettingExtension({
|
|
460
462
|
category: Common.Settings.SettingCategory.GRID,
|
|
463
|
+
storageType: Common.Settings.SettingStorageType.Synced,
|
|
461
464
|
title: i18nLazyString(UIStrings.showTrackSizes),
|
|
462
465
|
settingName: 'showGridTrackSizes',
|
|
463
466
|
settingType: Common.Settings.SettingType.BOOLEAN,
|
|
@@ -476,6 +479,7 @@ Common.Settings.registerSettingExtension({
|
|
|
476
479
|
|
|
477
480
|
Common.Settings.registerSettingExtension({
|
|
478
481
|
category: Common.Settings.SettingCategory.GRID,
|
|
482
|
+
storageType: Common.Settings.SettingStorageType.Synced,
|
|
479
483
|
title: i18nLazyString(UIStrings.extendGridLines),
|
|
480
484
|
settingName: 'extendGridLines',
|
|
481
485
|
settingType: Common.Settings.SettingType.BOOLEAN,
|
|
@@ -494,6 +498,7 @@ Common.Settings.registerSettingExtension({
|
|
|
494
498
|
|
|
495
499
|
Common.Settings.registerSettingExtension({
|
|
496
500
|
category: Common.Settings.SettingCategory.GRID,
|
|
501
|
+
storageType: Common.Settings.SettingStorageType.Synced,
|
|
497
502
|
title: i18nLazyString(UIStrings.showLineLabels),
|
|
498
503
|
settingName: 'showGridLineLabels',
|
|
499
504
|
settingType: Common.Settings.SettingType.ENUM,
|
|
@@ -235,6 +235,7 @@ Common.Settings.registerSettingExtension({
|
|
|
235
235
|
|
|
236
236
|
Common.Settings.registerSettingExtension({
|
|
237
237
|
category: Common.Settings.SettingCategory.APPEARANCE,
|
|
238
|
+
storageType: Common.Settings.SettingStorageType.Synced,
|
|
238
239
|
title: i18nLazyString(UIStrings.disablePaused),
|
|
239
240
|
settingName: 'disablePausedStateOverlay',
|
|
240
241
|
settingType: Common.Settings.SettingType.BOOLEAN,
|
|
@@ -209,13 +209,24 @@ export class MainImpl {
|
|
|
209
209
|
localStorage = new Common.Settings.SettingsStorage({}, Common.Settings.NOOP_STORAGE, storagePrefix);
|
|
210
210
|
}
|
|
211
211
|
|
|
212
|
-
const
|
|
212
|
+
const hostUnsyncedStorage: Common.Settings.SettingsBackingStore = {
|
|
213
|
+
register: (name: string) =>
|
|
214
|
+
Host.InspectorFrontendHost.InspectorFrontendHostInstance.registerPreference(name, {synced: false}),
|
|
213
215
|
set: Host.InspectorFrontendHost.InspectorFrontendHostInstance.setPreference,
|
|
214
216
|
remove: Host.InspectorFrontendHost.InspectorFrontendHostInstance.removePreference,
|
|
215
217
|
clear: Host.InspectorFrontendHost.InspectorFrontendHostInstance.clearPreferences,
|
|
216
218
|
};
|
|
217
|
-
const
|
|
218
|
-
|
|
219
|
+
const hostSyncedStorage: Common.Settings.SettingsBackingStore = {
|
|
220
|
+
...hostUnsyncedStorage,
|
|
221
|
+
register: (name: string) =>
|
|
222
|
+
Host.InspectorFrontendHost.InspectorFrontendHostInstance.registerPreference(name, {synced: true}),
|
|
223
|
+
};
|
|
224
|
+
// `prefs` is retrieved via `getPreferences` host binding and contains both synced and unsynced settings.
|
|
225
|
+
// As such, we use `prefs` to initialize both the synced and the global storage. This is fine as an individual
|
|
226
|
+
// setting can't change storage buckets during a single DevTools session.
|
|
227
|
+
const syncedStorage = new Common.Settings.SettingsStorage(prefs, hostSyncedStorage, storagePrefix);
|
|
228
|
+
const globalStorage = new Common.Settings.SettingsStorage(prefs, hostUnsyncedStorage, storagePrefix);
|
|
229
|
+
Common.Settings.Settings.instance({forceNew: true, syncedStorage, globalStorage, localStorage});
|
|
219
230
|
|
|
220
231
|
// @ts-ignore layout test global
|
|
221
232
|
self.Common.settings = Common.Settings.Settings.instance();
|
|
@@ -241,8 +252,6 @@ export class MainImpl {
|
|
|
241
252
|
'blackboxJSFramesOnTimeline', 'Ignore List for JavaScript frames on Timeline', true);
|
|
242
253
|
Root.Runtime.experiments.register(
|
|
243
254
|
'ignoreListJSFramesOnTimeline', 'Ignore List for JavaScript frames on Timeline', true);
|
|
244
|
-
Root.Runtime.experiments.register(
|
|
245
|
-
'cssOverview', 'CSS Overview', undefined, 'https://developer.chrome.com/blog/new-in-devtools-87/#css-overview');
|
|
246
255
|
Root.Runtime.experiments.register('inputEventsOnTimelineOverview', 'Input events on Timeline overview', true);
|
|
247
256
|
Root.Runtime.experiments.register('liveHeapProfile', 'Live heap profile', true);
|
|
248
257
|
Root.Runtime.experiments.register(
|
|
@@ -588,6 +588,7 @@ UI.ActionRegistration.registerActionExtension({
|
|
|
588
588
|
|
|
589
589
|
Common.Settings.registerSettingExtension({
|
|
590
590
|
category: Common.Settings.SettingCategory.APPEARANCE,
|
|
591
|
+
storageType: Common.Settings.SettingStorageType.Synced,
|
|
591
592
|
title: i18nLazyString(UIStrings.theme),
|
|
592
593
|
settingName: 'uiTheme',
|
|
593
594
|
settingType: Common.Settings.SettingType.ENUM,
|
|
@@ -618,6 +619,7 @@ Common.Settings.registerSettingExtension({
|
|
|
618
619
|
|
|
619
620
|
Common.Settings.registerSettingExtension({
|
|
620
621
|
category: Common.Settings.SettingCategory.APPEARANCE,
|
|
622
|
+
storageType: Common.Settings.SettingStorageType.Synced,
|
|
621
623
|
title: i18nLazyString(UIStrings.panelLayout),
|
|
622
624
|
settingName: 'sidebarPosition',
|
|
623
625
|
settingType: Common.Settings.SettingType.ENUM,
|
|
@@ -643,6 +645,7 @@ Common.Settings.registerSettingExtension({
|
|
|
643
645
|
|
|
644
646
|
Common.Settings.registerSettingExtension({
|
|
645
647
|
category: Common.Settings.SettingCategory.APPEARANCE,
|
|
648
|
+
storageType: Common.Settings.SettingStorageType.Synced,
|
|
646
649
|
title: i18nLazyString(UIStrings.colorFormat),
|
|
647
650
|
settingName: 'colorFormat',
|
|
648
651
|
settingType: Common.Settings.SettingType.ENUM,
|
|
@@ -676,6 +679,7 @@ Common.Settings.registerSettingExtension({
|
|
|
676
679
|
|
|
677
680
|
Common.Settings.registerSettingExtension({
|
|
678
681
|
category: Common.Settings.SettingCategory.APPEARANCE,
|
|
682
|
+
storageType: Common.Settings.SettingStorageType.Synced,
|
|
679
683
|
title: i18nLazyString(UIStrings.enableCtrlShortcutToSwitchPanels),
|
|
680
684
|
titleMac: i18nLazyString(UIStrings.enableShortcutToSwitchPanels),
|
|
681
685
|
settingName: 'shortcutPanelSwitch',
|
|
@@ -293,9 +293,9 @@ export class IssuesManager extends Common.ObjectWrapper.ObjectWrapper<EventTypes
|
|
|
293
293
|
|
|
294
294
|
numberOfIssues(kind?: IssueKind): number {
|
|
295
295
|
if (kind) {
|
|
296
|
-
return this.issueCounts.get(kind) ?? 0;
|
|
296
|
+
return (this.issueCounts.get(kind) ?? 0) - this.numberOfHiddenIssues(kind);
|
|
297
297
|
}
|
|
298
|
-
return this.filteredIssues.size;
|
|
298
|
+
return this.filteredIssues.size - this.numberOfHiddenIssues();
|
|
299
299
|
}
|
|
300
300
|
|
|
301
301
|
numberOfHiddenIssues(kind?: IssueKind): number {
|
|
@@ -43,7 +43,7 @@ const UIStrings = {
|
|
|
43
43
|
* @description Status text for the status of the back-forward cache status indicating that
|
|
44
44
|
* the back-forward cache was not used and a normal navigation occured instead.
|
|
45
45
|
*/
|
|
46
|
-
normalNavigation: 'Normal navigation',
|
|
46
|
+
normalNavigation: 'Normal navigation (Not restored from back-forward cache)',
|
|
47
47
|
/**
|
|
48
48
|
* @description Status text for the status of the back-forward cache status indicating that
|
|
49
49
|
* the back-forward cache was used to restore the page instead of reloading it.
|
|
@@ -53,18 +53,18 @@ const UIStrings = {
|
|
|
53
53
|
* @description Category text for the reasons which need to be cleaned up on the websites in
|
|
54
54
|
* order to make the page eligible for the back-forward cache.
|
|
55
55
|
*/
|
|
56
|
-
pageSupportNeeded: '
|
|
56
|
+
pageSupportNeeded: 'Actionable',
|
|
57
57
|
/**
|
|
58
|
-
* @description Category text for the reasons which
|
|
59
|
-
*
|
|
58
|
+
* @description Category text for the reasons which are circumstantial and cannot be addressed
|
|
59
|
+
* by developers.
|
|
60
60
|
*/
|
|
61
|
-
|
|
61
|
+
circumstantial: 'Not Actionable',
|
|
62
62
|
/**
|
|
63
63
|
* @description Explanation text appended to a reason why the usage of the back-forward cache
|
|
64
64
|
* is not possible, if in a future version of Chrome this reason will not prevent the usage
|
|
65
65
|
* of the back-forward cache anymore.
|
|
66
66
|
*/
|
|
67
|
-
|
|
67
|
+
supportPending: 'Pending Support',
|
|
68
68
|
};
|
|
69
69
|
const str_ = i18n.i18n.registerUIStrings('panels/application/BackForwardCacheView.ts', UIStrings);
|
|
70
70
|
const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
|
@@ -152,37 +152,25 @@ export class BackForwardCacheView extends UI.ThrottledWidget.ThrottledWidget {
|
|
|
152
152
|
// Disabled until https://crbug.com/1079231 is fixed.
|
|
153
153
|
// clang-format off
|
|
154
154
|
return LitHtml.html`
|
|
155
|
-
${
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
i18nString(UIStrings.pageSupportNeeded)
|
|
159
|
-
}</${ReportView.ReportView.ReportKey.litTagName}>
|
|
160
|
-
<${ReportView.ReportView.ReportValue.litTagName}>${
|
|
161
|
-
pageSupportNeeded.concat(supportPending).map(explanation => this.renderExplanation(explanation))
|
|
162
|
-
}</${ReportView.ReportView.ReportValue.litTagName}>
|
|
163
|
-
` : LitHtml.nothing}
|
|
164
|
-
${circumstantial.length > 0 ?
|
|
165
|
-
LitHtml.html`
|
|
166
|
-
<${ReportView.ReportView.ReportKey.litTagName}>${
|
|
167
|
-
i18nString(UIStrings.chromeSupportNeeded)
|
|
168
|
-
}</${ReportView.ReportView.ReportKey.litTagName}>
|
|
169
|
-
<${ReportView.ReportView.ReportValue.litTagName}>${
|
|
170
|
-
circumstantial.map(explanation => this.renderExplanation(explanation))
|
|
171
|
-
}</${ReportView.ReportView.ReportValue.litTagName}>
|
|
172
|
-
` : LitHtml.nothing}
|
|
155
|
+
${this.renderExplanations(UIStrings.pageSupportNeeded, pageSupportNeeded)}
|
|
156
|
+
${this.renderExplanations(UIStrings.supportPending, supportPending)}
|
|
157
|
+
${this.renderExplanations(UIStrings.circumstantial, circumstantial)}
|
|
173
158
|
`;
|
|
174
159
|
// clang-format on
|
|
175
160
|
}
|
|
176
161
|
|
|
177
|
-
private
|
|
162
|
+
private renderExplanations(description: string, explanations: Protocol.Page.BackForwardCacheNotRestoredExplanation[]):
|
|
163
|
+
LitHtml.TemplateResult {
|
|
178
164
|
return LitHtml.html`
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
165
|
+
${
|
|
166
|
+
explanations.length > 0 ?
|
|
167
|
+
LitHtml.html`
|
|
168
|
+
<${ReportView.ReportView.ReportKey.litTagName}>${description}</${ReportView.ReportView.ReportKey.litTagName}>
|
|
169
|
+
<${ReportView.ReportView.ReportValue.litTagName}>${
|
|
170
|
+
explanations.map(explanation => LitHtml.html`<div>${explanation.reason}</div>`)}</${
|
|
171
|
+
ReportView.ReportView.ReportValue.litTagName}>
|
|
172
|
+
` :
|
|
184
173
|
LitHtml.nothing}
|
|
185
|
-
</div>
|
|
186
174
|
`;
|
|
187
175
|
}
|
|
188
176
|
}
|
|
@@ -18,6 +18,12 @@ const UIStrings = {
|
|
|
18
18
|
*@description Label for the 'origin' field in a parsed Origin Trial Token.
|
|
19
19
|
*/
|
|
20
20
|
origin: 'Origin',
|
|
21
|
+
/**
|
|
22
|
+
*@description Label for `trialName` field in a parsed Origin Trial Token.
|
|
23
|
+
* This field is only shown when token has unknown trial name as the token
|
|
24
|
+
* will be put into 'UNKNOWN' group.
|
|
25
|
+
*/
|
|
26
|
+
trialName: 'Trial Name',
|
|
21
27
|
/**
|
|
22
28
|
*@description Label for `expiryTime` field in a parsed Origin Trial Token.
|
|
23
29
|
*/
|
|
@@ -257,6 +263,16 @@ export class OriginTrialTokenRows extends HTMLElement {
|
|
|
257
263
|
value: this.renderTokenField(this.tokenWithStatus.parsedToken.matchSubDomains.toString()),
|
|
258
264
|
},
|
|
259
265
|
];
|
|
266
|
+
|
|
267
|
+
if (this.tokenWithStatus.status === Protocol.Page.OriginTrialTokenStatus.UnknownTrial) {
|
|
268
|
+
this.parsedTokenDetails = [
|
|
269
|
+
{
|
|
270
|
+
name: i18nString(UIStrings.trialName),
|
|
271
|
+
value: this.renderTokenField(this.tokenWithStatus.parsedToken.trialName),
|
|
272
|
+
},
|
|
273
|
+
...this.parsedTokenDetails,
|
|
274
|
+
];
|
|
275
|
+
}
|
|
260
276
|
}
|
|
261
277
|
|
|
262
278
|
private render(): void {
|
|
@@ -222,6 +222,7 @@ UI.ActionRegistration.registerActionExtension({
|
|
|
222
222
|
|
|
223
223
|
Common.Settings.registerSettingExtension({
|
|
224
224
|
category: Common.Settings.SettingCategory.CONSOLE,
|
|
225
|
+
storageType: Common.Settings.SettingStorageType.Synced,
|
|
225
226
|
title: i18nLazyString(UIStrings.hideNetworkMessages),
|
|
226
227
|
settingName: 'hideNetworkMessages',
|
|
227
228
|
settingType: Common.Settings.SettingType.BOOLEAN,
|
|
@@ -240,6 +241,7 @@ Common.Settings.registerSettingExtension({
|
|
|
240
241
|
|
|
241
242
|
Common.Settings.registerSettingExtension({
|
|
242
243
|
category: Common.Settings.SettingCategory.CONSOLE,
|
|
244
|
+
storageType: Common.Settings.SettingStorageType.Synced,
|
|
243
245
|
title: i18nLazyString(UIStrings.selectedContextOnly),
|
|
244
246
|
settingName: 'selectedContextFilterEnabled',
|
|
245
247
|
settingType: Common.Settings.SettingType.BOOLEAN,
|
|
@@ -258,6 +260,7 @@ Common.Settings.registerSettingExtension({
|
|
|
258
260
|
|
|
259
261
|
Common.Settings.registerSettingExtension({
|
|
260
262
|
category: Common.Settings.SettingCategory.CONSOLE,
|
|
263
|
+
storageType: Common.Settings.SettingStorageType.Synced,
|
|
261
264
|
title: i18nLazyString(UIStrings.logXmlhttprequests),
|
|
262
265
|
settingName: 'monitoringXHREnabled',
|
|
263
266
|
settingType: Common.Settings.SettingType.BOOLEAN,
|
|
@@ -266,6 +269,7 @@ Common.Settings.registerSettingExtension({
|
|
|
266
269
|
|
|
267
270
|
Common.Settings.registerSettingExtension({
|
|
268
271
|
category: Common.Settings.SettingCategory.CONSOLE,
|
|
272
|
+
storageType: Common.Settings.SettingStorageType.Synced,
|
|
269
273
|
title: i18nLazyString(UIStrings.showTimestamps),
|
|
270
274
|
settingName: 'consoleTimestampsEnabled',
|
|
271
275
|
settingType: Common.Settings.SettingType.BOOLEAN,
|
|
@@ -338,6 +342,7 @@ Common.Settings.registerSettingExtension({
|
|
|
338
342
|
|
|
339
343
|
Common.Settings.registerSettingExtension({
|
|
340
344
|
category: Common.Settings.SettingCategory.CONSOLE,
|
|
345
|
+
storageType: Common.Settings.SettingStorageType.Synced,
|
|
341
346
|
title: i18nLazyString(UIStrings.eagerEvaluation),
|
|
342
347
|
settingName: 'consoleEagerEval',
|
|
343
348
|
settingType: Common.Settings.SettingType.BOOLEAN,
|
|
@@ -356,6 +361,7 @@ Common.Settings.registerSettingExtension({
|
|
|
356
361
|
|
|
357
362
|
Common.Settings.registerSettingExtension({
|
|
358
363
|
category: Common.Settings.SettingCategory.CONSOLE,
|
|
364
|
+
storageType: Common.Settings.SettingStorageType.Synced,
|
|
359
365
|
title: i18nLazyString(UIStrings.evaluateTriggersUserActivation),
|
|
360
366
|
settingName: 'consoleUserActivationEval',
|
|
361
367
|
settingType: Common.Settings.SettingType.BOOLEAN,
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
// Use of this source code is governed by a BSD-style license that can be
|
|
3
3
|
// found in the LICENSE file.
|
|
4
4
|
|
|
5
|
+
import * as CSSOverviewComponents from './components/components.js';
|
|
5
6
|
import cssOverviewStyles from './cssOverview.css.js';
|
|
6
7
|
import type * as Common from '../../core/common/common.js';
|
|
7
8
|
import * as Host from '../../core/host/host.js';
|
|
@@ -15,7 +16,6 @@ import {Events, OverviewController} from './CSSOverviewController.js';
|
|
|
15
16
|
import type {GlobalStyleStats} from './CSSOverviewModel.js';
|
|
16
17
|
import {CSSOverviewModel} from './CSSOverviewModel.js';
|
|
17
18
|
import {CSSOverviewProcessingView} from './CSSOverviewProcessingView.js';
|
|
18
|
-
import {CSSOverviewStartView} from './CSSOverviewStartView.js';
|
|
19
19
|
import type {UnusedDeclaration} from './CSSOverviewUnusedDeclarations.js';
|
|
20
20
|
|
|
21
21
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
@@ -24,7 +24,7 @@ let CSSOverviewPanelInstance: CSSOverviewPanel;
|
|
|
24
24
|
export class CSSOverviewPanel extends UI.Panel.Panel {
|
|
25
25
|
private readonly model: CSSOverviewModel;
|
|
26
26
|
private readonly controller: OverviewController;
|
|
27
|
-
private readonly startView: CSSOverviewStartView;
|
|
27
|
+
private readonly startView: CSSOverviewComponents.CSSOverviewStartView.CSSOverviewStartView;
|
|
28
28
|
private readonly processingView: CSSOverviewProcessingView;
|
|
29
29
|
private readonly completedView: CSSOverviewCompletedView;
|
|
30
30
|
private backgroundColors!: Map<string, Set<Protocol.DOM.BackendNodeId>>;
|
|
@@ -48,7 +48,9 @@ export class CSSOverviewPanel extends UI.Panel.Panel {
|
|
|
48
48
|
this.model = (model as CSSOverviewModel);
|
|
49
49
|
|
|
50
50
|
this.controller = new OverviewController();
|
|
51
|
-
this.startView = new CSSOverviewStartView(
|
|
51
|
+
this.startView = new CSSOverviewComponents.CSSOverviewStartView.CSSOverviewStartView();
|
|
52
|
+
this.startView.addEventListener(
|
|
53
|
+
'overviewstartrequested', () => this.controller.dispatchEventToListeners(Events.RequestOverviewStart));
|
|
52
54
|
this.processingView = new CSSOverviewProcessingView(this.controller);
|
|
53
55
|
this.completedView = new CSSOverviewCompletedView(this.controller, model.target());
|
|
54
56
|
|
|
@@ -109,18 +111,19 @@ export class CSSOverviewPanel extends UI.Panel.Panel {
|
|
|
109
111
|
this.processingView.hideWidget();
|
|
110
112
|
this.completedView.hideWidget();
|
|
111
113
|
|
|
112
|
-
this.
|
|
114
|
+
this.contentElement.append(this.startView);
|
|
115
|
+
this.startView.show();
|
|
113
116
|
}
|
|
114
117
|
|
|
115
118
|
private renderOverviewStartedView(): void {
|
|
116
|
-
this.startView.
|
|
119
|
+
this.startView.hide();
|
|
117
120
|
this.completedView.hideWidget();
|
|
118
121
|
|
|
119
122
|
this.processingView.show(this.contentElement);
|
|
120
123
|
}
|
|
121
124
|
|
|
122
125
|
private renderOverviewCompletedView(): void {
|
|
123
|
-
this.startView.
|
|
126
|
+
this.startView.hide();
|
|
124
127
|
this.processingView.hideWidget();
|
|
125
128
|
|
|
126
129
|
this.completedView.show(this.contentElement);
|