chrome-devtools-frontend 1.0.925655 → 1.0.927419
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/.stylelintignore +1 -0
- package/AUTHORS +1 -0
- package/config/gni/devtools_grd_files.gni +10 -3
- package/front_end/core/common/Color.ts +6 -0
- package/front_end/core/common/SettingRegistration.ts +8 -0
- package/front_end/core/host/InspectorFrontendHost.ts +3 -0
- package/front_end/core/host/InspectorFrontendHostAPI.ts +3 -0
- package/front_end/core/host/UserMetrics.ts +7 -3
- package/front_end/core/i18n/locales/en-US.json +71 -14
- package/front_end/core/i18n/locales/en-XL.json +71 -14
- package/front_end/core/platform/keyboard-utilities.ts +1 -0
- package/front_end/core/root/Runtime.ts +1 -0
- package/front_end/core/sdk/ConsoleModel.ts +3 -0
- package/front_end/core/sdk/DebuggerModel.ts +2 -0
- package/front_end/core/sdk/NetworkManager.ts +12 -2
- package/front_end/core/sdk/NetworkRequest.ts +20 -5
- package/front_end/core/sdk/OverlayModel.ts +21 -0
- package/front_end/core/sdk/OverlayPersistentHighlighter.ts +55 -3
- package/front_end/devtools_compatibility.js +11 -1
- package/front_end/entrypoints/main/MainImpl.ts +4 -2
- package/front_end/entrypoints/main/main-meta.ts +16 -0
- package/front_end/generated/InspectorBackendCommands.js +8 -7
- package/front_end/generated/SupportedCSSProperties.js +7 -1
- package/front_end/generated/protocol-mapping.d.ts +5 -24
- package/front_end/generated/protocol-proxy-api.d.ts +6 -29
- package/front_end/generated/protocol.d.ts +51 -46
- package/front_end/models/bindings/DebuggerWorkspaceBinding.ts +0 -6
- package/front_end/models/issues_manager/CorsIssue.ts +4 -0
- package/front_end/models/logs/LogManager.ts +1 -0
- package/front_end/models/persistence/WorkspaceSettingsTab.ts +6 -4
- package/front_end/models/persistence/workspaceSettingsTab.css +18 -18
- package/front_end/models/timeline_model/TimelineFrameModel.ts +107 -28
- package/front_end/panels/application/ReportingApiReportsView.ts +89 -0
- package/front_end/panels/application/ReportingApiTreeElement.ts +3 -3
- package/front_end/panels/application/ReportingApiView.ts +27 -0
- package/front_end/panels/application/application.ts +2 -0
- package/front_end/panels/application/components/EndpointsGrid.ts +55 -0
- package/front_end/panels/application/components/ReportsGrid.ts +144 -0
- package/front_end/panels/application/components/components.ts +4 -2
- package/front_end/panels/application/components/reportingApiGrid.css +35 -0
- package/front_end/panels/application/reportingApiReportsView.css +13 -0
- package/front_end/panels/console/ConsoleView.ts +17 -0
- package/front_end/panels/console/console-meta.ts +26 -0
- package/front_end/panels/elements/ElementsTreeElement.ts +19 -0
- package/front_end/panels/elements/PropertiesWidget.ts +1 -2
- package/front_end/panels/elements/StylePropertyTreeElement.ts +28 -0
- package/front_end/panels/elements/StylePropertyUtils.ts +13 -0
- package/front_end/panels/elements/components/nodeText.css +4 -4
- package/front_end/panels/elements/elements.ts +2 -0
- package/front_end/panels/elements/layoutPane.css +1 -1
- package/front_end/panels/issues/CorsIssueDetailsView.ts +4 -2
- package/front_end/panels/network/RequestCookiesView.ts +13 -4
- package/front_end/panels/screencast/screencastView.css +2 -6
- package/front_end/panels/search/SearchResultsPane.ts +1 -1
- package/front_end/panels/settings/SettingsScreen.ts +3 -0
- package/front_end/panels/snippets/SnippetsQuickOpen.ts +8 -3
- package/front_end/panels/sources/CallStackSidebarPane.ts +1 -10
- package/front_end/panels/sources/GoToLineQuickOpen.ts +50 -10
- package/front_end/panels/sources/UISourceCodeFrame.ts +0 -13
- package/front_end/panels/sources/sources-legacy.ts +0 -11
- package/front_end/panels/sources/sources-meta.ts +22 -20
- package/front_end/panels/sources/sources.ts +0 -2
- package/front_end/third_party/codemirror.next/LICENSE +21 -0
- package/front_end/third_party/codemirror.next/README.chromium +18 -0
- package/front_end/third_party/codemirror.next/bundle-tsconfig.json +21 -0
- package/front_end/third_party/codemirror.next/bundle.ts +87 -0
- package/front_end/third_party/codemirror.next/chunk/codemirror.js +1 -0
- package/front_end/third_party/codemirror.next/chunk/cpp.js +2 -0
- package/front_end/third_party/codemirror.next/chunk/css.js +2 -0
- package/front_end/third_party/codemirror.next/chunk/html.js +4 -0
- package/front_end/third_party/codemirror.next/chunk/java.js +2 -0
- package/front_end/third_party/codemirror.next/chunk/javascript.js +2 -0
- package/front_end/third_party/codemirror.next/chunk/json.js +2 -0
- package/front_end/third_party/codemirror.next/chunk/legacy.js +1 -0
- package/front_end/third_party/codemirror.next/chunk/markdown.js +6 -0
- package/front_end/third_party/codemirror.next/chunk/php.js +6 -0
- package/front_end/third_party/codemirror.next/chunk/python.js +2 -0
- package/front_end/third_party/codemirror.next/chunk/wast.js +2 -0
- package/front_end/third_party/codemirror.next/chunk/xml.js +2 -0
- package/front_end/third_party/codemirror.next/codemirror.next.d.ts +5467 -0
- package/front_end/third_party/codemirror.next/codemirror.next.js +2 -0
- package/front_end/third_party/codemirror.next/package.json +39 -0
- package/front_end/third_party/codemirror.next/rebuild.sh +6 -0
- package/front_end/third_party/codemirror.next/rollup.config.js +45 -0
- package/front_end/ui/components/buttons/Button.ts +33 -5
- package/front_end/ui/components/buttons/button.css +32 -2
- package/front_end/ui/components/code_highlighter/CodeHighlighter.ts +137 -0
- package/front_end/ui/components/code_highlighter/codeHighlighter.css +51 -0
- package/front_end/ui/components/code_highlighter/code_highlighter.ts +11 -0
- package/front_end/ui/components/docs/button/basic.html +1 -0
- package/front_end/ui/components/docs/button/basic.ts +47 -4
- package/front_end/ui/components/docs/text_editor/basic.html +28 -0
- package/front_end/ui/components/docs/text_editor/basic.ts +14 -0
- package/front_end/ui/components/docs/text_prompt/basic.html +35 -0
- package/front_end/ui/components/docs/text_prompt/basic.ts +19 -0
- package/front_end/ui/components/render_coordinator/RenderCoordinator.ts +17 -0
- package/front_end/ui/components/text_editor/TextEditor.ts +161 -0
- package/front_end/ui/components/text_editor/config.ts +264 -0
- package/front_end/ui/components/text_editor/text_editor.ts +6 -0
- package/front_end/ui/components/text_editor/theme.ts +113 -0
- package/front_end/ui/components/text_prompt/TextPrompt.ts +144 -0
- package/front_end/ui/components/text_prompt/textPrompt.css +33 -0
- package/front_end/ui/components/text_prompt/text_prompt.ts +9 -0
- package/front_end/ui/legacy/UIUtils.ts +9 -1
- package/front_end/ui/legacy/components/quick_open/CommandMenu.ts +8 -3
- package/front_end/ui/legacy/components/quick_open/FilteredListWidget.ts +39 -39
- package/front_end/ui/legacy/components/quick_open/HelpQuickOpen.ts +10 -4
- package/front_end/ui/legacy/components/quick_open/QuickOpen.ts +31 -14
- package/front_end/ui/legacy/components/quick_open/filteredListWidget.css +7 -8
- package/front_end/ui/legacy/components/source_frame/source_frame-legacy.ts +0 -6
- package/front_end/ui/legacy/components/source_frame/source_frame.ts +0 -2
- package/front_end/ui/legacy/components/utils/JSPresentationUtils.ts +11 -9
- package/front_end/ui/legacy/filter.css +1 -0
- package/front_end/ui/legacy/inspectorSyntaxHighlight.css +3 -8
- package/front_end/ui/legacy/inspectorSyntaxHighlightDark.css +11 -16
- package/front_end/ui/legacy/themeColors.css +60 -0
- package/inspector_overlay/debug/tool_persistent_isolated_element.html +75 -0
- package/inspector_overlay/drag_resize_handler.ts +142 -0
- package/inspector_overlay/highlight_isolated_element.ts +62 -0
- package/inspector_overlay/main.ts +4 -1
- package/inspector_overlay/tool_highlight.ts +6 -0
- package/inspector_overlay/tool_paused.ts +2 -0
- package/inspector_overlay/tool_persistent.ts +110 -0
- package/inspector_overlay/tool_screenshot.ts +8 -1
- package/package.json +1 -1
- package/front_end/panels/application/components/ReportingApiView.ts +0 -24
- package/front_end/panels/sources/GutterDiffPlugin.ts +0 -282
- package/front_end/ui/legacy/components/source_frame/SourceCodeDiff.ts +0 -140
|
@@ -161,6 +161,9 @@
|
|
|
161
161
|
"core/common/SettingRegistration.ts | sources": {
|
|
162
162
|
"message": "Ŝóûŕĉéŝ"
|
|
163
163
|
},
|
|
164
|
+
"core/common/SettingRegistration.ts | sync": {
|
|
165
|
+
"message": "Ŝýn̂ć"
|
|
166
|
+
},
|
|
164
167
|
"core/host/InspectorFrontendHost.ts | devtoolsS": {
|
|
165
168
|
"message": "D̂év̂T́ôól̂ś - {PH1}"
|
|
166
169
|
},
|
|
@@ -461,6 +464,9 @@
|
|
|
461
464
|
"core/sdk/NetworkRequest.ts | domainMismatch": {
|
|
462
465
|
"message": "T̂h́îś ĉóôḱîé ŵáŝ b́l̂óĉḱêd́ b̂éĉáûśê ńêít̂h́êŕ d̂íd̂ t́ĥé r̂éq̂úêśt̂ ÚR̂Ĺ'ŝ d́ôḿâín̂ éx̂áĉt́l̂ý m̂át̂ćĥ t́ĥé ĉóôḱîé'ŝ d́ôḿâín̂, ńôŕ ŵáŝ t́ĥé r̂éq̂úêśt̂ ÚR̂Ĺ'ŝ d́ôḿâín̂ á ŝúb̂d́ôḿâín̂ óf̂ t́ĥé ĉóôḱîé'ŝ D́ôḿâín̂ át̂t́r̂íb̂út̂é v̂ál̂úê."
|
|
463
466
|
},
|
|
467
|
+
"core/sdk/NetworkRequest.ts | nameValuePairExceedsMaxSize": {
|
|
468
|
+
"message": "T̂h́îś ĉóôḱîé ŵáŝ b́l̂óĉḱêd́ b̂éĉáûśê ít̂ ẃâś t̂óô ĺâŕĝé. T̂h́ê ćôḿb̂ín̂éd̂ śîźê óf̂ t́ĥé n̂ám̂é âńd̂ v́âĺûé m̂úŝt́ b̂é l̂éŝś t̂h́âń ôŕ êq́ûál̂ t́ô 4096 ćĥár̂áĉt́êŕŝ."
|
|
469
|
+
},
|
|
464
470
|
"core/sdk/NetworkRequest.ts | notOnPath": {
|
|
465
471
|
"message": "T̂h́îś ĉóôḱîé ŵáŝ b́l̂óĉḱêd́ b̂éĉáûśê ít̂ś p̂át̂h́ ŵáŝ ńôt́ âń êx́âćt̂ ḿât́ĉh́ f̂ór̂ ór̂ á ŝúp̂ér̂d́îŕêćt̂ór̂ý ôf́ t̂h́ê ŕêq́ûéŝt́ ûŕl̂'ś p̂át̂h́."
|
|
466
472
|
},
|
|
@@ -492,7 +498,7 @@
|
|
|
492
498
|
"message": "T̂h́îś ĉóôḱîé ŵáŝ b́l̂óĉḱêd́ b̂éĉáûśê ít̂ h́âd́ t̂h́ê \"Secure\" át̂t́r̂íb̂út̂é âńd̂ t́ĥé ĉón̂ńêćt̂íôń ŵáŝ ńôt́ ŝéĉúr̂é."
|
|
493
499
|
},
|
|
494
500
|
"core/sdk/NetworkRequest.ts | setcookieHeaderIsIgnoredIn": {
|
|
495
|
-
"message": "Ŝét̂-Ćôók̂íê h́êád̂ér̂ íŝ íĝńôŕêd́ îń r̂éŝṕôńŝé f̂ŕôḿ ûŕl̂: {PH1}.
|
|
501
|
+
"message": "Ŝét̂-Ćôók̂íê h́êád̂ér̂ íŝ íĝńôŕêd́ îń r̂éŝṕôńŝé f̂ŕôḿ ûŕl̂: {PH1}. T́ĥé ĉóm̂b́îńêd́ ŝíẑé ôf́ t̂h́ê ńâḿê án̂d́ v̂ál̂úê ḿûśt̂ b́ê ĺêśŝ t́ĥán̂ ór̂ éq̂úâĺ t̂ó 4096 ĉh́âŕâćt̂ér̂ś."
|
|
496
502
|
},
|
|
497
503
|
"core/sdk/NetworkRequest.ts | theSchemeOfThisConnectionIsNot": {
|
|
498
504
|
"message": "T̂h́ê śĉh́êḿê óf̂ t́ĥíŝ ćôńn̂éĉt́îón̂ íŝ ńôt́ âĺl̂óŵéd̂ t́ô śt̂ór̂é ĉóôḱîéŝ."
|
|
@@ -512,6 +518,9 @@
|
|
|
512
518
|
"core/sdk/NetworkRequest.ts | thisSetcookieWasBlockedBecauseItHadTheSamesiteStrictLax": {
|
|
513
519
|
"message": "T̂h́îś ât́t̂ém̂ṕt̂ t́ô śêt́ â ćôók̂íê v́îá â Set-Cookie h́êád̂ér̂ ẃâś b̂ĺôćk̂éd̂ b́êćâúŝé ît́ ĥád̂ t́ĥé \"{PH1}\" ât́t̂ŕîb́ût́ê b́ût́ ĉám̂é f̂ŕôḿ â ćr̂óŝś-ŝít̂é r̂éŝṕôńŝé ŵh́îćĥ ẃâś n̂ót̂ t́ĥé r̂éŝṕôńŝé t̂ó â t́ôṕ-l̂év̂él̂ ńâv́îǵât́îón̂. T́ĥíŝ ŕêśp̂ón̂śê íŝ ćôńŝíd̂ér̂éd̂ ćr̂óŝś-ŝít̂é b̂éĉáûśê t́ĥé ÛŔL̂ h́âś â d́îf́f̂ér̂én̂t́ ŝćĥém̂é t̂h́âń t̂h́ê ćûŕr̂én̂t́ ŝít̂é."
|
|
514
520
|
},
|
|
521
|
+
"core/sdk/NetworkRequest.ts | thisSetcookieWasBlockedBecauseTheNameValuePairExceedsMaxSize": {
|
|
522
|
+
"message": "T̂h́îś ât́t̂ém̂ṕt̂ t́ô śêt́ â ćôók̂íê v́îá â Set-Cookie h́êád̂ér̂ ẃâś b̂ĺôćk̂éd̂ b́êćâúŝé t̂h́ê ćôók̂íê ẃâś t̂óô ĺâŕĝé. T̂h́ê ćôḿb̂ín̂éd̂ śîźê óf̂ t́ĥé n̂ám̂é âńd̂ v́âĺûé m̂úŝt́ b̂é l̂éŝś t̂h́âń ôŕ êq́ûál̂ t́ô 4096 ćĥár̂áĉt́êŕŝ."
|
|
523
|
+
},
|
|
515
524
|
"core/sdk/NetworkRequest.ts | thisSetcookieWasBlockedDueToUser": {
|
|
516
525
|
"message": "T̂h́îś ât́t̂ém̂ṕt̂ t́ô śêt́ â ćôók̂íê v́îá â Set-Cookie h́êád̂ér̂ ẃâś b̂ĺôćk̂éd̂ d́ûé t̂ó ûśêŕ p̂ŕêf́êŕêńĉéŝ."
|
|
517
526
|
},
|
|
@@ -1037,6 +1046,9 @@
|
|
|
1037
1046
|
"entrypoints/main/main-meta.ts | enableShortcutToSwitchPanels": {
|
|
1038
1047
|
"message": "Êńâb́l̂é ⌘ + 1-9 ŝh́ôŕt̂ćût́ t̂ó ŝẃît́ĉh́ p̂án̂él̂ś"
|
|
1039
1048
|
},
|
|
1049
|
+
"entrypoints/main/main-meta.ts | enableSync": {
|
|
1050
|
+
"message": "Êńâb́l̂é ŝét̂t́îńĝś ŝýn̂ć"
|
|
1051
|
+
},
|
|
1040
1052
|
"entrypoints/main/main-meta.ts | findNextResult": {
|
|
1041
1053
|
"message": "F̂ín̂d́ n̂éx̂t́ r̂éŝúl̂t́"
|
|
1042
1054
|
},
|
|
@@ -2414,6 +2426,9 @@
|
|
|
2414
2426
|
"panels/application/BackgroundServiceView.ts | timestamp": {
|
|
2415
2427
|
"message": "T̂ím̂éŝt́âḿp̂"
|
|
2416
2428
|
},
|
|
2429
|
+
"panels/application/components/EndpointsGrid.ts | noEndpointsToDisplay": {
|
|
2430
|
+
"message": "N̂ó êńd̂ṕôín̂t́ŝ t́ô d́îśp̂ĺâý"
|
|
2431
|
+
},
|
|
2417
2432
|
"panels/application/components/FrameDetailsView.ts | additionalInformation": {
|
|
2418
2433
|
"message": "Âd́d̂ít̂íôńâĺ Îńf̂ór̂ḿât́îón̂"
|
|
2419
2434
|
},
|
|
@@ -2612,7 +2627,7 @@
|
|
|
2612
2627
|
"panels/application/components/PermissionsPolicySection.ts | showDetails": {
|
|
2613
2628
|
"message": "Ŝh́ôẃ d̂ét̂áîĺŝ"
|
|
2614
2629
|
},
|
|
2615
|
-
"panels/application/components/
|
|
2630
|
+
"panels/application/components/ReportsGrid.ts | noReportsToDisplay": {
|
|
2616
2631
|
"message": "N̂ó r̂ép̂ór̂t́ŝ t́ô d́îśp̂ĺâý"
|
|
2617
2632
|
},
|
|
2618
2633
|
"panels/application/components/StackTrace.ts | cannotRenderStackTrace": {
|
|
@@ -2837,6 +2852,9 @@
|
|
|
2837
2852
|
"panels/application/OpenedWindowDetailsView.ts | yes": {
|
|
2838
2853
|
"message": "Ŷéŝ"
|
|
2839
2854
|
},
|
|
2855
|
+
"panels/application/ReportingApiReportsView.ts | clickToDisplayBody": {
|
|
2856
|
+
"message": "Ĉĺîćk̂ ón̂ án̂ý r̂ép̂ór̂t́ t̂ó d̂íŝṕl̂áŷ ít̂ś b̂ód̂ý"
|
|
2857
|
+
},
|
|
2840
2858
|
"panels/application/ReportingApiTreeElement.ts | reportingApi": {
|
|
2841
2859
|
"message": "R̂ép̂ór̂t́îńĝ ÁP̂Í"
|
|
2842
2860
|
},
|
|
@@ -3311,6 +3329,9 @@
|
|
|
3311
3329
|
"panels/console/console-meta.ts | doNotGroupSimilarMessagesIn": {
|
|
3312
3330
|
"message": "D̂ó n̂ót̂ ǵr̂óûṕ ŝím̂íl̂ár̂ ḿêśŝáĝéŝ ín̂ ćôńŝól̂é"
|
|
3313
3331
|
},
|
|
3332
|
+
"panels/console/console-meta.ts | doNotShowCorsErrorsIn": {
|
|
3333
|
+
"message": "D̂ó n̂ót̂ śĥóŵ CORS ér̂ŕôŕŝ ín̂ ćôńŝól̂é"
|
|
3334
|
+
},
|
|
3314
3335
|
"panels/console/console-meta.ts | doNotTreatEvaluationAsUser": {
|
|
3315
3336
|
"message": "D̂ó n̂ót̂ t́r̂éât́ êv́âĺûát̂íôń âś ûśêŕ âćt̂ív̂át̂íôń"
|
|
3316
3337
|
},
|
|
@@ -3344,6 +3365,9 @@
|
|
|
3344
3365
|
"panels/console/console-meta.ts | showConsole": {
|
|
3345
3366
|
"message": "Ŝh́ôẃ Ĉón̂śôĺê"
|
|
3346
3367
|
},
|
|
3368
|
+
"panels/console/console-meta.ts | showCorsErrorsInConsole": {
|
|
3369
|
+
"message": "Ŝh́ôẃ CORS êŕr̂ór̂ś îń ĉón̂śôĺê"
|
|
3370
|
+
},
|
|
3347
3371
|
"panels/console/console-meta.ts | showMessagesFromAllContexts": {
|
|
3348
3372
|
"message": "Ŝh́ôẃ m̂éŝśâǵêś f̂ŕôḿ âĺl̂ ćôńt̂éx̂t́ŝ"
|
|
3349
3373
|
},
|
|
@@ -3518,6 +3542,9 @@
|
|
|
3518
3542
|
"panels/console/ConsoleView.ts | showConsoleSidebar": {
|
|
3519
3543
|
"message": "Ŝh́ôẃ ĉón̂śôĺê śîd́êb́âŕ"
|
|
3520
3544
|
},
|
|
3545
|
+
"panels/console/ConsoleView.ts | showCorsErrorsInConsole": {
|
|
3546
|
+
"message": "Ŝh́ôẃ CORS êŕr̂ór̂ś îń ĉón̂śôĺê"
|
|
3547
|
+
},
|
|
3521
3548
|
"panels/console/ConsoleView.ts | sOnly": {
|
|
3522
3549
|
"message": "{PH1} ôńl̂ý"
|
|
3523
3550
|
},
|
|
@@ -4217,6 +4244,12 @@
|
|
|
4217
4244
|
"panels/elements/ElementsTreeElement.ts | enableScrollSnap": {
|
|
4218
4245
|
"message": "Êńâb́l̂é ŝćr̂ól̂ĺ-ŝńâṕ ôv́êŕl̂áŷ"
|
|
4219
4246
|
},
|
|
4247
|
+
"panels/elements/ElementsTreeElement.ts | enterIsolationMode": {
|
|
4248
|
+
"message": "Êńt̂ér̂ Íŝól̂át̂íôń M̂ód̂é"
|
|
4249
|
+
},
|
|
4250
|
+
"panels/elements/ElementsTreeElement.ts | exitIsolationMode": {
|
|
4251
|
+
"message": "Êx́ît́ Îśôĺât́îón̂ Ḿôd́ê"
|
|
4252
|
+
},
|
|
4220
4253
|
"panels/elements/ElementsTreeElement.ts | expandRecursively": {
|
|
4221
4254
|
"message": "Êx́p̂án̂d́ r̂éĉúr̂śîv́êĺŷ"
|
|
4222
4255
|
},
|
|
@@ -4310,9 +4343,15 @@
|
|
|
4310
4343
|
"panels/elements/PlatformFontsWidget.ts | renderedFonts": {
|
|
4311
4344
|
"message": "R̂én̂d́êŕêd́ F̂ón̂t́ŝ"
|
|
4312
4345
|
},
|
|
4346
|
+
"panels/elements/StylePropertyTreeElement.ts | copyAllCssDeclarationsAsJs": {
|
|
4347
|
+
"message": "Ĉóp̂ý âĺl̂ d́êćl̂ár̂át̂íôńŝ áŝ J́Ŝ"
|
|
4348
|
+
},
|
|
4313
4349
|
"panels/elements/StylePropertyTreeElement.ts | copyAllDeclarations": {
|
|
4314
4350
|
"message": "Ĉóp̂ý âĺl̂ d́êćl̂ár̂át̂íôńŝ"
|
|
4315
4351
|
},
|
|
4352
|
+
"panels/elements/StylePropertyTreeElement.ts | copyCssDeclarationAsJs": {
|
|
4353
|
+
"message": "Ĉóp̂ý d̂éĉĺâŕât́îón̂ áŝ J́Ŝ"
|
|
4354
|
+
},
|
|
4316
4355
|
"panels/elements/StylePropertyTreeElement.ts | copyDeclaration": {
|
|
4317
4356
|
"message": "Ĉóp̂ý d̂éĉĺâŕât́îón̂"
|
|
4318
4357
|
},
|
|
@@ -8612,8 +8651,11 @@
|
|
|
8612
8651
|
"panels/snippets/SnippetsQuickOpen.ts | noSnippetsFound": {
|
|
8613
8652
|
"message": "N̂ó ŝńîṕp̂ét̂ś f̂óûńd̂."
|
|
8614
8653
|
},
|
|
8615
|
-
"panels/snippets/SnippetsQuickOpen.ts |
|
|
8616
|
-
"message": "R̂ún̂
|
|
8654
|
+
"panels/snippets/SnippetsQuickOpen.ts | run": {
|
|
8655
|
+
"message": "R̂ún̂"
|
|
8656
|
+
},
|
|
8657
|
+
"panels/snippets/SnippetsQuickOpen.ts | snippet": {
|
|
8658
|
+
"message": "Ŝńîṕp̂ét̂"
|
|
8617
8659
|
},
|
|
8618
8660
|
"panels/sources/AddSourceMapURLDialog.ts | add": {
|
|
8619
8661
|
"message": "Âd́d̂"
|
|
@@ -8831,12 +8873,12 @@
|
|
|
8831
8873
|
"panels/sources/GoToLineQuickOpen.ts | noFileSelected": {
|
|
8832
8874
|
"message": "N̂ó f̂íl̂é ŝél̂éĉt́êd́."
|
|
8833
8875
|
},
|
|
8876
|
+
"panels/sources/GoToLineQuickOpen.ts | noResultsFound": {
|
|
8877
|
+
"message": "N̂ó r̂éŝúl̂t́ŝ f́ôún̂d́"
|
|
8878
|
+
},
|
|
8834
8879
|
"panels/sources/GoToLineQuickOpen.ts | typeANumberToGoToThatLine": {
|
|
8835
8880
|
"message": "T̂ýp̂é â ńûḿb̂ér̂ t́ô ǵô t́ô t́ĥát̂ ĺîńê."
|
|
8836
8881
|
},
|
|
8837
|
-
"panels/sources/GutterDiffPlugin.ts | localModifications": {
|
|
8838
|
-
"message": "L̂óĉál̂ Ḿôd́îf́îćât́îón̂ś..."
|
|
8839
|
-
},
|
|
8840
8882
|
"panels/sources/InplaceFormatterEditorAction.ts | format": {
|
|
8841
8883
|
"message": "F̂ór̂ḿât́"
|
|
8842
8884
|
},
|
|
@@ -9107,18 +9149,21 @@
|
|
|
9107
9149
|
"panels/sources/sources-meta.ts | evaluateSelectedTextInConsole": {
|
|
9108
9150
|
"message": "Êv́âĺûát̂é ŝél̂éĉt́êd́ t̂éx̂t́ îń ĉón̂śôĺê"
|
|
9109
9151
|
},
|
|
9152
|
+
"panels/sources/sources-meta.ts | file": {
|
|
9153
|
+
"message": "F̂íl̂é"
|
|
9154
|
+
},
|
|
9110
9155
|
"panels/sources/sources-meta.ts | filesystem": {
|
|
9111
9156
|
"message": "F̂íl̂éŝýŝt́êḿ"
|
|
9112
9157
|
},
|
|
9158
|
+
"panels/sources/sources-meta.ts | goTo": {
|
|
9159
|
+
"message": "Ĝó t̂ó"
|
|
9160
|
+
},
|
|
9113
9161
|
"panels/sources/sources-meta.ts | goToAFunctionDeclarationruleSet": {
|
|
9114
9162
|
"message": "Ĝó t̂ó â f́ûńĉt́îón̂ d́êćl̂ár̂át̂íôń/r̂úl̂é ŝét̂"
|
|
9115
9163
|
},
|
|
9116
9164
|
"panels/sources/sources-meta.ts | goToLine": {
|
|
9117
9165
|
"message": "Ĝó t̂ó l̂ín̂é"
|
|
9118
9166
|
},
|
|
9119
|
-
"panels/sources/sources-meta.ts | goToSymbol": {
|
|
9120
|
-
"message": "Ĝó t̂ó ŝým̂b́ôĺ"
|
|
9121
|
-
},
|
|
9122
9167
|
"panels/sources/sources-meta.ts | incrementCssUnitBy": {
|
|
9123
9168
|
"message": "Îńĉŕêḿêńt̂ ĆŜŚ ûńît́ b̂ý {PH1}"
|
|
9124
9169
|
},
|
|
@@ -9128,14 +9173,17 @@
|
|
|
9128
9173
|
"panels/sources/sources-meta.ts | jumpToPreviousEditingLocation": {
|
|
9129
9174
|
"message": "Ĵúm̂ṕ t̂ó p̂ŕêv́îóûś êd́ît́îńĝ ĺôćât́îón̂"
|
|
9130
9175
|
},
|
|
9176
|
+
"panels/sources/sources-meta.ts | line": {
|
|
9177
|
+
"message": "L̂ín̂é"
|
|
9178
|
+
},
|
|
9131
9179
|
"panels/sources/sources-meta.ts | nextCallFrame": {
|
|
9132
9180
|
"message": "N̂éx̂t́ ĉál̂ĺ f̂ŕâḿê"
|
|
9133
9181
|
},
|
|
9134
9182
|
"panels/sources/sources-meta.ts | none": {
|
|
9135
9183
|
"message": "N̂ón̂é"
|
|
9136
9184
|
},
|
|
9137
|
-
"panels/sources/sources-meta.ts |
|
|
9138
|
-
"message": "Ôṕêń
|
|
9185
|
+
"panels/sources/sources-meta.ts | open": {
|
|
9186
|
+
"message": "Ôṕêń"
|
|
9139
9187
|
},
|
|
9140
9188
|
"panels/sources/sources-meta.ts | pauseScriptExecution": {
|
|
9141
9189
|
"message": "P̂áûśê śĉŕîṕt̂ éx̂éĉút̂íôń"
|
|
@@ -9227,6 +9275,9 @@
|
|
|
9227
9275
|
"panels/sources/sources-meta.ts | switchFile": {
|
|
9228
9276
|
"message": "Ŝẃît́ĉh́ f̂íl̂é"
|
|
9229
9277
|
},
|
|
9278
|
+
"panels/sources/sources-meta.ts | symbol": {
|
|
9279
|
+
"message": "Ŝým̂b́ôĺ"
|
|
9280
|
+
},
|
|
9230
9281
|
"panels/sources/sources-meta.ts | threads": {
|
|
9231
9282
|
"message": "T̂h́r̂éâd́ŝ"
|
|
9232
9283
|
},
|
|
@@ -10961,6 +11012,9 @@
|
|
|
10961
11012
|
"ui/components/survey_link/SurveyLink.ts | thankYouForYourFeedback": {
|
|
10962
11013
|
"message": "T̂h́âńk̂ ýôú f̂ór̂ ýôúr̂ f́êéd̂b́âćk̂"
|
|
10963
11014
|
},
|
|
11015
|
+
"ui/components/text_editor/config.ts | codeEditor": {
|
|
11016
|
+
"message": "Ĉód̂é êd́ît́ôŕ"
|
|
11017
|
+
},
|
|
10964
11018
|
"ui/legacy/components/color_picker/ContrastDetails.ts | aa": {
|
|
10965
11019
|
"message": "ÂÁ"
|
|
10966
11020
|
},
|
|
@@ -11378,14 +11432,17 @@
|
|
|
11378
11432
|
"ui/legacy/components/perf_ui/PieChart.ts | total": {
|
|
11379
11433
|
"message": "T̂ót̂ál̂"
|
|
11380
11434
|
},
|
|
11435
|
+
"ui/legacy/components/quick_open/CommandMenu.ts | command": {
|
|
11436
|
+
"message": "Ĉóm̂ḿâńd̂"
|
|
11437
|
+
},
|
|
11381
11438
|
"ui/legacy/components/quick_open/CommandMenu.ts | noCommandsFound": {
|
|
11382
11439
|
"message": "N̂ó ĉóm̂ḿâńd̂ś f̂óûńd̂"
|
|
11383
11440
|
},
|
|
11384
11441
|
"ui/legacy/components/quick_open/CommandMenu.ts | oneOrMoreSettingsHaveChanged": {
|
|
11385
11442
|
"message": "Ôńê ór̂ ḿôŕê śêt́t̂ín̂ǵŝ h́âv́ê ćĥán̂ǵêd́ ŵh́îćĥ ŕêq́ûír̂éŝ á r̂él̂óâd́ t̂ó t̂ák̂é êf́f̂éĉt́."
|
|
11386
11443
|
},
|
|
11387
|
-
"ui/legacy/components/quick_open/CommandMenu.ts |
|
|
11388
|
-
"message": "R̂ún̂
|
|
11444
|
+
"ui/legacy/components/quick_open/CommandMenu.ts | run": {
|
|
11445
|
+
"message": "R̂ún̂"
|
|
11389
11446
|
},
|
|
11390
11447
|
"ui/legacy/components/quick_open/FilteredListWidget.ts | noResultsFound": {
|
|
11391
11448
|
"message": "N̂ó r̂éŝúl̂t́ŝ f́ôún̂d́"
|
|
@@ -554,6 +554,7 @@ export enum ExperimentName {
|
|
|
554
554
|
PROTOCOL_MONITOR = 'protocolMonitor',
|
|
555
555
|
WEBAUTHN_PANE = 'webauthnPane',
|
|
556
556
|
LOCALIZED_DEVTOOLS = 'localizedDevTools',
|
|
557
|
+
SYNC_SETTINGS = 'syncSettings',
|
|
557
558
|
}
|
|
558
559
|
|
|
559
560
|
// TODO(crbug.com/1167717): Make this a const enum again
|
|
@@ -520,6 +520,7 @@ export interface ConsoleMessageDetails {
|
|
|
520
520
|
affectedResources?: AffectedResources;
|
|
521
521
|
groupParent?: ConsoleMessage;
|
|
522
522
|
groupChildren?: ConsoleMessage[];
|
|
523
|
+
category?: Protocol.Log.LogEntryCategory;
|
|
523
524
|
}
|
|
524
525
|
|
|
525
526
|
export class ConsoleMessage {
|
|
@@ -544,6 +545,7 @@ export class ConsoleMessage {
|
|
|
544
545
|
private affectedResources?: AffectedResources;
|
|
545
546
|
groupParent?: ConsoleMessage;
|
|
546
547
|
groupChildren?: Array<ConsoleMessage>;
|
|
548
|
+
category?: Protocol.Log.LogEntryCategory;
|
|
547
549
|
|
|
548
550
|
constructor(
|
|
549
551
|
runtimeModel: RuntimeModel|null, source: MessageSource, level: Protocol.Log.LogEntryLevel|null,
|
|
@@ -565,6 +567,7 @@ export class ConsoleMessage {
|
|
|
565
567
|
this.affectedResources = details?.affectedResources;
|
|
566
568
|
this.groupParent = details?.groupParent;
|
|
567
569
|
this.groupChildren = details?.groupChildren;
|
|
570
|
+
this.category = details?.category;
|
|
568
571
|
|
|
569
572
|
if (!this.executionContextId && this.runtimeModelInternal) {
|
|
570
573
|
if (this.scriptId) {
|
|
@@ -1550,6 +1550,8 @@ export class DebuggerPausedDetails {
|
|
|
1550
1550
|
let stack: (Protocol.Runtime.StackTrace|undefined)|Protocol.Runtime.StackTrace = asyncStackTrace;
|
|
1551
1551
|
let previous: Protocol.Runtime.StackTrace|null = null;
|
|
1552
1552
|
while (stack) {
|
|
1553
|
+
// TODO(crbug.com/1254259): Remove this post-processing step once the V8
|
|
1554
|
+
// inspector back-end change propagated to Node LTS.
|
|
1553
1555
|
if (stack.description === 'async function' && stack.callFrames.length) {
|
|
1554
1556
|
stack.callFrames.shift();
|
|
1555
1557
|
}
|
|
@@ -269,6 +269,10 @@ export class NetworkManager extends SDKModel<EventTypes> {
|
|
|
269
269
|
return result.status;
|
|
270
270
|
}
|
|
271
271
|
|
|
272
|
+
async enableReportingApi(enable: boolean = true): Promise<Promise<Protocol.ProtocolResponseWithError>> {
|
|
273
|
+
return this.networkAgent.invoke_enableReportingApi({enable});
|
|
274
|
+
}
|
|
275
|
+
|
|
272
276
|
async loadNetworkResource(
|
|
273
277
|
frameId: Protocol.Page.FrameId|null, url: string,
|
|
274
278
|
options: Protocol.Network.LoadNetworkResourceOptions): Promise<Protocol.Network.LoadNetworkResourcePageResult> {
|
|
@@ -295,6 +299,8 @@ export enum Events {
|
|
|
295
299
|
MessageGenerated = 'MessageGenerated',
|
|
296
300
|
RequestRedirected = 'RequestRedirected',
|
|
297
301
|
LoadingFinished = 'LoadingFinished',
|
|
302
|
+
ReportingApiReportAdded = 'ReportingApiReportAdded',
|
|
303
|
+
ReportingApiReportUpdated = 'ReportingApiReportUpdated',
|
|
298
304
|
}
|
|
299
305
|
|
|
300
306
|
export interface RequestStartedEvent {
|
|
@@ -322,6 +328,8 @@ export type EventTypes = {
|
|
|
322
328
|
[Events.MessageGenerated]: MessageGeneratedEvent,
|
|
323
329
|
[Events.RequestRedirected]: NetworkRequest,
|
|
324
330
|
[Events.LoadingFinished]: NetworkRequest,
|
|
331
|
+
[Events.ReportingApiReportAdded]: Protocol.Network.ReportingApiReport,
|
|
332
|
+
[Events.ReportingApiReportUpdated]: Protocol.Network.ReportingApiReport,
|
|
325
333
|
};
|
|
326
334
|
|
|
327
335
|
export const NoThrottlingConditions: Conditions = {
|
|
@@ -1019,10 +1027,12 @@ export class NetworkDispatcher implements ProtocolProxyApi.NetworkDispatcher {
|
|
|
1019
1027
|
}
|
|
1020
1028
|
}
|
|
1021
1029
|
|
|
1022
|
-
reportingApiReportAdded(
|
|
1030
|
+
reportingApiReportAdded(data: Protocol.Network.ReportingApiReportAddedEvent): void {
|
|
1031
|
+
this.manager.dispatchEventToListeners(Events.ReportingApiReportAdded, data.report);
|
|
1023
1032
|
}
|
|
1024
1033
|
|
|
1025
|
-
reportingApiReportUpdated(
|
|
1034
|
+
reportingApiReportUpdated(data: Protocol.Network.ReportingApiReportUpdatedEvent): void {
|
|
1035
|
+
this.manager.dispatchEventToListeners(Events.ReportingApiReportUpdated, data.report);
|
|
1026
1036
|
}
|
|
1027
1037
|
|
|
1028
1038
|
/**
|
|
@@ -100,6 +100,10 @@ const UIStrings = {
|
|
|
100
100
|
*/
|
|
101
101
|
samePartyFromCrossPartyContext: 'This cookie was blocked because it had the "`SameParty`" attribute but the request was cross-party. The request was considered cross-party because the domain of the resource\'s URL and the domains of the resource\'s enclosing frames/documents are neither owners nor members in the same First-Party Set.',
|
|
102
102
|
/**
|
|
103
|
+
*@description Tooltip to explain why a cookie was blocked due to exceeding the maximum size
|
|
104
|
+
*/
|
|
105
|
+
nameValuePairExceedsMaxSize: 'This cookie was blocked because it was too large. The combined size of the name and value must be less than or equal to 4096 characters.',
|
|
106
|
+
/**
|
|
103
107
|
*@description Tooltip to explain why an attempt to set a cookie via `Set-Cookie` HTTP header on a request's response was blocked.
|
|
104
108
|
*/
|
|
105
109
|
thisSetcookieWasBlockedDueToUser: 'This attempt to set a cookie via a `Set-Cookie` header was blocked due to user preferences.',
|
|
@@ -161,12 +165,16 @@ const UIStrings = {
|
|
|
161
165
|
*@description Tooltip to explain why an attempt to set a cookie via a `Set-Cookie` HTTP header on a request's response was blocked.
|
|
162
166
|
*/
|
|
163
167
|
blockedReasonInvalidPrefix: 'This attempt to set a cookie via a `Set-Cookie` header was blocked because it used the "`__Secure-`" or "`__Host-`" prefix in its name and broke the additional rules applied to cookies with these prefixes as defined in `https://tools.ietf.org/html/draft-west-cookie-prefixes-05`.',
|
|
168
|
+
/**
|
|
169
|
+
*@description Tooltip to explain why a cookie was blocked when the size of the name plus the size of the value exceeds the max size.
|
|
170
|
+
*/
|
|
171
|
+
thisSetcookieWasBlockedBecauseTheNameValuePairExceedsMaxSize: 'This attempt to set a cookie via a `Set-Cookie` header was blocked because the cookie was too large. The combined size of the name and value must be less than or equal to 4096 characters.',
|
|
164
172
|
/**
|
|
165
173
|
*@description Text in Network Manager
|
|
166
174
|
*@example {https://example.com} PH1
|
|
167
175
|
*/
|
|
168
|
-
setcookieHeaderIsIgnoredIn:
|
|
169
|
-
|
|
176
|
+
setcookieHeaderIsIgnoredIn: 'Set-Cookie header is ignored in response from url: {PH1}. The combined size of the name and value must be less than or equal to 4096 characters.',
|
|
177
|
+
|
|
170
178
|
};
|
|
171
179
|
// clang-format on
|
|
172
180
|
|
|
@@ -1389,11 +1397,12 @@ export class NetworkRequest extends Common.ObjectWrapper.ObjectWrapper<EventType
|
|
|
1389
1397
|
|
|
1390
1398
|
this.hasExtraResponseInfoInternal = true;
|
|
1391
1399
|
|
|
1400
|
+
// TODO(crbug.com/1252463) Explore replacing this with a DevTools Issue.
|
|
1392
1401
|
const networkManager = NetworkManager.forRequest(this);
|
|
1393
|
-
// net::ParsedCookie::kMaxCookieSize = 4096 (net/cookies/parsed_cookie.h)
|
|
1394
1402
|
if (networkManager) {
|
|
1395
|
-
for (const
|
|
1396
|
-
if (
|
|
1403
|
+
for (const blockedCookie of this.blockedResponseCookiesInternal) {
|
|
1404
|
+
if (blockedCookie.blockedReasons.includes(
|
|
1405
|
+
Protocol.Network.SetCookieBlockedReason.NameValuePairExceedsMaxSize)) {
|
|
1397
1406
|
const message = i18nString(UIStrings.setcookieHeaderIsIgnoredIn, {PH1: this.url()});
|
|
1398
1407
|
networkManager.dispatchEventToListeners(
|
|
1399
1408
|
NetworkManagerEvents.MessageGenerated,
|
|
@@ -1519,6 +1528,8 @@ export const cookieBlockedReasonToUiString = function(blockedReason: Protocol.Ne
|
|
|
1519
1528
|
return i18nString(UIStrings.schemefulSameSiteUnspecifiedTreatedAsLax);
|
|
1520
1529
|
case Protocol.Network.CookieBlockedReason.SamePartyFromCrossPartyContext:
|
|
1521
1530
|
return i18nString(UIStrings.samePartyFromCrossPartyContext);
|
|
1531
|
+
case Protocol.Network.CookieBlockedReason.NameValuePairExceedsMaxSize:
|
|
1532
|
+
return i18nString(UIStrings.nameValuePairExceedsMaxSize);
|
|
1522
1533
|
}
|
|
1523
1534
|
return '';
|
|
1524
1535
|
};
|
|
@@ -1560,6 +1571,8 @@ export const setCookieBlockedReasonToUiString = function(
|
|
|
1560
1571
|
return i18nString(UIStrings.thisSetcookieWasBlockedBecauseItHadTheSameparty);
|
|
1561
1572
|
case Protocol.Network.SetCookieBlockedReason.SamePartyConflictsWithOtherAttributes:
|
|
1562
1573
|
return i18nString(UIStrings.thisSetcookieWasBlockedBecauseItHadTheSamepartyAttribute);
|
|
1574
|
+
case Protocol.Network.SetCookieBlockedReason.NameValuePairExceedsMaxSize:
|
|
1575
|
+
return i18nString(UIStrings.thisSetcookieWasBlockedBecauseTheNameValuePairExceedsMaxSize);
|
|
1563
1576
|
}
|
|
1564
1577
|
return '';
|
|
1565
1578
|
};
|
|
@@ -1583,6 +1596,7 @@ export const cookieBlockedReasonToAttribute = function(blockedReason: Protocol.N
|
|
|
1583
1596
|
return Attributes.SameSite;
|
|
1584
1597
|
case Protocol.Network.CookieBlockedReason.SamePartyFromCrossPartyContext:
|
|
1585
1598
|
return Attributes.SameParty;
|
|
1599
|
+
case Protocol.Network.CookieBlockedReason.NameValuePairExceedsMaxSize:
|
|
1586
1600
|
case Protocol.Network.CookieBlockedReason.UserPreferences:
|
|
1587
1601
|
case Protocol.Network.CookieBlockedReason.UnknownError:
|
|
1588
1602
|
return null;
|
|
@@ -1611,6 +1625,7 @@ export const setCookieBlockedReasonToAttribute = function(blockedReason: Protoco
|
|
|
1611
1625
|
case Protocol.Network.SetCookieBlockedReason.SamePartyConflictsWithOtherAttributes:
|
|
1612
1626
|
case Protocol.Network.SetCookieBlockedReason.SamePartyFromCrossPartyContext:
|
|
1613
1627
|
return Attributes.SameParty;
|
|
1628
|
+
case Protocol.Network.SetCookieBlockedReason.NameValuePairExceedsMaxSize:
|
|
1614
1629
|
case Protocol.Network.SetCookieBlockedReason.UserPreferences:
|
|
1615
1630
|
case Protocol.Network.SetCookieBlockedReason.SyntaxError:
|
|
1616
1631
|
case Protocol.Network.SetCookieBlockedReason.SchemeNotSupported:
|
|
@@ -467,6 +467,27 @@ export class OverlayModel extends SDKModel<EventTypes> implements ProtocolProxyA
|
|
|
467
467
|
return this.sourceOrderModeActiveInternal;
|
|
468
468
|
}
|
|
469
469
|
|
|
470
|
+
highlightIsolatedElementInPersistentOverlay(nodeId: Protocol.DOM.NodeId): void {
|
|
471
|
+
if (!this.persistentHighlighter) {
|
|
472
|
+
return;
|
|
473
|
+
}
|
|
474
|
+
this.persistentHighlighter.highlightIsolatedElementInOverlay(nodeId);
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
hideIsolatedElementInPersistentOverlay(nodeId: Protocol.DOM.NodeId): void {
|
|
478
|
+
if (!this.persistentHighlighter) {
|
|
479
|
+
return;
|
|
480
|
+
}
|
|
481
|
+
this.persistentHighlighter.hideIsolatedElementInOverlay(nodeId);
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
isHighlightedIsolatedElementInPersistentOverlay(nodeId: Protocol.DOM.NodeId): boolean {
|
|
485
|
+
if (!this.persistentHighlighter) {
|
|
486
|
+
return false;
|
|
487
|
+
}
|
|
488
|
+
return this.persistentHighlighter.isIsolatedElementHighlighted(nodeId);
|
|
489
|
+
}
|
|
490
|
+
|
|
470
491
|
private delayedHideHighlight(delay: number): void {
|
|
471
492
|
if (this.hideHighlightTimeout === null) {
|
|
472
493
|
this.hideHighlightTimeout = window.setTimeout(() => this.highlightInOverlay({clear: true}), delay);
|
|
@@ -14,6 +14,7 @@ export class OverlayPersistentHighlighter {
|
|
|
14
14
|
private readonly flexHighlights: Map<Protocol.DOM.NodeId, Protocol.Overlay.FlexContainerHighlightConfig>;
|
|
15
15
|
private readonly containerQueryHighlights:
|
|
16
16
|
Map<Protocol.DOM.NodeId, Protocol.Overlay.ContainerQueryContainerHighlightConfig>;
|
|
17
|
+
private readonly isolatedElementHighlights: Map<Protocol.DOM.NodeId, Protocol.Overlay.IsolationModeHighlightConfig>;
|
|
17
18
|
private readonly colors: Map<Protocol.DOM.NodeId, Common.Color.Color>;
|
|
18
19
|
private gridColorGenerator: OverlayColorGenerator;
|
|
19
20
|
private flexColorGenerator: OverlayColorGenerator;
|
|
@@ -41,6 +42,8 @@ export class OverlayPersistentHighlighter {
|
|
|
41
42
|
|
|
42
43
|
this.containerQueryHighlights = new Map();
|
|
43
44
|
|
|
45
|
+
this.isolatedElementHighlights = new Map();
|
|
46
|
+
|
|
44
47
|
this.colors = new Map();
|
|
45
48
|
|
|
46
49
|
this.gridColorGenerator = new OverlayColorGenerator();
|
|
@@ -223,11 +226,36 @@ export class OverlayPersistentHighlighter {
|
|
|
223
226
|
};
|
|
224
227
|
}
|
|
225
228
|
|
|
229
|
+
highlightIsolatedElementInOverlay(nodeId: Protocol.DOM.NodeId): void {
|
|
230
|
+
this.isolatedElementHighlights.set(nodeId, this.buildIsolationModeHighlightConfig());
|
|
231
|
+
this.updateHighlightsInOverlay();
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
hideIsolatedElementInOverlay(nodeId: Protocol.DOM.NodeId): void {
|
|
235
|
+
if (this.isolatedElementHighlights.has(nodeId)) {
|
|
236
|
+
this.isolatedElementHighlights.delete(nodeId);
|
|
237
|
+
this.updateHighlightsInOverlay();
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
isIsolatedElementHighlighted(nodeId: Protocol.DOM.NodeId): boolean {
|
|
242
|
+
return this.isolatedElementHighlights.has(nodeId);
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
private buildIsolationModeHighlightConfig(): Protocol.Overlay.IsolationModeHighlightConfig {
|
|
246
|
+
return {
|
|
247
|
+
resizerColor: Common.Color.IsolationModeHighlight.Resizer.toProtocolRGBA(),
|
|
248
|
+
resizerHandleColor: Common.Color.IsolationModeHighlight.ResizerHandle.toProtocolRGBA(),
|
|
249
|
+
maskColor: Common.Color.IsolationModeHighlight.Mask.toProtocolRGBA(),
|
|
250
|
+
};
|
|
251
|
+
}
|
|
252
|
+
|
|
226
253
|
hideAllInOverlay(): void {
|
|
227
254
|
this.flexHighlights.clear();
|
|
228
255
|
this.gridHighlights.clear();
|
|
229
256
|
this.scrollSnapHighlights.clear();
|
|
230
257
|
this.containerQueryHighlights.clear();
|
|
258
|
+
this.isolatedElementHighlights.clear();
|
|
231
259
|
this.updateHighlightsInOverlay();
|
|
232
260
|
}
|
|
233
261
|
|
|
@@ -236,7 +264,9 @@ export class OverlayPersistentHighlighter {
|
|
|
236
264
|
const flexboxesNeedUpdate = this.updateHighlightsForDeletedNodes(this.flexHighlights);
|
|
237
265
|
const scrollSnapsNeedUpdate = this.updateHighlightsForDeletedNodes(this.scrollSnapHighlights);
|
|
238
266
|
const containerQueriesNeedUpdate = this.updateHighlightsForDeletedNodes(this.containerQueryHighlights);
|
|
239
|
-
|
|
267
|
+
const isolatedElementsNeedUpdate = this.updateHighlightsForDeletedNodes(this.isolatedElementHighlights);
|
|
268
|
+
if (flexboxesNeedUpdate || gridsNeedUpdate || scrollSnapsNeedUpdate || containerQueriesNeedUpdate ||
|
|
269
|
+
isolatedElementsNeedUpdate) {
|
|
240
270
|
this.updateHighlightsInOverlay();
|
|
241
271
|
}
|
|
242
272
|
}
|
|
@@ -265,17 +295,21 @@ export class OverlayPersistentHighlighter {
|
|
|
265
295
|
for (const nodeId of this.containerQueryHighlights.keys()) {
|
|
266
296
|
this.containerQueryHighlights.set(nodeId, this.buildContainerQueryContainerHighlightConfig());
|
|
267
297
|
}
|
|
298
|
+
for (const nodeId of this.isolatedElementHighlights.keys()) {
|
|
299
|
+
this.isolatedElementHighlights.set(nodeId, this.buildIsolationModeHighlightConfig());
|
|
300
|
+
}
|
|
268
301
|
this.updateHighlightsInOverlay();
|
|
269
302
|
}
|
|
270
303
|
|
|
271
304
|
private updateHighlightsInOverlay(): void {
|
|
272
|
-
const hasNodesToHighlight =
|
|
273
|
-
this.
|
|
305
|
+
const hasNodesToHighlight = this.gridHighlights.size > 0 || this.flexHighlights.size > 0 ||
|
|
306
|
+
this.containerQueryHighlights.size > 0 || this.isolatedElementHighlights.size > 0;
|
|
274
307
|
this.model.setShowViewportSizeOnResize(!hasNodesToHighlight);
|
|
275
308
|
this.updateGridHighlightsInOverlay();
|
|
276
309
|
this.updateFlexHighlightsInOverlay();
|
|
277
310
|
this.updateScrollSnapHighlightsInOverlay();
|
|
278
311
|
this.updateContainerQueryHighlightsInOverlay();
|
|
312
|
+
this.updateIsolatedElementHighlightsInOverlay();
|
|
279
313
|
}
|
|
280
314
|
|
|
281
315
|
private updateGridHighlightsInOverlay(): void {
|
|
@@ -316,6 +350,15 @@ export class OverlayPersistentHighlighter {
|
|
|
316
350
|
}
|
|
317
351
|
overlayModel.target().overlayAgent().invoke_setShowContainerQueryOverlays({containerQueryHighlightConfigs});
|
|
318
352
|
}
|
|
353
|
+
|
|
354
|
+
updateIsolatedElementHighlightsInOverlay(): void {
|
|
355
|
+
const overlayModel = this.model;
|
|
356
|
+
const isolatedElementHighlightConfigs = [];
|
|
357
|
+
for (const [nodeId, isolationModeHighlightConfig] of this.isolatedElementHighlights.entries()) {
|
|
358
|
+
isolatedElementHighlightConfigs.push({nodeId, isolationModeHighlightConfig});
|
|
359
|
+
}
|
|
360
|
+
overlayModel.target().overlayAgent().invoke_setShowIsolatedElements({isolatedElementHighlightConfigs});
|
|
361
|
+
}
|
|
319
362
|
}
|
|
320
363
|
|
|
321
364
|
/**
|
|
@@ -362,6 +405,15 @@ export interface OverlayAgent {
|
|
|
362
405
|
containerQueryContainerHighlightConfig: Protocol.Overlay.ContainerQueryContainerHighlightConfig,
|
|
363
406
|
}>,
|
|
364
407
|
}): void;
|
|
408
|
+
|
|
409
|
+
// TODO(crbug.com/1172300) Ignored during the jsdoc to ts migration
|
|
410
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
411
|
+
invoke_setShowIsolatedElements(param: {
|
|
412
|
+
isolatedElementHighlightConfigs: Array<{
|
|
413
|
+
nodeId: number,
|
|
414
|
+
isolationModeHighlightConfig: Protocol.Overlay.IsolationModeHighlightConfig,
|
|
415
|
+
}>,
|
|
416
|
+
}): void;
|
|
365
417
|
}
|
|
366
418
|
|
|
367
419
|
/**
|
|
@@ -370,7 +370,7 @@
|
|
|
370
370
|
* Enum for recordPerformanceHistogram
|
|
371
371
|
* Warning: There is another definition of this enum in the DevTools code
|
|
372
372
|
* base, keep them in sync:
|
|
373
|
-
* front_end/host/InspectorFrontendHostAPI.
|
|
373
|
+
* front_end/core/host/InspectorFrontendHostAPI.ts
|
|
374
374
|
* @readonly
|
|
375
375
|
* @enum {string}
|
|
376
376
|
*/
|
|
@@ -395,6 +395,7 @@
|
|
|
395
395
|
LinearMemoryInspectorRevealedFrom: 'DevTools.LinearMemoryInspector.RevealedFrom',
|
|
396
396
|
LinearMemoryInspectorTarget: 'DevTools.LinearMemoryInspector.Target',
|
|
397
397
|
Language: 'DevTools.Language',
|
|
398
|
+
ConsoleShowsCorsErrors: 'DevTools.ConsoleShowsCorsErrors',
|
|
398
399
|
};
|
|
399
400
|
|
|
400
401
|
/**
|
|
@@ -520,6 +521,15 @@
|
|
|
520
521
|
'loadNetworkResource', [url, headers, streamId], /** @type {function(?Object)} */ (callback));
|
|
521
522
|
}
|
|
522
523
|
|
|
524
|
+
/**
|
|
525
|
+
* @override
|
|
526
|
+
* @param {string} name
|
|
527
|
+
* @param {!{synced: (boolean|undefined)}} options
|
|
528
|
+
*/
|
|
529
|
+
registerPreference(name, options) {
|
|
530
|
+
DevToolsAPI.sendMessageToEmbedder('registerPreference', [name, options], null);
|
|
531
|
+
}
|
|
532
|
+
|
|
523
533
|
/**
|
|
524
534
|
* @override
|
|
525
535
|
* @param {function(!Object<string, string>)} callback
|
|
@@ -243,7 +243,6 @@ export class MainImpl {
|
|
|
243
243
|
'ignoreListJSFramesOnTimeline', 'Ignore List for JavaScript frames on Timeline', true);
|
|
244
244
|
Root.Runtime.experiments.register(
|
|
245
245
|
'cssOverview', 'CSS Overview', undefined, 'https://developer.chrome.com/blog/new-in-devtools-87/#css-overview');
|
|
246
|
-
Root.Runtime.experiments.register('emptySourceMapAutoStepping', 'Empty sourcemap auto-stepping');
|
|
247
246
|
Root.Runtime.experiments.register('inputEventsOnTimelineOverview', 'Input events on Timeline overview', true);
|
|
248
247
|
Root.Runtime.experiments.register('liveHeapProfile', 'Live heap profile', true);
|
|
249
248
|
Root.Runtime.experiments.register(
|
|
@@ -259,7 +258,6 @@ export class MainImpl {
|
|
|
259
258
|
Root.Runtime.experiments.register(
|
|
260
259
|
'showOptionToNotTreatGlobalObjectsAsRoots',
|
|
261
260
|
'Show option to take heap snapshot where globals are not treated as root');
|
|
262
|
-
Root.Runtime.experiments.register('sourceDiff', 'Source diff');
|
|
263
261
|
Root.Runtime.experiments.register(
|
|
264
262
|
'sourceOrderViewer', 'Source order viewer', undefined,
|
|
265
263
|
'https://developer.chrome.com/blog/new-in-devtools-92/#source-order');
|
|
@@ -321,6 +319,10 @@ export class MainImpl {
|
|
|
321
319
|
// Localized DevTools, hide "locale selector" setting behind an experiment.
|
|
322
320
|
Root.Runtime.experiments.register(Root.Runtime.ExperimentName.LOCALIZED_DEVTOOLS, 'Enable localized DevTools');
|
|
323
321
|
|
|
322
|
+
// Checkbox in the Settings UI to enable Chrome Sync is behind this experiment.
|
|
323
|
+
Root.Runtime.experiments.register(
|
|
324
|
+
Root.Runtime.ExperimentName.SYNC_SETTINGS, 'Sync DevTools settings with Chrome Sync');
|
|
325
|
+
|
|
324
326
|
Root.Runtime.experiments.enableExperimentsByDefault([
|
|
325
327
|
Root.Runtime.ExperimentName.LOCALIZED_DEVTOOLS,
|
|
326
328
|
'sourceOrderViewer',
|