chrome-devtools-frontend 1.0.1004895 → 1.0.1005672

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.
@@ -1416,13 +1416,13 @@
1416
1416
  "message": "The website requested a subresource from a network that it could only access because of its users' privileged network position. These requests expose non-public devices and servers to the internet, increasing the risk of a cross-site request forgery (CSRF) attack, and/or information leakage. To mitigate these risks, Chrome deprecates requests to non-public subresources when initiated from non-secure contexts, and will start blocking them."
1417
1417
  },
1418
1418
  "models/issues_manager/DeprecationIssue.ts | legacyConstraintGoogIPv6": {
1419
- "message": "IPv6 is enabled-by-default and the ability to disable it using googIPv6 will soon be removed. Please stop using this legacy constraint."
1419
+ "message": "IPv6 is enabled-by-default and the ability to disable it using googIPv6 is targeted to be removed in M108, after which it will be ignored. Please stop using this legacy constraint."
1420
1420
  },
1421
1421
  "models/issues_manager/DeprecationIssue.ts | localCSSFileExtensionRejected": {
1422
1422
  "message": "CSS cannot be loaded from file: URLs unless they end in a .css file extension."
1423
1423
  },
1424
1424
  "models/issues_manager/DeprecationIssue.ts | mediaSourceAbortRemove": {
1425
- "message": "Using SourceBuffer.abort() to abort remove()'s asynchronous range removal is deprecated due to specification change. Support will be removed in the future. You should instead await updateend. abort() is intended to only abort an asynchronous media append or reset parser state."
1425
+ "message": "Using SourceBuffer.abort() to abort remove()'s asynchronous range removal is deprecated due to specification change. Support will be removed in the future. You should listen to the updateend event instead. abort() is intended to only abort an asynchronous media append or reset parser state."
1426
1426
  },
1427
1427
  "models/issues_manager/DeprecationIssue.ts | mediaSourceDurationTruncatingBuffered": {
1428
1428
  "message": "Setting MediaSource.duration below the highest presentation timestamp of any buffered coded frames is deprecated due to specification change. Support for implicit removal of truncated buffered media will be removed in the future. You should instead perform explicit remove(newDuration, oldDuration) on all sourceBuffers, where newDuration < oldDuration."
@@ -1445,9 +1445,6 @@
1445
1445
  "models/issues_manager/DeprecationIssue.ts | paymentRequestBasicCard": {
1446
1446
  "message": "The basic-card payment method is deprecated and will be removed."
1447
1447
  },
1448
- "models/issues_manager/DeprecationIssue.ts | paymentRequestShowWithoutGesture": {
1449
- "message": "Calling PaymentRequest.show() without user activation is deprecated and will be removed."
1450
- },
1451
1448
  "models/issues_manager/DeprecationIssue.ts | pictureSourceSrc": {
1452
1449
  "message": "<source src> with a <picture> parent is invalid and therefore ignored. Please use <source srcset> instead."
1453
1450
  },
@@ -1416,13 +1416,13 @@
1416
1416
  "message": "T̂h́ê ẃêb́ŝít̂é r̂éq̂úêśt̂éd̂ á ŝúb̂ŕêśôúr̂ćê f́r̂óm̂ á n̂ét̂ẃôŕk̂ t́ĥát̂ ít̂ ćôúl̂d́ ôńl̂ý âćĉéŝś b̂éĉáûśê óf̂ ít̂ś ûśêŕŝ' ṕr̂ív̂íl̂éĝéd̂ ńêt́ŵór̂ḱ p̂óŝít̂íôń. T̂h́êśê ŕêq́ûéŝt́ŝ éx̂ṕôśê ńôń-p̂úb̂ĺîć d̂év̂íĉéŝ án̂d́ ŝér̂v́êŕŝ t́ô t́ĥé îńt̂ér̂ńêt́, îńĉŕêáŝín̂ǵ t̂h́ê ŕîśk̂ óf̂ á ĉŕôśŝ-śît́ê ŕêq́ûéŝt́ f̂ór̂ǵêŕŷ (ĆŜŔF̂) át̂t́âćk̂, án̂d́/ôŕ îńf̂ór̂ḿât́îón̂ ĺêák̂áĝé. T̂ó m̂ít̂íĝát̂é t̂h́êśê ŕîśk̂ś, Ĉh́r̂óm̂é d̂ép̂ŕêćât́êś r̂éq̂úêśt̂ś t̂ó n̂ón̂-ṕûb́l̂íĉ śûb́r̂éŝóûŕĉéŝ ẃĥén̂ ín̂ít̂íât́êd́ f̂ŕôḿ n̂ón̂-śêćûŕê ćôńt̂éx̂t́ŝ, án̂d́ ŵíl̂ĺ ŝt́âŕt̂ b́l̂óĉḱîńĝ t́ĥém̂."
1417
1417
  },
1418
1418
  "models/issues_manager/DeprecationIssue.ts | legacyConstraintGoogIPv6": {
1419
- "message": "ÎṔv̂6 íŝ én̂áb̂ĺêd́-b̂ý-d̂éf̂áûĺt̂ án̂d́ t̂h́ê áb̂íl̂ít̂ý t̂ó d̂íŝáb̂ĺê ít̂ úŝín̂ǵ googIPv6 íl̂ĺ ŝóôń b̂é r̂ém̂óv̂éd̂. Ṕl̂éâśê śt̂óp̂ úŝín̂ǵ t̂h́îś l̂éĝáĉý ĉón̂śt̂ŕâín̂t́."
1419
+ "message": "ÎṔv̂6 íŝ én̂áb̂ĺêd́-b̂ý-d̂éf̂áûĺt̂ án̂d́ t̂h́ê áb̂íl̂ít̂ý t̂ó d̂íŝáb̂ĺê ít̂ úŝín̂ǵ googIPv6 îś t̂ár̂ǵêt́êd́ t̂ó b̂é r̂ém̂óv̂éd̂ ín̂ Ḿ108, âf́t̂ér̂ ẃĥíĉh́ ît́ ŵíl̂ĺ b̂é îǵn̂ór̂éd̂. Ṕl̂éâśê śt̂óp̂ úŝín̂ǵ t̂h́îś l̂éĝáĉý ĉón̂śt̂ŕâín̂t́."
1420
1420
  },
1421
1421
  "models/issues_manager/DeprecationIssue.ts | localCSSFileExtensionRejected": {
1422
1422
  "message": "ĈŚŜ ćâńn̂ót̂ b́ê ĺôád̂éd̂ f́r̂óm̂ file: ÚR̂Ĺŝ ún̂ĺêśŝ t́ĥéŷ én̂d́ îń â .css f́îĺê éx̂t́êńŝíôń."
1423
1423
  },
1424
1424
  "models/issues_manager/DeprecationIssue.ts | mediaSourceAbortRemove": {
1425
- "message": "Ûśîńĝ SourceBuffer.abort() t́ô áb̂ór̂t́ remove()'ŝ áŝýn̂ćĥŕôńôúŝ ŕâńĝé r̂ém̂óv̂ál̂ íŝ d́êṕr̂éĉát̂éd̂ d́ûé t̂ó ŝṕêćîf́îćât́îón̂ ćĥán̂ǵê. Śûṕp̂ór̂t́ ŵíl̂ĺ b̂é r̂ém̂óv̂éd̂ ín̂ t́ĥé f̂út̂úr̂é. Ŷóû śĥóûĺd̂ ín̂śt̂éâd́ âẃâít̂ updateend. abort() í ín̂t́êd̂é t́ô ón̂ĺb̂ór̂śŷńĉh́r̂ón̂óûéd̂íâ áp̂ṕêń ór̂ ŕêśêár̂śêŕt́âê."
1425
+ "message": "Ûśîńĝ SourceBuffer.abort() t́ô áb̂ór̂t́ remove()'ŝ áŝýn̂ćĥŕôńôúŝ ŕâńĝé r̂ém̂óv̂ál̂ íŝ d́êṕr̂éĉát̂éd̂ d́ûé t̂ó ŝṕêćîf́îćât́îón̂ ćĥán̂ǵê. Śûṕp̂ór̂t́ ŵíl̂ĺ b̂é r̂ém̂óv̂éd̂ ín̂ t́ĥé f̂út̂úr̂é. Ŷóû śĥóûĺd̂ îśt̂én̂ t́ t́ĥé updateend êv́êńt̂ n̂śéâd́. abort() îś îńt̂éd́êd́ t̂ó ńl̂ý âb́ôŕt̂ án̂ áŝýn̂ćĥŕôúŝ ḿêd́îá ṕp̂én̂d́ ôŕ ét̂ ṕâŕŝé t̂át̂é."
1426
1426
  },
1427
1427
  "models/issues_manager/DeprecationIssue.ts | mediaSourceDurationTruncatingBuffered": {
1428
1428
  "message": "Ŝét̂t́îńĝ MediaSource.duration b́êĺôẃ t̂h́ê h́îǵĥéŝt́ p̂ŕêśêńt̂át̂íôń t̂ím̂éŝt́âḿp̂ óf̂ án̂ý b̂úf̂f́êŕêd́ ĉód̂éd̂ f́r̂ám̂éŝ íŝ d́êṕr̂éĉát̂éd̂ d́ûé t̂ó ŝṕêćîf́îćât́îón̂ ćĥán̂ǵê. Śûṕp̂ór̂t́ f̂ór̂ ím̂ṕl̂íĉít̂ ŕêḿôv́âĺ ôf́ t̂ŕûńĉát̂éd̂ b́ûf́f̂ér̂éd̂ ḿêd́îá ŵíl̂ĺ b̂é r̂ém̂óv̂éd̂ ín̂ t́ĥé f̂út̂úr̂é. Ŷóû śĥóûĺd̂ ín̂śt̂éâd́ p̂ér̂f́ôŕm̂ éx̂ṕl̂íĉít̂ remove(newDuration, oldDuration) ón̂ ál̂ĺ sourceBuffers, ŵh́êŕê newDuration < oldDuration."
@@ -1445,9 +1445,6 @@
1445
1445
  "models/issues_manager/DeprecationIssue.ts | paymentRequestBasicCard": {
1446
1446
  "message": "T̂h́ê basic-card ṕâým̂én̂t́ m̂ét̂h́ôd́ îś d̂ép̂ŕêćât́êd́ âńd̂ ẃîĺl̂ b́ê ŕêḿôv́êd́."
1447
1447
  },
1448
- "models/issues_manager/DeprecationIssue.ts | paymentRequestShowWithoutGesture": {
1449
- "message": "Ĉál̂ĺîńĝ PaymentRequest.show() ẃît́ĥóût́ ûśêŕ âćt̂ív̂át̂íôń îś d̂ép̂ŕêćât́êd́ âńd̂ ẃîĺl̂ b́ê ŕêḿôv́êd́."
1450
- },
1451
1448
  "models/issues_manager/DeprecationIssue.ts | pictureSourceSrc": {
1452
1449
  "message": "<source src> ŵít̂h́ â <picture> ṕâŕêńt̂ íŝ ín̂v́âĺîd́ âńd̂ t́ĥér̂éf̂ór̂é îǵn̂ór̂éd̂. Ṕl̂éâśê úŝé <source srcset> îńŝt́êád̂."
1453
1450
  },
@@ -291,7 +291,6 @@ export function registerCommands(inspectorBackend) {
291
291
  InsecurePrivateNetworkSubresourceRequest: 'InsecurePrivateNetworkSubresourceRequest',
292
292
  LegacyConstraintGoogIPv6: 'LegacyConstraintGoogIPv6',
293
293
  LocalCSSFileExtensionRejected: 'LocalCSSFileExtensionRejected',
294
- MediaElementAudioSourceNode: 'MediaElementAudioSourceNode',
295
294
  MediaSourceAbortRemove: 'MediaSourceAbortRemove',
296
295
  MediaSourceDurationTruncatingBuffered: 'MediaSourceDurationTruncatingBuffered',
297
296
  NoSysexWebMIDIWithoutPermission: 'NoSysexWebMIDIWithoutPermission',
@@ -299,7 +298,6 @@ export function registerCommands(inspectorBackend) {
299
298
  NotificationPermissionRequestedIframe: 'NotificationPermissionRequestedIframe',
300
299
  ObsoleteWebRtcCipherSuite: 'ObsoleteWebRtcCipherSuite',
301
300
  PaymentRequestBasicCard: 'PaymentRequestBasicCard',
302
- PaymentRequestShowWithoutGesture: 'PaymentRequestShowWithoutGesture',
303
301
  PictureSourceSrc: 'PictureSourceSrc',
304
302
  PrefixedCancelAnimationFrame: 'PrefixedCancelAnimationFrame',
305
303
  PrefixedRequestAnimationFrame: 'PrefixedRequestAnimationFrame',
@@ -1038,7 +1038,6 @@ export namespace Audits {
1038
1038
  InsecurePrivateNetworkSubresourceRequest = 'InsecurePrivateNetworkSubresourceRequest',
1039
1039
  LegacyConstraintGoogIPv6 = 'LegacyConstraintGoogIPv6',
1040
1040
  LocalCSSFileExtensionRejected = 'LocalCSSFileExtensionRejected',
1041
- MediaElementAudioSourceNode = 'MediaElementAudioSourceNode',
1042
1041
  MediaSourceAbortRemove = 'MediaSourceAbortRemove',
1043
1042
  MediaSourceDurationTruncatingBuffered = 'MediaSourceDurationTruncatingBuffered',
1044
1043
  NoSysexWebMIDIWithoutPermission = 'NoSysexWebMIDIWithoutPermission',
@@ -1046,7 +1045,6 @@ export namespace Audits {
1046
1045
  NotificationPermissionRequestedIframe = 'NotificationPermissionRequestedIframe',
1047
1046
  ObsoleteWebRtcCipherSuite = 'ObsoleteWebRtcCipherSuite',
1048
1047
  PaymentRequestBasicCard = 'PaymentRequestBasicCard',
1049
- PaymentRequestShowWithoutGesture = 'PaymentRequestShowWithoutGesture',
1050
1048
  PictureSourceSrc = 'PictureSourceSrc',
1051
1049
  PrefixedCancelAnimationFrame = 'PrefixedCancelAnimationFrame',
1052
1050
  PrefixedRequestAnimationFrame = 'PrefixedRequestAnimationFrame',
@@ -133,7 +133,7 @@ const UIStrings = {
133
133
  * use of IPv6 addresses with a non-standard API.
134
134
  */
135
135
  legacyConstraintGoogIPv6:
136
- 'IPv6 is enabled-by-default and the ability to disable it using `googIPv6` will soon be removed. Please stop using this legacy constraint.',
136
+ 'IPv6 is enabled-by-default and the ability to disable it using `googIPv6` is targeted to be removed in M108, after which it will be ignored. Please stop using this legacy constraint.',
137
137
  /**
138
138
  * @description TODO(crbug.com/1318865): Description needed for translation
139
139
  */
@@ -143,7 +143,7 @@ const UIStrings = {
143
143
  * @description TODO(crbug.com/1320345): Description needed for translation
144
144
  */
145
145
  mediaSourceAbortRemove:
146
- 'Using `SourceBuffer.abort()` to abort `remove()`\'s asynchronous range removal is deprecated due to specification change. Support will be removed in the future. You should instead await `updateend`. `abort()` is intended to only abort an asynchronous media append or reset parser state.',
146
+ 'Using `SourceBuffer.abort()` to abort `remove()`\'s asynchronous range removal is deprecated due to specification change. Support will be removed in the future. You should listen to the `updateend` event instead. `abort()` is intended to only abort an asynchronous media append or reset parser state.',
147
147
  /**
148
148
  * @description TODO(crbug.com/1320346): Description needed for translation
149
149
  */
@@ -173,11 +173,6 @@ const UIStrings = {
173
173
  * @description TODO(crbug.com/1320349): Description needed for translation
174
174
  */
175
175
  paymentRequestBasicCard: 'The `basic-card` payment method is deprecated and will be removed.',
176
- /**
177
- * @description TODO(crbug.com/1320350): Description needed for translation
178
- */
179
- paymentRequestShowWithoutGesture:
180
- 'Calling `PaymentRequest.show()` without user activation is deprecated and will be removed.',
181
176
  /**
182
177
  * @description This issue indicates that a `<source>` element with a `<picture>` parent was using an `src` attribute, which is not valid and is ignored by the browser. The `srcset` attribute should be used instead.
183
178
  */
@@ -441,11 +436,6 @@ export class DeprecationIssue extends Issue {
441
436
  feature = 5730051011117056;
442
437
  milestone = 100;
443
438
  break;
444
- case Protocol.Audits.DeprecationIssueType.PaymentRequestShowWithoutGesture:
445
- messageFunction = i18nLazyString(UIStrings.paymentRequestShowWithoutGesture);
446
- feature = 5948593429020672;
447
- milestone = 102;
448
- break;
449
439
  case Protocol.Audits.DeprecationIssueType.PictureSourceSrc:
450
440
  messageFunction = i18nLazyString(UIStrings.pictureSourceSrc);
451
441
  break;
@@ -97,7 +97,7 @@ const createPropertyElement = (node: SDK.DOMModel.DOMNode, propertyName: string,
97
97
  const propertyElement = new ElementsComponents.ComputedStyleProperty.ComputedStyleProperty();
98
98
 
99
99
  const renderer = new StylesSidebarPropertyRenderer(null, node, propertyName, propertyValue);
100
- renderer.setColorHandler(processColor.bind(null, false /* computed styles don't provide the original format */));
100
+ renderer.setColorHandler(processColor);
101
101
 
102
102
  const propertyNameElement = renderer.renderName();
103
103
  propertyNameElement.slot = 'property-name';
@@ -117,7 +117,7 @@ const createTraceElement =
117
117
  const trace = new ElementsComponents.ComputedStyleTrace.ComputedStyleTrace();
118
118
 
119
119
  const renderer = new StylesSidebarPropertyRenderer(null, node, property.name, (property.value as string));
120
- renderer.setColorHandler(processColor.bind(null, true));
120
+ renderer.setColorHandler(processColor);
121
121
  const valueElement = renderer.renderValue();
122
122
  valueElement.slot = 'trace-value';
123
123
  trace.appendChild(valueElement);
@@ -138,11 +138,11 @@ const createTraceElement =
138
138
  return trace;
139
139
  };
140
140
 
141
- const processColor = (autoDetectFormat: boolean, text: string): Node => {
141
+ const processColor = (text: string): Node => {
142
142
  const swatch = new InlineEditor.ColorSwatch.ColorSwatch();
143
- swatch.renderColor(text, autoDetectFormat || Common.Color.Format.RGB);
143
+ swatch.renderColor(text, true);
144
144
  const valueElement = document.createElement('span');
145
- valueElement.textContent = text;
145
+ valueElement.textContent = swatch.getText();
146
146
  swatch.append(valueElement);
147
147
 
148
148
  swatch.addEventListener(
@@ -252,6 +252,7 @@ export class ComputedStyleWidget extends UI.ThrottledWidget.ThrottledWidget {
252
252
  fontsWidget.show(this.contentElement);
253
253
 
254
254
  this.idleCallbackManager = new IdleCallbackManager();
255
+ Common.Settings.Settings.instance().moduleSetting('colorFormat').addChangeListener(this.update.bind(this));
255
256
  }
256
257
 
257
258
  onResize(): void {
@@ -253,7 +253,6 @@ export function baseConfiguration(text: string): CM.Extension {
253
253
  indentUnit.instance(),
254
254
  CM.Prec.lowest(CM.EditorView.contentAttributes.of({'aria-label': i18nString(UIStrings.codeEditor)})),
255
255
  detectLineSeparator(text),
256
- autocompletion,
257
256
  CM.tooltips({
258
257
  tooltipSpace: getTooltipSpace,
259
258
  }),
@@ -64,6 +64,10 @@ export class ColorSwatch extends HTMLElement {
64
64
  return this.format;
65
65
  }
66
66
 
67
+ getText(): string|null {
68
+ return this.text;
69
+ }
70
+
67
71
  get anchorBox(): AnchorBox|null {
68
72
  const swatch = this.shadow.querySelector('.color-swatch');
69
73
  return swatch ? swatch.boxInWindow() : null;
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.1004895"
58
+ "version": "1.0.1005672"
59
59
  }