chrome-devtools-frontend 1.0.1028166 → 1.0.1029692

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.
Files changed (38) hide show
  1. package/config/gni/devtools_grd_files.gni +5 -5
  2. package/config/gni/devtools_image_files.gni +1 -0
  3. package/front_end/Images/src/clear-warning_icon.svg +99 -0
  4. package/front_end/core/common/WasmDisassembly.ts +6 -1
  5. package/front_end/core/host/ResourceLoader.ts +17 -3
  6. package/front_end/core/i18n/locales/en-US.json +15 -3
  7. package/front_end/core/i18n/locales/en-XL.json +15 -3
  8. package/front_end/core/sdk/NetworkManager.ts +3 -1
  9. package/front_end/core/sdk/Script.ts +39 -13
  10. package/front_end/generated/InspectorBackendCommands.js +9 -9
  11. package/front_end/generated/SupportedCSSProperties.js +2 -4
  12. package/front_end/generated/protocol.ts +48 -11
  13. package/front_end/models/bindings/ContentProviderBasedProject.ts +7 -1
  14. package/front_end/models/issues_manager/AttributionReportingIssue.ts +26 -36
  15. package/front_end/models/issues_manager/DeprecationIssue.ts +17 -2
  16. package/front_end/models/issues_manager/descriptions/arInsecureContext.md +7 -0
  17. package/front_end/models/issues_manager/descriptions/arInvalidRegisterSourceHeader.md +5 -0
  18. package/front_end/models/issues_manager/descriptions/arInvalidRegisterTriggerHeader.md +5 -0
  19. package/front_end/models/issues_manager/descriptions/arPermissionPolicyDisabled.md +7 -4
  20. package/front_end/models/issues_manager/descriptions/arUntrustworthyReportingOrigin.md +10 -0
  21. package/front_end/models/javascript_metadata/NativeFunctions.js +1 -1
  22. package/front_end/models/text_utils/ContentProvider.ts +9 -1
  23. package/front_end/panels/application/components/Prerender2.ts +12 -0
  24. package/front_end/panels/issues/AttributionReportingIssueDetailsView.ts +11 -42
  25. package/front_end/panels/network/components/RequestHeadersView.ts +86 -46
  26. package/front_end/panels/network/network-meta.ts +16 -0
  27. package/front_end/panels/protocol_monitor/ProtocolMonitor.ts +41 -21
  28. package/front_end/panels/timeline/TimelineLoader.ts +2 -1
  29. package/front_end/ui/components/linear_memory_inspector/LinearMemoryInspectorController.ts +25 -7
  30. package/front_end/ui/components/linear_memory_inspector/LinearMemoryInspectorPane.ts +22 -30
  31. package/front_end/ui/legacy/SplitWidget.ts +2 -0
  32. package/front_end/ui/legacy/components/source_frame/SourceFrame.ts +9 -51
  33. package/package.json +1 -1
  34. package/front_end/models/issues_manager/descriptions/arAttributionSourceUntrustworthyFrameOrigin.md +0 -4
  35. package/front_end/models/issues_manager/descriptions/arAttributionSourceUntrustworthyOrigin.md +0 -5
  36. package/front_end/models/issues_manager/descriptions/arAttributionUntrustworthyFrameOrigin.md +0 -4
  37. package/front_end/models/issues_manager/descriptions/arAttributionUntrustworthyOrigin.md +0 -4
  38. package/front_end/models/issues_manager/descriptions/arInvalidHeader.md +0 -3
@@ -437,6 +437,8 @@ export class SourceFrameImpl extends Common.ObjectWrapper.eventMixin<EventTypes,
437
437
  progressIndicator.setTotalWork(100);
438
438
  this.progressToolbarItem.element.appendChild(progressIndicator.element);
439
439
 
440
+ progressIndicator.setWorked(1);
441
+
440
442
  const deferredContent = await this.lazyContent();
441
443
  let error, content;
442
444
  if (deferredContent.content === null) {
@@ -448,57 +450,13 @@ export class SourceFrameImpl extends Common.ObjectWrapper.eventMixin<EventTypes,
448
450
  const view = new DataView(Common.Base64.decode(deferredContent.content));
449
451
  const decoder = new TextDecoder();
450
452
  this.rawContent = decoder.decode(view, {stream: true});
453
+ } else if ('wasmDisassemblyInfo' in deferredContent && deferredContent.wasmDisassemblyInfo) {
454
+ const {wasmDisassemblyInfo} = deferredContent;
455
+ this.rawContent = CodeMirror.Text.of(wasmDisassemblyInfo.lines);
456
+ this.wasmDisassemblyInternal = wasmDisassemblyInfo;
451
457
  } else {
452
- this.rawContent = deferredContent.content;
453
- }
454
- }
455
-
456
- progressIndicator.setWorked(1);
457
-
458
- if (!error && this.contentType === 'application/wasm') {
459
- const worker = Common.Worker.WorkerWrapper.fromURL(
460
- new URL('../../../../entrypoints/wasmparser_worker/wasmparser_worker-entrypoint.js', import.meta.url));
461
- const promise = new Promise<{
462
- lines: string[],
463
- offsets: number[],
464
- functionBodyOffsets: {
465
- start: number,
466
- end: number,
467
- }[],
468
- }>((resolve, reject) => {
469
- worker.onmessage =
470
- // TODO(crbug.com/1172300) Ignored during the jsdoc to ts migration)
471
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
472
- ({data}: MessageEvent<any>): void => {
473
- if ('event' in data) {
474
- switch (data.event) {
475
- case 'progress':
476
- progressIndicator.setWorked(data.params.percentage);
477
- break;
478
- }
479
- } else if ('method' in data) {
480
- switch (data.method) {
481
- case 'disassemble':
482
- if ('error' in data) {
483
- reject(data.error);
484
- } else if ('result' in data) {
485
- resolve(data.result);
486
- }
487
- break;
488
- }
489
- }
490
- };
491
- worker.onerror = reject;
492
- });
493
- worker.postMessage({method: 'disassemble', params: {content}});
494
- try {
495
- const {lines, offsets, functionBodyOffsets} = await promise;
496
- this.rawContent = content = CodeMirror.Text.of(lines);
497
- this.wasmDisassemblyInternal = new Common.WasmDisassembly.WasmDisassembly(offsets, functionBodyOffsets);
498
- } catch (e) {
499
- this.rawContent = content = error = e.message;
500
- } finally {
501
- worker.terminate();
458
+ this.rawContent = content;
459
+ this.wasmDisassemblyInternal = null;
502
460
  }
503
461
  }
504
462
 
@@ -514,7 +472,7 @@ export class SourceFrameImpl extends Common.ObjectWrapper.eventMixin<EventTypes,
514
472
  this.textEditor.editor.setState(this.placeholderEditorState(error));
515
473
  this.prettyToggle.setEnabled(false);
516
474
  } else {
517
- if (this.shouldAutoPrettyPrint && TextUtils.TextUtils.isMinified(content)) {
475
+ if (this.shouldAutoPrettyPrint && TextUtils.TextUtils.isMinified(content || '')) {
518
476
  await this.setPretty(true);
519
477
  } else {
520
478
  await this.setContent(this.rawContent || '');
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.1028166"
58
+ "version": "1.0.1029692"
59
59
  }
@@ -1,4 +0,0 @@
1
- # Ensure an attribution source triggers in a secure context
2
-
3
- An attribution source event was not recorded because the frame that triggered the event (or the main frame if they
4
- are different) is not trustworthy.
@@ -1,5 +0,0 @@
1
- # Ensure the origins provided in an attribution source are trustworthy
2
-
3
- An attribution source event was not recorded because an untrustworthy origin was specified.
4
- Both, the `attributiondestination` and the `attributionreportto` origins must be
5
- trustworthy.
@@ -1,4 +0,0 @@
1
- # Ensure an attribution triggers in a secure context
2
-
3
- An attribution was not recorded because the frame that triggered the attribution (or the main frame if they
4
- are different) is not trustworthy.
@@ -1,4 +0,0 @@
1
- # Ensure the origin of an attribution-registration request is trustworthy
2
-
3
- An attribution source or trigger was not registered because the origin of the
4
- request was not trustworthy.
@@ -1,3 +0,0 @@
1
- # Ensure that Attribution Reporting API response headers are valid
2
-
3
- This page tries to use the Attribution Reporting API but failed because a response header was invalid.