chrome-devtools-frontend 1.0.1026673 → 1.0.1027150

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.
@@ -1,3 +1,3 @@
1
1
  paulirish@chromium.org
2
2
  cjamcl@chromium.org
3
- asraine@google.com
3
+ asraine@chromium.org
@@ -636,8 +636,9 @@ export enum DevtoolsExperiments {
636
636
  'instrumentationBreakpoints' = 61,
637
637
  'cssAuthoringHints' = 62,
638
638
  'authoredDeployedGrouping' = 63,
639
+ 'importantDOMProperties' = 64,
639
640
  // Increment this when new experiments are added.
640
- 'MaxValue' = 64,
641
+ 'MaxValue' = 65,
641
642
  }
642
643
  /* eslint-enable @typescript-eslint/naming-convention */
643
644
 
@@ -9548,6 +9548,12 @@
9548
9548
  "panels/settings/FrameworkIgnoreListSettingsTab.ts | addPattern": {
9549
9549
  "message": "Add pattern..."
9550
9550
  },
9551
+ "panels/settings/FrameworkIgnoreListSettingsTab.ts | automaticallyIgnoreListKnownThirdPartyScripts": {
9552
+ "message": "Automatically add known third-party scripts to ignore list"
9553
+ },
9554
+ "panels/settings/FrameworkIgnoreListSettingsTab.ts | automaticallyIgnoreListKnownThirdPartyScriptsTooltip": {
9555
+ "message": "Add sources from the x_google_ignoreList field from source maps to the ignore list"
9556
+ },
9551
9557
  "panels/settings/FrameworkIgnoreListSettingsTab.ts | behavior": {
9552
9558
  "message": "Behavior"
9553
9559
  },
@@ -9548,6 +9548,12 @@
9548
9548
  "panels/settings/FrameworkIgnoreListSettingsTab.ts | addPattern": {
9549
9549
  "message": "Âd́d̂ ṕât́t̂ér̂ń..."
9550
9550
  },
9551
+ "panels/settings/FrameworkIgnoreListSettingsTab.ts | automaticallyIgnoreListKnownThirdPartyScripts": {
9552
+ "message": "Âút̂óm̂át̂íĉál̂ĺŷ ád̂d́ k̂ńôẃn̂ t́ĥír̂d́-p̂ár̂t́ŷ śĉŕîṕt̂ś t̂ó îǵn̂ór̂é l̂íŝt́"
9553
+ },
9554
+ "panels/settings/FrameworkIgnoreListSettingsTab.ts | automaticallyIgnoreListKnownThirdPartyScriptsTooltip": {
9555
+ "message": "Âd́d̂ śôúr̂ćêś f̂ŕôḿ t̂h́ê x_google_ignoreList f́îél̂d́ f̂ŕôḿ ŝóûŕĉé m̂áp̂ś t̂ó t̂h́ê íĝńôŕê ĺîśt̂"
9556
+ },
9551
9557
  "panels/settings/FrameworkIgnoreListSettingsTab.ts | behavior": {
9552
9558
  "message": "B̂éĥáv̂íôŕ"
9553
9559
  },
@@ -293,6 +293,7 @@ export enum ExperimentName {
293
293
  INSTRUMENTATION_BREAKPOINTS = 'instrumentationBreakpoints',
294
294
  CSS_AUTHORING_HINTS = 'cssAuthoringHints',
295
295
  AUTHORED_DEPLOYED_GROUPING = 'authoredDeployedGrouping',
296
+ IMPORTANT_DOM_PROPERTIES = 'importantDOMProperties',
296
297
  }
297
298
 
298
299
  // TODO(crbug.com/1167717): Make this a const enum again
@@ -914,8 +914,13 @@ export class NetworkDispatcher implements ProtocolProxyApi.NetworkDispatcher {
914
914
  const oldDispatcher = (NetworkManager.forRequest(request) as NetworkManager).dispatcher;
915
915
  oldDispatcher.#requestsById.delete(requestId);
916
916
  oldDispatcher.#requestsByURL.delete(request.url());
917
+ const builder = oldDispatcher.#requestIdToExtraInfoBuilder.get(requestId);
918
+ oldDispatcher.#requestIdToExtraInfoBuilder.delete(requestId);
917
919
  this.#requestsById.set(requestId, request);
918
920
  this.#requestsByURL.set(request.url(), request);
921
+ if (builder) {
922
+ this.#requestIdToExtraInfoBuilder.set(requestId, builder);
923
+ }
919
924
  requestToManagerMap.set(request, this.#manager);
920
925
  return request;
921
926
  }
@@ -981,9 +986,21 @@ export class NetworkDispatcher implements ProtocolProxyApi.NetworkDispatcher {
981
986
  }
982
987
 
983
988
  clearRequests(): void {
984
- this.#requestsById.clear();
985
- this.#requestsByURL.clear();
986
- this.#requestIdToExtraInfoBuilder.clear();
989
+ for (const [requestId, request] of this.#requestsById) {
990
+ if (request.finished) {
991
+ this.#requestsById.delete(requestId);
992
+ }
993
+ }
994
+ for (const [requestURL, request] of this.#requestsByURL) {
995
+ if (request.finished) {
996
+ this.#requestsByURL.delete(requestURL);
997
+ }
998
+ }
999
+ for (const [requestId, builder] of this.#requestIdToExtraInfoBuilder) {
1000
+ if (builder.isFinished()) {
1001
+ this.#requestIdToExtraInfoBuilder.delete(requestId);
1002
+ }
1003
+ }
987
1004
  }
988
1005
 
989
1006
  webTransportCreated({transportId, url: requestURL, timestamp: time, initiator}:
@@ -1643,6 +1660,10 @@ class ExtraInfoBuilder {
1643
1660
  this.updateFinalRequest();
1644
1661
  }
1645
1662
 
1663
+ isFinished(): boolean {
1664
+ return this.#finishedInternal;
1665
+ }
1666
+
1646
1667
  private sync(index: number): void {
1647
1668
  const req = this.#requests[index];
1648
1669
  if (!req) {
@@ -232,7 +232,7 @@ export class ResourceTreeModel extends SDKModel<EventTypes> {
232
232
  this.processPendingEvents(frame);
233
233
  this.dispatchEventToListeners(Events.MainFrameNavigated, frame);
234
234
  const networkManager = this.target().model(NetworkManager);
235
- if (networkManager) {
235
+ if (networkManager && frame.isTopFrame()) {
236
236
  networkManager.clearRequests();
237
237
  }
238
238
  }
@@ -332,6 +332,13 @@ Common.Settings.registerSettingExtension({
332
332
  defaultValue: false,
333
333
  });
334
334
 
335
+ Common.Settings.registerSettingExtension({
336
+ storageType: Common.Settings.SettingStorageType.Synced,
337
+ settingName: 'automaticallyIgnoreListKnownThirdPartyScripts',
338
+ settingType: Common.Settings.SettingType.BOOLEAN,
339
+ defaultValue: true,
340
+ });
341
+
335
342
  Common.Settings.registerSettingExtension({
336
343
  category: Common.Settings.SettingCategory.CONSOLE,
337
344
  storageType: Common.Settings.SettingStorageType.Synced,
@@ -1155,6 +1155,7 @@
1155
1155
  'showWhitespacesInEditor',
1156
1156
  'sidebarPosition',
1157
1157
  'skipContentScripts',
1158
+ 'automaticallyIgnoreListKnownThirdPartyScripts',
1158
1159
  'skipStackFramesPattern',
1159
1160
  'sourceMapInfobarDisabled',
1160
1161
  'sourcesPanelDebuggerSidebarSplitViewState',
@@ -406,6 +406,11 @@ export class MainImpl {
406
406
  Root.Runtime.experiments.register(
407
407
  Root.Runtime.ExperimentName.AUTHORED_DEPLOYED_GROUPING, 'Group sources into Authored and Deployed trees');
408
408
 
409
+ // Highlight important DOM properties in the Object Properties viewer.
410
+ Root.Runtime.experiments.register(
411
+ Root.Runtime.ExperimentName.IMPORTANT_DOM_PROPERTIES,
412
+ 'Highlight important DOM properties in the Object Properties viewer');
413
+
409
414
  Root.Runtime.experiments.enableExperimentsByDefault([
410
415
  'sourceOrderViewer',
411
416
  'hideIssuesFeature',