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
|
@@ -6,8 +6,8 @@ import * as TextUtils from '../../models/text_utils/text_utils.js';
|
|
|
6
6
|
import * as Common from '../common/common.js';
|
|
7
7
|
import * as HostModule from '../host/host.js';
|
|
8
8
|
import * as Platform from '../platform/platform.js';
|
|
9
|
+
import * as Root from '../root/root.js';
|
|
9
10
|
import type * as Protocol from '../../generated/protocol.js';
|
|
10
|
-
import type * as CodeMirrorModule from '../../third_party/codemirror/codemirror-legacy.js'; // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
11
11
|
|
|
12
12
|
import {cssMetadata, GridAreaRowRegex} from './CSSMetadata.js';
|
|
13
13
|
import type {Edit} from './CSSModel.js';
|
|
@@ -27,7 +27,6 @@ export class CSSProperty {
|
|
|
27
27
|
#active: boolean;
|
|
28
28
|
#nameRangeInternal: TextUtils.TextRange.TextRange|null;
|
|
29
29
|
#valueRangeInternal: TextUtils.TextRange.TextRange|null;
|
|
30
|
-
readonly #invalidProperty: string|null;
|
|
31
30
|
#invalidString?: Common.UIString.LocalizedString;
|
|
32
31
|
|
|
33
32
|
constructor(
|
|
@@ -46,7 +45,6 @@ export class CSSProperty {
|
|
|
46
45
|
this.#active = true;
|
|
47
46
|
this.#nameRangeInternal = null;
|
|
48
47
|
this.#valueRangeInternal = null;
|
|
49
|
-
this.#invalidProperty = null;
|
|
50
48
|
}
|
|
51
49
|
|
|
52
50
|
static parsePayload(ownerStyle: CSSStyleDeclaration, index: number, payload: Protocol.CSS.CSSProperty): CSSProperty {
|
|
@@ -178,7 +176,7 @@ export class CSSProperty {
|
|
|
178
176
|
|
|
179
177
|
static formatStyle(
|
|
180
178
|
styleText: string, indentation: string, endIndentation: string,
|
|
181
|
-
tokenizerFactory: TextUtils.TextUtils.TokenizerFactory
|
|
179
|
+
tokenizerFactory: TextUtils.TextUtils.TokenizerFactory): string {
|
|
182
180
|
const doubleIndent = indentation.substring(endIndentation.length) + indentation;
|
|
183
181
|
if (indentation) {
|
|
184
182
|
indentation = '\n' + indentation;
|
|
@@ -188,7 +186,7 @@ export class CSSProperty {
|
|
|
188
186
|
let propertyText = '';
|
|
189
187
|
let insideProperty = false;
|
|
190
188
|
let needsSemi = false;
|
|
191
|
-
const tokenize = tokenizerFactory.createTokenizer('text/css'
|
|
189
|
+
const tokenize = tokenizerFactory.createTokenizer('text/css');
|
|
192
190
|
|
|
193
191
|
tokenize('*{' + styleText + '}', processToken);
|
|
194
192
|
if (insideProperty) {
|
|
@@ -199,10 +197,10 @@ export class CSSProperty {
|
|
|
199
197
|
|
|
200
198
|
function processToken(token: string, tokenType: string|null, _column: number, _newColumn: number): void {
|
|
201
199
|
if (!insideProperty) {
|
|
202
|
-
const disabledProperty = tokenType && tokenType.includes('
|
|
200
|
+
const disabledProperty = tokenType && tokenType.includes('comment') && isDisabledProperty(token);
|
|
203
201
|
const isPropertyStart = tokenType &&
|
|
204
|
-
(tokenType.includes('
|
|
205
|
-
tokenType.includes('
|
|
202
|
+
(tokenType.includes('string') || tokenType.includes('meta') || tokenType.includes('property') ||
|
|
203
|
+
tokenType.includes('variable-2'));
|
|
206
204
|
if (disabledProperty) {
|
|
207
205
|
result = result.trimRight() + indentation + token;
|
|
208
206
|
} else if (isPropertyStart) {
|
|
@@ -210,7 +208,7 @@ export class CSSProperty {
|
|
|
210
208
|
propertyText = token;
|
|
211
209
|
} else if (token !== ';' || needsSemi) {
|
|
212
210
|
result += token;
|
|
213
|
-
if (token.trim() && !(tokenType && tokenType.includes('
|
|
211
|
+
if (token.trim() && !(tokenType && tokenType.includes('comment'))) {
|
|
214
212
|
needsSemi = token !== ';';
|
|
215
213
|
}
|
|
216
214
|
}
|
|
@@ -227,11 +225,18 @@ export class CSSProperty {
|
|
|
227
225
|
// implementation takes special care to restore a single
|
|
228
226
|
// whitespace token in this edge case. https://crbug.com/1071296
|
|
229
227
|
const trimmedPropertyText = propertyText.trim();
|
|
230
|
-
result =
|
|
231
|
-
(trimmedPropertyText.endsWith(':') ? ' ' : '')
|
|
228
|
+
result =
|
|
229
|
+
result.trimRight() + indentation + trimmedPropertyText + (trimmedPropertyText.endsWith(':') ? ' ' : '');
|
|
232
230
|
needsSemi = false;
|
|
233
231
|
insideProperty = false;
|
|
234
232
|
propertyName = '';
|
|
233
|
+
if (Root.Runtime.experiments.isEnabled('preciseChanges')) {
|
|
234
|
+
result += token;
|
|
235
|
+
return;
|
|
236
|
+
}
|
|
237
|
+
// We preserve the legacy behavior to always add semicolon to
|
|
238
|
+
// declarations regardless of its original text.
|
|
239
|
+
result += ';';
|
|
235
240
|
if (token === '}') {
|
|
236
241
|
result += '}';
|
|
237
242
|
}
|
|
@@ -203,11 +203,9 @@ export class CSSStyleRule extends CSSRule {
|
|
|
203
203
|
}
|
|
204
204
|
|
|
205
205
|
export class CSSKeyframesRule {
|
|
206
|
-
readonly #cssModel: CSSModel;
|
|
207
206
|
readonly #animationName: CSSValue;
|
|
208
207
|
readonly #keyframesInternal: CSSKeyframeRule[];
|
|
209
208
|
constructor(cssModel: CSSModel, payload: Protocol.CSS.CSSKeyframesRule) {
|
|
210
|
-
this.#cssModel = cssModel;
|
|
211
209
|
this.#animationName = new CSSValue(payload.animationName);
|
|
212
210
|
this.#keyframesInternal = payload.keyframes.map(keyframeRule => new CSSKeyframeRule(cssModel, keyframeRule));
|
|
213
211
|
}
|
|
@@ -269,14 +269,10 @@ export enum Attributes {
|
|
|
269
269
|
* included to make it clear which site under Application>Cookies should be opened when revealing a `CookieReference`.
|
|
270
270
|
*/
|
|
271
271
|
export class CookieReference {
|
|
272
|
-
readonly #name: string;
|
|
273
272
|
readonly #domainInternal: string;
|
|
274
|
-
readonly #path: string;
|
|
275
273
|
readonly #contextUrlInternal: string|undefined;
|
|
276
|
-
constructor(
|
|
277
|
-
this.#name = name;
|
|
274
|
+
constructor(_name: string, domain: string, _path: string, contextUrl: string|undefined) {
|
|
278
275
|
this.#domainInternal = domain;
|
|
279
|
-
this.#path = path;
|
|
280
276
|
this.#contextUrlInternal = contextUrl;
|
|
281
277
|
}
|
|
282
278
|
|
|
@@ -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;
|
|
@@ -306,8 +306,8 @@ const UIStrings = {
|
|
|
306
306
|
*/
|
|
307
307
|
enableCache: 'Enable cache',
|
|
308
308
|
/**
|
|
309
|
-
|
|
310
|
-
|
|
309
|
+
* @description Title of a setting under the Network category that can be invoked through the Command Menu
|
|
310
|
+
*/
|
|
311
311
|
disableCache: 'Disable cache (while DevTools is open)',
|
|
312
312
|
/**
|
|
313
313
|
* @description The name of a checkbox setting in the Rendering tool. This setting
|
|
@@ -315,13 +315,25 @@ const UIStrings = {
|
|
|
315
315
|
*/
|
|
316
316
|
emulateAutoDarkMode: 'Emulate auto dark mode',
|
|
317
317
|
/**
|
|
318
|
-
|
|
318
|
+
* @description Title of a setting for enabling auto dark mode.
|
|
319
|
+
*/
|
|
320
|
+
enableEmulateAutoDarkMode: 'Enable auto dark mode',
|
|
321
|
+
/**
|
|
322
|
+
* @description Text to emulate enabled auto dark mode.
|
|
319
323
|
*/
|
|
320
324
|
enabledDarkMode: 'Enable',
|
|
321
325
|
/**
|
|
322
|
-
|
|
323
|
-
|
|
326
|
+
* @description Title of a setting for disabling auto dark mode.
|
|
327
|
+
*/
|
|
328
|
+
disableEmulateAutoDarkMode: 'Disable auto dark mode',
|
|
329
|
+
/**
|
|
330
|
+
* @description Text to emulate disabled auto dark mode.
|
|
331
|
+
*/
|
|
324
332
|
disabledDarkMode: 'Disable',
|
|
333
|
+
/**
|
|
334
|
+
* @description Title of a setting for disabling dark mode emulation.
|
|
335
|
+
*/
|
|
336
|
+
doNotEmulateDarkMode: 'Do not emulate auto dark mode',
|
|
325
337
|
};
|
|
326
338
|
const str_ = i18n.i18n.registerUIStrings('core/sdk/sdk-meta.ts', UIStrings);
|
|
327
339
|
const i18nLazyString = i18n.i18n.getLazilyComputedLocalizedString.bind(undefined, str_);
|
|
@@ -1042,17 +1054,17 @@ Common.Settings.registerSettingExtension({
|
|
|
1042
1054
|
defaultValue: 'default',
|
|
1043
1055
|
options: [
|
|
1044
1056
|
{
|
|
1045
|
-
title: i18nLazyString(UIStrings.
|
|
1057
|
+
title: i18nLazyString(UIStrings.doNotEmulateDarkMode),
|
|
1046
1058
|
text: i18nLazyString(UIStrings.noEmulation),
|
|
1047
1059
|
value: 'default',
|
|
1048
1060
|
},
|
|
1049
1061
|
{
|
|
1050
|
-
title: i18nLazyString(UIStrings.
|
|
1062
|
+
title: i18nLazyString(UIStrings.enableEmulateAutoDarkMode),
|
|
1051
1063
|
text: i18nLazyString(UIStrings.enabledDarkMode),
|
|
1052
1064
|
value: 'enabled',
|
|
1053
1065
|
},
|
|
1054
1066
|
{
|
|
1055
|
-
title: i18nLazyString(UIStrings.
|
|
1067
|
+
title: i18nLazyString(UIStrings.disableEmulateAutoDarkMode),
|
|
1056
1068
|
text: i18nLazyString(UIStrings.disabledDarkMode),
|
|
1057
1069
|
value: 'disabled',
|
|
1058
1070
|
},
|
|
@@ -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; }');
|
|
@@ -3,6 +3,9 @@
|
|
|
3
3
|
// found in the LICENSE file.
|
|
4
4
|
import '../shell/shell.js';
|
|
5
5
|
import './devtools_app-meta-files.js';
|
|
6
|
+
|
|
7
|
+
import * as Main from '../main/main.js';
|
|
6
8
|
import * as Startup from '../startup/startup.js';
|
|
7
9
|
|
|
10
|
+
new Main.MainImpl.MainImpl();
|
|
8
11
|
Startup.RuntimeInstantiator.startApplication('devtools_app');
|
|
@@ -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';
|
|
@@ -4,6 +4,9 @@
|
|
|
4
4
|
import '../shell/shell.js';
|
|
5
5
|
import '../../panels/js_profiler/js_profiler-meta.js';
|
|
6
6
|
import './JsMain.js';
|
|
7
|
+
|
|
8
|
+
import * as Main from '../main/main.js';
|
|
7
9
|
import * as Startup from '../startup/startup.js';
|
|
8
10
|
|
|
11
|
+
new Main.MainImpl.MainImpl();
|
|
9
12
|
Startup.RuntimeInstantiator.startApplication('js_app');
|
|
@@ -299,9 +299,6 @@ export class MainImpl {
|
|
|
299
299
|
'keyboardShortcutEditor', 'Enable keyboard shortcut editor', true,
|
|
300
300
|
'https://developer.chrome.com/blog/new-in-devtools-88/#keyboard-shortcuts');
|
|
301
301
|
|
|
302
|
-
// Back/forward cache
|
|
303
|
-
Root.Runtime.experiments.register('bfcacheDebugging', 'Enable back/forward cache debugging support');
|
|
304
|
-
|
|
305
302
|
// Timeline
|
|
306
303
|
Root.Runtime.experiments.register('timelineEventInitiators', 'Timeline: event initiators');
|
|
307
304
|
Root.Runtime.experiments.register('timelineInvalidationTracking', 'Timeline: invalidation tracking', true);
|
|
@@ -371,7 +368,6 @@ export class MainImpl {
|
|
|
371
368
|
Root.Runtime.experiments.enableExperimentsByDefault([
|
|
372
369
|
'sourceOrderViewer',
|
|
373
370
|
'hideIssuesFeature',
|
|
374
|
-
'bfcacheDebugging',
|
|
375
371
|
'cssTypeComponentLength',
|
|
376
372
|
'preciseChanges',
|
|
377
373
|
Root.Runtime.ExperimentName.SYNC_SETTINGS,
|
|
@@ -1011,5 +1007,3 @@ export class ReloadActionDelegate implements UI.ActionRegistration.ActionDelegat
|
|
|
1011
1007
|
return false;
|
|
1012
1008
|
}
|
|
1013
1009
|
}
|
|
1014
|
-
|
|
1015
|
-
new MainImpl();
|
|
@@ -2,6 +2,9 @@
|
|
|
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
|
+
|
|
6
|
+
import * as Main from '../main/main.js';
|
|
5
7
|
import * as Startup from '../startup/startup.js';
|
|
6
8
|
|
|
9
|
+
new Main.MainImpl.MainImpl();
|
|
7
10
|
Startup.RuntimeInstantiator.startApplication('ndb_app');
|
|
@@ -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
|