chrome-devtools-frontend 1.0.1032471 → 1.0.1034366

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 (40) hide show
  1. package/config/gni/devtools_grd_files.gni +7 -0
  2. package/front_end/core/i18n/locales/en-US.json +6 -0
  3. package/front_end/core/i18n/locales/en-XL.json +6 -0
  4. package/front_end/core/root/Runtime.ts +11 -1
  5. package/front_end/core/sdk/CSSMetadata.ts +1 -0
  6. package/front_end/core/sdk/NetworkManager.ts +19 -5
  7. package/front_end/entrypoints/lighthouse_worker/LighthouseWorkerService.ts +1 -1
  8. package/front_end/entrypoints/main/MainImpl.ts +5 -1
  9. package/front_end/generated/InspectorBackendCommands.js +2 -2
  10. package/front_end/generated/SupportedCSSProperties.js +6 -6
  11. package/front_end/generated/protocol.ts +8 -0
  12. package/front_end/models/extensions/RecorderPluginManager.ts +16 -1
  13. package/front_end/models/extensions/extensions.ts +2 -0
  14. package/front_end/models/issues_manager/AttributionReportingIssue.ts +30 -4
  15. package/front_end/models/issues_manager/CookieIssue.ts +14 -0
  16. package/front_end/models/issues_manager/descriptions/arSourceAndTriggerHeaders.md +9 -0
  17. package/front_end/models/issues_manager/descriptions/arSourceIgnored.md +13 -0
  18. package/front_end/models/issues_manager/descriptions/arTriggerIgnored.md +12 -0
  19. package/front_end/models/issues_manager/descriptions/cookieExcludeDomainNonAscii.md +11 -0
  20. package/front_end/models/issues_manager/descriptions/cookieWarnDomainNonAscii.md +11 -0
  21. package/front_end/models/javascript_metadata/NativeFunctions.js +11 -3
  22. package/front_end/models/persistence/NetworkPersistenceManager.ts +6 -2
  23. package/front_end/models/timeline_model/TimelineModel.ts +25 -12
  24. package/front_end/panels/console/ConsoleFormat.ts +8 -2
  25. package/front_end/panels/console/ConsolePinPane.ts +2 -2
  26. package/front_end/panels/issues/AttributionReportingIssueDetailsView.ts +10 -0
  27. package/front_end/panels/lighthouse/LighthouseProtocolService.ts +4 -1
  28. package/front_end/panels/network/RequestHTMLView.ts +1 -1
  29. package/front_end/third_party/codemirror.next/chunk/codemirror.js +1 -1
  30. package/front_end/third_party/codemirror.next/codemirror.next.d.ts +10 -3
  31. package/front_end/third_party/codemirror.next/package.json +1 -1
  32. package/front_end/ui/components/linear_memory_inspector/LinearMemoryHighlightChipList.ts +129 -0
  33. package/front_end/ui/components/linear_memory_inspector/LinearMemoryInspector.ts +16 -2
  34. package/front_end/ui/components/linear_memory_inspector/LinearMemoryInspectorController.ts +27 -4
  35. package/front_end/ui/components/linear_memory_inspector/LinearMemoryInspectorPane.ts +11 -6
  36. package/front_end/ui/components/linear_memory_inspector/linearMemoryHighlightChipList.css +92 -0
  37. package/front_end/ui/components/linear_memory_inspector/linear_memory_inspector.ts +2 -0
  38. package/front_end/ui/components/markdown_view/MarkdownLinksMap.ts +1 -0
  39. package/front_end/ui/legacy/components/object_ui/JavaScriptREPL.ts +2 -2
  40. package/package.json +1 -1
@@ -62,6 +62,8 @@ export class AttributionReportingIssueDetailsView extends AffectedResourcesView
62
62
  case IssuesManager.AttributionReportingIssue.IssueCode.InvalidRegisterSourceHeader:
63
63
  case IssuesManager.AttributionReportingIssue.IssueCode.InvalidRegisterTriggerHeader:
64
64
  case IssuesManager.AttributionReportingIssue.IssueCode.InvalidEligibleHeader:
65
+ case IssuesManager.AttributionReportingIssue.IssueCode.SourceIgnored:
66
+ case IssuesManager.AttributionReportingIssue.IssueCode.TriggerIgnored:
65
67
  this.appendColumnTitle(header, i18nString(UIStrings.request));
66
68
  this.appendColumnTitle(header, i18nString(UIStrings.invalidHeaderValue));
67
69
  break;
@@ -79,6 +81,9 @@ export class AttributionReportingIssueDetailsView extends AffectedResourcesView
79
81
  this.appendColumnTitle(header, i18nString(UIStrings.element));
80
82
  this.appendColumnTitle(header, i18nString(UIStrings.maximumConcurrentRegistrations));
81
83
  break;
84
+ case IssuesManager.AttributionReportingIssue.IssueCode.SourceAndTriggerHeaders:
85
+ this.appendColumnTitle(header, i18nString(UIStrings.request));
86
+ break;
82
87
  }
83
88
 
84
89
  this.affectedResources.appendChild(header);
@@ -102,6 +107,8 @@ export class AttributionReportingIssueDetailsView extends AffectedResourcesView
102
107
  case IssuesManager.AttributionReportingIssue.IssueCode.InvalidRegisterSourceHeader:
103
108
  case IssuesManager.AttributionReportingIssue.IssueCode.InvalidRegisterTriggerHeader:
104
109
  case IssuesManager.AttributionReportingIssue.IssueCode.InvalidEligibleHeader:
110
+ case IssuesManager.AttributionReportingIssue.IssueCode.SourceIgnored:
111
+ case IssuesManager.AttributionReportingIssue.IssueCode.TriggerIgnored:
105
112
  this.#appendRequestOrEmptyCell(element, details.request);
106
113
  this.appendIssueDetailCell(element, details.invalidParameter || '');
107
114
  break;
@@ -119,6 +126,9 @@ export class AttributionReportingIssueDetailsView extends AffectedResourcesView
119
126
  await this.#appendElementOrEmptyCell(element, issue);
120
127
  this.appendIssueDetailCell(element, details.invalidParameter || '');
121
128
  break;
129
+ case IssuesManager.AttributionReportingIssue.IssueCode.SourceAndTriggerHeaders:
130
+ this.#appendRequestOrEmptyCell(element, details.request);
131
+ break;
122
132
  }
123
133
 
124
134
  this.affectedResources.appendChild(element);
@@ -63,6 +63,7 @@ export class ProtocolService {
63
63
  private parallelConnection?: ProtocolClient.InspectorBackend.Connection;
64
64
  private lighthouseWorkerPromise?: Promise<Worker>;
65
65
  private lighthouseMessageUpdateCallback?: ((arg0: string) => void);
66
+ private configForTesting?: Object;
66
67
 
67
68
  async attach(): Promise<void> {
68
69
  await SDK.TargetManager.TargetManager.instance().suspendAllTargets();
@@ -113,6 +114,7 @@ export class ProtocolService {
113
114
  url: inspectedURL,
114
115
  categoryIDs,
115
116
  flags,
117
+ config: this.configForTesting,
116
118
  locales: this.getLocales(),
117
119
  target: this.targetInfo,
118
120
  });
@@ -134,6 +136,7 @@ export class ProtocolService {
134
136
  url: inspectedURL,
135
137
  categoryIDs,
136
138
  flags,
139
+ config: this.configForTesting,
137
140
  locales: this.getLocales(),
138
141
  target: this.targetInfo,
139
142
  });
@@ -241,7 +244,7 @@ export class ProtocolService {
241
244
  }
242
245
 
243
246
  /** sendWithResponse currently only handles the original startLighthouse request and LHR-filled response. */
244
- private async sendWithResponse(action: string, args: {[x: string]: string|string[]|Object} = {}):
247
+ private async sendWithResponse(action: string, args: {[x: string]: string|string[]|Object|undefined} = {}):
245
248
  Promise<ReportRenderer.RunnerResult> {
246
249
  const worker = await this.ensureWorkerExists();
247
250
  const messageId = lastId++;
@@ -57,7 +57,7 @@ export class RequestHTMLView extends UI.Widget.VBox {
57
57
  const iframe = document.createElement('iframe');
58
58
  iframe.className = 'html-preview-frame';
59
59
  iframe.setAttribute('sandbox', ''); // Forbid to run JavaScript and set unique origin.
60
- iframe.setAttribute('csp', 'default-src \'none\'');
60
+ iframe.setAttribute('csp', 'default-src \'none\';style-src \'unsafe-inline\'');
61
61
  iframe.setAttribute('src', this.dataURL);
62
62
  iframe.tabIndex = -1;
63
63
  UI.ARIAUtils.markAsPresentation(iframe);