chrome-devtools-frontend 1.0.945677 → 1.0.947377
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/.eslintrc.js +1 -0
- package/config/gni/all_devtools_files.gni +0 -14
- package/config/gni/devtools_grd_files.gni +4 -42
- package/front_end/.eslintrc.js +5 -1
- package/front_end/core/host/InspectorFrontendHost.ts +0 -3
- package/front_end/core/host/InspectorFrontendHostAPI.ts +0 -1
- package/front_end/core/host/UserMetrics.ts +0 -22
- package/front_end/core/i18n/locales/en-US.json +33 -27
- package/front_end/core/i18n/locales/en-XL.json +33 -27
- package/front_end/core/root/Runtime.ts +0 -5
- package/front_end/core/sdk/AccessibilityModel.ts +0 -2
- package/front_end/core/sdk/CSSProperty.ts +16 -11
- package/front_end/core/sdk/CSSRule.ts +0 -2
- package/front_end/core/sdk/Cookie.ts +1 -5
- package/front_end/core/sdk/EmulationModel.ts +0 -2
- package/front_end/core/sdk/HeapProfilerModel.ts +0 -2
- package/front_end/core/sdk/NetworkManager.ts +0 -3
- package/front_end/core/sdk/Resource.ts +0 -3
- package/front_end/core/sdk/ResourceTreeModel.ts +0 -3
- package/front_end/core/sdk/ServiceWorkerManager.ts +0 -2
- package/front_end/core/sdk/sdk-meta.ts +20 -8
- package/front_end/devtools_compatibility.js +1 -8
- package/front_end/entrypoints/devtools_app/devtools_app.js +3 -0
- package/front_end/entrypoints/devtools_app/devtools_app.json +1 -3
- package/front_end/entrypoints/formatter_worker/CSSFormatter.ts +1 -3
- package/front_end/entrypoints/formatter_worker/FormatterActions.ts +0 -2
- package/front_end/entrypoints/formatter_worker/FormatterWorker.ts +0 -120
- package/front_end/entrypoints/formatter_worker/formatter_worker-entrypoint.ts +1 -11
- package/front_end/entrypoints/formatter_worker/formatter_worker.ts +5 -0
- package/front_end/entrypoints/inspector/{inspector.js → inspector.ts} +0 -3
- package/front_end/entrypoints/js_app/js_app.js +3 -0
- package/front_end/entrypoints/js_app/js_app.json +1 -2
- package/front_end/entrypoints/main/MainImpl.ts +0 -6
- package/front_end/entrypoints/ndb_app/ndb_app.js +3 -0
- package/front_end/entrypoints/ndb_app/ndb_app.json +1 -2
- package/front_end/entrypoints/{node_main → node_app}/NodeConnectionsPanel.ts +1 -1
- package/front_end/entrypoints/{node_main → node_app}/NodeMain.ts +2 -4
- package/front_end/entrypoints/{node_main → node_app}/nodeConnectionsPanel.css +0 -0
- package/front_end/entrypoints/node_app/node_app.ts +81 -0
- package/front_end/entrypoints/shell/shell.js +18 -1
- package/front_end/entrypoints/worker_app/{worker_app.js → worker_app.ts} +8 -2
- package/front_end/generated/InspectorBackendCommands.js +5 -1
- package/front_end/generated/protocol.d.ts +12 -0
- package/front_end/legacy_test_runner/sources_test_runner/sources_test_runner.js +0 -1
- package/front_end/models/bindings/CompilerScriptMapping.ts +0 -1
- package/front_end/models/bindings/DebuggerLanguagePlugins.ts +4 -11
- package/front_end/models/bindings/DebuggerWorkspaceBinding.ts +1 -1
- package/front_end/models/bindings/ResourceMapping.ts +1 -1
- package/front_end/models/bindings/SASSSourceMapping.ts +0 -1
- package/front_end/models/emulation/DeviceModeModel.ts +0 -2
- package/front_end/models/formatter/FormatterWorkerPool.ts +0 -18
- package/front_end/models/issues_manager/CorsIssue.ts +8 -0
- package/front_end/models/text_utils/CodeMirrorUtils.ts +6 -51
- package/front_end/models/text_utils/TextUtils.ts +1 -2
- package/front_end/models/text_utils/text_utils-legacy.ts +0 -5
- package/front_end/panels/animation/AnimationTimeline.ts +0 -2
- package/front_end/panels/animation/AnimationUI.ts +0 -2
- package/front_end/panels/application/ApplicationPanelSidebar.ts +2 -4
- package/front_end/panels/application/BackForwardCacheStrings.ts +1 -0
- package/front_end/panels/css_overview/CSSOverviewModel.ts +0 -2
- package/front_end/panels/css_overview/CSSOverviewPanel.ts +0 -7
- package/front_end/panels/css_overview/CSSOverviewProcessingView.ts +0 -2
- package/front_end/panels/elements/ColorSwatchPopoverIcon.ts +0 -11
- package/front_end/panels/elements/StylesSidebarPane.ts +0 -1
- package/front_end/panels/elements/elementsTreeOutline.css +0 -13
- package/front_end/panels/emulation/DeviceModeToolbar.ts +0 -16
- package/front_end/panels/issues/CorsIssueDetailsView.ts +6 -2
- package/front_end/panels/lighthouse/lighthouse-meta.ts +0 -3
- package/front_end/panels/network/NetworkConfigView.ts +10 -0
- package/front_end/panels/network/NetworkItemView.ts +3 -0
- package/front_end/panels/network/networkConfigView.css +5 -0
- package/front_end/panels/profiler/profilesPanel.css +1 -1
- package/front_end/panels/search/SearchView.ts +24 -4
- package/front_end/panels/settings/emulation/components/UserAgentClientHintsForm.ts +6 -4
- package/front_end/panels/settings/emulation/components/userAgentClientHintsForm.css +0 -12
- package/front_end/panels/sources/CSSPlugin.ts +3 -0
- package/front_end/panels/sources/CoveragePlugin.ts +2 -0
- package/front_end/panels/sources/DebuggerPlugin.ts +35 -7
- package/front_end/panels/sources/JavaScriptCompilerPlugin.ts +3 -0
- package/front_end/panels/sources/ProfilePlugin.ts +3 -0
- package/front_end/panels/sources/UISourceCodeFrame.ts +11 -2
- package/front_end/panels/sources/sourcesView.css +0 -130
- package/front_end/panels/timeline/TimelineTreeView.ts +1 -0
- package/front_end/third_party/codemirror/codemirror-tsconfig.json +1 -25
- package/front_end/third_party/codemirror.next/chunk/codemirror.js +1 -1
- package/front_end/third_party/codemirror.next/chunk/cpp.js +1 -2
- package/front_end/third_party/codemirror.next/chunk/java.js +1 -2
- package/front_end/third_party/codemirror.next/chunk/json.js +1 -2
- package/front_end/third_party/codemirror.next/chunk/markdown.js +1 -2
- package/front_end/third_party/codemirror.next/chunk/php.js +1 -2
- package/front_end/third_party/codemirror.next/chunk/python.js +1 -2
- package/front_end/third_party/codemirror.next/chunk/wast.js +1 -2
- package/front_end/third_party/codemirror.next/chunk/xml.js +1 -2
- package/front_end/third_party/codemirror.next/codemirror.next.d.ts +1486 -1423
- package/front_end/third_party/codemirror.next/codemirror.next.js +1 -2
- package/front_end/third_party/codemirror.next/package.json +10 -9
- package/front_end/third_party/lighthouse/lighthouse-dt-bundle.js +168 -164
- package/front_end/third_party/lighthouse/locales/ar-XB.json +0 -3
- package/front_end/third_party/lighthouse/locales/ar.json +0 -3
- package/front_end/third_party/lighthouse/locales/bg.json +17 -20
- package/front_end/third_party/lighthouse/locales/ca.json +0 -3
- package/front_end/third_party/lighthouse/locales/cs.json +0 -3
- package/front_end/third_party/lighthouse/locales/da.json +16 -19
- package/front_end/third_party/lighthouse/locales/de.json +0 -3
- package/front_end/third_party/lighthouse/locales/el.json +0 -3
- package/front_end/third_party/lighthouse/locales/en-GB.json +19 -22
- package/front_end/third_party/lighthouse/locales/en-US.json +33 -3
- package/front_end/third_party/lighthouse/locales/en-XA.json +0 -3
- package/front_end/third_party/lighthouse/locales/en-XL.json +33 -3
- package/front_end/third_party/lighthouse/locales/es-419.json +17 -20
- package/front_end/third_party/lighthouse/locales/es.json +0 -3
- package/front_end/third_party/lighthouse/locales/fi.json +16 -19
- package/front_end/third_party/lighthouse/locales/fil.json +33 -36
- package/front_end/third_party/lighthouse/locales/fr.json +16 -19
- package/front_end/third_party/lighthouse/locales/he.json +16 -19
- package/front_end/third_party/lighthouse/locales/hi.json +0 -3
- package/front_end/third_party/lighthouse/locales/hr.json +16 -19
- package/front_end/third_party/lighthouse/locales/hu.json +16 -19
- package/front_end/third_party/lighthouse/locales/id.json +16 -19
- package/front_end/third_party/lighthouse/locales/it.json +37 -40
- package/front_end/third_party/lighthouse/locales/ja.json +16 -19
- package/front_end/third_party/lighthouse/locales/ko.json +16 -19
- package/front_end/third_party/lighthouse/locales/lt.json +17 -20
- package/front_end/third_party/lighthouse/locales/lv.json +0 -3
- package/front_end/third_party/lighthouse/locales/nl.json +16 -19
- package/front_end/third_party/lighthouse/locales/no.json +17 -20
- package/front_end/third_party/lighthouse/locales/pl.json +16 -19
- package/front_end/third_party/lighthouse/locales/pt-PT.json +37 -40
- package/front_end/third_party/lighthouse/locales/pt.json +16 -19
- package/front_end/third_party/lighthouse/locales/ro.json +0 -3
- package/front_end/third_party/lighthouse/locales/ru.json +16 -19
- package/front_end/third_party/lighthouse/locales/sk.json +0 -3
- package/front_end/third_party/lighthouse/locales/sl.json +0 -3
- package/front_end/third_party/lighthouse/locales/sr-Latn.json +16 -19
- package/front_end/third_party/lighthouse/locales/sr.json +16 -19
- package/front_end/third_party/lighthouse/locales/sv.json +17 -20
- package/front_end/third_party/lighthouse/locales/ta.json +0 -3
- package/front_end/third_party/lighthouse/locales/te.json +0 -3
- package/front_end/third_party/lighthouse/locales/th.json +0 -3
- package/front_end/third_party/lighthouse/locales/tr.json +0 -3
- package/front_end/third_party/lighthouse/locales/uk.json +17 -20
- package/front_end/third_party/lighthouse/locales/vi.json +0 -3
- package/front_end/third_party/lighthouse/locales/zh-HK.json +0 -3
- package/front_end/third_party/lighthouse/locales/zh-TW.json +0 -3
- package/front_end/third_party/lighthouse/locales/zh.json +0 -3
- package/front_end/third_party/lighthouse/report/bundle.d.ts +63 -61
- package/front_end/third_party/lighthouse/report/bundle.js +36 -7
- package/front_end/third_party/lighthouse/report-assets/report-generator.js +205 -192
- package/front_end/ui/components/linear_memory_inspector/LinearMemoryValueInterpreter.ts +0 -8
- package/front_end/ui/components/text_editor/config.ts +8 -7
- package/front_end/ui/components/text_editor/javascript.ts +28 -10
- package/front_end/ui/components/text_editor/theme.ts +1 -0
- package/front_end/ui/legacy/InspectorView.ts +10 -0
- package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts +2 -3
- package/front_end/ui/legacy/components/object_ui/objectPropertiesSection.css +0 -1
- package/front_end/ui/legacy/components/object_ui/object_ui-legacy.ts +0 -8
- package/front_end/ui/legacy/components/object_ui/object_ui.ts +0 -4
- package/front_end/ui/legacy/components/source_frame/SourceFrame.ts +40 -29
- package/front_end/ui/legacy/inspectorSyntaxHighlight.css +0 -211
- package/front_end/ui/legacy/legacy-legacy.ts +0 -6
- package/front_end/ui/legacy/legacy.ts +0 -2
- package/front_end/ui/legacy/tabbedPane.css +1 -1
- package/front_end/ui/legacy/themeColors.css +1 -1
- package/package.json +1 -1
- package/scripts/check_gn.js +1 -1
- package/scripts/eslint_rules/lib/l10n_filename_matches.js +4 -4
- package/scripts/eslint_rules/tests/l10n_filename_matches_test.js +4 -0
- package/scripts/hosted_mode/server.js +17 -2
- package/front_end/entrypoints/inspector/inspector.json +0 -4
- package/front_end/entrypoints/node_app/node_app-meta.ts +0 -43
- package/front_end/entrypoints/node_app/node_app.js +0 -13
- package/front_end/entrypoints/node_app/node_app.json +0 -4
- package/front_end/entrypoints/node_main/node_main-meta.ts +0 -48
- package/front_end/entrypoints/node_main/node_main.ts +0 -11
- package/front_end/entrypoints/shell/shell-meta-files.ts +0 -22
- package/front_end/entrypoints/shell/shell.json +0 -5
- package/front_end/entrypoints/worker_app/worker_app.json +0 -4
- package/front_end/panels/lighthouse/module.json +0 -6
- package/front_end/third_party/lighthouse/report-assets/report.d.ts +0 -1
- package/front_end/third_party/lighthouse/report-assets/report.js +0 -233
- package/front_end/third_party/lighthouse/report-assets/standalone-template.html +0 -38
- package/front_end/ui/legacy/TextEditor.ts +0 -82
- package/front_end/ui/legacy/components/object_ui/JavaScriptAutocomplete.ts +0 -836
- package/front_end/ui/legacy/components/text_editor/CodeMirrorTextEditor.ts +0 -1676
- package/front_end/ui/legacy/components/text_editor/TextEditorAutocompleteController.ts +0 -586
- package/front_end/ui/legacy/components/text_editor/autocompleteTooltip.css +0 -20
- package/front_end/ui/legacy/components/text_editor/cm_modes.ts +0 -23
- package/front_end/ui/legacy/components/text_editor/cmdevtools.css +0 -995
- package/front_end/ui/legacy/components/text_editor/module.json +0 -7
- package/front_end/ui/legacy/components/text_editor/text_editor-legacy.ts +0 -33
- package/front_end/ui/legacy/components/text_editor/text_editor.ts +0 -13
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
// Copyright 2018 The Chromium Authors. All rights reserved.
|
|
2
|
+
// Use of this source code is governed by a BSD-style license that can be
|
|
3
|
+
// found in the LICENSE file.
|
|
4
|
+
import '../shell/shell.js';
|
|
5
|
+
import '../../panels/js_profiler/js_profiler-meta.js';
|
|
6
|
+
import type * as Sources from '../../panels/sources/sources.js';
|
|
7
|
+
import * as i18n from '../../core/i18n/i18n.js';
|
|
8
|
+
import * as UI from '../../ui/legacy/legacy.js';
|
|
9
|
+
import * as Common from '../../core/common/common.js';
|
|
10
|
+
import * as Root from '../../core/root/root.js';
|
|
11
|
+
import * as Main from '../main/main.js';
|
|
12
|
+
|
|
13
|
+
import {NodeMainImpl} from './NodeMain.js'; // eslint-disable-line rulesdir/es_modules_import
|
|
14
|
+
import {NodeConnectionsPanel} from './NodeConnectionsPanel.js'; // eslint-disable-line rulesdir/es_modules_import
|
|
15
|
+
|
|
16
|
+
const UIStrings = {
|
|
17
|
+
/**
|
|
18
|
+
*@description Text that refers to the network connection
|
|
19
|
+
*/
|
|
20
|
+
connection: 'Connection',
|
|
21
|
+
/**
|
|
22
|
+
*@description A tag of Node.js Connection Panel that can be searched in the command menu
|
|
23
|
+
*/
|
|
24
|
+
node: 'node',
|
|
25
|
+
/**
|
|
26
|
+
*@description Command for showing the Connection tool
|
|
27
|
+
*/
|
|
28
|
+
showConnection: 'Show Connection',
|
|
29
|
+
/**
|
|
30
|
+
*@description Title of the 'Node' tool in the Network Navigator View, which is part of the Sources tool
|
|
31
|
+
*/
|
|
32
|
+
networkTitle: 'Node',
|
|
33
|
+
/**
|
|
34
|
+
*@description Command for showing the 'Node' tool in the Network Navigator View, which is part of the Sources tool
|
|
35
|
+
*/
|
|
36
|
+
showNode: 'Node',
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
const str_ = i18n.i18n.registerUIStrings('entrypoints/node_app/node_app.ts', UIStrings);
|
|
40
|
+
const i18nLazyString = i18n.i18n.getLazilyComputedLocalizedString.bind(undefined, str_);
|
|
41
|
+
|
|
42
|
+
let loadedSourcesModule: (typeof Sources|undefined);
|
|
43
|
+
|
|
44
|
+
async function loadSourcesModule(): Promise<typeof Sources> {
|
|
45
|
+
if (!loadedSourcesModule) {
|
|
46
|
+
loadedSourcesModule = await import('../../panels/sources/sources.js');
|
|
47
|
+
}
|
|
48
|
+
return loadedSourcesModule;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
UI.ViewManager.registerViewExtension({
|
|
52
|
+
location: UI.ViewManager.ViewLocationValues.PANEL,
|
|
53
|
+
id: 'node-connection',
|
|
54
|
+
title: i18nLazyString(UIStrings.connection),
|
|
55
|
+
commandPrompt: i18nLazyString(UIStrings.showConnection),
|
|
56
|
+
order: 0,
|
|
57
|
+
async loadView() {
|
|
58
|
+
return NodeConnectionsPanel.instance();
|
|
59
|
+
},
|
|
60
|
+
tags: [i18nLazyString(UIStrings.node)],
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
UI.ViewManager.registerViewExtension({
|
|
64
|
+
location: UI.ViewManager.ViewLocationValues.NAVIGATOR_VIEW,
|
|
65
|
+
id: 'navigator-network',
|
|
66
|
+
title: i18nLazyString(UIStrings.networkTitle),
|
|
67
|
+
commandPrompt: i18nLazyString(UIStrings.showNode),
|
|
68
|
+
order: 2,
|
|
69
|
+
persistence: UI.ViewManager.ViewPersistence.PERMANENT,
|
|
70
|
+
async loadView() {
|
|
71
|
+
const Sources = await loadSourcesModule();
|
|
72
|
+
return Sources.SourcesNavigator.NetworkNavigatorView.instance();
|
|
73
|
+
},
|
|
74
|
+
});
|
|
75
|
+
|
|
76
|
+
const runtimeInstance = Root.Runtime.Runtime.instance({forceNew: true, moduleDescriptors: []});
|
|
77
|
+
// @ts-ignore Exposed for legacy layout tests
|
|
78
|
+
self.runtime = runtimeInstance;
|
|
79
|
+
Common.Runnable.registerEarlyInitializationRunnable(NodeMainImpl.instance);
|
|
80
|
+
new Main.MainImpl.MainImpl();
|
|
81
|
+
Root.Runtime.appStartedPromiseCallback();
|
|
@@ -8,6 +8,23 @@ import '../../core/root/root-legacy.js';
|
|
|
8
8
|
import '../../core/platform/platform.js';
|
|
9
9
|
import '../../core/dom_extension/dom_extension.js';
|
|
10
10
|
|
|
11
|
-
import '
|
|
11
|
+
import '../../panels/sources/sources-meta.js';
|
|
12
|
+
import '../../panels/profiler/profiler-meta.js';
|
|
13
|
+
import '../../panels/console/console-meta.js';
|
|
14
|
+
import '../../panels/coverage/coverage-meta.js';
|
|
15
|
+
import '../../panels/changes/changes-meta.js';
|
|
16
|
+
import '../../panels/input/input-meta.js';
|
|
17
|
+
import '../../ui/components/linear_memory_inspector/linear_memory_inspector-meta.js';
|
|
18
|
+
import '../../panels/settings/settings-meta.js';
|
|
19
|
+
import '../../panels/protocol_monitor/protocol_monitor-meta.js';
|
|
20
|
+
import '../../models/persistence/persistence-meta.js';
|
|
21
|
+
import '../../models/logs/logs-meta.js';
|
|
22
|
+
import '../main/main-meta.js';
|
|
23
|
+
import '../../ui/legacy/components/perf_ui/perf_ui-meta.js';
|
|
24
|
+
import '../../ui/legacy/components/quick_open/quick_open-meta.js';
|
|
25
|
+
import '../../core/sdk/sdk-meta.js';
|
|
26
|
+
import '../../ui/legacy/components/source_frame/source_frame-meta.js';
|
|
27
|
+
import '../../panels/console_counters/console_counters-meta.js';
|
|
28
|
+
import '../../ui/legacy/components/object_ui/object_ui-meta.js';
|
|
12
29
|
import '../main/main.js';
|
|
13
30
|
// We generate the descriptors in this file, which depend on the runtime.
|
|
@@ -13,6 +13,12 @@ import '../../panels/network/network-meta.js';
|
|
|
13
13
|
import '../../panels/application/application-meta.js';
|
|
14
14
|
import '../../panels/timeline/timeline-meta.js';
|
|
15
15
|
import './WorkerMain.js';
|
|
16
|
-
import * as Startup from '../startup/startup.js';
|
|
17
16
|
|
|
18
|
-
|
|
17
|
+
import * as Root from '../../core/root/root.js';
|
|
18
|
+
import * as Main from '../main/main.js';
|
|
19
|
+
|
|
20
|
+
const runtimeInstance = Root.Runtime.Runtime.instance({forceNew: true, moduleDescriptors: []});
|
|
21
|
+
// @ts-ignore Exposed for legacy layout tests
|
|
22
|
+
self.runtime = runtimeInstance;
|
|
23
|
+
new Main.MainImpl.MainImpl();
|
|
24
|
+
Root.Runtime.appStartedPromiseCallback();
|
|
@@ -1542,6 +1542,8 @@ export function registerCommands(inspectorBackend) {
|
|
|
1542
1542
|
PreflightInvalidAllowCredentials: 'PreflightInvalidAllowCredentials',
|
|
1543
1543
|
PreflightMissingAllowExternal: 'PreflightMissingAllowExternal',
|
|
1544
1544
|
PreflightInvalidAllowExternal: 'PreflightInvalidAllowExternal',
|
|
1545
|
+
PreflightMissingAllowPrivateNetwork: 'PreflightMissingAllowPrivateNetwork',
|
|
1546
|
+
PreflightInvalidAllowPrivateNetwork: 'PreflightInvalidAllowPrivateNetwork',
|
|
1545
1547
|
InvalidAllowMethodsPreflightResponse: 'InvalidAllowMethodsPreflightResponse',
|
|
1546
1548
|
InvalidAllowHeadersPreflightResponse: 'InvalidAllowHeadersPreflightResponse',
|
|
1547
1549
|
MethodDisallowedByPreflightResponse: 'MethodDisallowedByPreflightResponse',
|
|
@@ -2203,6 +2205,7 @@ export function registerCommands(inspectorBackend) {
|
|
|
2203
2205
|
ContentWebUSB: 'ContentWebUSB',
|
|
2204
2206
|
ContentMediaSession: 'ContentMediaSession',
|
|
2205
2207
|
ContentMediaSessionService: 'ContentMediaSessionService',
|
|
2208
|
+
ContentScreenReader: 'ContentScreenReader',
|
|
2206
2209
|
EmbedderPopupBlockerTabHelper: 'EmbedderPopupBlockerTabHelper',
|
|
2207
2210
|
EmbedderSafeBrowsingTriggeredPopupBlocker: 'EmbedderSafeBrowsingTriggeredPopupBlocker',
|
|
2208
2211
|
EmbedderSafeBrowsingThreatDetails: 'EmbedderSafeBrowsingThreatDetails',
|
|
@@ -2686,7 +2689,8 @@ export function registerCommands(inspectorBackend) {
|
|
|
2686
2689
|
[
|
|
2687
2690
|
{'name': 'disposeOnDetach', 'type': 'boolean', 'optional': true},
|
|
2688
2691
|
{'name': 'proxyServer', 'type': 'string', 'optional': true},
|
|
2689
|
-
{'name': 'proxyBypassList', 'type': 'string', 'optional': true}
|
|
2692
|
+
{'name': 'proxyBypassList', 'type': 'string', 'optional': true},
|
|
2693
|
+
{'name': 'originsWithUniversalNetworkAccess', 'type': 'object', 'optional': true}
|
|
2690
2694
|
],
|
|
2691
2695
|
['browserContextId']);
|
|
2692
2696
|
inspectorBackend.registerCommand('Target.getBrowserContexts', [], ['browserContextIds']);
|
|
@@ -7174,6 +7174,8 @@ declare namespace Protocol {
|
|
|
7174
7174
|
PreflightInvalidAllowCredentials = 'PreflightInvalidAllowCredentials',
|
|
7175
7175
|
PreflightMissingAllowExternal = 'PreflightMissingAllowExternal',
|
|
7176
7176
|
PreflightInvalidAllowExternal = 'PreflightInvalidAllowExternal',
|
|
7177
|
+
PreflightMissingAllowPrivateNetwork = 'PreflightMissingAllowPrivateNetwork',
|
|
7178
|
+
PreflightInvalidAllowPrivateNetwork = 'PreflightInvalidAllowPrivateNetwork',
|
|
7177
7179
|
InvalidAllowMethodsPreflightResponse = 'InvalidAllowMethodsPreflightResponse',
|
|
7178
7180
|
InvalidAllowHeadersPreflightResponse = 'InvalidAllowHeadersPreflightResponse',
|
|
7179
7181
|
MethodDisallowedByPreflightResponse = 'MethodDisallowedByPreflightResponse',
|
|
@@ -10442,6 +10444,10 @@ declare namespace Protocol {
|
|
|
10442
10444
|
* The fantasy font-family.
|
|
10443
10445
|
*/
|
|
10444
10446
|
fantasy?: string;
|
|
10447
|
+
/**
|
|
10448
|
+
* The pictograph font-family.
|
|
10449
|
+
*/
|
|
10450
|
+
pictograph?: string;
|
|
10445
10451
|
}
|
|
10446
10452
|
|
|
10447
10453
|
/**
|
|
@@ -10649,6 +10655,7 @@ declare namespace Protocol {
|
|
|
10649
10655
|
ContentWebUSB = 'ContentWebUSB',
|
|
10650
10656
|
ContentMediaSession = 'ContentMediaSession',
|
|
10651
10657
|
ContentMediaSessionService = 'ContentMediaSessionService',
|
|
10658
|
+
ContentScreenReader = 'ContentScreenReader',
|
|
10652
10659
|
EmbedderPopupBlockerTabHelper = 'EmbedderPopupBlockerTabHelper',
|
|
10653
10660
|
EmbedderSafeBrowsingTriggeredPopupBlocker = 'EmbedderSafeBrowsingTriggeredPopupBlocker',
|
|
10654
10661
|
EmbedderSafeBrowsingThreatDetails = 'EmbedderSafeBrowsingThreatDetails',
|
|
@@ -12892,6 +12899,11 @@ declare namespace Protocol {
|
|
|
12892
12899
|
* Proxy bypass list, similar to the one passed to --proxy-bypass-list
|
|
12893
12900
|
*/
|
|
12894
12901
|
proxyBypassList?: string;
|
|
12902
|
+
/**
|
|
12903
|
+
* An optional list of origins to grant unlimited cross-origin access to.
|
|
12904
|
+
* Parts of the URL other than those constituting origin are ignored.
|
|
12905
|
+
*/
|
|
12906
|
+
originsWithUniversalNetworkAccess?: string[];
|
|
12895
12907
|
}
|
|
12896
12908
|
|
|
12897
12909
|
export interface CreateBrowserContextResponse extends ProtocolResponseWithError {
|
|
@@ -8,7 +8,6 @@ import '../../models/workspace/workspace-legacy.js';
|
|
|
8
8
|
import '../../ui/legacy/components/source_frame/source_frame-legacy.js';
|
|
9
9
|
import '../../models/text_utils/text_utils-legacy.js';
|
|
10
10
|
import '../../ui/legacy/components/object_ui/object_ui-legacy.js';
|
|
11
|
-
import '../../ui/legacy/components/text_editor/text_editor-legacy.js';
|
|
12
11
|
import '../../panels/browser_debugger/browser_debugger-legacy.js';
|
|
13
12
|
|
|
14
13
|
import './SourcesTestRunner.js';
|
|
@@ -329,7 +329,6 @@ class Binding {
|
|
|
329
329
|
readonly #project: ContentProviderBasedProject;
|
|
330
330
|
readonly #url: string;
|
|
331
331
|
referringSourceMaps: SDK.SourceMap.SourceMap[];
|
|
332
|
-
readonly #activeSourceMap?: SDK.SourceMap.SourceMap|null;
|
|
333
332
|
uiSourceCode: Workspace.UISourceCode.UISourceCode|null;
|
|
334
333
|
|
|
335
334
|
constructor(project: ContentProviderBasedProject, url: string) {
|
|
@@ -614,15 +614,12 @@ class SourceScopeRemoteObject extends SDK.RemoteObject.RemoteObjectImpl {
|
|
|
614
614
|
variables: Chrome.DevTools.Variable[];
|
|
615
615
|
#callFrame: SDK.DebuggerModel.CallFrame;
|
|
616
616
|
#plugin: DebuggerLanguagePlugin;
|
|
617
|
-
readonly #location: Chrome.DevTools.RawLocation;
|
|
618
617
|
|
|
619
|
-
constructor(
|
|
620
|
-
callFrame: SDK.DebuggerModel.CallFrame, plugin: DebuggerLanguagePlugin, location: Chrome.DevTools.RawLocation) {
|
|
618
|
+
constructor(callFrame: SDK.DebuggerModel.CallFrame, plugin: DebuggerLanguagePlugin) {
|
|
621
619
|
super(callFrame.debuggerModel.runtimeModel(), undefined, 'object', undefined, null);
|
|
622
620
|
this.variables = [];
|
|
623
621
|
this.#callFrame = callFrame;
|
|
624
622
|
this.#plugin = plugin;
|
|
625
|
-
this.#location = location;
|
|
626
623
|
}
|
|
627
624
|
|
|
628
625
|
async doGetProperties(ownProperties: boolean, accessorPropertiesOnly: boolean, _generatePreview: boolean):
|
|
@@ -691,18 +688,16 @@ export class SourceScope implements SDK.DebuggerModel.ScopeChainEntry {
|
|
|
691
688
|
readonly #typeNameInternal: string;
|
|
692
689
|
readonly #iconInternal: string|undefined;
|
|
693
690
|
readonly #objectInternal: SourceScopeRemoteObject;
|
|
694
|
-
readonly #nameInternal: string;
|
|
695
691
|
readonly #startLocationInternal: SDK.DebuggerModel.Location|null;
|
|
696
692
|
readonly #endLocationInternal: SDK.DebuggerModel.Location|null;
|
|
697
693
|
constructor(
|
|
698
694
|
callFrame: SDK.DebuggerModel.CallFrame, type: string, typeName: string, icon: string|undefined,
|
|
699
|
-
plugin: DebuggerLanguagePlugin
|
|
695
|
+
plugin: DebuggerLanguagePlugin) {
|
|
700
696
|
this.#callFrameInternal = callFrame;
|
|
701
697
|
this.#typeInternal = type;
|
|
702
698
|
this.#typeNameInternal = typeName;
|
|
703
699
|
this.#iconInternal = icon;
|
|
704
|
-
this.#objectInternal = new SourceScopeRemoteObject(callFrame, plugin
|
|
705
|
-
this.#nameInternal = type;
|
|
700
|
+
this.#objectInternal = new SourceScopeRemoteObject(callFrame, plugin);
|
|
706
701
|
this.#startLocationInternal = null;
|
|
707
702
|
this.#endLocationInternal = null;
|
|
708
703
|
}
|
|
@@ -1154,7 +1149,7 @@ export class DebuggerLanguagePluginManager implements
|
|
|
1154
1149
|
let scope = scopes.get(variable.scope);
|
|
1155
1150
|
if (!scope) {
|
|
1156
1151
|
const {type, typeName, icon} = await plugin.getScopeInfo(variable.scope);
|
|
1157
|
-
scope = new SourceScope(callFrame, type, typeName, icon, plugin
|
|
1152
|
+
scope = new SourceScope(callFrame, type, typeName, icon, plugin);
|
|
1158
1153
|
scopes.set(variable.scope, scope);
|
|
1159
1154
|
}
|
|
1160
1155
|
scope.object().variables.push(variable);
|
|
@@ -1292,11 +1287,9 @@ export class DebuggerLanguagePluginManager implements
|
|
|
1292
1287
|
}
|
|
1293
1288
|
|
|
1294
1289
|
class ModelData {
|
|
1295
|
-
readonly #debuggerModel: SDK.DebuggerModel.DebuggerModel;
|
|
1296
1290
|
project: ContentProviderBasedProject;
|
|
1297
1291
|
readonly uiSourceCodeToScripts: Map<Workspace.UISourceCode.UISourceCode, SDK.Script.Script[]>;
|
|
1298
1292
|
constructor(debuggerModel: SDK.DebuggerModel.DebuggerModel, workspace: Workspace.Workspace.WorkspaceImpl) {
|
|
1299
|
-
this.#debuggerModel = debuggerModel;
|
|
1300
1293
|
this.project = new ContentProviderBasedProject(
|
|
1301
1294
|
workspace, 'language_plugins::' + debuggerModel.target().id(), Workspace.Workspace.projectTypes.Network, '',
|
|
1302
1295
|
false /* isServiceProject */);
|
|
@@ -341,7 +341,7 @@ export class DebuggerWorkspaceBinding implements SDK.TargetManager.SDKModelObser
|
|
|
341
341
|
modelData.callFrameLocations.clear();
|
|
342
342
|
}
|
|
343
343
|
|
|
344
|
-
|
|
344
|
+
resetForTest(target: SDK.Target.Target): void {
|
|
345
345
|
const debuggerModel = (target.model(SDK.DebuggerModel.DebuggerModel) as SDK.DebuggerModel.DebuggerModel);
|
|
346
346
|
const modelData = this.#debuggerModelToData.get(debuggerModel);
|
|
347
347
|
if (modelData) {
|
|
@@ -149,7 +149,7 @@ export class ResourceMapping implements SDK.TargetManager.SDKModelObserver<SDK.R
|
|
|
149
149
|
uiLocation.uiSourceCode.url(), uiLocation.lineNumber, uiLocation.columnNumber);
|
|
150
150
|
}
|
|
151
151
|
|
|
152
|
-
|
|
152
|
+
resetForTest(target: SDK.Target.Target): void {
|
|
153
153
|
const resourceTreeModel = target.model(SDK.ResourceTreeModel.ResourceTreeModel);
|
|
154
154
|
const info = resourceTreeModel ? this.#modelToInfo.get(resourceTreeModel) : null;
|
|
155
155
|
if (info) {
|
|
@@ -165,7 +165,6 @@ class Binding {
|
|
|
165
165
|
readonly #project: ContentProviderBasedProject;
|
|
166
166
|
readonly #url: string;
|
|
167
167
|
referringSourceMaps: SDK.SourceMap.TextSourceMap[];
|
|
168
|
-
readonly #activeSourceMap?: SDK.SourceMap.TextSourceMap|null;
|
|
169
168
|
uiSourceCode: Workspace.UISourceCode.UISourceCode|null;
|
|
170
169
|
|
|
171
170
|
constructor(project: ContentProviderBasedProject, url: string) {
|
|
@@ -99,7 +99,6 @@ export class DeviceModeModel extends Common.ObjectWrapper.ObjectWrapper<EventTyp
|
|
|
99
99
|
#touchMobile: boolean;
|
|
100
100
|
#emulationModel: SDK.EmulationModel.EmulationModel|null;
|
|
101
101
|
#onModelAvailable: (() => void)|null;
|
|
102
|
-
#emulatedPageSize?: UI.Geometry.Size;
|
|
103
102
|
#outlineRectInternal?: Rect;
|
|
104
103
|
|
|
105
104
|
private constructor() {
|
|
@@ -622,7 +621,6 @@ export class DeviceModeModel extends Common.ObjectWrapper.ObjectWrapper<EventTyp
|
|
|
622
621
|
|
|
623
622
|
let pageWidth: 0|number = screenSize.width - insets.left - insets.right;
|
|
624
623
|
let pageHeight: 0|number = screenSize.height - insets.top - insets.bottom;
|
|
625
|
-
this.#emulatedPageSize = new UI.Geometry.Size(pageWidth, pageHeight);
|
|
626
624
|
|
|
627
625
|
const positionX = insets.left;
|
|
628
626
|
const positionY = insets.top;
|
|
@@ -171,24 +171,6 @@ export class FormatterWorkerPool {
|
|
|
171
171
|
}
|
|
172
172
|
}
|
|
173
173
|
|
|
174
|
-
findLastExpression(content: string): Promise<string|null> {
|
|
175
|
-
return this.runTask(FormatterActions.FormatterActions.FIND_LAST_EXPRESSION, {content}) as Promise<string|null>;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
findLastFunctionCall(content: string): Promise<{
|
|
179
|
-
baseExpression: string,
|
|
180
|
-
receiver: string,
|
|
181
|
-
argumentIndex: number,
|
|
182
|
-
functionName: string,
|
|
183
|
-
}|null> {
|
|
184
|
-
return this.runTask(FormatterActions.FormatterActions.FIND_LAST_FUNCTION_CALL, {content}) as Promise<{
|
|
185
|
-
baseExpression: string,
|
|
186
|
-
receiver: string,
|
|
187
|
-
argumentIndex: number,
|
|
188
|
-
functionName: string,
|
|
189
|
-
}|null>;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
174
|
argumentsList(content: string): Promise<string[]> {
|
|
193
175
|
return this.runTask(FormatterActions.FormatterActions.ARGUMENTS_LIST, {content}) as Promise<string[]>;
|
|
194
176
|
}
|
|
@@ -43,6 +43,8 @@ export enum IssueCode {
|
|
|
43
43
|
NoCorsRedirectModeNotFollow = 'CorsIssue::NoCorsRedirectModeNotFollow',
|
|
44
44
|
InvalidPrivateNetworkAccess = 'CorsIssue::InvalidPrivateNetworkAccess',
|
|
45
45
|
UnexpectedPrivateNetworkAccess = 'CorsIssue::UnexpectedPrivateNetworkAccess',
|
|
46
|
+
PreflightMissingAllowPrivateNetwork = 'CorsIssue::PreflightMissingAllowPrivateNetwork',
|
|
47
|
+
PreflightInvalidAllowPrivateNetwork = 'CorsIssue::PreflightInvalidAllowPrivateNetwork',
|
|
46
48
|
}
|
|
47
49
|
|
|
48
50
|
function getIssueCode(details: Protocol.Audits.CorsIssueDetails): IssueCode {
|
|
@@ -93,6 +95,10 @@ function getIssueCode(details: Protocol.Audits.CorsIssueDetails): IssueCode {
|
|
|
93
95
|
return IssueCode.InvalidPrivateNetworkAccess;
|
|
94
96
|
case Protocol.Network.CorsError.UnexpectedPrivateNetworkAccess:
|
|
95
97
|
return IssueCode.UnexpectedPrivateNetworkAccess;
|
|
98
|
+
case Protocol.Network.CorsError.PreflightMissingAllowPrivateNetwork:
|
|
99
|
+
return IssueCode.PreflightMissingAllowPrivateNetwork;
|
|
100
|
+
case Protocol.Network.CorsError.PreflightInvalidAllowPrivateNetwork:
|
|
101
|
+
return IssueCode.PreflightInvalidAllowPrivateNetwork;
|
|
96
102
|
}
|
|
97
103
|
}
|
|
98
104
|
|
|
@@ -225,6 +231,8 @@ export class CorsIssue extends Issue<IssueCode> {
|
|
|
225
231
|
case IssueCode.InvalidResponse:
|
|
226
232
|
case IssueCode.InvalidPrivateNetworkAccess:
|
|
227
233
|
case IssueCode.UnexpectedPrivateNetworkAccess:
|
|
234
|
+
case IssueCode.PreflightMissingAllowPrivateNetwork:
|
|
235
|
+
case IssueCode.PreflightInvalidAllowPrivateNetwork:
|
|
228
236
|
return null;
|
|
229
237
|
}
|
|
230
238
|
}
|
|
@@ -31,57 +31,11 @@
|
|
|
31
31
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
32
32
|
|
|
33
33
|
import type * as CodeMirrorModule from '../../third_party/codemirror/codemirror-legacy.js'; // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
34
|
+
import '../../third_party/codemirror/package/addon/runmode/runmode-standalone.js';
|
|
35
|
+
import '../../third_party/codemirror/package/mode/css/css.js';
|
|
34
36
|
|
|
35
|
-
import * as TextRange from './TextRange.js';
|
|
36
37
|
import type * as TextUtils from './TextUtils.js';
|
|
37
38
|
|
|
38
|
-
export function toPos(range: TextRange.TextRange): {
|
|
39
|
-
start: any,
|
|
40
|
-
end: any,
|
|
41
|
-
} {
|
|
42
|
-
return {
|
|
43
|
-
start: new CodeMirror.Pos(range.startLine, range.startColumn),
|
|
44
|
-
end: new CodeMirror.Pos(range.endLine, range.endColumn),
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
export function toRange(start: any, end: any): TextRange.TextRange {
|
|
49
|
-
return new TextRange.TextRange(start.line, start.ch, end.line, end.ch);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export function changeObjectToEditOperation(changeObject: any): {
|
|
53
|
-
oldRange: TextRange.TextRange,
|
|
54
|
-
newRange: TextRange.TextRange,
|
|
55
|
-
} {
|
|
56
|
-
const oldRange = toRange(changeObject.from, changeObject.to);
|
|
57
|
-
const newRange = oldRange.clone();
|
|
58
|
-
const linesAdded = changeObject.text.length;
|
|
59
|
-
if (linesAdded === 0) {
|
|
60
|
-
newRange.endLine = newRange.startLine;
|
|
61
|
-
newRange.endColumn = newRange.startColumn;
|
|
62
|
-
} else if (linesAdded === 1) {
|
|
63
|
-
newRange.endLine = newRange.startLine;
|
|
64
|
-
newRange.endColumn = newRange.startColumn + changeObject.text[0].length;
|
|
65
|
-
} else {
|
|
66
|
-
newRange.endLine = newRange.startLine + linesAdded - 1;
|
|
67
|
-
newRange.endColumn = changeObject.text[linesAdded - 1].length;
|
|
68
|
-
}
|
|
69
|
-
return {oldRange: oldRange, newRange: newRange};
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
export function pullLines(codeMirror: typeof CodeMirror, linesCount: number): string[] {
|
|
73
|
-
const lines: string[] = [];
|
|
74
|
-
// @ts-expect-error CodeMirror types do not specify eachLine.
|
|
75
|
-
codeMirror.eachLine(0, linesCount, onLineHandle);
|
|
76
|
-
return lines;
|
|
77
|
-
|
|
78
|
-
function onLineHandle(lineHandle: {
|
|
79
|
-
text: string,
|
|
80
|
-
}): void {
|
|
81
|
-
lines.push(lineHandle.text);
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
|
|
85
39
|
let tokenizerFactoryInstance: TokenizerFactory;
|
|
86
40
|
|
|
87
41
|
export type Tokenizer =
|
|
@@ -103,15 +57,16 @@ export class TokenizerFactory implements TextUtils.TokenizerFactory {
|
|
|
103
57
|
}
|
|
104
58
|
|
|
105
59
|
// https://crbug.com/1151919 * = CodeMirror.Mode
|
|
106
|
-
createTokenizer(mimeType: string
|
|
107
|
-
const cmMode =
|
|
60
|
+
createTokenizer(mimeType: string): Tokenizer {
|
|
61
|
+
const cmMode = CodeMirror.getMode({indentUnit: 2}, mimeType);
|
|
108
62
|
const state = CodeMirror.startState(cmMode);
|
|
109
63
|
|
|
110
64
|
function tokenize(
|
|
111
65
|
line: string, callback: (value: string, style: string|null, start: number, end: number) => void): void {
|
|
112
66
|
const stream = new CodeMirror.StringStream(line);
|
|
113
67
|
while (!stream.eol()) {
|
|
114
|
-
const style =
|
|
68
|
+
const style =
|
|
69
|
+
(cmMode.token as (stream: CodeMirror.StringStream, state: unknown) => string | null)(stream, state);
|
|
115
70
|
const value = stream.current();
|
|
116
71
|
callback(value, style, stream.start, stream.start + value.length);
|
|
117
72
|
stream.start = stream.pos;
|
|
@@ -29,7 +29,6 @@
|
|
|
29
29
|
*/
|
|
30
30
|
|
|
31
31
|
import * as Platform from '../../core/platform/platform.js';
|
|
32
|
-
import type * as CodeMirrorModule from '../../third_party/codemirror/codemirror-legacy.js'; // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
33
32
|
|
|
34
33
|
import {SearchMatch} from './ContentProvider.js';
|
|
35
34
|
import {Text} from './Text.js';
|
|
@@ -330,7 +329,7 @@ export class BalancedJSONTokenizer {
|
|
|
330
329
|
export interface TokenizerFactory {
|
|
331
330
|
// TODO(crbug.com/1172300) Ignored during the jsdoc to ts migration
|
|
332
331
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
333
|
-
createTokenizer(mimeType: string
|
|
332
|
+
createTokenizer(mimeType: string):
|
|
334
333
|
(arg0: string, arg1: (arg0: string, arg1: string|null, arg2: number, arg3: number) => void) => void;
|
|
335
334
|
}
|
|
336
335
|
|
|
@@ -48,10 +48,5 @@ TextUtils.isMinified = TextUtilsModule.TextUtils.isMinified;
|
|
|
48
48
|
|
|
49
49
|
TextUtils.CodeMirrorUtils = {};
|
|
50
50
|
|
|
51
|
-
TextUtils.CodeMirrorUtils.toPos = TextUtilsModule.CodeMirrorUtils.toPos;
|
|
52
|
-
TextUtils.CodeMirrorUtils.toRange = TextUtilsModule.CodeMirrorUtils.toRange;
|
|
53
|
-
TextUtils.CodeMirrorUtils.changeObjectToEditOperation = TextUtilsModule.CodeMirrorUtils.changeObjectToEditOperation;
|
|
54
|
-
TextUtils.CodeMirrorUtils.pullLines = TextUtilsModule.CodeMirrorUtils.pullLines;
|
|
55
|
-
|
|
56
51
|
/** @constructor */
|
|
57
52
|
TextUtils.CodeMirrorUtils.TokenizerFactory = TextUtilsModule.CodeMirrorUtils.TokenizerFactory;
|
|
@@ -107,7 +107,6 @@ export class AnimationTimeline extends UI.Widget.VBox implements SDK.TargetManag
|
|
|
107
107
|
#uiAnimations: AnimationUI[];
|
|
108
108
|
#groupBuffer: AnimationGroup[];
|
|
109
109
|
readonly #previewMap: Map<AnimationGroup, AnimationGroupPreviewUI>;
|
|
110
|
-
readonly #symbol: symbol;
|
|
111
110
|
readonly #animationsMap: Map<string, AnimationImpl>;
|
|
112
111
|
#timelineScrubberLine?: HTMLElement;
|
|
113
112
|
#pauseButton?: UI.Toolbar.ToolbarToggle;
|
|
@@ -143,7 +142,6 @@ export class AnimationTimeline extends UI.Widget.VBox implements SDK.TargetManag
|
|
|
143
142
|
this.#uiAnimations = [];
|
|
144
143
|
this.#groupBuffer = [];
|
|
145
144
|
this.#previewMap = new Map();
|
|
146
|
-
this.#symbol = Symbol('animationTimeline');
|
|
147
145
|
this.#animationsMap = new Map();
|
|
148
146
|
SDK.TargetManager.TargetManager.instance().addModelListener(
|
|
149
147
|
SDK.DOMModel.DOMModel, SDK.DOMModel.Events.NodeRemoved, this.nodeRemoved, this);
|
|
@@ -42,7 +42,6 @@ type CachedElement = {
|
|
|
42
42
|
export class AnimationUI {
|
|
43
43
|
#animationInternal: AnimationImpl;
|
|
44
44
|
#timeline: AnimationTimeline;
|
|
45
|
-
readonly #parentElement: Element;
|
|
46
45
|
#keyframes?: KeyframeStyle[];
|
|
47
46
|
#nameElement: HTMLElement;
|
|
48
47
|
readonly #svg: Element;
|
|
@@ -62,7 +61,6 @@ export class AnimationUI {
|
|
|
62
61
|
constructor(animation: AnimationImpl, timeline: AnimationTimeline, parentElement: Element) {
|
|
63
62
|
this.#animationInternal = animation;
|
|
64
63
|
this.#timeline = timeline;
|
|
65
|
-
this.#parentElement = parentElement;
|
|
66
64
|
|
|
67
65
|
const keyframesRule = this.#animationInternal.source().keyframesRule();
|
|
68
66
|
if (keyframesRule) {
|
|
@@ -281,10 +281,8 @@ export class ApplicationPanelSidebar extends UI.Widget.VBox implements SDK.Targe
|
|
|
281
281
|
this.cacheStorageListTreeElement = new ServiceWorkerCacheTreeElement(panel);
|
|
282
282
|
cacheTreeElement.appendChild(this.cacheStorageListTreeElement);
|
|
283
283
|
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
cacheTreeElement.appendChild(this.backForwardCacheListTreeElement);
|
|
287
|
-
}
|
|
284
|
+
this.backForwardCacheListTreeElement = new BackForwardCacheTreeElement(panel);
|
|
285
|
+
cacheTreeElement.appendChild(this.backForwardCacheListTreeElement);
|
|
288
286
|
|
|
289
287
|
if (Root.Runtime.experiments.isEnabled('backgroundServices')) {
|
|
290
288
|
const backgroundServiceSectionTitle = i18nString(UIStrings.backgroundServices);
|
|
@@ -541,6 +541,7 @@ export const NotRestoredReasonDescription = {
|
|
|
541
541
|
'ContentMediaSession': {name: i18nLazyString(UIStrings.contentMediaSession)},
|
|
542
542
|
'ContentMediaSessionService': {name: i18nLazyString(UIStrings.contentMediaSessionService)},
|
|
543
543
|
'ContentMediaPlay': {name: i18nLazyString(UIStrings.contentMediaPlay)},
|
|
544
|
+
'ContentScreenReader': {name: i18n.i18n.lockedLazyString('ContentScreenReader')},
|
|
544
545
|
'EmbedderPopupBlockerTabHelper': {name: i18n.i18n.lockedLazyString('EmbedderPopupBlockerTabHelper')},
|
|
545
546
|
'EmbedderSafeBrowsingTriggeredPopupBlocker':
|
|
546
547
|
{name: i18n.i18n.lockedLazyString('EmbedderSafeBrowsingTriggeredPopupBlocker')},
|
|
@@ -44,7 +44,6 @@ export interface GlobalStyleStats {
|
|
|
44
44
|
export class CSSOverviewModel extends SDK.SDKModel.SDKModel<void> {
|
|
45
45
|
readonly #runtimeAgent: ProtocolProxyApi.RuntimeApi;
|
|
46
46
|
readonly #cssAgent: ProtocolProxyApi.CSSApi;
|
|
47
|
-
readonly #domAgent: ProtocolProxyApi.DOMApi;
|
|
48
47
|
readonly #domSnapshotAgent: ProtocolProxyApi.DOMSnapshotApi;
|
|
49
48
|
readonly #overlayAgent: ProtocolProxyApi.OverlayApi;
|
|
50
49
|
|
|
@@ -53,7 +52,6 @@ export class CSSOverviewModel extends SDK.SDKModel.SDKModel<void> {
|
|
|
53
52
|
|
|
54
53
|
this.#runtimeAgent = target.runtimeAgent();
|
|
55
54
|
this.#cssAgent = target.cssAgent();
|
|
56
|
-
this.#domAgent = target.domAgent();
|
|
57
55
|
this.#domSnapshotAgent = target.domsnapshotAgent();
|
|
58
56
|
this.#overlayAgent = target.overlayAgent();
|
|
59
57
|
}
|
|
@@ -36,7 +36,6 @@ export class CSSOverviewPanel extends UI.Panel.Panel implements SDK.TargetManage
|
|
|
36
36
|
#mediaQueries!: Map<string, Protocol.CSS.CSSMedia[]>;
|
|
37
37
|
#unusedDeclarations!: Map<string, UnusedDeclaration[]>;
|
|
38
38
|
#elementCount!: number;
|
|
39
|
-
#cancelled?: boolean;
|
|
40
39
|
#globalStyleStats!: GlobalStyleStats;
|
|
41
40
|
#textColorContrastIssues!: Map<string, ContrastIssue[]>;
|
|
42
41
|
|
|
@@ -58,7 +57,6 @@ export class CSSOverviewPanel extends UI.Panel.Panel implements SDK.TargetManage
|
|
|
58
57
|
Host.userMetrics.actionTaken(Host.UserMetrics.Action.CaptureCssOverviewClicked);
|
|
59
58
|
this.startOverview();
|
|
60
59
|
}, this);
|
|
61
|
-
this.#controller.addEventListener(Events.RequestOverviewCancel, this.cancelOverview, this);
|
|
62
60
|
this.#controller.addEventListener(Events.OverviewCompleted, this.overviewCompleted, this);
|
|
63
61
|
this.#controller.addEventListener(Events.Reset, this.reset, this);
|
|
64
62
|
this.#controller.addEventListener(Events.RequestNodeHighlight, this.requestNodeHighlight, this);
|
|
@@ -102,7 +100,6 @@ export class CSSOverviewPanel extends UI.Panel.Panel implements SDK.TargetManage
|
|
|
102
100
|
this.#mediaQueries = new Map();
|
|
103
101
|
this.#unusedDeclarations = new Map();
|
|
104
102
|
this.#elementCount = 0;
|
|
105
|
-
this.#cancelled = false;
|
|
106
103
|
this.#globalStyleStats = {
|
|
107
104
|
styleRules: 0,
|
|
108
105
|
inlineStyles: 0,
|
|
@@ -223,10 +220,6 @@ export class CSSOverviewPanel extends UI.Panel.Panel implements SDK.TargetManage
|
|
|
223
220
|
return item[0].value;
|
|
224
221
|
}
|
|
225
222
|
|
|
226
|
-
private cancelOverview(): void {
|
|
227
|
-
this.#cancelled = true;
|
|
228
|
-
}
|
|
229
|
-
|
|
230
223
|
private overviewCompleted(): void {
|
|
231
224
|
this.renderOverviewCompletedView();
|
|
232
225
|
}
|
|
@@ -19,13 +19,11 @@ const UIStrings = {
|
|
|
19
19
|
const str_ = i18n.i18n.registerUIStrings('panels/css_overview/CSSOverviewProcessingView.ts', UIStrings);
|
|
20
20
|
const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
|
21
21
|
export class CSSOverviewProcessingView extends UI.Widget.Widget {
|
|
22
|
-
readonly #formatter: Intl.NumberFormat;
|
|
23
22
|
readonly #controller: OverviewController;
|
|
24
23
|
fragment?: UI.Fragment.Fragment;
|
|
25
24
|
constructor(controller: OverviewController) {
|
|
26
25
|
super();
|
|
27
26
|
|
|
28
|
-
this.#formatter = new Intl.NumberFormat('en-US');
|
|
29
27
|
this.#controller = controller;
|
|
30
28
|
this.render();
|
|
31
29
|
}
|
|
@@ -3,9 +3,7 @@
|
|
|
3
3
|
// found in the LICENSE file.
|
|
4
4
|
|
|
5
5
|
import * as Common from '../../core/common/common.js';
|
|
6
|
-
import * as Host from '../../core/host/host.js';
|
|
7
6
|
import * as i18n from '../../core/i18n/i18n.js';
|
|
8
|
-
import * as Root from '../../core/root/root.js';
|
|
9
7
|
import * as Bindings from '../../models/bindings/bindings.js';
|
|
10
8
|
import * as ColorPicker from '../../ui/legacy/components/color_picker/color_picker.js';
|
|
11
9
|
import * as InlineEditor from '../../ui/legacy/components/inline_editor/inline_editor.js';
|
|
@@ -55,9 +53,6 @@ export class BezierPopoverIcon {
|
|
|
55
53
|
}
|
|
56
54
|
|
|
57
55
|
private iconClick(event: Event): void {
|
|
58
|
-
if (Root.Runtime.experiments.isEnabled('fontEditor')) {
|
|
59
|
-
Host.userMetrics.cssEditorOpened('bezierEditor');
|
|
60
|
-
}
|
|
61
56
|
event.consume(true);
|
|
62
57
|
if (this.swatchPopoverHelper.isShowing()) {
|
|
63
58
|
this.swatchPopoverHelper.hide(true);
|
|
@@ -163,9 +158,6 @@ export class ColorSwatchPopoverIcon {
|
|
|
163
158
|
}
|
|
164
159
|
|
|
165
160
|
private iconClick(event: Event): void {
|
|
166
|
-
if (Root.Runtime.experiments.isEnabled('fontEditor')) {
|
|
167
|
-
Host.userMetrics.cssEditorOpened('colorPicker');
|
|
168
|
-
}
|
|
169
161
|
event.consume(true);
|
|
170
162
|
this.showPopover();
|
|
171
163
|
}
|
|
@@ -278,9 +270,6 @@ export class ShadowSwatchPopoverHelper {
|
|
|
278
270
|
}
|
|
279
271
|
|
|
280
272
|
private iconClick(event: Event): void {
|
|
281
|
-
if (Root.Runtime.experiments.isEnabled('fontEditor')) {
|
|
282
|
-
Host.userMetrics.cssEditorOpened('shadowEditor');
|
|
283
|
-
}
|
|
284
273
|
event.consume(true);
|
|
285
274
|
this.showPopover();
|
|
286
275
|
}
|
|
@@ -1616,7 +1616,6 @@ export class StylePropertiesSection {
|
|
|
1616
1616
|
|
|
1617
1617
|
private onFontEditorButtonClicked(): void {
|
|
1618
1618
|
if (this.fontEditorSectionManager && this.fontEditorButton) {
|
|
1619
|
-
Host.userMetrics.cssEditorOpened('fontEditor');
|
|
1620
1619
|
this.fontEditorSectionManager.showPopover(this.fontEditorButton.element, this.parentPane);
|
|
1621
1620
|
}
|
|
1622
1621
|
}
|