chrome-devtools-frontend 1.0.1007846 → 1.0.1008562

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.
@@ -470,8 +470,16 @@ export class ParsedURL {
470
470
  return ParsedURL.substring(url as Platform.DevToolsPath.UrlString, 0, wasmFunctionIndex);
471
471
  }
472
472
 
473
+ private static beginsWithWindowsDriveLetter(url: string): boolean {
474
+ return /^[A-Za-z]:/.test(url);
475
+ }
476
+
477
+ private static beginsWithScheme(url: string): boolean {
478
+ return /^[A-Za-z][A-Za-z0-9+.-]*:/.test(url);
479
+ }
480
+
473
481
  static isRelativeURL(url: string): boolean {
474
- return !(/^[A-Za-z][A-Za-z0-9+.-]*:/.test(url));
482
+ return !this.beginsWithScheme(url) || this.beginsWithWindowsDriveLetter(url);
475
483
  }
476
484
 
477
485
  get displayName(): string {
@@ -1469,9 +1469,6 @@
1469
1469
  "models/issues_manager/DeprecationIssue.ts | rtcpMuxPolicyNegotiate": {
1470
1470
  "message": "The rtcpMuxPolicy option is deprecated and will be removed."
1471
1471
  },
1472
- "models/issues_manager/DeprecationIssue.ts | rtpDataChannel": {
1473
- "message": "RTP data channels are no longer supported. The RtpDataChannels constraint is currently ignored, and may cause an error at a later date."
1474
- },
1475
1472
  "models/issues_manager/DeprecationIssue.ts | sharedArrayBufferConstructedWithoutIsolation": {
1476
1473
  "message": "SharedArrayBuffer will require cross-origin isolation. See https://developer.chrome.com/blog/enabling-shared-array-buffer/ for more details."
1477
1474
  },
@@ -1469,9 +1469,6 @@
1469
1469
  "models/issues_manager/DeprecationIssue.ts | rtcpMuxPolicyNegotiate": {
1470
1470
  "message": "T̂h́ê rtcpMuxPolicy óp̂t́îón̂ íŝ d́êṕr̂éĉát̂éd̂ án̂d́ ŵíl̂ĺ b̂é r̂ém̂óv̂éd̂."
1471
1471
  },
1472
- "models/issues_manager/DeprecationIssue.ts | rtpDataChannel": {
1473
- "message": "RTP data channels âŕê ńô ĺôńĝér̂ śûṕp̂ór̂t́êd́. T̂h́ê RtpDataChannels ćôńŝt́r̂áîńt̂ íŝ ćûŕr̂én̂t́l̂ý îǵn̂ór̂éd̂, án̂d́ m̂áŷ ćâúŝé âń êŕr̂ór̂ át̂ á l̂át̂ér̂ d́ât́ê."
1474
- },
1475
1472
  "models/issues_manager/DeprecationIssue.ts | sharedArrayBufferConstructedWithoutIsolation": {
1476
1473
  "message": "SharedArrayBuffer ŵíl̂ĺ r̂éq̂úîŕê ćr̂óŝś-ôŕîǵîń îśôĺât́îón̂. Śêé ĥt́t̂ṕŝ://d́êv́êĺôṕêŕ.ĉh́r̂óm̂é.ĉóm̂/b́l̂óĝ/én̂áb̂ĺîńĝ-śĥár̂éd̂-ár̂ŕâý-b̂úf̂f́êŕ/ f̂ór̂ ḿôŕê d́êt́âíl̂ś."
1477
1474
  },
@@ -315,7 +315,6 @@ export function registerCommands(inspectorBackend) {
315
315
  'RTCPeerConnectionComplexPlanBSdpUsingDefaultSdpSemantics',
316
316
  RTCPeerConnectionSdpSemanticsPlanB: 'RTCPeerConnectionSdpSemanticsPlanB',
317
317
  RtcpMuxPolicyNegotiate: 'RtcpMuxPolicyNegotiate',
318
- RTPDataChannel: 'RTPDataChannel',
319
318
  SharedArrayBufferConstructedWithoutIsolation: 'SharedArrayBufferConstructedWithoutIsolation',
320
319
  TextToSpeech_DisallowedByAutoplay: 'TextToSpeech_DisallowedByAutoplay',
321
320
  V8SharedArrayBufferConstructedInExtensionWithoutIsolation:
@@ -2380,7 +2379,8 @@ export function registerCommands(inspectorBackend) {
2380
2379
  inspectorBackend.registerEnum(
2381
2380
  'Page.FileChooserOpenedEventMode', {SelectSingle: 'selectSingle', SelectMultiple: 'selectMultiple'});
2382
2381
  inspectorBackend.registerEvent('Page.fileChooserOpened', ['frameId', 'backendNodeId', 'mode']);
2383
- inspectorBackend.registerEvent('Page.frameAttached', ['frameId', 'parentFrameId', 'stack']);
2382
+ inspectorBackend.registerEvent(
2383
+ 'Page.frameAttached', ['frameId', 'parentFrameId', 'stack', 'adScriptId', 'debuggerId']);
2384
2384
  inspectorBackend.registerEvent('Page.frameClearedScheduledNavigation', ['frameId']);
2385
2385
  inspectorBackend.registerEnum('Page.FrameDetachedEventReason', {Remove: 'remove', Swap: 'swap'});
2386
2386
  inspectorBackend.registerEvent('Page.frameDetached', ['frameId', 'reason']);
@@ -1062,7 +1062,6 @@ export namespace Audits {
1062
1062
  'RTCPeerConnectionComplexPlanBSdpUsingDefaultSdpSemantics',
1063
1063
  RTCPeerConnectionSdpSemanticsPlanB = 'RTCPeerConnectionSdpSemanticsPlanB',
1064
1064
  RtcpMuxPolicyNegotiate = 'RtcpMuxPolicyNegotiate',
1065
- RTPDataChannel = 'RTPDataChannel',
1066
1065
  SharedArrayBufferConstructedWithoutIsolation = 'SharedArrayBufferConstructedWithoutIsolation',
1067
1066
  TextToSpeech_DisallowedByAutoplay = 'TextToSpeech_DisallowedByAutoplay',
1068
1067
  V8SharedArrayBufferConstructedInExtensionWithoutIsolation =
@@ -11765,6 +11764,8 @@ export namespace Page {
11765
11764
  * JavaScript stack trace of when frame was attached, only set if frame initiated from script.
11766
11765
  */
11767
11766
  stack?: Runtime.StackTrace;
11767
+ adScriptId?: Runtime.ScriptId;
11768
+ debuggerId?: Runtime.UniqueDebuggerId;
11768
11769
  }
11769
11770
 
11770
11771
  /**
@@ -243,16 +243,6 @@ const UIStrings = {
243
243
  * `RTCP MUX` policy.
244
244
  */
245
245
  rtcpMuxPolicyNegotiate: 'The `rtcpMuxPolicy` option is deprecated and will be removed.',
246
- /**
247
- * @description A deprecation warning shown in the DevTools Issues tab.
248
- * It's shown when a video conferencing website attempts to turn on or
249
- * off a feature that has been removed, `RTP data channels`.
250
- * `RTP data channels` are used to send and receive arbitrary data,
251
- * but have been removed in favor of standardized versions of
252
- * `data channels`: `SCTP data channels`.
253
- */
254
- rtpDataChannel:
255
- '`RTP data channels` are no longer supported. The `RtpDataChannels` constraint is currently ignored, and may cause an error at a later date.',
256
246
  /**
257
247
  * @description TODO(crbug.com/1318878): Description needed for translation
258
248
  */
@@ -500,10 +490,6 @@ export class DeprecationIssue extends Issue {
500
490
  feature = 5654810086866944;
501
491
  milestone = 62;
502
492
  break;
503
- case Protocol.Audits.DeprecationIssueType.RTPDataChannel:
504
- messageFunction = i18nLazyString(UIStrings.rtpDataChannel);
505
- milestone = 88;
506
- break;
507
493
  case Protocol.Audits.DeprecationIssueType.SharedArrayBufferConstructedWithoutIsolation:
508
494
  messageFunction = i18nLazyString(UIStrings.sharedArrayBufferConstructedWithoutIsolation);
509
495
  milestone = 106;
@@ -523,7 +523,7 @@ export const RuntimeSettings: RuntimeSetting[] = [
523
523
  {
524
524
  // This setting is disabled, but we keep it around to show in the UI.
525
525
  setting: Common.Settings.Settings.instance().createSetting(
526
- 'lighthouse.throttling', 'simulated', Common.Settings.SettingStorageType.Synced),
526
+ 'lighthouse.throttling', 'simulate', Common.Settings.SettingStorageType.Synced),
527
527
  title: i18nLazyString(UIStrings.throttlingMethod),
528
528
  // We will disable this when we have a Lantern trace viewer within DevTools.
529
529
  learnMore:
@@ -31,6 +31,7 @@ export interface TreeOutlineData<TreeNodeDataType> {
31
31
  */
32
32
  tree: readonly TreeNode<TreeNodeDataType>[];
33
33
  filter?: (node: TreeNodeDataType) => FilterOption;
34
+ compact?: boolean;
34
35
  }
35
36
 
36
37
  export function defaultRenderer(node: TreeNode<string>): LitHtml.TemplateResult {
@@ -111,6 +112,7 @@ export class TreeOutline<TreeNodeDataType> extends HTMLElement {
111
112
  return LitHtml.html`${String(node.treeNodeData)}`;
112
113
  };
113
114
  #nodeFilter?: ((node: TreeNodeDataType) => FilterOption);
115
+ #compact = false;
114
116
 
115
117
  /**
116
118
  * scheduledRender = render() has been called and scheduled a render.
@@ -155,6 +157,7 @@ export class TreeOutline<TreeNodeDataType> extends HTMLElement {
155
157
  this.#defaultRenderer = data.defaultRenderer;
156
158
  this.#treeData = data.tree;
157
159
  this.#nodeFilter = data.filter;
160
+ this.#compact = data.compact || false;
158
161
 
159
162
  if (!this.#hasRenderedAtLeastOnce) {
160
163
  this.#selectedTreeNode = this.#treeData[0];
@@ -454,6 +457,7 @@ export class TreeOutline<TreeNodeDataType> extends HTMLElement {
454
457
  parent: isExpandableNode(node),
455
458
  selected: this.#isSelectedNode(node),
456
459
  'is-top-level': depth === 0,
460
+ compact: this.#compact,
457
461
  });
458
462
  const ariaExpandedAttribute =
459
463
  LitHtml.Directives.ifDefined(isExpandableNode(node) ? String(nodeIsExpanded) : undefined);
@@ -9,15 +9,21 @@
9
9
  }
10
10
 
11
11
  li {
12
+ border: 2px solid transparent;
12
13
  list-style: none;
13
14
  text-overflow: ellipsis;
14
15
  min-height: 12px;
15
16
  }
16
17
 
18
+ .compact {
19
+ border: 0;
20
+ }
21
+
17
22
  .tree-node-key {
18
23
  white-space: var(--override-key-whitespace-wrapping);
19
24
  /* Override the default |min-width: auto| to avoid overflows of flex items */
20
25
  min-width: 0;
26
+ flex-grow: 1;
21
27
  }
22
28
 
23
29
  .arrow-icon {
@@ -79,7 +85,6 @@ li.is-top-level:last-child {
79
85
  }
80
86
 
81
87
  .arrow-and-key-wrapper {
82
- border: 2px solid transparent;
83
88
  display: flex;
84
89
  align-content: center;
85
90
  align-items: center;
package/package.json CHANGED
@@ -55,5 +55,5 @@
55
55
  "unittest": "scripts/test/run_unittests.py --no-text-coverage",
56
56
  "watch": "vpython third_party/node/node.py --output scripts/watch_build.js"
57
57
  },
58
- "version": "1.0.1007846"
58
+ "version": "1.0.1008562"
59
59
  }