chrome-devtools-frontend 1.0.970539 → 1.0.972865
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 +12 -7
- package/config/gni/devtools_image_files.gni +1 -0
- package/front_end/Images/src/ic_changes.svg +5 -0
- package/front_end/core/common/ParsedURL.ts +11 -5
- package/front_end/core/host/UserMetrics.ts +4 -1
- package/front_end/core/i18n/locales/en-US.json +45 -0
- package/front_end/core/i18n/locales/en-XL.json +45 -0
- package/front_end/core/platform/UserVisibleError.ts +28 -0
- package/front_end/core/platform/platform.ts +2 -0
- package/front_end/core/sdk/CSSModel.ts +21 -0
- package/front_end/core/sdk/CSSStyleSheetHeader.ts +10 -10
- package/front_end/core/sdk/ChildTargetManager.ts +0 -1
- 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 +32 -10
- package/front_end/core/sdk/NetworkRequest.ts +29 -16
- package/front_end/core/sdk/Resource.ts +10 -10
- package/front_end/core/sdk/ResourceTreeModel.ts +16 -13
- package/front_end/core/sdk/Script.ts +10 -10
- package/front_end/core/sdk/SourceMap.ts +8 -6
- package/front_end/entrypoints/lighthouse_worker/LighthouseService.ts +35 -12
- package/front_end/entrypoints/main/MainImpl.ts +8 -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/CSSWorkspaceBinding.ts +10 -3
- 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/SASSSourceMapping.ts +4 -3
- package/front_end/models/bindings/StylesSourceMapping.ts +2 -1
- package/front_end/models/har/HARFormat.ts +4 -2
- package/front_end/models/har/Importer.ts +0 -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/Automapping.ts +1 -1
- package/front_end/models/persistence/FileSystemWorkspaceBinding.ts +7 -7
- package/front_end/models/persistence/IsolatedFileSystem.ts +10 -13
- 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 +7 -5
- package/front_end/models/workspace/UISourceCode.ts +7 -7
- package/front_end/models/workspace/WorkspaceImpl.ts +1 -3
- package/front_end/models/workspace_diff/WorkspaceDiff.ts +20 -8
- package/front_end/panels/application/ServiceWorkerCacheViews.ts +3 -2
- package/front_end/panels/browser_debugger/categorizedBreakpointsSidebarPane.css +0 -1
- package/front_end/panels/changes/ChangesView.ts +4 -4
- 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/ElementsPanel.ts +25 -11
- package/front_end/panels/elements/ElementsTreeElement.ts +0 -6
- package/front_end/panels/elements/StylesSidebarPane.ts +236 -51
- package/front_end/panels/elements/elementsTreeOutline.css +0 -1
- package/front_end/panels/issues/AffectedResourcesView.ts +1 -1
- package/front_end/panels/issues/AffectedSourcesView.ts +1 -1
- package/front_end/panels/lighthouse/LighthouseController.ts +41 -0
- package/front_end/panels/lighthouse/LighthousePanel.ts +64 -9
- package/front_end/panels/lighthouse/LighthouseProtocolService.ts +32 -4
- package/front_end/panels/lighthouse/LighthouseReportRenderer.ts +0 -5
- package/front_end/panels/lighthouse/LighthouseStartView.ts +8 -4
- package/front_end/panels/lighthouse/LighthouseStartViewFR.ts +100 -0
- package/front_end/panels/lighthouse/LighthouseTimespanView.ts +99 -0
- 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/sensors/sensors.css +0 -1
- 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 +14 -10
- 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 -16
- package/front_end/panels/sources/sources.ts +0 -2
- package/front_end/panels/sources/sourcesView.css +0 -4
- package/front_end/panels/timeline/TimelineUIUtils.ts +4 -47
- package/front_end/third_party/codemirror.next/chunk/codemirror.js +1 -1
- package/front_end/third_party/codemirror.next/chunk/json.js +2 -1
- package/front_end/third_party/codemirror.next/codemirror.next.d.ts +3 -1
- package/front_end/third_party/codemirror.next/package.json +9 -9
- package/front_end/third_party/lighthouse/lighthouse-dt-bundle.js +1047 -1158
- package/front_end/third_party/lighthouse/locales/en-US.json +7 -1
- package/front_end/third_party/lighthouse/locales/en-XL.json +7 -1
- package/front_end/third_party/lighthouse/report/bundle.d.ts +0 -3
- package/front_end/third_party/lighthouse/report/bundle.js +38 -24
- package/front_end/third_party/lighthouse/report-assets/report-generator.mjs +1 -1
- package/front_end/ui/legacy/ViewManager.ts +2 -1
- package/front_end/ui/legacy/closeButton.css +0 -1
- package/front_end/ui/legacy/components/source_frame/BinaryResourceViewFactory.ts +7 -4
- 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/front_end/ui/legacy/tabbedPane.css +0 -2
- package/front_end/ui/legacy/toolbar.css +28 -3
- package/package.json +1 -1
- package/scripts/hosted_mode/server.js +13 -0
- package/scripts/npm_test.js +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
@@ -423,7 +423,7 @@ export class _ExpandableContainerWidget extends VBox {
|
|
423
423
|
|
424
424
|
this.titleElement = document.createElement('div');
|
425
425
|
this.titleElement.classList.add('expandable-view-title');
|
426
|
-
ARIAUtils.
|
426
|
+
ARIAUtils.markAsTab(this.titleElement);
|
427
427
|
this.titleExpandIcon = Icon.create('smallicon-triangle-right', 'title-expand-icon');
|
428
428
|
this.titleElement.appendChild(this.titleExpandIcon);
|
429
429
|
const titleText = view.title();
|
@@ -847,6 +847,7 @@ class _StackLocation extends Location implements ViewLocation {
|
|
847
847
|
const vbox = new VBox();
|
848
848
|
super(manager, vbox, revealCallback);
|
849
849
|
this.vbox = vbox;
|
850
|
+
ARIAUtils.markAsTablist(vbox.element);
|
850
851
|
|
851
852
|
this.expandableContainers = new Map();
|
852
853
|
|
@@ -3,10 +3,13 @@
|
|
3
3
|
// found in the LICENSE file.
|
4
4
|
|
5
5
|
import type * as Common from '../../../../core/common/common.js';
|
6
|
+
import type * as Platform from '../../../../core/platform/platform.js';
|
6
7
|
import * as TextUtils from '../../../../models/text_utils/text_utils.js';
|
7
8
|
|
8
9
|
import {ResourceSourceFrame} from './ResourceSourceFrame.js';
|
9
10
|
|
11
|
+
// TODO(crbug.com/1253323): Casts to UrlString will be removed from this file when migration to branded types is complete.
|
12
|
+
|
10
13
|
export class BinaryResourceViewFactory {
|
11
14
|
private base64content: string;
|
12
15
|
private readonly contentUrl: string;
|
@@ -67,8 +70,8 @@ export class BinaryResourceViewFactory {
|
|
67
70
|
}
|
68
71
|
|
69
72
|
createHexView(): ResourceSourceFrame {
|
70
|
-
const hexViewerContentProvider =
|
71
|
-
|
73
|
+
const hexViewerContentProvider = new TextUtils.StaticContentProvider.StaticContentProvider(
|
74
|
+
this.contentUrl as Platform.DevToolsPath.UrlString, this.resourceType, async () => {
|
72
75
|
const contentAsArray = await this.fetchContentAsArray();
|
73
76
|
const content = BinaryResourceViewFactory.uint8ArrayToHexViewer(contentAsArray);
|
74
77
|
return {content, isEncoded: false};
|
@@ -79,8 +82,8 @@ export class BinaryResourceViewFactory {
|
|
79
82
|
|
80
83
|
createUtf8View(): ResourceSourceFrame {
|
81
84
|
const utf8fn = this.utf8.bind(this);
|
82
|
-
const utf8ContentProvider =
|
83
|
-
|
85
|
+
const utf8ContentProvider = new TextUtils.StaticContentProvider.StaticContentProvider(
|
86
|
+
this.contentUrl as Platform.DevToolsPath.UrlString, this.resourceType, utf8fn);
|
84
87
|
return new ResourceSourceFrame(
|
85
88
|
utf8ContentProvider, this.resourceType.canonicalMimeType(), {lineNumbers: true, lineWrapping: true});
|
86
89
|
}
|
@@ -51,7 +51,7 @@ const UIStrings = {
|
|
51
51
|
const str_ = i18n.i18n.registerUIStrings('ui/legacy/components/source_frame/FontView.ts', UIStrings);
|
52
52
|
const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
53
53
|
export class FontView extends UI.View.SimpleView {
|
54
|
-
private readonly url:
|
54
|
+
private readonly url: Platform.DevToolsPath.UrlString;
|
55
55
|
private readonly mimeType: string;
|
56
56
|
private readonly contentProvider: TextUtils.ContentProvider.ContentProvider;
|
57
57
|
private readonly mimeTypeLabel: UI.Toolbar.ToolbarText;
|
@@ -84,7 +84,7 @@ const UIStrings = {
|
|
84
84
|
const str_ = i18n.i18n.registerUIStrings('ui/legacy/components/source_frame/ImageView.ts', UIStrings);
|
85
85
|
const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
86
86
|
export class ImageView extends UI.View.SimpleView {
|
87
|
-
private url:
|
87
|
+
private url: Platform.DevToolsPath.UrlString;
|
88
88
|
private parsedURL: Common.ParsedURL.ParsedURL;
|
89
89
|
private readonly mimeType: string;
|
90
90
|
private readonly contentProvider: TextUtils.ContentProvider.ContentProvider;
|
@@ -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) {
|
@@ -194,7 +194,6 @@
|
|
194
194
|
.tabbed-pane-header-tabs-drop-down-container {
|
195
195
|
float: left;
|
196
196
|
opacity: 80%;
|
197
|
-
cursor: pointer;
|
198
197
|
display: flex;
|
199
198
|
align-items: center;
|
200
199
|
height: 100%;
|
@@ -347,7 +346,6 @@
|
|
347
346
|
|
348
347
|
width: 14px;
|
349
348
|
height: 14px;
|
350
|
-
cursor: default;
|
351
349
|
display: flex;
|
352
350
|
align-items: center;
|
353
351
|
justify-content: center;
|
@@ -7,12 +7,14 @@
|
|
7
7
|
:host {
|
8
8
|
flex: none;
|
9
9
|
padding: 0 2px;
|
10
|
+
|
11
|
+
--toolbar-height: 26px;
|
10
12
|
}
|
11
13
|
|
12
14
|
.toolbar-shadow {
|
13
15
|
position: relative;
|
14
16
|
white-space: nowrap;
|
15
|
-
height:
|
17
|
+
height: var(--toolbar-height);
|
16
18
|
overflow: hidden;
|
17
19
|
z-index: 12;
|
18
20
|
display: flex;
|
@@ -43,7 +45,7 @@
|
|
43
45
|
align-items: center;
|
44
46
|
justify-content: center;
|
45
47
|
padding: 0;
|
46
|
-
height:
|
48
|
+
height: var(--toolbar-height);
|
47
49
|
border: none;
|
48
50
|
white-space: pre;
|
49
51
|
}
|
@@ -55,7 +57,7 @@
|
|
55
57
|
|
56
58
|
.toolbar-shadow.vertical .toolbar-item {
|
57
59
|
height: auto;
|
58
|
-
min-height:
|
60
|
+
min-height: var(--toolbar-height);
|
59
61
|
white-space: normal;
|
60
62
|
}
|
61
63
|
|
@@ -175,6 +177,29 @@ it. */
|
|
175
177
|
margin-inline-end: 28px;
|
176
178
|
}
|
177
179
|
|
180
|
+
.toolbar-button.copied-to-clipboard::after {
|
181
|
+
content: attr(data-content);
|
182
|
+
position: fixed;
|
183
|
+
top: var(--toolbar-height);
|
184
|
+
padding: 3px 5px;
|
185
|
+
color: var(--color-text-secondary);
|
186
|
+
background: var(--color-background-elevation-1);
|
187
|
+
animation: 2s fade-out;
|
188
|
+
font-weight: normal;
|
189
|
+
border: 1px solid var(--color-details-hairline);
|
190
|
+
border-radius: 3px;
|
191
|
+
}
|
192
|
+
|
193
|
+
@keyframes fade-out {
|
194
|
+
from {
|
195
|
+
opacity: 100%;
|
196
|
+
}
|
197
|
+
|
198
|
+
to {
|
199
|
+
opacity: 0%;
|
200
|
+
}
|
201
|
+
}
|
202
|
+
|
178
203
|
.toolbar-button.toolbar-state-on .toolbar-glyph {
|
179
204
|
background-color: var(--color-primary);
|
180
205
|
}
|
package/package.json
CHANGED
@@ -177,6 +177,19 @@ async function requestHandler(request, response) {
|
|
177
177
|
// This is fine to do given that test invocations run against fresh Chrome profiles.
|
178
178
|
headers.set('Cache-Control', 'max-age=3600');
|
179
179
|
}
|
180
|
+
if (!headers.get('Access-Control-Allow-Origin')) {
|
181
|
+
// The DevTools frontend in hosted-mode uses regular fetch to get source maps etc.
|
182
|
+
// Disable CORS only for the DevTools frontend, not for resource/target pages.
|
183
|
+
// Since Chrome will cache resources, we have to indicate that CORS can still vary
|
184
|
+
// based on the origin that made the request. E.g. the target page loads a script first
|
185
|
+
// but then DevTools also wants to load it. In the former, we disallow cross-origin requests by default,
|
186
|
+
// while for the latter we allow it.
|
187
|
+
const requestedByDevTools = request.headers.origin?.includes('devtools-frontend.test');
|
188
|
+
if (requestedByDevTools) {
|
189
|
+
headers.set('Access-Control-Allow-Origin', request.headers.origin);
|
190
|
+
}
|
191
|
+
headers.set('Vary', 'Origin');
|
192
|
+
}
|
180
193
|
headers.forEach((value, header) => {
|
181
194
|
response.setHeader(header, value);
|
182
195
|
});
|
package/scripts/npm_test.js
CHANGED
@@ -91,7 +91,7 @@ function runTests(buildDirectoryPath, useDebugDevtools) {
|
|
91
91
|
|
92
92
|
if (IS_DEBUG_ENABLED) {
|
93
93
|
testArgs.push('--additional-driver-flag=--remote-debugging-port=9222');
|
94
|
-
testArgs.push('--
|
94
|
+
testArgs.push('--timeout-ms=6000000');
|
95
95
|
console.log('\n=============================================');
|
96
96
|
const unitTest = testArgs.find(arg => arg.includes('http/tests/devtools/unit/'));
|
97
97
|
if (unitTest) {
|
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.
|