chrome-devtools-frontend 1.0.1646286 → 1.0.1646714

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.
@@ -5,6 +5,7 @@
5
5
  import type * as Platform from '../../core/platform/platform.js';
6
6
  import {createIcon} from '../../ui/kit/kit.js';
7
7
  import * as UI from '../../ui/legacy/legacy.js';
8
+ import {html, render} from '../../ui/lit/lit.js';
8
9
 
9
10
  import {ApplicationPanelTreeElement} from './ApplicationPanelTreeElement.js';
10
11
  import type {ResourcesPanel} from './ResourcesPanel.js';
@@ -17,6 +18,13 @@ export class WebMCPTreeElement extends ApplicationPanelTreeElement {
17
18
  super(storagePanel, 'WebMCP', false, 'web-mcp');
18
19
  const icon = createIcon('document');
19
20
  this.setLeadingIcons([icon]);
21
+ const newBadge = UI.UIUtils.maybeCreateNewBadge('web-mcp');
22
+ if (newBadge) {
23
+ const fragment = document.createDocumentFragment();
24
+ // eslint-disable-next-line @devtools/no-lit-render-outside-of-view
25
+ render(html`<div class="trailing-icons icons-container">${newBadge}</div>`, fragment);
26
+ this.listItemElement.appendChild(fragment);
27
+ }
20
28
  }
21
29
 
22
30
  override get itemURL(): Platform.DevToolsPath.UrlString {
@@ -1,7 +1,7 @@
1
1
  Name: Dependencies sourced from the upstream `chromium` repository
2
2
  URL: Internal
3
3
  Version: N/A
4
- Revision: e32418f5632b194cc1b5a5a0c0b1510d33edcc15
4
+ Revision: 744630f612b7b708c9a70d6dae9fc47270c18db4
5
5
  Update Mechanism: Manual (https://crbug.com/428069060)
6
6
  License: BSD-3-Clause
7
7
  License File: LICENSE
@@ -240,6 +240,7 @@ export class Linkifier extends Common.ObjectWrapper.ObjectWrapper<EventTypes> im
240
240
  userMetric: options?.userMetric,
241
241
  jslogContext: options?.jslogContext || 'script-location',
242
242
  omitOrigin: options?.omitOrigin,
243
+ allowPrivileged: options?.allowPrivileged,
243
244
  } satisfies LinkifyURLOptions;
244
245
  const {columnNumber, className = ''} = linkifyURLOptions;
245
246
  if (sourceURL) {
@@ -313,6 +314,7 @@ export class Linkifier extends Common.ObjectWrapper.ObjectWrapper<EventTypes> im
313
314
  tabStop: options?.tabStop,
314
315
  userMetric: options?.userMetric,
315
316
  jslogContext: options?.jslogContext || 'script-source-url',
317
+ allowPrivileged: options?.allowPrivileged,
316
318
  };
317
319
 
318
320
  return scriptLink || Linkifier.linkifyURL(sourceURL, linkifyURLOptions);
@@ -593,6 +595,8 @@ export class Linkifier extends Common.ObjectWrapper.ObjectWrapper<EventTypes> im
593
595
  const lineNumber = options.lineNumber;
594
596
  const columnNumber = options.columnNumber;
595
597
  const showColumnNumber = options.showColumnNumber;
598
+ const isPrivileged = Common.ParsedURL.schemeIs(url, 'chrome:') || Common.ParsedURL.schemeIs(url, 'file:') ||
599
+ Common.ParsedURL.schemeIs(url, 'devtools:');
596
600
  const preventClick = options.preventClick;
597
601
  const maxLength = options.maxLength || UI.UIUtils.MaxLengthForDisplayedURLs;
598
602
  const bypassURLTrimming = options.bypassURLTrimming;
@@ -629,6 +633,10 @@ export class Linkifier extends Common.ObjectWrapper.ObjectWrapper<EventTypes> im
629
633
  linkText += ':' + (columnNumber + 1);
630
634
  }
631
635
  }
636
+ if (isPrivileged && !options?.allowPrivileged) {
637
+ return html`<span class=${className}>${linkText}</span>`;
638
+ }
639
+
632
640
  const title = linkText !== url ? url : '';
633
641
  const linkOptions = {
634
642
  maxLength,
@@ -1170,6 +1178,7 @@ interface LinkInfo {
1170
1178
  }
1171
1179
 
1172
1180
  export interface LinkifyURLOptions {
1181
+ allowPrivileged?: boolean;
1173
1182
  text?: string;
1174
1183
  className?: string;
1175
1184
  lineNumber?: number;
@@ -1187,6 +1196,7 @@ export interface LinkifyURLOptions {
1187
1196
  }
1188
1197
 
1189
1198
  export interface LinkifyOptions {
1199
+ allowPrivileged?: boolean;
1190
1200
  className?: string;
1191
1201
  columnNumber?: number;
1192
1202
  showColumnNumber?: boolean;
@@ -1999,6 +1999,8 @@ export const knownContextValues = new Set([
1999
1999
  'i-pad-pro',
2000
2000
  'i-phone-12-pro',
2001
2001
  'i-phone-14-pro-max',
2002
+ 'i-phone-15-pro-max',
2003
+ 'i-phone-16-pro-max',
2002
2004
  'i-phone-se',
2003
2005
  'i-phone-xr',
2004
2006
  'icons',
@@ -3069,7 +3071,11 @@ export const knownContextValues = new Set([
3069
3071
  'perspective-origin',
3070
3072
  'picture-in-picture',
3071
3073
  'ping',
3074
+ 'pixel-10',
3072
3075
  'pixel-7',
3076
+ 'pixel-8',
3077
+ 'pixel-9',
3078
+ 'pixel-9-pro-xl',
3073
3079
  'pl',
3074
3080
  'place-content',
3075
3081
  'place-items',
@@ -3892,7 +3898,9 @@ export const knownContextValues = new Set([
3892
3898
  'storage',
3893
3899
  'storage-bucket',
3894
3900
  'storage-buckets',
3901
+ 'storage-cookie',
3895
3902
  'storage-default',
3903
+ 'storage-domstorage',
3896
3904
  'storage-items-view.clear-all',
3897
3905
  'storage-items-view.delete-selected',
3898
3906
  'storage-items-view.refresh',
package/package.json CHANGED
@@ -92,5 +92,5 @@
92
92
  "webidl2": "24.5.0",
93
93
  "yargs": "17.7.2"
94
94
  },
95
- "version": "1.0.1646286"
95
+ "version": "1.0.1646714"
96
96
  }