chrome-devtools-frontend 1.0.971140 → 1.0.971727
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/config/gni/devtools_grd_files.gni +8 -7
- package/front_end/core/common/ParsedURL.ts +9 -3
- package/front_end/core/host/UserMetrics.ts +2 -1
- package/front_end/core/sdk/CSSModel.ts +21 -0
- package/front_end/core/sdk/CSSStyleSheetHeader.ts +10 -10
- package/front_end/core/sdk/CompilerSourceMappingContentProvider.ts +6 -4
- package/front_end/core/sdk/DOMDebuggerModel.ts +4 -3
- package/front_end/core/sdk/DebuggerModel.ts +17 -16
- package/front_end/core/sdk/NetworkManager.ts +2 -2
- package/front_end/core/sdk/NetworkRequest.ts +5 -5
- package/front_end/core/sdk/Resource.ts +10 -10
- package/front_end/core/sdk/ResourceTreeModel.ts +18 -13
- package/front_end/core/sdk/Script.ts +10 -10
- package/front_end/core/sdk/SourceMap.ts +3 -1
- package/front_end/entrypoints/main/MainImpl.ts +5 -0
- package/front_end/generated/InspectorBackendCommands.js +14 -8
- package/front_end/generated/SupportedCSSProperties.js +2 -0
- package/front_end/generated/protocol-mapping.d.ts +5 -0
- package/front_end/generated/protocol-proxy-api.d.ts +5 -0
- package/front_end/generated/protocol.ts +20 -12
- package/front_end/models/bindings/BreakpointManager.ts +7 -5
- package/front_end/models/bindings/DebuggerLanguagePlugins.ts +2 -1
- package/front_end/models/bindings/ResourceMapping.ts +2 -1
- package/front_end/models/bindings/ResourceScriptMapping.ts +2 -1
- package/front_end/models/bindings/StylesSourceMapping.ts +2 -1
- package/front_end/models/issues_manager/FederatedAuthRequestIssue.ts +12 -12
- package/front_end/models/issues_manager/descriptions/{federatedAuthRequestClientIdMetadataHttpNotFound.md → federatedAuthRequestClientMetadataHttpNotFound.md} +0 -0
- package/front_end/models/issues_manager/descriptions/{federatedAuthRequestClientIdMetadataInvalidResponse.md → federatedAuthRequestClientMetadataInvalidResponse.md} +0 -0
- package/front_end/models/issues_manager/descriptions/{federatedAuthRequestClientIdMetadataNoResponse.md → federatedAuthRequestClientMetadataNoResponse.md} +0 -0
- package/front_end/models/issues_manager/descriptions/federatedAuthRequestManifestHttpNotFound.md +1 -0
- package/front_end/models/issues_manager/descriptions/federatedAuthRequestManifestInvalidResponse.md +1 -0
- package/front_end/models/issues_manager/descriptions/federatedAuthRequestManifestNoResponse.md +1 -0
- package/front_end/models/persistence/FileSystemWorkspaceBinding.ts +1 -1
- package/front_end/models/persistence/IsolatedFileSystem.ts +10 -12
- package/front_end/models/persistence/PersistenceActions.ts +1 -4
- package/front_end/models/persistence/PlatformFileSystem.ts +3 -3
- package/front_end/{panels/sources/SourceMapNamesResolver.ts → models/source_map_scopes/NamesResolver.ts} +5 -5
- package/front_end/models/source_map_scopes/source_map_scopes.ts +7 -0
- package/front_end/models/text_utils/ContentProvider.ts +2 -1
- package/front_end/models/text_utils/StaticContentProvider.ts +5 -4
- package/front_end/models/workspace/UISourceCode.ts +7 -7
- package/front_end/models/workspace/WorkspaceImpl.ts +1 -3
- package/front_end/panels/application/ServiceWorkerCacheViews.ts +1 -1
- package/front_end/panels/console/ConsolePrompt.ts +25 -2
- package/front_end/panels/console/ConsoleViewMessage.ts +41 -8
- package/front_end/panels/coverage/CoverageModel.ts +1 -1
- package/front_end/panels/elements/ElementsTreeElement.ts +0 -6
- package/front_end/panels/elements/StylesSidebarPane.ts +16 -18
- package/front_end/panels/issues/AffectedResourcesView.ts +1 -1
- package/front_end/panels/issues/AffectedSourcesView.ts +1 -1
- package/front_end/panels/lighthouse/LighthouseReportRenderer.ts +0 -5
- package/front_end/panels/network/NetworkDataGridNode.ts +1 -1
- package/front_end/panels/profiler/CPUProfileView.ts +1 -1
- package/front_end/panels/profiler/HeapProfileView.ts +0 -2
- package/front_end/panels/profiler/HeapSnapshotGridNodes.ts +0 -1
- package/front_end/panels/profiler/HeapSnapshotView.ts +2 -3
- package/front_end/panels/snippets/ScriptSnippetFileSystem.ts +1 -1
- package/front_end/panels/sources/DebuggerPlugin.ts +5 -4
- package/front_end/panels/sources/NavigatorView.ts +1 -1
- package/front_end/panels/sources/ScopeChainSidebarPane.ts +6 -3
- package/front_end/panels/sources/SourcesNavigator.ts +7 -1
- package/front_end/panels/sources/sources-legacy.ts +5 -3
- package/front_end/panels/sources/sources.ts +0 -2
- package/front_end/panels/timeline/TimelineUIUtils.ts +4 -47
- package/front_end/ui/legacy/ViewManager.ts +2 -1
- package/front_end/ui/legacy/components/source_frame/FontView.ts +1 -1
- package/front_end/ui/legacy/components/source_frame/ImageView.ts +1 -1
- package/front_end/ui/legacy/components/utils/JSPresentationUtils.ts +2 -3
- package/front_end/ui/legacy/components/utils/Linkifier.ts +20 -59
- package/package.json +1 -1
- package/front_end/models/issues_manager/descriptions/federatedAuthRequestWellKnownHttpNotFound.md +0 -1
- package/front_end/models/issues_manager/descriptions/federatedAuthRequestWellKnownInvalidResponse.md +0 -1
- package/front_end/models/issues_manager/descriptions/federatedAuthRequestWellKnownNoResponse.md +0 -1
@@ -120,9 +120,8 @@ export function buildStackTraceRows(
|
|
120
120
|
const rowCountHide = regularRowCount > 30 && stackTrace.callFrames.length > 31;
|
121
121
|
let ignoreListHide = false;
|
122
122
|
const functionName = UI.UIUtils.beautifyFunctionName(stackFrame.functionName);
|
123
|
-
const link =
|
124
|
-
target, stackFrame,
|
125
|
-
{tabStop: Boolean(tabStops), className: undefined, columnNumber: undefined, inlineFrameIndex: 0});
|
123
|
+
const link =
|
124
|
+
linkifier.maybeLinkifyConsoleCallFrame(target, stackFrame, {tabStop: Boolean(tabStops), inlineFrameIndex: 0});
|
126
125
|
if (link) {
|
127
126
|
link.addEventListener('contextmenu', populateContextMenu.bind(null, link));
|
128
127
|
// TODO(crbug.com/1183325): fix race condition with uiLocation still being null here
|
@@ -195,17 +195,14 @@ export class Linkifier implements SDK.TargetManager.Observer {
|
|
195
195
|
target: SDK.Target.Target|null, scriptId: Protocol.Runtime.ScriptId|null, sourceURL: string,
|
196
196
|
lineNumber: number|undefined, options?: LinkifyOptions): HTMLElement|null {
|
197
197
|
let fallbackAnchor: HTMLElement|null = null;
|
198
|
-
const linkifyURLOptions = {
|
198
|
+
const linkifyURLOptions: LinkifyURLOptions = {
|
199
199
|
lineNumber,
|
200
200
|
maxLength: this.maxLength,
|
201
|
-
columnNumber: options
|
201
|
+
columnNumber: options?.columnNumber,
|
202
202
|
showColumnNumber: Boolean(options?.showColumnNumber),
|
203
|
-
className: options
|
204
|
-
tabStop: options
|
205
|
-
inlineFrameIndex: options
|
206
|
-
text: undefined,
|
207
|
-
preventClick: undefined,
|
208
|
-
bypassURLTrimming: undefined,
|
203
|
+
className: options?.className,
|
204
|
+
tabStop: options?.tabStop,
|
205
|
+
inlineFrameIndex: options?.inlineFrameIndex ?? 0,
|
209
206
|
};
|
210
207
|
const {columnNumber, className = ''} = linkifyURLOptions;
|
211
208
|
if (sourceURL) {
|
@@ -230,13 +227,8 @@ export class Linkifier implements SDK.TargetManager.Observer {
|
|
230
227
|
return fallbackAnchor;
|
231
228
|
}
|
232
229
|
|
233
|
-
const createLinkOptions = {
|
234
|
-
|
235
|
-
title: undefined,
|
236
|
-
href: undefined,
|
237
|
-
preventClick: undefined,
|
238
|
-
bypassURLTrimming: undefined,
|
239
|
-
tabStop: options ? options.tabStop : undefined,
|
230
|
+
const createLinkOptions: _CreateLinkOptions = {
|
231
|
+
tabStop: options?.tabStop,
|
240
232
|
};
|
241
233
|
// Not initialising the anchor element with 'zero width space' (\u200b) causes a crash
|
242
234
|
// in the layout engine.
|
@@ -275,17 +267,14 @@ export class Linkifier implements SDK.TargetManager.Observer {
|
|
275
267
|
target: SDK.Target.Target|null, scriptId: Protocol.Runtime.ScriptId|null, sourceURL: string,
|
276
268
|
lineNumber: number|undefined, options?: LinkifyOptions): HTMLElement {
|
277
269
|
const scriptLink = this.maybeLinkifyScriptLocation(target, scriptId, sourceURL, lineNumber, options);
|
278
|
-
const linkifyURLOptions = {
|
270
|
+
const linkifyURLOptions: LinkifyURLOptions = {
|
279
271
|
lineNumber,
|
280
272
|
maxLength: this.maxLength,
|
281
|
-
className: options
|
282
|
-
columnNumber: options
|
273
|
+
className: options?.className,
|
274
|
+
columnNumber: options?.columnNumber,
|
283
275
|
showColumnNumber: Boolean(options?.showColumnNumber),
|
284
|
-
inlineFrameIndex: options
|
285
|
-
tabStop: options
|
286
|
-
text: undefined,
|
287
|
-
preventClick: undefined,
|
288
|
-
bypassURLTrimming: undefined,
|
276
|
+
inlineFrameIndex: options?.inlineFrameIndex ?? 0,
|
277
|
+
tabStop: options?.tabStop,
|
289
278
|
};
|
290
279
|
|
291
280
|
return scriptLink || Linkifier.linkifyURL(sourceURL, linkifyURLOptions);
|
@@ -296,7 +285,6 @@ export class Linkifier implements SDK.TargetManager.Observer {
|
|
296
285
|
rawLocation.debuggerModel.target(), rawLocation.scriptId, fallbackUrl, rawLocation.lineNumber, {
|
297
286
|
columnNumber: rawLocation.columnNumber,
|
298
287
|
className,
|
299
|
-
tabStop: undefined,
|
300
288
|
inlineFrameIndex: rawLocation.inlineFrameIndex,
|
301
289
|
});
|
302
290
|
}
|
@@ -304,12 +292,12 @@ export class Linkifier implements SDK.TargetManager.Observer {
|
|
304
292
|
maybeLinkifyConsoleCallFrame(
|
305
293
|
target: SDK.Target.Target|null, callFrame: Protocol.Runtime.CallFrame, options?: LinkifyOptions): HTMLElement
|
306
294
|
|null {
|
307
|
-
const linkifyOptions = {
|
295
|
+
const linkifyOptions: LinkifyOptions = {
|
308
296
|
columnNumber: callFrame.columnNumber,
|
309
297
|
showColumnNumber: Boolean(options?.showColumnNumber),
|
310
|
-
inlineFrameIndex: options
|
311
|
-
tabStop: options
|
312
|
-
className: options
|
298
|
+
inlineFrameIndex: options?.inlineFrameIndex ?? 0,
|
299
|
+
tabStop: options?.tabStop,
|
300
|
+
className: options?.className,
|
313
301
|
};
|
314
302
|
return this.maybeLinkifyScriptLocation(
|
315
303
|
target, callFrame.scriptId, callFrame.url, callFrame.lineNumber, linkifyOptions);
|
@@ -327,10 +315,7 @@ export class Linkifier implements SDK.TargetManager.Observer {
|
|
327
315
|
showColumnNumber: false,
|
328
316
|
inlineFrameIndex: 0,
|
329
317
|
maxLength: this.maxLength,
|
330
|
-
text: undefined,
|
331
318
|
preventClick: true,
|
332
|
-
tabStop: undefined,
|
333
|
-
bypassURLTrimming: undefined,
|
334
319
|
});
|
335
320
|
|
336
321
|
// The contract is that disposed targets don't have a LiveLocationPool
|
@@ -373,12 +358,7 @@ export class Linkifier implements SDK.TargetManager.Observer {
|
|
373
358
|
}
|
374
359
|
|
375
360
|
linkifyCSSLocation(rawLocation: SDK.CSSModel.CSSLocation, classes?: string): Element {
|
376
|
-
const createLinkOptions = {
|
377
|
-
maxLength: undefined,
|
378
|
-
title: undefined,
|
379
|
-
href: undefined,
|
380
|
-
preventClick: undefined,
|
381
|
-
bypassURLTrimming: undefined,
|
361
|
+
const createLinkOptions: _CreateLinkOptions = {
|
382
362
|
tabStop: true,
|
383
363
|
};
|
384
364
|
// Not initialising the anchor element with 'zero width space' (\u200b) causes a crash
|
@@ -454,7 +434,7 @@ export class Linkifier implements SDK.TargetManager.Observer {
|
|
454
434
|
const text = uiLocation.linkText(true /* skipTrim */, options.showColumnNumber);
|
455
435
|
Linkifier.setTrimmedText(anchor, text, this.maxLength);
|
456
436
|
|
457
|
-
let titleText = uiLocation.uiSourceCode.url();
|
437
|
+
let titleText: string = uiLocation.uiSourceCode.url();
|
458
438
|
if (uiLocation.uiSourceCode.mimeType() === 'application/wasm') {
|
459
439
|
// For WebAssembly locations, we follow the conventions described in
|
460
440
|
// github.com/WebAssembly/design/blob/master/Web.md#developer-facing-display-conventions
|
@@ -497,16 +477,8 @@ export class Linkifier implements SDK.TargetManager.Observer {
|
|
497
477
|
|
498
478
|
static linkifyURL(url: string, options?: LinkifyURLOptions): HTMLElement {
|
499
479
|
options = options || {
|
500
|
-
text: undefined,
|
501
|
-
className: undefined,
|
502
|
-
lineNumber: undefined,
|
503
|
-
columnNumber: undefined,
|
504
480
|
showColumnNumber: false,
|
505
481
|
inlineFrameIndex: 0,
|
506
|
-
preventClick: undefined,
|
507
|
-
maxLength: undefined,
|
508
|
-
tabStop: undefined,
|
509
|
-
bypassURLTrimming: undefined,
|
510
482
|
};
|
511
483
|
const text = options.text;
|
512
484
|
const className = options.className || '';
|
@@ -547,29 +519,18 @@ export class Linkifier implements SDK.TargetManager.Observer {
|
|
547
519
|
static linkifyRevealable(
|
548
520
|
revealable: Object, text: string|HTMLElement, fallbackHref?: string, title?: string,
|
549
521
|
className?: string): HTMLElement {
|
550
|
-
const createLinkOptions = {
|
522
|
+
const createLinkOptions: _CreateLinkOptions = {
|
551
523
|
maxLength: UI.UIUtils.MaxLengthForDisplayedURLs,
|
552
524
|
href: fallbackHref,
|
553
525
|
title,
|
554
|
-
preventClick: undefined,
|
555
|
-
tabStop: undefined,
|
556
|
-
bypassURLTrimming: undefined,
|
557
526
|
};
|
558
527
|
const {link, linkInfo} = Linkifier.createLink(text, className || '', createLinkOptions);
|
559
528
|
linkInfo.revealable = revealable;
|
560
529
|
return link;
|
561
530
|
}
|
562
531
|
|
563
|
-
private static createLink(text: string|HTMLElement, className: string, options
|
532
|
+
private static createLink(text: string|HTMLElement, className: string, options: _CreateLinkOptions = {}):
|
564
533
|
{link: HTMLElement, linkInfo: _LinkInfo} {
|
565
|
-
options = options || {
|
566
|
-
maxLength: undefined,
|
567
|
-
title: undefined,
|
568
|
-
href: undefined,
|
569
|
-
preventClick: undefined,
|
570
|
-
tabStop: undefined,
|
571
|
-
bypassURLTrimming: undefined,
|
572
|
-
};
|
573
534
|
const {maxLength, title, href, preventClick, tabStop, bypassURLTrimming} = options;
|
574
535
|
const link = document.createElement('span');
|
575
536
|
if (className) {
|
package/package.json
CHANGED
package/front_end/models/issues_manager/descriptions/federatedAuthRequestWellKnownHttpNotFound.md
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
# The provider's .well-known configuration cannot be found.
|
package/front_end/models/issues_manager/descriptions/federatedAuthRequestWellKnownInvalidResponse.md
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
# Provider's .well-known configuration is invalid.
|
package/front_end/models/issues_manager/descriptions/federatedAuthRequestWellKnownNoResponse.md
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
# The response body is empty when fetching the provider's .well-known configuration.
|