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
|
@@ -210,6 +210,11 @@ const UIStrings = {
|
|
|
210
210
|
* Chrome's UI language.
|
|
211
211
|
*/
|
|
212
212
|
browserLanguage: 'Browser UI language',
|
|
213
|
+
/**
|
|
214
|
+
* @description Label for a checkbox in the settings UI. Allows developers to opt-in/opt-out
|
|
215
|
+
* of syncing DevTools settings via Chrome Sync.
|
|
216
|
+
*/
|
|
217
|
+
enableSync: 'Enable settings sync',
|
|
213
218
|
};
|
|
214
219
|
const str_ = i18n.i18n.registerUIStrings('entrypoints/main/main-meta.ts', UIStrings);
|
|
215
220
|
const i18nLazyString = i18n.i18n.getLazilyComputedLocalizedString.bind(undefined, str_);
|
|
@@ -762,6 +767,17 @@ Common.Settings.registerSettingExtension({
|
|
|
762
767
|
experiment: Root.Runtime.ExperimentName.LOCALIZED_DEVTOOLS,
|
|
763
768
|
});
|
|
764
769
|
|
|
770
|
+
Common.Settings.registerSettingExtension({
|
|
771
|
+
category: Common.Settings.SettingCategory.SYNC,
|
|
772
|
+
// This name must be kept in sync with DevToolsSettings::kSyncDevToolsPreferencesFrontendName.
|
|
773
|
+
settingName: 'sync_preferences',
|
|
774
|
+
settingType: Common.Settings.SettingType.BOOLEAN,
|
|
775
|
+
title: i18nLazyString(UIStrings.enableSync),
|
|
776
|
+
defaultValue: false,
|
|
777
|
+
reloadRequired: true,
|
|
778
|
+
experiment: Root.Runtime.ExperimentName.SYNC_SETTINGS,
|
|
779
|
+
});
|
|
780
|
+
|
|
765
781
|
Common.Settings.registerSettingExtension({
|
|
766
782
|
settingName: 'userShortcuts',
|
|
767
783
|
settingType: Common.Settings.SettingType.ARRAY,
|
|
@@ -271,6 +271,8 @@ export function registerCommands(inspectorBackend) {
|
|
|
271
271
|
AttributionTriggerDataTooLarge: 'AttributionTriggerDataTooLarge',
|
|
272
272
|
AttributionEventSourceTriggerDataTooLarge: 'AttributionEventSourceTriggerDataTooLarge'
|
|
273
273
|
});
|
|
274
|
+
inspectorBackend.registerEnum(
|
|
275
|
+
'Audits.GenericIssueErrorType', {CrossOriginPortalPostMessageError: 'CrossOriginPortalPostMessageError'});
|
|
274
276
|
inspectorBackend.registerEnum('Audits.InspectorIssueCode', {
|
|
275
277
|
SameSiteCookieIssue: 'SameSiteCookieIssue',
|
|
276
278
|
MixedContentIssue: 'MixedContentIssue',
|
|
@@ -284,7 +286,8 @@ export function registerCommands(inspectorBackend) {
|
|
|
284
286
|
AttributionReportingIssue: 'AttributionReportingIssue',
|
|
285
287
|
QuirksModeIssue: 'QuirksModeIssue',
|
|
286
288
|
NavigatorUserAgentIssue: 'NavigatorUserAgentIssue',
|
|
287
|
-
WasmCrossOriginModuleSharingIssue: 'WasmCrossOriginModuleSharingIssue'
|
|
289
|
+
WasmCrossOriginModuleSharingIssue: 'WasmCrossOriginModuleSharingIssue',
|
|
290
|
+
GenericIssue: 'GenericIssue'
|
|
288
291
|
});
|
|
289
292
|
inspectorBackend.registerEvent('Audits.issueAdded', ['issue']);
|
|
290
293
|
inspectorBackend.registerEnum('Audits.GetEncodedResponseRequestEncoding', {Webp: 'webp', Jpeg: 'jpeg', Png: 'png'});
|
|
@@ -1535,6 +1538,7 @@ export function registerCommands(inspectorBackend) {
|
|
|
1535
1538
|
HeaderDisallowedByPreflightResponse: 'HeaderDisallowedByPreflightResponse',
|
|
1536
1539
|
RedirectContainsCredentials: 'RedirectContainsCredentials',
|
|
1537
1540
|
InsecurePrivateNetwork: 'InsecurePrivateNetwork',
|
|
1541
|
+
InvalidPrivateNetworkAccess: 'InvalidPrivateNetworkAccess',
|
|
1538
1542
|
NoCorsRedirectModeNotFollow: 'NoCorsRedirectModeNotFollow'
|
|
1539
1543
|
});
|
|
1540
1544
|
inspectorBackend.registerEnum(
|
|
@@ -1921,6 +1925,9 @@ export function registerCommands(inspectorBackend) {
|
|
|
1921
1925
|
'Overlay.setShowViewportSizeOnResize', [{'name': 'show', 'type': 'boolean', 'optional': false}], []);
|
|
1922
1926
|
inspectorBackend.registerCommand(
|
|
1923
1927
|
'Overlay.setShowHinge', [{'name': 'hingeConfig', 'type': 'object', 'optional': true}], []);
|
|
1928
|
+
inspectorBackend.registerCommand(
|
|
1929
|
+
'Overlay.setShowIsolatedElements',
|
|
1930
|
+
[{'name': 'isolatedElementHighlightConfigs', 'type': 'object', 'optional': false}], []);
|
|
1924
1931
|
|
|
1925
1932
|
// Page.
|
|
1926
1933
|
inspectorBackend.registerEnum('Page.AdFrameType', {None: 'none', Child: 'child', Root: 'root'});
|
|
@@ -3182,12 +3189,6 @@ export function registerCommands(inspectorBackend) {
|
|
|
3182
3189
|
inspectorBackend.registerCommand('Profiler.stopTypeProfile', [], []);
|
|
3183
3190
|
inspectorBackend.registerCommand('Profiler.takePreciseCoverage', [], ['result', 'timestamp']);
|
|
3184
3191
|
inspectorBackend.registerCommand('Profiler.takeTypeProfile', [], ['result']);
|
|
3185
|
-
inspectorBackend.registerCommand('Profiler.enableCounters', [], []);
|
|
3186
|
-
inspectorBackend.registerCommand('Profiler.disableCounters', [], []);
|
|
3187
|
-
inspectorBackend.registerCommand('Profiler.getCounters', [], ['result']);
|
|
3188
|
-
inspectorBackend.registerCommand('Profiler.enableRuntimeCallStats', [], []);
|
|
3189
|
-
inspectorBackend.registerCommand('Profiler.disableRuntimeCallStats', [], []);
|
|
3190
|
-
inspectorBackend.registerCommand('Profiler.getRuntimeCallStats', [], ['result']);
|
|
3191
3192
|
|
|
3192
3193
|
// Runtime.
|
|
3193
3194
|
inspectorBackend.registerEnum('Runtime.RemoteObjectType', {
|
|
@@ -445,6 +445,12 @@ export const generatedProperties = [
|
|
|
445
445
|
]
|
|
446
446
|
},
|
|
447
447
|
{'name': 'font-style', 'inherited': true, 'keywords': ['normal', 'italic', 'oblique']},
|
|
448
|
+
{
|
|
449
|
+
'longhands': ['font-synthesis-weight', 'font-synthesis-style', 'font-synthesis-small-caps'],
|
|
450
|
+
'name': 'font-synthesis',
|
|
451
|
+
'inherited': true
|
|
452
|
+
},
|
|
453
|
+
{'name': 'font-synthesis-small-caps', 'inherited': true, 'keywords': ['auto', 'none']},
|
|
448
454
|
{'name': 'font-synthesis-style', 'inherited': true, 'keywords': ['auto', 'none']},
|
|
449
455
|
{'name': 'font-synthesis-weight', 'inherited': true, 'keywords': ['auto', 'none']},
|
|
450
456
|
{
|
|
@@ -780,7 +786,6 @@ export const generatedProperties = [
|
|
|
780
786
|
},
|
|
781
787
|
{'name': 'text-underline-offset', 'inherited': true, 'keywords': ['auto']},
|
|
782
788
|
{'name': 'text-underline-position', 'inherited': true, 'keywords': ['auto', 'from-font', 'under', 'left', 'right']},
|
|
783
|
-
{'name': 'time-range'},
|
|
784
789
|
{'name': 'top', 'keywords': ['auto']},
|
|
785
790
|
{
|
|
786
791
|
'name': 'touch-action',
|
|
@@ -1010,6 +1015,7 @@ export const generatedPropertyValues = {
|
|
|
1010
1015
|
]
|
|
1011
1016
|
},
|
|
1012
1017
|
'font-style': {'values': ['normal', 'italic', 'oblique']},
|
|
1018
|
+
'font-synthesis-small-caps': {'values': ['auto', 'none']},
|
|
1013
1019
|
'font-synthesis-style': {'values': ['auto', 'none']},
|
|
1014
1020
|
'font-synthesis-weight': {'values': ['auto', 'none']},
|
|
1015
1021
|
'font-variant-caps': {
|
|
@@ -2098,6 +2098,11 @@ export namespace ProtocolMapping {
|
|
|
2098
2098
|
* Add a dual screen device hinge
|
|
2099
2099
|
*/
|
|
2100
2100
|
'Overlay.setShowHinge': {paramsType: [Protocol.Overlay.SetShowHingeRequest?]; returnType: void;};
|
|
2101
|
+
/**
|
|
2102
|
+
* Show elements in isolation mode with overlays.
|
|
2103
|
+
*/
|
|
2104
|
+
'Overlay.setShowIsolatedElements':
|
|
2105
|
+
{paramsType: [Protocol.Overlay.SetShowIsolatedElementsRequest]; returnType: void;};
|
|
2101
2106
|
/**
|
|
2102
2107
|
* Deprecated, please use addScriptToEvaluateOnNewDocument instead.
|
|
2103
2108
|
*/
|
|
@@ -2981,30 +2986,6 @@ export namespace ProtocolMapping {
|
|
|
2981
2986
|
* Collect type profile.
|
|
2982
2987
|
*/
|
|
2983
2988
|
'Profiler.takeTypeProfile': {paramsType: []; returnType: Protocol.Profiler.TakeTypeProfileResponse;};
|
|
2984
|
-
/**
|
|
2985
|
-
* Enable counters collection.
|
|
2986
|
-
*/
|
|
2987
|
-
'Profiler.enableCounters': {paramsType: []; returnType: void;};
|
|
2988
|
-
/**
|
|
2989
|
-
* Disable counters collection.
|
|
2990
|
-
*/
|
|
2991
|
-
'Profiler.disableCounters': {paramsType: []; returnType: void;};
|
|
2992
|
-
/**
|
|
2993
|
-
* Retrieve counters.
|
|
2994
|
-
*/
|
|
2995
|
-
'Profiler.getCounters': {paramsType: []; returnType: Protocol.Profiler.GetCountersResponse;};
|
|
2996
|
-
/**
|
|
2997
|
-
* Enable run time call stats collection.
|
|
2998
|
-
*/
|
|
2999
|
-
'Profiler.enableRuntimeCallStats': {paramsType: []; returnType: void;};
|
|
3000
|
-
/**
|
|
3001
|
-
* Disable run time call stats collection.
|
|
3002
|
-
*/
|
|
3003
|
-
'Profiler.disableRuntimeCallStats': {paramsType: []; returnType: void;};
|
|
3004
|
-
/**
|
|
3005
|
-
* Retrieve run time call stats.
|
|
3006
|
-
*/
|
|
3007
|
-
'Profiler.getRuntimeCallStats': {paramsType: []; returnType: Protocol.Profiler.GetRuntimeCallStatsResponse;};
|
|
3008
2989
|
/**
|
|
3009
2990
|
* Add handler to promise with given promise object id.
|
|
3010
2991
|
*/
|
|
@@ -2321,6 +2321,12 @@ declare namespace ProtocolProxyApi {
|
|
|
2321
2321
|
* Add a dual screen device hinge
|
|
2322
2322
|
*/
|
|
2323
2323
|
invoke_setShowHinge(params: Protocol.Overlay.SetShowHingeRequest): Promise<Protocol.ProtocolResponseWithError>;
|
|
2324
|
+
|
|
2325
|
+
/**
|
|
2326
|
+
* Show elements in isolation mode with overlays.
|
|
2327
|
+
*/
|
|
2328
|
+
invoke_setShowIsolatedElements(params: Protocol.Overlay.SetShowIsolatedElementsRequest):
|
|
2329
|
+
Promise<Protocol.ProtocolResponseWithError>;
|
|
2324
2330
|
}
|
|
2325
2331
|
export interface OverlayDispatcher {
|
|
2326
2332
|
/**
|
|
@@ -3873,35 +3879,6 @@ declare namespace ProtocolProxyApi {
|
|
|
3873
3879
|
*/
|
|
3874
3880
|
invoke_takeTypeProfile(): Promise<Protocol.Profiler.TakeTypeProfileResponse>;
|
|
3875
3881
|
|
|
3876
|
-
/**
|
|
3877
|
-
* Enable counters collection.
|
|
3878
|
-
*/
|
|
3879
|
-
invoke_enableCounters(): Promise<Protocol.ProtocolResponseWithError>;
|
|
3880
|
-
|
|
3881
|
-
/**
|
|
3882
|
-
* Disable counters collection.
|
|
3883
|
-
*/
|
|
3884
|
-
invoke_disableCounters(): Promise<Protocol.ProtocolResponseWithError>;
|
|
3885
|
-
|
|
3886
|
-
/**
|
|
3887
|
-
* Retrieve counters.
|
|
3888
|
-
*/
|
|
3889
|
-
invoke_getCounters(): Promise<Protocol.Profiler.GetCountersResponse>;
|
|
3890
|
-
|
|
3891
|
-
/**
|
|
3892
|
-
* Enable run time call stats collection.
|
|
3893
|
-
*/
|
|
3894
|
-
invoke_enableRuntimeCallStats(): Promise<Protocol.ProtocolResponseWithError>;
|
|
3895
|
-
|
|
3896
|
-
/**
|
|
3897
|
-
* Disable run time call stats collection.
|
|
3898
|
-
*/
|
|
3899
|
-
invoke_disableRuntimeCallStats(): Promise<Protocol.ProtocolResponseWithError>;
|
|
3900
|
-
|
|
3901
|
-
/**
|
|
3902
|
-
* Retrieve run time call stats.
|
|
3903
|
-
*/
|
|
3904
|
-
invoke_getRuntimeCallStats(): Promise<Protocol.Profiler.GetRuntimeCallStatsResponse>;
|
|
3905
3882
|
}
|
|
3906
3883
|
export interface ProfilerDispatcher {
|
|
3907
3884
|
consoleProfileFinished(params: Protocol.Profiler.ConsoleProfileFinishedEvent): void;
|
|
@@ -1070,6 +1070,21 @@ declare namespace Protocol {
|
|
|
1070
1070
|
isWarning: boolean;
|
|
1071
1071
|
}
|
|
1072
1072
|
|
|
1073
|
+
export const enum GenericIssueErrorType {
|
|
1074
|
+
CrossOriginPortalPostMessageError = 'CrossOriginPortalPostMessageError',
|
|
1075
|
+
}
|
|
1076
|
+
|
|
1077
|
+
/**
|
|
1078
|
+
* Depending on the concrete errorType, different properties are set.
|
|
1079
|
+
*/
|
|
1080
|
+
export interface GenericIssueDetails {
|
|
1081
|
+
/**
|
|
1082
|
+
* Issues with the same errorType are aggregated in the frontend.
|
|
1083
|
+
*/
|
|
1084
|
+
errorType: GenericIssueErrorType;
|
|
1085
|
+
frameId?: Page.FrameId;
|
|
1086
|
+
}
|
|
1087
|
+
|
|
1073
1088
|
/**
|
|
1074
1089
|
* A unique identifier for the type of issue. Each type may use one of the
|
|
1075
1090
|
* optional fields in InspectorIssueDetails to convey more specific
|
|
@@ -1089,6 +1104,7 @@ declare namespace Protocol {
|
|
|
1089
1104
|
QuirksModeIssue = 'QuirksModeIssue',
|
|
1090
1105
|
NavigatorUserAgentIssue = 'NavigatorUserAgentIssue',
|
|
1091
1106
|
WasmCrossOriginModuleSharingIssue = 'WasmCrossOriginModuleSharingIssue',
|
|
1107
|
+
GenericIssue = 'GenericIssue',
|
|
1092
1108
|
}
|
|
1093
1109
|
|
|
1094
1110
|
/**
|
|
@@ -1110,6 +1126,7 @@ declare namespace Protocol {
|
|
|
1110
1126
|
quirksModeIssueDetails?: QuirksModeIssueDetails;
|
|
1111
1127
|
navigatorUserAgentIssueDetails?: NavigatorUserAgentIssueDetails;
|
|
1112
1128
|
wasmCrossOriginModuleSharingIssue?: WasmCrossOriginModuleSharingIssueDetails;
|
|
1129
|
+
genericIssueDetails?: GenericIssueDetails;
|
|
1113
1130
|
}
|
|
1114
1131
|
|
|
1115
1132
|
/**
|
|
@@ -7177,6 +7194,7 @@ declare namespace Protocol {
|
|
|
7177
7194
|
HeaderDisallowedByPreflightResponse = 'HeaderDisallowedByPreflightResponse',
|
|
7178
7195
|
RedirectContainsCredentials = 'RedirectContainsCredentials',
|
|
7179
7196
|
InsecurePrivateNetwork = 'InsecurePrivateNetwork',
|
|
7197
|
+
InvalidPrivateNetworkAccess = 'InvalidPrivateNetworkAccess',
|
|
7180
7198
|
NoCorsRedirectModeNotFollow = 'NoCorsRedirectModeNotFollow',
|
|
7181
7199
|
}
|
|
7182
7200
|
|
|
@@ -9465,6 +9483,32 @@ declare namespace Protocol {
|
|
|
9465
9483
|
descendantBorder?: LineStyle;
|
|
9466
9484
|
}
|
|
9467
9485
|
|
|
9486
|
+
export interface IsolatedElementHighlightConfig {
|
|
9487
|
+
/**
|
|
9488
|
+
* A descriptor for the highlight appearance of an element in isolation mode.
|
|
9489
|
+
*/
|
|
9490
|
+
isolationModeHighlightConfig: IsolationModeHighlightConfig;
|
|
9491
|
+
/**
|
|
9492
|
+
* Identifier of the isolated element to highlight.
|
|
9493
|
+
*/
|
|
9494
|
+
nodeId: DOM.NodeId;
|
|
9495
|
+
}
|
|
9496
|
+
|
|
9497
|
+
export interface IsolationModeHighlightConfig {
|
|
9498
|
+
/**
|
|
9499
|
+
* The fill color of the resizers (default: transparent).
|
|
9500
|
+
*/
|
|
9501
|
+
resizerColor?: DOM.RGBA;
|
|
9502
|
+
/**
|
|
9503
|
+
* The fill color for resizer handles (default: transparent).
|
|
9504
|
+
*/
|
|
9505
|
+
resizerHandleColor?: DOM.RGBA;
|
|
9506
|
+
/**
|
|
9507
|
+
* The fill color for the mask covering non-isolated elements (default: transparent).
|
|
9508
|
+
*/
|
|
9509
|
+
maskColor?: DOM.RGBA;
|
|
9510
|
+
}
|
|
9511
|
+
|
|
9468
9512
|
export const enum InspectMode {
|
|
9469
9513
|
SearchForNode = 'searchForNode',
|
|
9470
9514
|
SearchForUAShadowDOM = 'searchForUAShadowDOM',
|
|
@@ -9744,6 +9788,13 @@ declare namespace Protocol {
|
|
|
9744
9788
|
hingeConfig?: HingeConfig;
|
|
9745
9789
|
}
|
|
9746
9790
|
|
|
9791
|
+
export interface SetShowIsolatedElementsRequest {
|
|
9792
|
+
/**
|
|
9793
|
+
* An array of node identifiers and descriptors for the highlight appearance.
|
|
9794
|
+
*/
|
|
9795
|
+
isolatedElementHighlightConfigs: IsolatedElementHighlightConfig[];
|
|
9796
|
+
}
|
|
9797
|
+
|
|
9747
9798
|
/**
|
|
9748
9799
|
* Fired when the node should be inspected. This happens after call to `setInspectMode` or when
|
|
9749
9800
|
* user manually inspects an element.
|
|
@@ -15343,38 +15394,6 @@ declare namespace Protocol {
|
|
|
15343
15394
|
entries: TypeProfileEntry[];
|
|
15344
15395
|
}
|
|
15345
15396
|
|
|
15346
|
-
/**
|
|
15347
|
-
* Collected counter information.
|
|
15348
|
-
*/
|
|
15349
|
-
export interface CounterInfo {
|
|
15350
|
-
/**
|
|
15351
|
-
* Counter name.
|
|
15352
|
-
*/
|
|
15353
|
-
name: string;
|
|
15354
|
-
/**
|
|
15355
|
-
* Counter value.
|
|
15356
|
-
*/
|
|
15357
|
-
value: integer;
|
|
15358
|
-
}
|
|
15359
|
-
|
|
15360
|
-
/**
|
|
15361
|
-
* Runtime call counter information.
|
|
15362
|
-
*/
|
|
15363
|
-
export interface RuntimeCallCounterInfo {
|
|
15364
|
-
/**
|
|
15365
|
-
* Counter name.
|
|
15366
|
-
*/
|
|
15367
|
-
name: string;
|
|
15368
|
-
/**
|
|
15369
|
-
* Counter value.
|
|
15370
|
-
*/
|
|
15371
|
-
value: number;
|
|
15372
|
-
/**
|
|
15373
|
-
* Counter time in seconds.
|
|
15374
|
-
*/
|
|
15375
|
-
time: number;
|
|
15376
|
-
}
|
|
15377
|
-
|
|
15378
15397
|
export interface GetBestEffortCoverageResponse extends ProtocolResponseWithError {
|
|
15379
15398
|
/**
|
|
15380
15399
|
* Coverage data for the current isolate.
|
|
@@ -15436,20 +15455,6 @@ declare namespace Protocol {
|
|
|
15436
15455
|
result: ScriptTypeProfile[];
|
|
15437
15456
|
}
|
|
15438
15457
|
|
|
15439
|
-
export interface GetCountersResponse extends ProtocolResponseWithError {
|
|
15440
|
-
/**
|
|
15441
|
-
* Collected counters information.
|
|
15442
|
-
*/
|
|
15443
|
-
result: CounterInfo[];
|
|
15444
|
-
}
|
|
15445
|
-
|
|
15446
|
-
export interface GetRuntimeCallStatsResponse extends ProtocolResponseWithError {
|
|
15447
|
-
/**
|
|
15448
|
-
* Collected runtime call counter information.
|
|
15449
|
-
*/
|
|
15450
|
-
result: RuntimeCallCounterInfo[];
|
|
15451
|
-
}
|
|
15452
|
-
|
|
15453
15458
|
export interface ConsoleProfileFinishedEvent {
|
|
15454
15459
|
id: string;
|
|
15455
15460
|
/**
|
|
@@ -90,8 +90,6 @@ export class DebuggerWorkspaceBinding implements SDK.TargetManager.SDKModelObser
|
|
|
90
90
|
return true;
|
|
91
91
|
}
|
|
92
92
|
|
|
93
|
-
// TODO(crbug.com/1018234): Also take into account source maps here and remove the auto-stepping
|
|
94
|
-
// logic in the front-end (which is currently still an experiment) completely.
|
|
95
93
|
const rawLocation = callFrame.location();
|
|
96
94
|
if (!rawLocation) {
|
|
97
95
|
return [];
|
|
@@ -118,10 +116,6 @@ export class DebuggerWorkspaceBinding implements SDK.TargetManager.SDKModelObser
|
|
|
118
116
|
}
|
|
119
117
|
}
|
|
120
118
|
|
|
121
|
-
if (!Root.Runtime.experiments.isEnabled('emptySourceMapAutoStepping')) {
|
|
122
|
-
return [];
|
|
123
|
-
}
|
|
124
|
-
|
|
125
119
|
const compilerMapping = this.debuggerModelToData.get(rawLocation.debuggerModel)?.compilerMapping;
|
|
126
120
|
if (!compilerMapping) {
|
|
127
121
|
return [];
|
|
@@ -41,6 +41,7 @@ export enum IssueCode {
|
|
|
41
41
|
PreflightInvalidAllowExternal = 'CorsIssue::PreflightInvalidAllowExternal',
|
|
42
42
|
InvalidResponse = 'CorsIssue::InvalidResponse',
|
|
43
43
|
NoCorsRedirectModeNotFollow = 'CorsIssue::NoCorsRedirectModeNotFollow',
|
|
44
|
+
InvalidPrivateNetworkAccess = 'CorsIssue::InvalidPrivateNetworkAccess',
|
|
44
45
|
}
|
|
45
46
|
|
|
46
47
|
function getIssueCode(details: Protocol.Audits.CorsIssueDetails): IssueCode {
|
|
@@ -87,6 +88,8 @@ function getIssueCode(details: Protocol.Audits.CorsIssueDetails): IssueCode {
|
|
|
87
88
|
IssueCode.InsecurePrivateNetwork;
|
|
88
89
|
case Protocol.Network.CorsError.NoCorsRedirectModeNotFollow:
|
|
89
90
|
return IssueCode.NoCorsRedirectModeNotFollow;
|
|
91
|
+
case Protocol.Network.CorsError.InvalidPrivateNetworkAccess:
|
|
92
|
+
return IssueCode.InvalidPrivateNetworkAccess;
|
|
90
93
|
}
|
|
91
94
|
}
|
|
92
95
|
|
|
@@ -217,6 +220,7 @@ export class CorsIssue extends Issue<IssueCode> {
|
|
|
217
220
|
case IssueCode.PreflightMissingAllowExternal:
|
|
218
221
|
case IssueCode.PreflightInvalidAllowExternal:
|
|
219
222
|
case IssueCode.InvalidResponse:
|
|
223
|
+
case IssueCode.InvalidPrivateNetworkAccess:
|
|
220
224
|
return null;
|
|
221
225
|
}
|
|
222
226
|
}
|
|
@@ -48,6 +48,7 @@ export class LogManager implements SDK.TargetManager.SDKModelObserver<SDK.LogMod
|
|
|
48
48
|
stackTrace: entry.stackTrace,
|
|
49
49
|
timestamp: entry.timestamp,
|
|
50
50
|
workerId: entry.workerId,
|
|
51
|
+
category: entry.category,
|
|
51
52
|
};
|
|
52
53
|
const consoleMessage = new SDK.ConsoleModel.ConsoleMessage(
|
|
53
54
|
target.model(SDK.RuntimeModel.RuntimeModel), entry.source, entry.level, entry.text, details);
|
|
@@ -49,6 +49,7 @@ export class WorkspaceSettingsTab extends UI.Widget.VBox {
|
|
|
49
49
|
private constructor() {
|
|
50
50
|
super();
|
|
51
51
|
|
|
52
|
+
this.element.classList.add('workspace-settings-tab');
|
|
52
53
|
const header = this.element.createChild('header');
|
|
53
54
|
UI.UIUtils.createTextChild(header.createChild('h1'), i18nString(UIStrings.workspace));
|
|
54
55
|
|
|
@@ -93,6 +94,11 @@ export class WorkspaceSettingsTab extends UI.Widget.VBox {
|
|
|
93
94
|
return workspaceSettingsTabInstance;
|
|
94
95
|
}
|
|
95
96
|
|
|
97
|
+
wasShown(): void {
|
|
98
|
+
super.wasShown();
|
|
99
|
+
this.registerCSSFiles([workspaceSettingsTabStyles]);
|
|
100
|
+
}
|
|
101
|
+
|
|
96
102
|
private createFolderExcludePatternInput(): Element {
|
|
97
103
|
const p = document.createElement('p');
|
|
98
104
|
const labelElement = p.createChild('label');
|
|
@@ -191,8 +197,4 @@ export class WorkspaceSettingsTab extends UI.Widget.VBox {
|
|
|
191
197
|
element.remove();
|
|
192
198
|
}
|
|
193
199
|
}
|
|
194
|
-
wasShown(): void {
|
|
195
|
-
super.wasShown();
|
|
196
|
-
this.registerCSSFiles([workspaceSettingsTabStyles]);
|
|
197
|
-
}
|
|
198
200
|
}
|
|
@@ -4,18 +4,18 @@
|
|
|
4
4
|
* found in the LICENSE file.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
header {
|
|
7
|
+
.workspace-settings-tab header {
|
|
8
8
|
padding: 0 0 6px;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
header > h1 {
|
|
11
|
+
.workspace-settings-tab header > h1 {
|
|
12
12
|
font-size: 18px;
|
|
13
13
|
font-weight: normal;
|
|
14
14
|
margin: 0;
|
|
15
15
|
padding-bottom: 3px;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
.settings-content {
|
|
18
|
+
.workspace-settings-tab .settings-content {
|
|
19
19
|
overflow-y: auto;
|
|
20
20
|
overflow-x: hidden;
|
|
21
21
|
margin: 8px 8px 8px 0;
|
|
@@ -23,21 +23,21 @@ header > h1 {
|
|
|
23
23
|
flex: auto;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
.settings-container {
|
|
26
|
+
.workspace-settings-tab .settings-container {
|
|
27
27
|
width: 100%;
|
|
28
28
|
column-width: 288px;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
.settings-tab.settings-container {
|
|
31
|
+
.workspace-settings-tab .settings-tab.settings-container {
|
|
32
32
|
column-width: 308px;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
.settings-tab label {
|
|
35
|
+
.workspace-settings-tab .settings-tab label {
|
|
36
36
|
padding-right: 4px;
|
|
37
37
|
display: inline-flex;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
.settings-container-wrapper {
|
|
40
|
+
.workspace-settings-tab .settings-container-wrapper {
|
|
41
41
|
position: absolute;
|
|
42
42
|
top: 31px;
|
|
43
43
|
left: 0;
|
|
@@ -47,37 +47,37 @@ header > h1 {
|
|
|
47
47
|
padding-top: 9px;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
.settings-tab.settings-content {
|
|
50
|
+
.workspace-settings-tab .settings-tab.settings-content {
|
|
51
51
|
margin: 0;
|
|
52
52
|
padding: 0;
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
-
.settings-tab p {
|
|
55
|
+
.workspace-settings-tab .settings-tab p {
|
|
56
56
|
margin: 12px 0;
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
-
p.folder-exclude-pattern {
|
|
59
|
+
.workspace-settings-tab p.folder-exclude-pattern {
|
|
60
60
|
display: flex;
|
|
61
61
|
align-items: center;
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
-
p.folder-exclude-pattern > input {
|
|
64
|
+
.workspace-settings-tab p.folder-exclude-pattern > input {
|
|
65
65
|
flex: auto;
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
-
.settings-tab .file-system-container {
|
|
68
|
+
.workspace-settings-tab .settings-tab .file-system-container {
|
|
69
69
|
border-top: 1px solid var(--color-background-elevation-2);
|
|
70
70
|
padding: 19px 0 10px;
|
|
71
71
|
margin: 20px 0;
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
-
.settings-tab .file-system-header {
|
|
74
|
+
.workspace-settings-tab .settings-tab .file-system-header {
|
|
75
75
|
display: flex;
|
|
76
76
|
flex-direction: row;
|
|
77
77
|
align-items: center;
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
-
.settings-tab .file-system-name {
|
|
80
|
+
.workspace-settings-tab .settings-tab .file-system-name {
|
|
81
81
|
font-weight: bold;
|
|
82
82
|
flex: none;
|
|
83
83
|
margin-right: 10px;
|
|
@@ -87,20 +87,20 @@ p.folder-exclude-pattern > input {
|
|
|
87
87
|
max-width: 70%;
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
-
.settings-tab .file-system-path {
|
|
90
|
+
.workspace-settings-tab .settings-tab .file-system-path {
|
|
91
91
|
white-space: nowrap;
|
|
92
92
|
overflow: hidden;
|
|
93
93
|
text-overflow: ellipsis;
|
|
94
94
|
flex: auto;
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
-
.settings-info-message {
|
|
97
|
+
.workspace-settings-tab .settings-info-message {
|
|
98
98
|
background-color: var(--color-background-elevation-1);
|
|
99
99
|
padding: 10px;
|
|
100
100
|
margin: 20px 0;
|
|
101
101
|
}
|
|
102
102
|
|
|
103
|
-
.settings-tab.settings-content.settings-container {
|
|
103
|
+
.workspace-settings-tab .settings-tab.settings-content.settings-container {
|
|
104
104
|
column-width: initial;
|
|
105
105
|
overflow: hidden;
|
|
106
106
|
padding-right: 10px;
|
|
@@ -109,6 +109,6 @@ p.folder-exclude-pattern > input {
|
|
|
109
109
|
* Always show an outline. Needed because we have a white background here.
|
|
110
110
|
*/
|
|
111
111
|
|
|
112
|
-
.harmony-input[type=text]:not(.error-input):not(:invalid) {
|
|
112
|
+
.workspace-settings-tab .harmony-input[type=text]:not(.error-input):not(:invalid) {
|
|
113
113
|
box-shadow: var(--legacy-focus-ring-inactive-shadow);
|
|
114
114
|
}
|