chrome-devtools-frontend 1.0.949424 → 1.0.950001

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.
@@ -686,7 +686,6 @@ export const IssueCreated: {
686
686
  'CorsIssue::CorsDisabledScheme': 53,
687
687
  'CorsIssue::PreflightMissingAllowExternal': 54,
688
688
  'CorsIssue::PreflightInvalidAllowExternal': 55,
689
- 'CorsIssue::InvalidResponse': 56,
690
689
  'CorsIssue::NoCorsRedirectModeNotFollow': 57,
691
690
  'QuirksModeIssue::QuirksMode': 58,
692
691
  'QuirksModeIssue::LimitedQuirksMode': 59,
@@ -2846,6 +2846,9 @@
2846
2846
  "panels/application/components/FrameDetailsView.ts | no": {
2847
2847
  "message": "No"
2848
2848
  },
2849
+ "panels/application/components/FrameDetailsView.ts | origin": {
2850
+ "message": "Origin"
2851
+ },
2849
2852
  "panels/application/components/FrameDetailsView.ts | ownerElement": {
2850
2853
  "message": "Owner Element"
2851
2854
  },
@@ -2897,6 +2900,9 @@
2897
2900
  "panels/application/components/FrameDetailsView.ts | unreachableUrl": {
2898
2901
  "message": "Unreachable URL"
2899
2902
  },
2903
+ "panels/application/components/FrameDetailsView.ts | url": {
2904
+ "message": "URL"
2905
+ },
2900
2906
  "panels/application/components/FrameDetailsView.ts | willRequireCrossoriginIsolated": {
2901
2907
  "message": "⚠️ will require cross-origin isolated context in the future"
2902
2908
  },
@@ -5240,6 +5246,9 @@
5240
5246
  "panels/issues/CorsIssueDetailsView.ts | disallowedRequestMethod": {
5241
5247
  "message": "Disallowed Request Method"
5242
5248
  },
5249
+ "panels/issues/CorsIssueDetailsView.ts | failedRequest": {
5250
+ "message": "Failed Request"
5251
+ },
5243
5252
  "panels/issues/CorsIssueDetailsView.ts | header": {
5244
5253
  "message": "Header"
5245
5254
  },
@@ -2784,7 +2784,7 @@
2784
2784
  "message": "ÂṔÎ áv̂áîĺâb́îĺît́ŷ"
2785
2785
  },
2786
2786
  "panels/application/components/FrameDetailsView.ts | availabilityOfCertainApisDepends": {
2787
- "message": "Âv́âíl̂áb̂íl̂ít̂ý ôf́ ĉér̂t́âín̂ ÁP̂Íŝ d́êṕêńd̂ś ôń t̂h́ê d́ôćûḿêńt̂ b́êín̂ǵ cross-origin îśôĺât́d́."
2787
+ "message": "Âv́âíl̂áb̂íl̂ít̂ý ôf́ ĉér̂t́âín̂ ÁP̂Íŝ d́êṕêńd̂ś ôń t̂h́ê d́ôćûḿêńt̂ b́êín̂ǵ ĉŕôŝ-ór̂íĝín̂ íŝól̂át̂éd̂."
2788
2788
  },
2789
2789
  "panels/application/components/FrameDetailsView.ts | available": {
2790
2790
  "message": "âv́âíl̂áb̂ĺê"
@@ -2823,7 +2823,7 @@
2823
2823
  "message": "T̂h́îś f̂ŕâḿê ẃâś ĉŕêát̂éd̂ ṕr̂óĝŕâḿm̂át̂íĉál̂ĺŷ. T́ĥé stack trace ŝh́ôẃŝ ẃĥér̂é t̂h́îś ĥáp̂ṕêńêd́."
2824
2824
  },
2825
2825
  "panels/application/components/FrameDetailsView.ts | crossoriginIsolated": {
2826
- "message": "Cross-Originśôĺât́ê"
2826
+ "message": "Ĉŕôśŝ-Ór̂íĝín̂ Íŝól̂át̂éd̂"
2827
2827
  },
2828
2828
  "panels/application/components/FrameDetailsView.ts | document": {
2829
2829
  "message": "D̂óĉúm̂én̂t́"
@@ -2846,6 +2846,9 @@
2846
2846
  "panels/application/components/FrameDetailsView.ts | no": {
2847
2847
  "message": "N̂ó"
2848
2848
  },
2849
+ "panels/application/components/FrameDetailsView.ts | origin": {
2850
+ "message": "Ôŕîǵîń"
2851
+ },
2849
2852
  "panels/application/components/FrameDetailsView.ts | ownerElement": {
2850
2853
  "message": "Ôẃn̂ér̂ Él̂ém̂én̂t́"
2851
2854
  },
@@ -2856,7 +2859,7 @@
2856
2859
  "message": "r̂ép̂ór̂t́îńĝ t́ô"
2857
2860
  },
2858
2861
  "panels/application/components/FrameDetailsView.ts | requiresCrossoriginIsolated": {
2859
- "message": "r̂éq̂úîŕêś cross-origin îśôĺât́êd́ ĉón̂t́êx́t̂"
2862
+ "message": "r̂éq̂úîŕêś ĉŕôŝ-ór̂íĝín̂ íŝól̂t̂éd̂ ćôńéx̂t́"
2860
2863
  },
2861
2864
  "panels/application/components/FrameDetailsView.ts | root": {
2862
2865
  "message": "r̂óôt́"
@@ -2897,8 +2900,11 @@
2897
2900
  "panels/application/components/FrameDetailsView.ts | unreachableUrl": {
2898
2901
  "message": "Ûńr̂éâćĥáb̂ĺê ÚR̂Ĺ"
2899
2902
  },
2903
+ "panels/application/components/FrameDetailsView.ts | url": {
2904
+ "message": "ÛŔL̂"
2905
+ },
2900
2906
  "panels/application/components/FrameDetailsView.ts | willRequireCrossoriginIsolated": {
2901
- "message": "⚠️ ŵíl̂ĺ r̂éq̂úîŕê cross-origin íŝól̂át̂éd̂ ćôńt̂éx̂t́ îh́ f́ût́ûŕ"
2907
+ "message": "⚠️ ŵíl̂ĺ r̂éq̂úîŕê ćr̂óś-ôŕîǵîń îśôĺt́êd́ ĉón̂êx́t̂ ín̂ t́ĥé f̂úr̂é"
2902
2908
  },
2903
2909
  "panels/application/components/FrameDetailsView.ts | yes": {
2904
2910
  "message": "Ŷéŝ"
@@ -5240,6 +5246,9 @@
5240
5246
  "panels/issues/CorsIssueDetailsView.ts | disallowedRequestMethod": {
5241
5247
  "message": "D̂íŝál̂ĺôẃêd́ R̂éq̂úêśt̂ Ḿêt́ĥód̂"
5242
5248
  },
5249
+ "panels/issues/CorsIssueDetailsView.ts | failedRequest": {
5250
+ "message": "F̂áîĺêd́ R̂éq̂úêśt̂"
5251
+ },
5243
5252
  "panels/issues/CorsIssueDetailsView.ts | header": {
5244
5253
  "message": "Ĥéâd́êŕ"
5245
5254
  },
@@ -40,7 +40,6 @@ export enum IssueCode {
40
40
  PreflightMissingAllowExternal = 'CorsIssue::PreflightMissingAllowExternal',
41
41
  // TODO(https://crbug.com/1263483): Remove this once it's removed from CDP.
42
42
  PreflightInvalidAllowExternal = 'CorsIssue::PreflightInvalidAllowExternal',
43
- InvalidResponse = 'CorsIssue::InvalidResponse',
44
43
  NoCorsRedirectModeNotFollow = 'CorsIssue::NoCorsRedirectModeNotFollow',
45
44
  InvalidPrivateNetworkAccess = 'CorsIssue::InvalidPrivateNetworkAccess',
46
45
  UnexpectedPrivateNetworkAccess = 'CorsIssue::UnexpectedPrivateNetworkAccess',
@@ -63,6 +62,7 @@ function getIssueCode(details: Protocol.Audits.CorsIssueDetails): IssueCode {
63
62
  return IssueCode.WildcardOriginNotAllowed;
64
63
  case Protocol.Network.CorsError.PreflightInvalidStatus:
65
64
  case Protocol.Network.CorsError.PreflightDisallowedRedirect:
65
+ case Protocol.Network.CorsError.InvalidResponse:
66
66
  return IssueCode.PreflightResponseInvalid;
67
67
  case Protocol.Network.CorsError.AllowOriginMismatch:
68
68
  case Protocol.Network.CorsError.PreflightAllowOriginMismatch:
@@ -84,8 +84,6 @@ function getIssueCode(details: Protocol.Audits.CorsIssueDetails): IssueCode {
84
84
  return IssueCode.PreflightMissingAllowExternal;
85
85
  case Protocol.Network.CorsError.PreflightInvalidAllowExternal:
86
86
  return IssueCode.PreflightInvalidAllowExternal;
87
- case Protocol.Network.CorsError.InvalidResponse:
88
- return IssueCode.InvalidResponse;
89
87
  case Protocol.Network.CorsError.InsecurePrivateNetwork:
90
88
  return IssueCode.InsecurePrivateNetwork;
91
89
  case Protocol.Network.CorsError.NoCorsRedirectModeNotFollow:
@@ -226,7 +224,6 @@ export class CorsIssue extends Issue<IssueCode> {
226
224
  };
227
225
  case IssueCode.PreflightMissingAllowExternal:
228
226
  case IssueCode.PreflightInvalidAllowExternal:
229
- case IssueCode.InvalidResponse:
230
227
  case IssueCode.InvalidPrivateNetworkAccess:
231
228
  case IssueCode.UnexpectedPrivateNetworkAccess:
232
229
  return null;
@@ -1,5 +1,5 @@
1
1
  # Ensure preflight responses are valid
2
2
 
3
- A cross-origin resource sharing (CORS) request was blocked because the response to the associated [preflight request](issueCorsPreflightRequest) had an unsuccessful HTTP status code and/or was a redirect.
3
+ A cross-origin resource sharing (CORS) request was blocked because the response to the associated [preflight request](issueCorsPreflightRequest) failed, had an unsuccessful HTTP status code, and/or was a redirect.
4
4
 
5
- To fix this issue, ensure all CORS preflight `OPTION` requests are answered with a successful HTTP status code (2xx) and do not redirect.
5
+ To fix this issue, ensure all CORS preflight `OPTIONS` requests are answered with a successful HTTP status code (2xx) and do not redirect.
@@ -47,6 +47,11 @@ const UIStrings = {
47
47
  */
48
48
  document: 'Document',
49
49
  /**
50
+ *@description A web URL (for a lot of languages this does not need to be translated, please translate only where necessary)
51
+ */
52
+ url: 'URL',
53
+ /**
54
+ /**
50
55
  *@description Title for a link to the Sources panel
51
56
  */
52
57
  clickToRevealInSourcesPanel: 'Click to reveal in Sources panel',
@@ -63,6 +68,12 @@ const UIStrings = {
63
68
  */
64
69
  clickToRevealInNetworkPanelMight: 'Click to reveal in Network panel (might require page reload)',
65
70
  /**
71
+ *@description The origin of a URL (https://web.dev/same-site-same-origin/#origin)
72
+ *(for a lot of languages this does not need to be translated, please translate only where necessary)
73
+ */
74
+ origin: 'Origin',
75
+ /**
76
+ /**
66
77
  *@description Related node label in Timeline UIUtils of the Performance panel
67
78
  */
68
79
  ownerElement: 'Owner Element',
@@ -107,9 +118,11 @@ const UIStrings = {
107
118
  */
108
119
  no: 'No',
109
120
  /**
110
- *@description Row title for in the Frame Details view
121
+ *@description Label for whether a frame is cross-origin isolated
122
+ *(https://developer.chrome.com/docs/extensions/mv3/cross-origin-isolation/)
123
+ *(for a lot of languages this does not need to be translated, please translate only where necessary)
111
124
  */
112
- crossoriginIsolated: '`Cross-Origin` Isolated',
125
+ crossoriginIsolated: 'Cross-Origin Isolated',
113
126
  /**
114
127
  *@description Explanatory text in the Frame Details view
115
128
  */
@@ -132,10 +145,11 @@ const UIStrings = {
132
145
  */
133
146
  apiAvailability: 'API availability',
134
147
  /**
135
- *@description Explanatory text in the Frame Details view for the API availability section
148
+ *@description Explanation of why cross-origin isolation is important
149
+ *(https://web.dev/why-coop-coep/)
150
+ *(for a lot of languages 'cross-origin isolation' does not need to be translated, please translate only where necessary)
136
151
  */
137
- availabilityOfCertainApisDepends:
138
- 'Availability of certain APIs depends on the document being `cross-origin` isolated.',
152
+ availabilityOfCertainApisDepends: 'Availability of certain APIs depends on the document being cross-origin isolated.',
139
153
  /**
140
154
  *@description Description of the SharedArrayBuffer status
141
155
  */
@@ -159,13 +173,17 @@ const UIStrings = {
159
173
  sharedarraybufferConstructorIsAvailable:
160
174
  '`SharedArrayBuffer` constructor is available but `SABs` cannot be transferred via `postMessage`',
161
175
  /**
162
- *@description Explanation for the SharedArrayBuffer availability status
176
+ *@description Explanation why SharedArrayBuffer will not be available in the future
177
+ *(https://developer.chrome.com/docs/extensions/mv3/cross-origin-isolation/)
178
+ *(for a lot of languages 'cross-origin isolation' does not need to be translated, please translate only where necessary)
163
179
  */
164
- willRequireCrossoriginIsolated: '⚠️ will require `cross-origin` isolated context in the future',
180
+ willRequireCrossoriginIsolated: '⚠️ will require cross-origin isolated context in the future',
165
181
  /**
166
- *@description Explanation for the SharedArrayBuffer availability status
182
+ *@description Explanation why SharedArrayBuffer is not available
183
+ *(https://developer.chrome.com/docs/extensions/mv3/cross-origin-isolation/)
184
+ *(for a lot of languages 'cross-origin isolation' does not need to be translated, please translate only where necessary).
167
185
  */
168
- requiresCrossoriginIsolated: 'requires `cross-origin` isolated context',
186
+ requiresCrossoriginIsolated: 'requires cross-origin isolated context',
169
187
  /**
170
188
  *@description Explanation for the SharedArrayBuffer availability status in case the transfer of a SAB requires the
171
189
  * permission policy `cross-origin-isolated` to be enabled (e.g. because the message refers to the situation in an iframe).
@@ -218,10 +236,6 @@ const UIStrings = {
218
236
  */
219
237
  createdByAdScriptExplanation:
220
238
  'There was an ad script in the `(async) stack` when this frame was created. Examining the creation `stack trace` of this frame might provide more insight.',
221
- /**
222
- *@description Label for a list of origin trials that associated with at least one token.
223
- */
224
- // originTrials: 'Origin Trials',
225
239
  };
226
240
  const str_ = i18n.i18n.registerUIStrings('panels/application/components/FrameDetailsView.ts', UIStrings);
227
241
  const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
@@ -343,7 +357,7 @@ export class FrameDetailsReportView extends HTMLElement {
343
357
  return LitHtml.html`
344
358
  <${ReportView.ReportView.ReportSectionHeader.litTagName}>${i18nString(UIStrings.document)}</${
345
359
  ReportView.ReportView.ReportSectionHeader.litTagName}>
346
- <${ReportView.ReportView.ReportKey.litTagName}>${i18n.i18n.lockedString('URL')}</${
360
+ <${ReportView.ReportView.ReportKey.litTagName}>${i18nString(UIStrings.url)}</${
347
361
  ReportView.ReportView.ReportKey.litTagName}>
348
362
  <${ReportView.ReportView.ReportValue.litTagName}>
349
363
  <div class="inline-items">
@@ -449,7 +463,7 @@ export class FrameDetailsReportView extends HTMLElement {
449
463
  private maybeRenderOrigin(): LitHtml.TemplateResult|{} {
450
464
  if (this.frame && this.frame.securityOrigin && this.frame.securityOrigin !== '://') {
451
465
  return LitHtml.html`
452
- <${ReportView.ReportView.ReportKey.litTagName}>${i18n.i18n.lockedString('Origin')}</${
466
+ <${ReportView.ReportView.ReportKey.litTagName}>${i18nString(UIStrings.origin)}</${
453
467
  ReportView.ReportView.ReportKey.litTagName}>
454
468
  <${ReportView.ReportView.ReportValue.litTagName}>
455
469
  <div class="text-ellipsis" title=${this.frame.securityOrigin}>${this.frame.securityOrigin}</div>
@@ -119,6 +119,10 @@ const UIStrings = {
119
119
  *@description Header for the column with the URL scheme that is not supported by fetch
120
120
  */
121
121
  unsupportedScheme: 'Unsupported Scheme',
122
+ /**
123
+ *@description A failed network request.
124
+ */
125
+ failedRequest: 'Failed Request',
122
126
  };
123
127
  const str_ = i18n.i18n.registerUIStrings('panels/issues/CorsIssueDetailsView.ts', UIStrings);
124
128
  const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
@@ -210,7 +214,6 @@ export class CorsIssueDetailsView extends AffectedResourcesView {
210
214
  default:
211
215
  Platform.assertUnhandled<IssuesManager.CorsIssue.IssueCode.PreflightMissingAllowExternal|
212
216
  IssuesManager.CorsIssue.IssueCode.PreflightInvalidAllowExternal|
213
- IssuesManager.CorsIssue.IssueCode.InvalidResponse|
214
217
  IssuesManager.CorsIssue.IssueCode.InvalidPrivateNetworkAccess|
215
218
  IssuesManager.CorsIssue.IssueCode.UnexpectedPrivateNetworkAccess>(issueCode);
216
219
  }
@@ -283,6 +286,8 @@ export class CorsIssueDetailsView extends AffectedResourcesView {
283
286
  return i18nString(UIStrings.preflightInvalidStatus);
284
287
  case Protocol.Network.CorsError.PreflightDisallowedRedirect:
285
288
  return i18nString(UIStrings.preflightDisallowedRedirect);
289
+ case Protocol.Network.CorsError.InvalidResponse:
290
+ return i18nString(UIStrings.failedRequest);
286
291
  }
287
292
  throw new Error('Invalid Argument');
288
293
  }
@@ -447,7 +452,6 @@ export class CorsIssueDetailsView extends AffectedResourcesView {
447
452
  this.appendStatus(element, details.isWarning);
448
453
  Platform.assertUnhandled<IssuesManager.CorsIssue.IssueCode.PreflightMissingAllowExternal|
449
454
  IssuesManager.CorsIssue.IssueCode.PreflightInvalidAllowExternal|
450
- IssuesManager.CorsIssue.IssueCode.InvalidResponse|
451
455
  IssuesManager.CorsIssue.IssueCode.InvalidPrivateNetworkAccess|
452
456
  IssuesManager.CorsIssue.IssueCode.UnexpectedPrivateNetworkAccess>(issueCode);
453
457
  break;
package/package.json CHANGED
@@ -53,5 +53,5 @@
53
53
  "unittest": "scripts/test/run_unittests.py --no-text-coverage",
54
54
  "watch": "third_party/node/node.py --output scripts/watch_build.js"
55
55
  },
56
- "version": "1.0.949424"
56
+ "version": "1.0.950001"
57
57
  }