chrome-devtools-frontend 1.0.945884 → 1.0.948295
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 +1 -20
- package/config/gni/devtools_grd_files.gni +9 -48
- package/config/gni/devtools_image_files.gni +1 -0
- package/front_end/.eslintrc.js +6 -1
- package/front_end/Images/src/circled_backslash_icon.svg +3 -0
- 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 +1 -23
- package/front_end/core/i18n/locales/en-US.json +41 -41
- package/front_end/core/i18n/locales/en-XL.json +41 -41
- package/front_end/core/platform/platform.ts +0 -2
- package/front_end/core/platform/string-utilities.ts +14 -1
- package/front_end/core/platform/utilities.ts +0 -29
- package/front_end/core/root/Runtime.ts +4 -212
- 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 +0 -25
- 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-legacy.ts +0 -3
- package/front_end/devtools_compatibility.js +1 -8
- package/front_end/entrypoints/devtools_app/{devtools_app-meta-files.ts → devtools_app.ts} +9 -2
- 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/heap_snapshot_worker/HeapSnapshot.ts +2 -1
- package/front_end/entrypoints/inspector/{inspector.js → inspector.ts} +0 -3
- package/front_end/entrypoints/js_app/{JsMain.ts → js_app.ts} +5 -1
- package/front_end/entrypoints/main/MainImpl.ts +0 -7
- package/front_end/entrypoints/ndb_app/{ndb_app.js → ndb_app.ts} +3 -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 +79 -0
- package/front_end/entrypoints/shell/{shell-meta-files.ts → shell.ts} +7 -1
- package/front_end/entrypoints/worker_app/{worker_app.js → worker_app.ts} +6 -2
- package/front_end/generated/InspectorBackendCommands.js +5 -1
- package/front_end/generated/protocol.d.ts +12 -0
- package/front_end/legacy/legacy-defs.d.ts +0 -4
- package/front_end/legacy_test_runner/sources_test_runner/sources_test_runner.js +0 -1
- package/front_end/legacy_test_runner/test_runner/TestRunner.js +35 -59
- 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 +17 -9
- package/front_end/models/issues_manager/descriptions/{corsInsecurePrivateNetworkPreflight.md → corsPreflightAllowPrivateNetworkError.md} +1 -1
- 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/accessibility/AccessibilitySidebarView.ts +3 -1
- 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 +2 -5
- package/front_end/panels/application/BackForwardCacheView.ts +150 -58
- package/front_end/panels/application/ResourcesPanel.ts +0 -42
- package/front_end/panels/application/application-legacy.ts +0 -3
- package/front_end/panels/application/application-meta.ts +0 -13
- package/front_end/panels/application/backForwardCacheView.css +44 -6
- package/front_end/panels/application/components/FrameDetailsView.ts +3 -3
- package/front_end/panels/application/components/OriginTrialTreeView.ts +3 -3
- package/front_end/panels/application/components/StackTrace.ts +1 -1
- package/front_end/panels/coverage/CoverageView.ts +1 -1
- 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/css_overview/components/cssOverviewStartView.css +1 -0
- package/front_end/panels/css_overview/cssOverviewCompletedView.css +1 -1
- package/front_end/panels/developer_resources/DeveloperResourcesView.ts +2 -1
- package/front_end/panels/elements/ColorSwatchPopoverIcon.ts +0 -11
- package/front_end/panels/elements/ElementsPanel.ts +9 -1
- package/front_end/panels/elements/ElementsTreeElement.ts +1 -1
- package/front_end/panels/elements/StylesSidebarPane.ts +0 -1
- package/front_end/panels/elements/components/ElementsBreadcrumbs.ts +1 -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 +18 -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/NetworkWaterfallColumn.ts +2 -0
- package/front_end/panels/network/networkConfigView.css +5 -0
- package/front_end/panels/profiler/CPUProfileFlameChart.ts +3 -1
- package/front_end/panels/profiler/ProfileDataGrid.ts +2 -1
- package/front_end/panels/profiler/profilesPanel.css +1 -1
- package/front_end/panels/search/SearchView.ts +24 -4
- package/front_end/panels/settings/components/SyncSection.ts +2 -2
- package/front_end/panels/settings/emulation/components/UserAgentClientHintsForm.ts +52 -50
- 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 +3 -1
- 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/diff_view/DiffView.ts +4 -4
- package/front_end/ui/components/helpers/component-server-setup.ts +1 -12
- package/front_end/ui/components/helpers/helpers.ts +0 -2
- package/front_end/ui/components/icon_button/IconButton.ts +1 -1
- package/front_end/ui/components/issue_counter/IssueCounter.ts +2 -2
- package/front_end/ui/components/linear_memory_inspector/LinearMemoryViewer.ts +3 -3
- package/front_end/ui/components/markdown_view/MarkdownView.ts +4 -4
- package/front_end/ui/components/panel_feedback/PreviewToggle.ts +98 -0
- package/front_end/ui/components/panel_feedback/panel_feedback.ts +1 -0
- package/front_end/ui/components/panel_feedback/previewToggle.css +24 -0
- package/front_end/ui/components/report_view/ReportView.ts +22 -0
- package/front_end/ui/components/report_view/reportSection.css +20 -0
- package/front_end/ui/components/request_link_icon/RequestLinkIcon.ts +1 -1
- package/front_end/ui/components/settings/SettingCheckbox.ts +2 -2
- package/front_end/ui/components/text_editor/config.ts +11 -9
- package/front_end/ui/components/text_editor/javascript.ts +34 -12
- package/front_end/ui/components/text_editor/theme.ts +1 -0
- package/front_end/ui/components/text_prompt/TextPrompt.ts +2 -2
- package/front_end/ui/legacy/GlassPane.ts +1 -1
- package/front_end/ui/legacy/InspectorView.ts +10 -0
- package/front_end/ui/legacy/SearchableView.ts +2 -1
- package/front_end/ui/legacy/Treeoutline.ts +1 -1
- package/front_end/ui/legacy/Widget.ts +1 -1
- package/front_end/ui/legacy/XWidget.ts +0 -5
- package/front_end/ui/legacy/components/inline_editor/CSSVarSwatch.ts +2 -2
- package/front_end/ui/legacy/components/inline_editor/ColorSwatch.ts +1 -1
- 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/front_end/ui/legacy/utils/append-style.ts +2 -13
- package/front_end/ui/legacy/utils/create-shadow-root-with-core-styles.ts +7 -5
- package/package.json +2 -4
- package/scripts/build/build_inspector_overlay.py +15 -1
- package/scripts/build/rjsmin.py +84 -115
- package/scripts/eslint_rules/lib/l10n_filename_matches.js +4 -4
- package/scripts/eslint_rules/lib/lit_html_no_attribute_quotes.js +101 -0
- package/scripts/eslint_rules/lib/no_only_eslint_tests.js +53 -0
- package/scripts/eslint_rules/tests/.eslintrc.js +14 -0
- package/scripts/eslint_rules/tests/l10n_filename_matches_test.js +4 -0
- package/scripts/eslint_rules/tests/lit_html_no_attribute_quotes_test.js +45 -0
- package/scripts/eslint_rules/tests/no_only_eslint_tests_test.js +94 -0
- package/scripts/hosted_mode/server.js +17 -2
- package/front_end/entrypoints/devtools_app/devtools_app.js +0 -8
- package/front_end/entrypoints/devtools_app/devtools_app.json +0 -6
- package/front_end/entrypoints/inspector/inspector.json +0 -4
- package/front_end/entrypoints/js_app/js_app.js +0 -9
- package/front_end/entrypoints/js_app/js_app.json +0 -4
- package/front_end/entrypoints/ndb_app/ndb_app.json +0 -5
- 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.js +0 -13
- package/front_end/entrypoints/shell/shell.json +0 -5
- package/front_end/entrypoints/startup/RuntimeInstantiator.ts +0 -95
- package/front_end/entrypoints/startup/startup.ts +0 -9
- 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/components/helpers/get-stylesheet.ts +0 -45
- 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
- package/scripts/build/build_release_applications.py +0 -216
- package/scripts/build/modular_build.py +0 -184
- package/scripts/check_gn.js +0 -119
- package/scripts/json_validator/module.schema.json +0 -19
- package/scripts/json_validator/validate_module_json.js +0 -44
|
@@ -263,28 +263,3 @@ export enum Attributes {
|
|
|
263
263
|
Priority = 'priority',
|
|
264
264
|
PartitionKey = 'partitionKey',
|
|
265
265
|
}
|
|
266
|
-
|
|
267
|
-
/**
|
|
268
|
-
* A `CookieReference` uniquely identifies a cookie by the triple (#name,domain,#path). Additionally, a context may be
|
|
269
|
-
* included to make it clear which site under Application>Cookies should be opened when revealing a `CookieReference`.
|
|
270
|
-
*/
|
|
271
|
-
export class CookieReference {
|
|
272
|
-
readonly #name: string;
|
|
273
|
-
readonly #domainInternal: string;
|
|
274
|
-
readonly #path: string;
|
|
275
|
-
readonly #contextUrlInternal: string|undefined;
|
|
276
|
-
constructor(name: string, domain: string, path: string, contextUrl: string|undefined) {
|
|
277
|
-
this.#name = name;
|
|
278
|
-
this.#domainInternal = domain;
|
|
279
|
-
this.#path = path;
|
|
280
|
-
this.#contextUrlInternal = contextUrl;
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
domain(): string {
|
|
284
|
-
return this.#domainInternal;
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
contextUrl(): string|undefined {
|
|
288
|
-
return this.#contextUrlInternal;
|
|
289
|
-
}
|
|
290
|
-
}
|
|
@@ -15,7 +15,6 @@ import {SDKModel} from './SDKModel.js';
|
|
|
15
15
|
|
|
16
16
|
export class EmulationModel extends SDKModel<void> {
|
|
17
17
|
readonly #emulationAgent: ProtocolProxyApi.EmulationApi;
|
|
18
|
-
readonly #pageAgent: ProtocolProxyApi.PageApi;
|
|
19
18
|
readonly #deviceOrientationAgent: ProtocolProxyApi.DeviceOrientationApi;
|
|
20
19
|
#cssModel: CSSModel|null;
|
|
21
20
|
readonly #overlayModelInternal: OverlayModel|null;
|
|
@@ -31,7 +30,6 @@ export class EmulationModel extends SDKModel<void> {
|
|
|
31
30
|
constructor(target: Target) {
|
|
32
31
|
super(target);
|
|
33
32
|
this.#emulationAgent = target.emulationAgent();
|
|
34
|
-
this.#pageAgent = target.pageAgent();
|
|
35
33
|
this.#deviceOrientationAgent = target.deviceOrientationAgent();
|
|
36
34
|
this.#cssModel = target.model(CSSModel);
|
|
37
35
|
this.#overlayModelInternal = target.model(OverlayModel);
|
|
@@ -15,7 +15,6 @@ import {SDKModel} from './SDKModel.js';
|
|
|
15
15
|
export class HeapProfilerModel extends SDKModel<EventTypes> {
|
|
16
16
|
#enabled: boolean;
|
|
17
17
|
readonly #heapProfilerAgent: ProtocolProxyApi.HeapProfilerApi;
|
|
18
|
-
readonly #memoryAgent: ProtocolProxyApi.MemoryApi;
|
|
19
18
|
readonly #runtimeModelInternal: RuntimeModel;
|
|
20
19
|
#samplingProfilerDepth: number;
|
|
21
20
|
|
|
@@ -24,7 +23,6 @@ export class HeapProfilerModel extends SDKModel<EventTypes> {
|
|
|
24
23
|
target.registerHeapProfilerDispatcher(new HeapProfilerDispatcher(this));
|
|
25
24
|
this.#enabled = false;
|
|
26
25
|
this.#heapProfilerAgent = target.heapProfilerAgent();
|
|
27
|
-
this.#memoryAgent = target.memoryAgent();
|
|
28
26
|
this.#runtimeModelInternal = (target.model(RuntimeModel) as RuntimeModel);
|
|
29
27
|
this.#samplingProfilerDepth = 0;
|
|
30
28
|
}
|
|
@@ -1575,7 +1575,6 @@ class ExtraInfoBuilder {
|
|
|
1575
1575
|
#requestExtraInfos: (ExtraRequestInfo|null)[];
|
|
1576
1576
|
#responseExtraInfos: (ExtraResponseInfo|null)[];
|
|
1577
1577
|
#finishedInternal: boolean;
|
|
1578
|
-
#hasExtraInfo: boolean;
|
|
1579
1578
|
#webBundleInfo: WebBundleInfo|null;
|
|
1580
1579
|
#webBundleInnerRequestInfo: WebBundleInnerRequestInfo|null;
|
|
1581
1580
|
|
|
@@ -1584,7 +1583,6 @@ class ExtraInfoBuilder {
|
|
|
1584
1583
|
this.#requestExtraInfos = [];
|
|
1585
1584
|
this.#responseExtraInfos = [];
|
|
1586
1585
|
this.#finishedInternal = false;
|
|
1587
|
-
this.#hasExtraInfo = false;
|
|
1588
1586
|
this.#webBundleInfo = null;
|
|
1589
1587
|
this.#webBundleInnerRequestInfo = null;
|
|
1590
1588
|
}
|
|
@@ -1595,7 +1593,6 @@ class ExtraInfoBuilder {
|
|
|
1595
1593
|
}
|
|
1596
1594
|
|
|
1597
1595
|
addRequestExtraInfo(info: ExtraRequestInfo): void {
|
|
1598
|
-
this.#hasExtraInfo = true;
|
|
1599
1596
|
this.#requestExtraInfos.push(info);
|
|
1600
1597
|
this.sync(this.#requestExtraInfos.length - 1);
|
|
1601
1598
|
}
|
|
@@ -52,7 +52,6 @@ export class Resource implements TextUtils.ContentProvider.ContentProvider {
|
|
|
52
52
|
#lastModifiedInternal: Date|null;
|
|
53
53
|
readonly #contentSizeInternal: number|null;
|
|
54
54
|
#contentInternal!: string|null;
|
|
55
|
-
#contentLoadError!: string|null;
|
|
56
55
|
#contentEncodedInternal!: boolean;
|
|
57
56
|
readonly #pendingContentCallbacks: ((arg0: Object|null) => void)[];
|
|
58
57
|
#parsedURLInternal?: Common.ParsedURL.ParsedURL;
|
|
@@ -245,12 +244,10 @@ export class Resource implements TextUtils.ContentProvider.ContentProvider {
|
|
|
245
244
|
{frameId: this.frameId as Protocol.Page.FrameId, url: this.url});
|
|
246
245
|
const protocolError = response.getError();
|
|
247
246
|
if (protocolError) {
|
|
248
|
-
this.#contentLoadError = protocolError;
|
|
249
247
|
this.#contentInternal = null;
|
|
250
248
|
loadResult = {content: null, error: protocolError, isEncoded: false};
|
|
251
249
|
} else {
|
|
252
250
|
this.#contentInternal = response.content;
|
|
253
|
-
this.#contentLoadError = null;
|
|
254
251
|
loadResult = {content: response.content, isEncoded: response.base64Encoded};
|
|
255
252
|
}
|
|
256
253
|
this.#contentEncodedInternal = response.base64Encoded;
|
|
@@ -604,7 +604,6 @@ export class ResourceTreeFrame {
|
|
|
604
604
|
#urlInternal: string;
|
|
605
605
|
#domainAndRegistryInternal: string;
|
|
606
606
|
#securityOriginInternal: string|null;
|
|
607
|
-
#mimeType: string|null;
|
|
608
607
|
#unreachableUrlInternal: string;
|
|
609
608
|
#adFrameStatusInternal?: Protocol.Page.AdFrameStatus;
|
|
610
609
|
#secureContextType: Protocol.Page.SecureContextType|null;
|
|
@@ -632,7 +631,6 @@ export class ResourceTreeFrame {
|
|
|
632
631
|
this.#urlInternal = (payload && payload.url) || '';
|
|
633
632
|
this.#domainAndRegistryInternal = (payload && payload.domainAndRegistry) || '';
|
|
634
633
|
this.#securityOriginInternal = payload && payload.securityOrigin;
|
|
635
|
-
this.#mimeType = payload && payload.mimeType;
|
|
636
634
|
this.#unreachableUrlInternal = (payload && payload.unreachableUrl) || '';
|
|
637
635
|
this.#adFrameStatusInternal = payload?.adFrameStatus;
|
|
638
636
|
this.#secureContextType = payload && payload.secureContextType;
|
|
@@ -685,7 +683,6 @@ export class ResourceTreeFrame {
|
|
|
685
683
|
this.#urlInternal = framePayload.url;
|
|
686
684
|
this.#domainAndRegistryInternal = framePayload.domainAndRegistry;
|
|
687
685
|
this.#securityOriginInternal = framePayload.securityOrigin;
|
|
688
|
-
this.#mimeType = framePayload.mimeType;
|
|
689
686
|
this.#unreachableUrlInternal = framePayload.unreachableUrl || '';
|
|
690
687
|
this.#adFrameStatusInternal = framePayload?.adFrameStatus;
|
|
691
688
|
this.#secureContextType = framePayload.secureContextType;
|
|
@@ -98,7 +98,6 @@ const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
|
|
98
98
|
const i18nLazyString = i18n.i18n.getLazilyComputedLocalizedString.bind(undefined, str_);
|
|
99
99
|
|
|
100
100
|
export class ServiceWorkerManager extends SDKModel<EventTypes> {
|
|
101
|
-
readonly #lastAnonymousTargetId: number;
|
|
102
101
|
readonly #agent: ProtocolProxyApi.ServiceWorkerApi;
|
|
103
102
|
readonly #registrationsInternal: Map<string, ServiceWorkerRegistration>;
|
|
104
103
|
#enabled: boolean;
|
|
@@ -111,7 +110,6 @@ export class ServiceWorkerManager extends SDKModel<EventTypes> {
|
|
|
111
110
|
constructor(target: Target) {
|
|
112
111
|
super(target);
|
|
113
112
|
target.registerServiceWorkerDispatcher(new ServiceWorkerDispatcher(this));
|
|
114
|
-
this.#lastAnonymousTargetId = 0;
|
|
115
113
|
this.#agent = target.serviceWorkerAgent();
|
|
116
114
|
this.#registrationsInternal = new Map();
|
|
117
115
|
this.#enabled = false;
|
|
@@ -73,9 +73,6 @@ SDK.ConsoleMessage.FrontendMessageSource = SDKModule.ConsoleModel.FrontendMessag
|
|
|
73
73
|
/** @constructor */
|
|
74
74
|
SDK.Cookie = SDKModule.Cookie.Cookie;
|
|
75
75
|
|
|
76
|
-
/** @constructor */
|
|
77
|
-
SDK.CookieReference = SDKModule.Cookie.CookieReference;
|
|
78
|
-
|
|
79
76
|
/** @constructor */
|
|
80
77
|
SDK.CookieParser = SDKModule.CookieParser.CookieParser;
|
|
81
78
|
|
|
@@ -389,7 +389,6 @@
|
|
|
389
389
|
ExperimentEnabledAtLaunch: 'DevTools.ExperimentEnabledAtLaunch',
|
|
390
390
|
ExperimentEnabled: 'DevTools.ExperimentEnabled',
|
|
391
391
|
ExperimentDisabled: 'DevTools.ExperimentDisabled',
|
|
392
|
-
CssEditorOpened: 'DevTools.CssEditorOpened',
|
|
393
392
|
DeveloperResourceLoaded: 'DevTools.DeveloperResourceLoaded',
|
|
394
393
|
DeveloperResourceScheme: 'DevTools.DeveloperResourceScheme',
|
|
395
394
|
LinearMemoryInspectorRevealedFrom: 'DevTools.LinearMemoryInspector.RevealedFrom',
|
|
@@ -401,6 +400,7 @@
|
|
|
401
400
|
RecordingReplayFinished: 'DevTools.RecordingReplayFinished',
|
|
402
401
|
RecordingReplayStarted: 'DevTools.RecordingReplayStarted',
|
|
403
402
|
RecordingToggled: 'DevTools.RecordingToggled',
|
|
403
|
+
SyncSetting: 'DevTools.SyncSetting',
|
|
404
404
|
};
|
|
405
405
|
|
|
406
406
|
/**
|
|
@@ -1490,13 +1490,6 @@
|
|
|
1490
1490
|
styleRules.push('* { min-width: 0; min-height: 0; }');
|
|
1491
1491
|
}
|
|
1492
1492
|
|
|
1493
|
-
if (majorVersion <= 51) {
|
|
1494
|
-
// Support for quirky border-image behavior (<M51), see:
|
|
1495
|
-
// https://bugs.chromium.org/p/chromium/issues/detail?id=559258
|
|
1496
|
-
styleRules.push('.cm-breakpoint .CodeMirror-linenumber { border-style: solid !important; }');
|
|
1497
|
-
styleRules.push(
|
|
1498
|
-
'.cm-breakpoint.cm-breakpoint-conditional .CodeMirror-linenumber { border-style: solid !important; }');
|
|
1499
|
-
}
|
|
1500
1493
|
if (majorVersion <= 71) {
|
|
1501
1494
|
styleRules.push(
|
|
1502
1495
|
'.coverage-toolbar-container, .animation-timeline-toolbar-container, .computed-properties { flex-basis: auto; }');
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
// Copyright
|
|
1
|
+
// Copyright 2018 The Chromium Authors. All rights reserved.
|
|
2
2
|
// Use of this source code is governed by a BSD-style license that can be
|
|
3
3
|
// found in the LICENSE file.
|
|
4
|
-
|
|
4
|
+
import '../shell/shell.js';
|
|
5
5
|
import '../../panels/css_overview/css_overview-meta.js';
|
|
6
6
|
import '../../panels/elements/elements-meta.js';
|
|
7
7
|
import '../../panels/browser_debugger/browser_debugger-meta.js';
|
|
@@ -25,3 +25,10 @@ import '../../panels/timeline/timeline-meta.js';
|
|
|
25
25
|
import '../../panels/web_audio/web_audio-meta.js';
|
|
26
26
|
import '../../panels/webauthn/webauthn-meta.js';
|
|
27
27
|
import '../../panels/layer_viewer/layer_viewer-meta.js';
|
|
28
|
+
|
|
29
|
+
import * as Root from '../../core/root/root.js';
|
|
30
|
+
import * as Main from '../main/main.js';
|
|
31
|
+
|
|
32
|
+
// @ts-ignore Exposed for legacy layout tests
|
|
33
|
+
self.runtime = Root.Runtime.Runtime.instance({forceNew: true});
|
|
34
|
+
new Main.MainImpl.MainImpl();
|
|
@@ -86,9 +86,7 @@ export class CSSFormatter {
|
|
|
86
86
|
if (startLine !== this.lastLine) {
|
|
87
87
|
this.state.eatWhitespace = true;
|
|
88
88
|
}
|
|
89
|
-
|
|
90
|
-
// in CodeMirrorTextEditor.js. In a worker context, we don't use the prefix.
|
|
91
|
-
if (type && (/^(css-)?property/.test(type) || /^(css-)?variable-2/.test(type)) && !this.state.inPropertyValue) {
|
|
89
|
+
if (type && (/^property/.test(type) || /^variable-2/.test(type)) && !this.state.inPropertyValue) {
|
|
92
90
|
this.state.seenProperty = true;
|
|
93
91
|
}
|
|
94
92
|
this.lastLine = startLine;
|
|
@@ -9,7 +9,5 @@ export const enum FormatterActions {
|
|
|
9
9
|
JAVASCRIPT_OUTLINE = 'javaScriptOutline',
|
|
10
10
|
JAVASCRIPT_IDENTIFIERS = 'javaScriptIdentifiers',
|
|
11
11
|
EVALUATE_JAVASCRIPT_SUBSTRING = 'evaluatableJavaScriptSubstring',
|
|
12
|
-
FIND_LAST_EXPRESSION = 'findLastExpression',
|
|
13
|
-
FIND_LAST_FUNCTION_CALL = 'findLastFunctionCall',
|
|
14
12
|
ARGUMENTS_LIST = 'argumentsList',
|
|
15
13
|
}
|
|
@@ -230,55 +230,6 @@ export function format(
|
|
|
230
230
|
return result;
|
|
231
231
|
}
|
|
232
232
|
|
|
233
|
-
export function findLastFunctionCall(content: string): {
|
|
234
|
-
baseExpression: string,
|
|
235
|
-
receiver: string,
|
|
236
|
-
argumentIndex: number,
|
|
237
|
-
functionName: string,
|
|
238
|
-
}|null {
|
|
239
|
-
if (content.length > 10000) {
|
|
240
|
-
return null;
|
|
241
|
-
}
|
|
242
|
-
try {
|
|
243
|
-
const tokenizer = Acorn.tokenizer(content, {ecmaVersion: ECMA_VERSION});
|
|
244
|
-
while (tokenizer.getToken().type !== Acorn.tokTypes.eof) {
|
|
245
|
-
}
|
|
246
|
-
} catch (e) {
|
|
247
|
-
return null;
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
const suffix = '000)';
|
|
251
|
-
const base = _lastCompleteExpression(content, suffix, new Set(['CallExpression', 'NewExpression']));
|
|
252
|
-
if (!base) {
|
|
253
|
-
return null;
|
|
254
|
-
}
|
|
255
|
-
if (base.baseNode.type !== 'CallExpression' && base.baseNode.type !== 'NewExpression') {
|
|
256
|
-
return null;
|
|
257
|
-
}
|
|
258
|
-
const callee = base.baseNode['callee'];
|
|
259
|
-
|
|
260
|
-
let functionName = '';
|
|
261
|
-
const functionProperty = callee.type === 'Identifier' ? callee : (callee as Acorn.ESTree.MemberExpression).property;
|
|
262
|
-
if (functionProperty) {
|
|
263
|
-
if (functionProperty.type === 'Identifier') {
|
|
264
|
-
functionName = functionProperty.name;
|
|
265
|
-
} else if (functionProperty.type === 'Literal') {
|
|
266
|
-
functionName = (functionProperty.value as string);
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
const argumentIndex = base.baseNode['arguments'].length - 1;
|
|
271
|
-
const baseExpression =
|
|
272
|
-
`(${base.baseExpression.substring(callee.start - base.baseNode.start, callee.end - base.baseNode.start)})`;
|
|
273
|
-
let receiver = '(function(){return this})()';
|
|
274
|
-
if (callee.type === 'MemberExpression') {
|
|
275
|
-
const receiverBase = callee['object'];
|
|
276
|
-
receiver =
|
|
277
|
-
base.baseExpression.substring(receiverBase.start - base.baseNode.start, receiverBase.end - base.baseNode.start);
|
|
278
|
-
}
|
|
279
|
-
return {baseExpression, receiver, argumentIndex, functionName};
|
|
280
|
-
}
|
|
281
|
-
|
|
282
233
|
export function argumentsList(content: string): string[] {
|
|
283
234
|
if (content.length > 10000) {
|
|
284
235
|
return [];
|
|
@@ -349,77 +300,6 @@ export function argumentsList(content: string): string[] {
|
|
|
349
300
|
}
|
|
350
301
|
}
|
|
351
302
|
|
|
352
|
-
export function findLastExpression(content: string): string|null {
|
|
353
|
-
if (content.length > 10000) {
|
|
354
|
-
return null;
|
|
355
|
-
}
|
|
356
|
-
try {
|
|
357
|
-
const tokenizer = Acorn.tokenizer(content, {ecmaVersion: ECMA_VERSION});
|
|
358
|
-
while (tokenizer.getToken().type !== Acorn.tokTypes.eof) {
|
|
359
|
-
}
|
|
360
|
-
} catch (e) {
|
|
361
|
-
return null;
|
|
362
|
-
}
|
|
363
|
-
|
|
364
|
-
const suffix = '.DEVTOOLS';
|
|
365
|
-
try {
|
|
366
|
-
Acorn.parse(content + suffix, {ecmaVersion: ECMA_VERSION});
|
|
367
|
-
} catch (parseError) {
|
|
368
|
-
// If this is an invalid location for a '.', don't attempt to give autocomplete
|
|
369
|
-
if (parseError.message.startsWith('Unexpected token') && parseError.pos === content.length) {
|
|
370
|
-
return null;
|
|
371
|
-
}
|
|
372
|
-
}
|
|
373
|
-
const base = _lastCompleteExpression(content, suffix, new Set(['MemberExpression', 'Identifier']));
|
|
374
|
-
if (base) {
|
|
375
|
-
return base.baseExpression;
|
|
376
|
-
}
|
|
377
|
-
return null;
|
|
378
|
-
}
|
|
379
|
-
|
|
380
|
-
// TODO(crbug.com/1172300) Ignored during the jsdoc to ts migration
|
|
381
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
382
|
-
export function _lastCompleteExpression(content: string, suffix: string, types: Set<string>): {
|
|
383
|
-
baseNode: Acorn.ESTree.Node,
|
|
384
|
-
baseExpression: string,
|
|
385
|
-
}|null {
|
|
386
|
-
let ast: Acorn.ESTree.Node|null = null;
|
|
387
|
-
let parsedContent = '';
|
|
388
|
-
for (let i = 0; i < content.length; i++) {
|
|
389
|
-
try {
|
|
390
|
-
// Wrap content in paren to successfully parse object literals
|
|
391
|
-
parsedContent = content[i] === '{' ? `(${content.substring(i)})${suffix}` : `${content.substring(i)}${suffix}`;
|
|
392
|
-
ast = (Acorn.parse(parsedContent, {ecmaVersion: ECMA_VERSION}) as Acorn.ESTree.Node);
|
|
393
|
-
break;
|
|
394
|
-
} catch (e) {
|
|
395
|
-
}
|
|
396
|
-
}
|
|
397
|
-
if (!ast) {
|
|
398
|
-
return null;
|
|
399
|
-
}
|
|
400
|
-
const astEnd = ast.end;
|
|
401
|
-
let baseNode: Acorn.ESTree.Node|null = null;
|
|
402
|
-
const walker = new ESTreeWalker(node => {
|
|
403
|
-
if (baseNode || node.end < astEnd) {
|
|
404
|
-
return ESTreeWalker.SkipSubtree;
|
|
405
|
-
}
|
|
406
|
-
if (types.has(node.type)) {
|
|
407
|
-
baseNode = node;
|
|
408
|
-
}
|
|
409
|
-
return;
|
|
410
|
-
});
|
|
411
|
-
walker.walk(ast);
|
|
412
|
-
if (!baseNode) {
|
|
413
|
-
return null;
|
|
414
|
-
}
|
|
415
|
-
let baseExpression =
|
|
416
|
-
parsedContent.substring((baseNode as Acorn.ESTree.Node).start, parsedContent.length - suffix.length);
|
|
417
|
-
if (baseExpression.startsWith('{')) {
|
|
418
|
-
baseExpression = `(${baseExpression})`;
|
|
419
|
-
}
|
|
420
|
-
return {baseNode, baseExpression};
|
|
421
|
-
}
|
|
422
|
-
|
|
423
303
|
(function disableLoggingForTest(): void {
|
|
424
304
|
if (Root.Runtime.Runtime.queryParam('test')) {
|
|
425
305
|
console.error = (): undefined => undefined;
|
|
@@ -2,12 +2,8 @@
|
|
|
2
2
|
// Use of this source code is governed by a BSD-style license that can be
|
|
3
3
|
// found in the LICENSE file.
|
|
4
4
|
|
|
5
|
-
import '../../third_party/codemirror/package/addon/runmode/runmode-standalone.js';
|
|
6
|
-
import '../../third_party/codemirror/package/mode/css/css.js';
|
|
7
|
-
import '../../third_party/codemirror/package/mode/xml/xml.js';
|
|
8
|
-
import '../../third_party/codemirror/package/mode/javascript/javascript.js';
|
|
9
|
-
|
|
10
5
|
import * as Platform from '../../core/platform/platform.js';
|
|
6
|
+
|
|
11
7
|
import * as FormatterWorker from './formatter_worker.js';
|
|
12
8
|
|
|
13
9
|
import {FormatterActions} from './FormatterActions.js';
|
|
@@ -38,12 +34,6 @@ self.onmessage = function(event: MessageEvent): void {
|
|
|
38
34
|
case FormatterActions.EVALUATE_JAVASCRIPT_SUBSTRING:
|
|
39
35
|
self.postMessage(FormatterWorker.FormatterWorker.evaluatableJavaScriptSubstring(params.content));
|
|
40
36
|
break;
|
|
41
|
-
case FormatterActions.FIND_LAST_EXPRESSION:
|
|
42
|
-
self.postMessage(FormatterWorker.FormatterWorker.findLastExpression(params.content));
|
|
43
|
-
break;
|
|
44
|
-
case FormatterActions.FIND_LAST_FUNCTION_CALL:
|
|
45
|
-
self.postMessage(FormatterWorker.FormatterWorker.findLastFunctionCall(params.content));
|
|
46
|
-
break;
|
|
47
37
|
case FormatterActions.ARGUMENTS_LIST:
|
|
48
38
|
self.postMessage(FormatterWorker.FormatterWorker.argumentsList(params.content));
|
|
49
39
|
break;
|
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
// Use of this source code is governed by a BSD-style license that can be
|
|
3
3
|
// found in the LICENSE file.
|
|
4
4
|
|
|
5
|
+
import '../../third_party/codemirror/package/addon/runmode/runmode-standalone.js';
|
|
6
|
+
import '../../third_party/codemirror/package/mode/css/css.js';
|
|
7
|
+
import '../../third_party/codemirror/package/mode/xml/xml.js';
|
|
8
|
+
import '../../third_party/codemirror/package/mode/javascript/javascript.js';
|
|
9
|
+
|
|
5
10
|
import * as CSSFormatter from './CSSFormatter.js';
|
|
6
11
|
import * as CSSRuleParser from './CSSRuleParser.js';
|
|
7
12
|
import * as FormattedContentBuilder from './FormattedContentBuilder.js';
|
|
@@ -909,7 +909,8 @@ export abstract class HeapSnapshot {
|
|
|
909
909
|
return matchedStringIndexes;
|
|
910
910
|
}
|
|
911
911
|
|
|
912
|
-
const regexp =
|
|
912
|
+
const regexp =
|
|
913
|
+
searchConfig.isRegex ? new RegExp(query) : Platform.StringUtilities.createPlainTextSearchRegex(query, 'i');
|
|
913
914
|
|
|
914
915
|
function filterRegexp(matchedStringIndexes: Set<number>, string: string, index: number): Set<number> {
|
|
915
916
|
if (regexp.test(string)) {
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
// Copyright 2018 The Chromium Authors. All rights reserved.
|
|
2
2
|
// Use of this source code is governed by a BSD-style license that can be
|
|
3
3
|
// found in the LICENSE file.
|
|
4
|
+
import '../shell/shell.js';
|
|
5
|
+
import '../../panels/js_profiler/js_profiler-meta.js';
|
|
4
6
|
|
|
5
7
|
import * as Common from '../../core/common/common.js';
|
|
6
8
|
import * as Host from '../../core/host/host.js';
|
|
7
9
|
import * as i18n from '../../core/i18n/i18n.js';
|
|
8
10
|
import * as SDK from '../../core/sdk/sdk.js';
|
|
9
11
|
import * as Components from '../../ui/legacy/components/utils/utils.js';
|
|
12
|
+
import * as Main from '../main/main.js';
|
|
10
13
|
|
|
11
14
|
const UIStrings = {
|
|
12
15
|
/**
|
|
@@ -15,7 +18,7 @@ const UIStrings = {
|
|
|
15
18
|
main: 'Main',
|
|
16
19
|
};
|
|
17
20
|
|
|
18
|
-
const str_ = i18n.i18n.registerUIStrings('entrypoints/js_app/
|
|
21
|
+
const str_ = i18n.i18n.registerUIStrings('entrypoints/js_app/js_app.ts', UIStrings);
|
|
19
22
|
const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
|
20
23
|
|
|
21
24
|
let jsMainImplInstance: JsMainImpl;
|
|
@@ -41,3 +44,4 @@ export class JsMainImpl implements Common.Runnable.Runnable {
|
|
|
41
44
|
}
|
|
42
45
|
|
|
43
46
|
Common.Runnable.registerEarlyInitializationRunnable(JsMainImpl.instance);
|
|
47
|
+
new Main.MainImpl.MainImpl();
|
|
@@ -139,7 +139,6 @@ export class MainImpl {
|
|
|
139
139
|
|
|
140
140
|
private async loaded(): Promise<void> {
|
|
141
141
|
console.timeStamp('Main._loaded');
|
|
142
|
-
await Root.Runtime.appStarted;
|
|
143
142
|
Root.Runtime.Runtime.setPlatform(Host.Platform.platform());
|
|
144
143
|
const prefs = await new Promise<{[key: string]: string}>(resolve => {
|
|
145
144
|
Host.InspectorFrontendHost.InspectorFrontendHostInstance.getPreferences(resolve);
|
|
@@ -299,9 +298,6 @@ export class MainImpl {
|
|
|
299
298
|
'keyboardShortcutEditor', 'Enable keyboard shortcut editor', true,
|
|
300
299
|
'https://developer.chrome.com/blog/new-in-devtools-88/#keyboard-shortcuts');
|
|
301
300
|
|
|
302
|
-
// Back/forward cache
|
|
303
|
-
Root.Runtime.experiments.register('bfcacheDebugging', 'Enable back/forward cache debugging support');
|
|
304
|
-
|
|
305
301
|
// Timeline
|
|
306
302
|
Root.Runtime.experiments.register('timelineEventInitiators', 'Timeline: event initiators');
|
|
307
303
|
Root.Runtime.experiments.register('timelineInvalidationTracking', 'Timeline: invalidation tracking', true);
|
|
@@ -371,7 +367,6 @@ export class MainImpl {
|
|
|
371
367
|
Root.Runtime.experiments.enableExperimentsByDefault([
|
|
372
368
|
'sourceOrderViewer',
|
|
373
369
|
'hideIssuesFeature',
|
|
374
|
-
'bfcacheDebugging',
|
|
375
370
|
'cssTypeComponentLength',
|
|
376
371
|
'preciseChanges',
|
|
377
372
|
Root.Runtime.ExperimentName.SYNC_SETTINGS,
|
|
@@ -1011,5 +1006,3 @@ export class ReloadActionDelegate implements UI.ActionRegistration.ActionDelegat
|
|
|
1011
1006
|
return false;
|
|
1012
1007
|
}
|
|
1013
1008
|
}
|
|
1014
|
-
|
|
1015
|
-
new MainImpl();
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
// Use of this source code is governed by a BSD-style license that can be
|
|
3
3
|
// found in the LICENSE file.
|
|
4
4
|
import '../shell/shell.js';
|
|
5
|
-
import * as Startup from '../startup/startup.js';
|
|
6
5
|
|
|
7
|
-
|
|
6
|
+
import * as Main from '../main/main.js';
|
|
7
|
+
|
|
8
|
+
new Main.MainImpl.MainImpl();
|
|
@@ -32,7 +32,7 @@ const UIStrings = {
|
|
|
32
32
|
*/
|
|
33
33
|
networkAddressEgLocalhost: 'Network address (e.g. localhost:9229)',
|
|
34
34
|
};
|
|
35
|
-
const str_ = i18n.i18n.registerUIStrings('entrypoints/
|
|
35
|
+
const str_ = i18n.i18n.registerUIStrings('entrypoints/node_app/NodeConnectionsPanel.ts', UIStrings);
|
|
36
36
|
const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
|
37
37
|
|
|
38
38
|
let nodeConnectionsPanelInstance: NodeConnectionsPanel;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Use of this source code is governed by a BSD-style license that can be
|
|
3
3
|
// found in the LICENSE file.
|
|
4
4
|
|
|
5
|
-
import * as Common from '../../core/common/common.js';
|
|
5
|
+
import type * as Common from '../../core/common/common.js';
|
|
6
6
|
import * as Host from '../../core/host/host.js';
|
|
7
7
|
import * as i18n from '../../core/i18n/i18n.js';
|
|
8
8
|
import * as Components from '../../ui/legacy/components/utils/utils.js';
|
|
@@ -23,7 +23,7 @@ const UIStrings = {
|
|
|
23
23
|
*/
|
|
24
24
|
nodejsS: 'Node.js: {PH1}',
|
|
25
25
|
};
|
|
26
|
-
const str_ = i18n.i18n.registerUIStrings('entrypoints/
|
|
26
|
+
const str_ = i18n.i18n.registerUIStrings('entrypoints/node_app/NodeMain.ts', UIStrings);
|
|
27
27
|
const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
|
28
28
|
let nodeMainImplInstance: NodeMainImpl;
|
|
29
29
|
|
|
@@ -45,8 +45,6 @@ export class NodeMainImpl implements Common.Runnable.Runnable {
|
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
Common.Runnable.registerEarlyInitializationRunnable(NodeMainImpl.instance);
|
|
49
|
-
|
|
50
48
|
export class NodeChildTargetManager extends SDK.SDKModel.SDKModel<void> implements ProtocolProxyApi.TargetDispatcher {
|
|
51
49
|
private readonly targetManager: SDK.TargetManager.TargetManager;
|
|
52
50
|
private readonly parentTarget: SDK.Target.Target;
|
|
File without changes
|
|
@@ -0,0 +1,79 @@
|
|
|
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
|
+
// @ts-ignore Exposed for legacy layout tests
|
|
77
|
+
self.runtime = Root.Runtime.Runtime.instance({forceNew: true});
|
|
78
|
+
Common.Runnable.registerEarlyInitializationRunnable(NodeMainImpl.instance);
|
|
79
|
+
new Main.MainImpl.MainImpl();
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
// Copyright
|
|
1
|
+
// Copyright 2020 The Chromium Authors. All rights reserved.
|
|
2
2
|
// Use of this source code is governed by a BSD-style license that can be
|
|
3
3
|
// found in the LICENSE file.
|
|
4
4
|
|
|
5
|
+
import '../../Images/Images.js';
|
|
6
|
+
import '../../core/root/root-legacy.js';
|
|
7
|
+
import '../../core/dom_extension/dom_extension.js';
|
|
8
|
+
|
|
5
9
|
import '../../panels/sources/sources-meta.js';
|
|
6
10
|
import '../../panels/profiler/profiler-meta.js';
|
|
7
11
|
import '../../panels/console/console-meta.js';
|
|
@@ -20,3 +24,5 @@ import '../../core/sdk/sdk-meta.js';
|
|
|
20
24
|
import '../../ui/legacy/components/source_frame/source_frame-meta.js';
|
|
21
25
|
import '../../panels/console_counters/console_counters-meta.js';
|
|
22
26
|
import '../../ui/legacy/components/object_ui/object_ui-meta.js';
|
|
27
|
+
import '../main/main.js';
|
|
28
|
+
// We generate the descriptors in this file, which depend on the runtime.
|
|
@@ -13,6 +13,10 @@ 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
|
+
// @ts-ignore Exposed for legacy layout tests
|
|
21
|
+
self.runtime = Root.Runtime.Runtime.instance({forceNew: true});
|
|
22
|
+
new Main.MainImpl.MainImpl();
|