chrome-devtools-frontend 1.0.935784 → 1.0.935974

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 (33) hide show
  1. package/config/gni/all_devtools_files.gni +0 -10
  2. package/config/gni/devtools_grd_files.gni +2 -7
  3. package/front_end/core/i18n/locales/en-US.json +3 -3
  4. package/front_end/core/i18n/locales/en-XL.json +3 -3
  5. package/front_end/core/sdk/ConsoleModel.ts +0 -20
  6. package/front_end/entrypoints/devtools_app/devtools_app.json +0 -4
  7. package/front_end/entrypoints/shell/shell.json +0 -4
  8. package/front_end/entrypoints/worker_app/worker_app.json +0 -2
  9. package/front_end/panels/application/BackForwardCacheView.ts +54 -6
  10. package/front_end/panels/application/module.json +0 -1
  11. package/front_end/panels/console/ConsoleFilter.ts +1 -1
  12. package/front_end/panels/console/ConsoleViewMessage.ts +2 -19
  13. package/front_end/panels/console_counters/console_counters-meta.ts +0 -3
  14. package/front_end/panels/elements/module.json +0 -1
  15. package/front_end/panels/help/help-meta.ts +0 -3
  16. package/front_end/panels/input/input-meta.ts +0 -2
  17. package/front_end/panels/network/module.json +0 -1
  18. package/front_end/panels/settings/settings-meta.ts +0 -2
  19. package/front_end/panels/sources/module.json +0 -1
  20. package/front_end/panels/web_audio/web_audio-meta.ts +0 -3
  21. package/front_end/panels/webauthn/webauthn-meta.ts +0 -2
  22. package/front_end/ui/components/buttons/button.css +1 -0
  23. package/front_end/ui/legacy/components/color_picker/Spectrum.ts +2 -1
  24. package/front_end/ui/legacy/components/cookie_table/CookiesTable.ts +6 -1
  25. package/package.json +1 -1
  26. package/front_end/panels/console_counters/module.json +0 -5
  27. package/front_end/panels/help/module.json +0 -5
  28. package/front_end/panels/input/module.json +0 -5
  29. package/front_end/panels/settings/module.json +0 -5
  30. package/front_end/panels/web_audio/module.json +0 -5
  31. package/front_end/panels/webauthn/module.json +0 -5
  32. package/front_end/ui/legacy/components/color_picker/module.json +0 -8
  33. package/front_end/ui/legacy/components/cookie_table/module.json +0 -8
@@ -36,9 +36,6 @@ all_devtools_files = [
36
36
  "front_end/legacy_test_runner/bindings_test_runner/PersistenceTestRunner.js",
37
37
  "front_end/panels/browser_debugger/module.json",
38
38
  "front_end/third_party/codemirror/codemirror.css",
39
- "front_end/ui/legacy/components/color_picker/module.json",
40
- "front_end/ui/legacy/components/color_picker/spectrum.css",
41
- "front_end/panels/console_counters/module.json",
42
39
  "front_end/legacy_test_runner/console_test_runner/console_test_runner.js",
43
40
  "front_end/panels/console/consoleContextSelector.css",
44
41
  "front_end/panels/console/consolePinPane.css",
@@ -46,8 +43,6 @@ all_devtools_files = [
46
43
  "front_end/panels/console/consoleSidebar.css",
47
44
  "front_end/panels/console/consoleView.css",
48
45
  "front_end/panels/console/module.json",
49
- "front_end/ui/legacy/components/cookie_table/cookiesTable.css",
50
- "front_end/ui/legacy/components/cookie_table/module.json",
51
46
  "front_end/legacy_test_runner/coverage_test_runner/coverage_test_runner.js",
52
47
  "front_end/panels/coverage/module.json",
53
48
  "front_end/legacy_test_runner/cpu_profiler_test_runner/cpu_profiler_test_runner.js",
@@ -72,7 +67,6 @@ all_devtools_files = [
72
67
  "front_end/legacy_test_runner/extensions_test_runner/ExtensionsNetworkTestRunner.js",
73
68
  "front_end/legacy_test_runner/extensions_test_runner/ExtensionsTestRunner.js",
74
69
  "front_end/legacy_test_runner/heap_profiler_test_runner/heap_profiler_test_runner.js",
75
- "front_end/panels/help/module.json",
76
70
  "front_end/ui/legacy/components/inline_editor/bezierEditor.css",
77
71
  "front_end/ui/legacy/components/inline_editor/bezierSwatch.css",
78
72
  "front_end/ui/legacy/components/inline_editor/colorSwatch.css",
@@ -81,7 +75,6 @@ all_devtools_files = [
81
75
  "front_end/ui/legacy/components/inline_editor/fontEditor.css",
82
76
  "front_end/ui/legacy/components/inline_editor/module.json",
83
77
  "front_end/ui/legacy/components/inline_editor/swatchPopover.css",
84
- "front_end/panels/input/module.json",
85
78
  "front_end/entrypoints/inspector_main/module.json",
86
79
  "front_end/entrypoints/inspector_main/nodeIcon.css",
87
80
  "front_end/entrypoints/inspector_main/renderingOptions.css",
@@ -176,7 +169,6 @@ all_devtools_files = [
176
169
  "front_end/legacy_test_runner/sdk_test_runner/sdk_test_runner.js",
177
170
  "front_end/legacy_test_runner/security_test_runner/security_test_runner.js",
178
171
  "front_end/panels/security/module.json",
179
- "front_end/panels/settings/module.json",
180
172
  "front_end/entrypoints/shell/shell.json",
181
173
  "front_end/ui/legacy/components/source_frame/fontView.css",
182
174
  "front_end/ui/legacy/components/source_frame/imageView.css",
@@ -239,8 +231,6 @@ all_devtools_files = [
239
231
  "front_end/ui/legacy/toolbar.css",
240
232
  "front_end/ui/legacy/treeoutline.css",
241
233
  "front_end/ui/legacy/viewContainers.css",
242
- "front_end/panels/web_audio/module.json",
243
- "front_end/panels/webauthn/module.json",
244
234
  ]
245
235
 
246
236
  lighthouse_locale_files = [
@@ -373,10 +373,8 @@ grd_files_release_sources = [
373
373
  "front_end/panels/event_listeners/event_listeners_module.js",
374
374
  "front_end/panels/help/help-meta.js",
375
375
  "front_end/panels/help/help.js",
376
- "front_end/panels/help/help_module.js",
377
376
  "front_end/panels/input/input-meta.js",
378
377
  "front_end/panels/input/input.js",
379
- "front_end/panels/input/input_module.js",
380
378
  "front_end/panels/issues/components/components.js",
381
379
  "front_end/panels/issues/issues-meta.js",
382
380
  "front_end/panels/issues/issues.js",
@@ -435,7 +433,6 @@ grd_files_release_sources = [
435
433
  "front_end/panels/settings/settings-legacy.js",
436
434
  "front_end/panels/settings/settings-meta.js",
437
435
  "front_end/panels/settings/settings.js",
438
- "front_end/panels/settings/settings_module.js",
439
436
  "front_end/panels/snippets/snippets-legacy.js",
440
437
  "front_end/panels/snippets/snippets.js",
441
438
  "front_end/panels/sources/sources-legacy.js",
@@ -452,10 +449,8 @@ grd_files_release_sources = [
452
449
  "front_end/panels/web_audio/web_audio-legacy.js",
453
450
  "front_end/panels/web_audio/web_audio-meta.js",
454
451
  "front_end/panels/web_audio/web_audio.js",
455
- "front_end/panels/web_audio/web_audio_module.js",
456
452
  "front_end/panels/webauthn/webauthn-meta.js",
457
453
  "front_end/panels/webauthn/webauthn.js",
458
- "front_end/panels/webauthn/webauthn_module.js",
459
454
  "front_end/third_party/acorn-loose/acorn-loose.js",
460
455
  "front_end/third_party/acorn/acorn.js",
461
456
  "front_end/third_party/chromium/client-variations/client-variations.js",
@@ -506,10 +501,8 @@ grd_files_release_sources = [
506
501
  "front_end/ui/components/tree_outline/tree_outline.js",
507
502
  "front_end/ui/legacy/components/color_picker/color_picker-legacy.js",
508
503
  "front_end/ui/legacy/components/color_picker/color_picker.js",
509
- "front_end/ui/legacy/components/color_picker/color_picker_module.js",
510
504
  "front_end/ui/legacy/components/cookie_table/cookie_table-legacy.js",
511
505
  "front_end/ui/legacy/components/cookie_table/cookie_table.js",
512
- "front_end/ui/legacy/components/cookie_table/cookie_table_module.js",
513
506
  "front_end/ui/legacy/components/data_grid/data_grid-legacy.js",
514
507
  "front_end/ui/legacy/components/data_grid/data_grid.js",
515
508
  "front_end/ui/legacy/components/inline_editor/inline_editor-legacy.js",
@@ -1494,7 +1487,9 @@ grd_files_debug_sources = [
1494
1487
  "front_end/ui/legacy/components/color_picker/ContrastInfo.js",
1495
1488
  "front_end/ui/legacy/components/color_picker/ContrastOverlay.js",
1496
1489
  "front_end/ui/legacy/components/color_picker/Spectrum.js",
1490
+ "front_end/ui/legacy/components/color_picker/spectrum.css.js",
1497
1491
  "front_end/ui/legacy/components/cookie_table/CookiesTable.js",
1492
+ "front_end/ui/legacy/components/cookie_table/cookiesTable.css.js",
1498
1493
  "front_end/ui/legacy/components/data_grid/DataGrid.js",
1499
1494
  "front_end/ui/legacy/components/data_grid/ShowMoreDataGridNode.js",
1500
1495
  "front_end/ui/legacy/components/data_grid/SortableDataGrid.js",
@@ -2681,9 +2681,6 @@
2681
2681
  "panels/application/BackForwardCacheView.ts | circumstantialExplanation": {
2682
2682
  "message": "These reasons are not actionable i.e. caching was prevented by something outside of the direct control of the page."
2683
2683
  },
2684
- "panels/application/BackForwardCacheView.ts | lastMainFrameNavigation": {
2685
- "message": "Last Main Frame Navigation"
2686
- },
2687
2684
  "panels/application/BackForwardCacheView.ts | mainFrame": {
2688
2685
  "message": "Main Frame"
2689
2686
  },
@@ -2699,6 +2696,9 @@
2699
2696
  "panels/application/BackForwardCacheView.ts | restoredFromBFCache": {
2700
2697
  "message": "Restored from back-forward cache"
2701
2698
  },
2699
+ "panels/application/BackForwardCacheView.ts | runTest": {
2700
+ "message": "Run Test"
2701
+ },
2702
2702
  "panels/application/BackForwardCacheView.ts | supportPending": {
2703
2703
  "message": "Pending Support"
2704
2704
  },
@@ -2681,9 +2681,6 @@
2681
2681
  "panels/application/BackForwardCacheView.ts | circumstantialExplanation": {
2682
2682
  "message": "T̂h́êśê ŕêáŝón̂ś âŕê ńôt́ âćt̂íôńâb́l̂é î.é. ĉáĉh́îńĝ ẃâś p̂ŕêv́êńt̂éd̂ b́ŷ śôḿêt́ĥín̂ǵ ôút̂śîd́ê óf̂ t́ĥé d̂ír̂éĉt́ ĉón̂t́r̂ól̂ óf̂ t́ĥé p̂áĝé."
2683
2683
  },
2684
- "panels/application/BackForwardCacheView.ts | lastMainFrameNavigation": {
2685
- "message": "L̂áŝt́ M̂áîń F̂ŕâḿê Ńâv́îǵât́îón̂"
2686
- },
2687
2684
  "panels/application/BackForwardCacheView.ts | mainFrame": {
2688
2685
  "message": "M̂áîń F̂ŕâḿê"
2689
2686
  },
@@ -2699,6 +2696,9 @@
2699
2696
  "panels/application/BackForwardCacheView.ts | restoredFromBFCache": {
2700
2697
  "message": "R̂éŝt́ôŕêd́ f̂ŕôḿ b̂áĉḱ-f̂ór̂ẃâŕd̂ ćâćĥé"
2701
2698
  },
2699
+ "panels/application/BackForwardCacheView.ts | runTest": {
2700
+ "message": "R̂ún̂ T́êśt̂"
2701
+ },
2702
2702
  "panels/application/BackForwardCacheView.ts | supportPending": {
2703
2703
  "message": "P̂én̂d́îńĝ Śûṕp̂ór̂t́"
2704
2704
  },
@@ -84,7 +84,6 @@ export class ConsoleModel extends Common.ObjectWrapper.ObjectWrapper<EventTypes>
84
84
  #violationsInternal: number;
85
85
  #pageLoadSequenceNumber: number;
86
86
  readonly #targetListeners: WeakMap<Target, Common.EventTarget.EventDescriptor[]>;
87
- #consoleGroupMessageStack: ConsoleMessage[] = [];
88
87
 
89
88
  private constructor() {
90
89
  super();
@@ -276,7 +275,6 @@ export class ConsoleModel extends Common.ObjectWrapper.ObjectWrapper<EventTypes>
276
275
  message = call.args[0].description;
277
276
  }
278
277
  const callFrame = call.stackTrace && call.stackTrace.callFrames.length ? call.stackTrace.callFrames[0] : null;
279
- const groupParent = this.#consoleGroupMessageStack[this.#consoleGroupMessageStack.length - 1];
280
278
  const details = {
281
279
  type: call.type,
282
280
  url: callFrame?.url,
@@ -287,20 +285,9 @@ export class ConsoleModel extends Common.ObjectWrapper.ObjectWrapper<EventTypes>
287
285
  timestamp: call.timestamp,
288
286
  executionContextId: call.executionContextId,
289
287
  context: call.context,
290
- groupParent,
291
- groupChildren: [],
292
288
  };
293
289
  const consoleMessage =
294
290
  new ConsoleMessage(runtimeModel, FrontendMessageSource.ConsoleAPI, level, (message as string), details);
295
- if (call.type === Protocol.Runtime.ConsoleAPICalledEventType.StartGroup) {
296
- this.#consoleGroupMessageStack.push(consoleMessage);
297
- }
298
- if (call.type === Protocol.Runtime.ConsoleAPICalledEventType.EndGroup) {
299
- this.#consoleGroupMessageStack.pop();
300
- }
301
- if (groupParent && call.type !== Protocol.Runtime.ConsoleAPICalledEventType.EndGroup) {
302
- groupParent.groupChildren?.push(consoleMessage);
303
- }
304
291
  this.addMessage(consoleMessage);
305
292
  }
306
293
 
@@ -392,7 +379,6 @@ export class ConsoleModel extends Common.ObjectWrapper.ObjectWrapper<EventTypes>
392
379
 
393
380
  private clear(): void {
394
381
  this.#messagesInternal = [];
395
- this.#consoleGroupMessageStack = [];
396
382
  this.#messageByExceptionId.clear();
397
383
  this.#errorsInternal = 0;
398
384
  this.#warningsInternal = 0;
@@ -518,8 +504,6 @@ export interface ConsoleMessageDetails {
518
504
  workerId?: string;
519
505
  context?: string;
520
506
  affectedResources?: AffectedResources;
521
- groupParent?: ConsoleMessage;
522
- groupChildren?: ConsoleMessage[];
523
507
  category?: Protocol.Log.LogEntryCategory;
524
508
  }
525
509
 
@@ -543,8 +527,6 @@ export class ConsoleMessage {
543
527
  #pageLoadSequenceNumber?: number = undefined;
544
528
  #exceptionId?: number = undefined;
545
529
  #affectedResources?: AffectedResources;
546
- groupParent?: ConsoleMessage;
547
- groupChildren?: Array<ConsoleMessage>;
548
530
  category?: Protocol.Log.LogEntryCategory;
549
531
 
550
532
  constructor(
@@ -565,8 +547,6 @@ export class ConsoleMessage {
565
547
  this.scriptId = details?.scriptId;
566
548
  this.workerId = details?.workerId;
567
549
  this.#affectedResources = details?.affectedResources;
568
- this.groupParent = details?.groupParent;
569
- this.groupChildren = details?.groupChildren;
570
550
  this.category = details?.category;
571
551
 
572
552
  if (!this.#executionContextId && this.#runtimeModelInternal) {
@@ -8,11 +8,9 @@
8
8
  { "name": "panels/lighthouse" },
9
9
  { "name": "panels/browser_debugger" },
10
10
  { "name": "panels/css_overview" },
11
- { "name": "ui/legacy/components/cookie_table" },
12
11
  { "name": "panels/elements" },
13
12
  { "name": "emulated_devices" },
14
13
  { "name": "panels/issues" },
15
- { "name": "panels/help" },
16
14
  { "name": "panels/layers" },
17
15
  { "name": "panels/layer_viewer" },
18
16
  { "name": "panels/network" },
@@ -20,8 +18,6 @@
20
18
  { "name": "panels/application" },
21
19
  { "name": "panels/security" },
22
20
  { "name": "panels/timeline" },
23
- { "name": "panels/web_audio" },
24
- { "name": "panels/webauthn"},
25
21
  { "name": "panels/media" }
26
22
  ],
27
23
  "extends": "shell"
@@ -1,19 +1,15 @@
1
1
  {
2
2
  "modules": [
3
- { "name": "panels/console_counters", "type": "autostart" },
4
3
  { "name": "entrypoints/main", "type": "autostart" },
5
4
  { "name": "ui/legacy", "type": "autostart" },
6
5
 
7
- { "name": "ui/legacy/components/color_picker" },
8
6
  { "name": "panels/console" },
9
7
  { "name": "panels/coverage" },
10
8
  { "name": "panels/event_listeners" },
11
9
  { "name": "ui/legacy/components/inline_editor" },
12
- { "name": "panels/input"},
13
10
  { "name": "ui/legacy/components/perf_ui" },
14
11
  { "name": "panels/profiler" },
15
12
  { "name": "panels/protocol_monitor"},
16
- { "name": "panels/settings" },
17
13
  { "name": "ui/legacy/components/source_frame" },
18
14
  { "name": "panels/sources" },
19
15
  { "name": "ui/legacy/components/text_editor" }
@@ -3,9 +3,7 @@
3
3
  { "name": "panels/mobile_throttling", "type": "autostart" },
4
4
 
5
5
  { "name": "panels/browser_debugger" },
6
- { "name": "ui/legacy/components/cookie_table" },
7
6
  { "name": "panels/elements" },
8
- { "name": "panels/help" },
9
7
  { "name": "panels/issues" },
10
8
  { "name": "panels/layer_viewer" },
11
9
  { "name": "panels/network" },
@@ -4,6 +4,7 @@
4
4
 
5
5
  import type * as Platform from '../../core/platform/platform.js';
6
6
  import * as i18n from '../../core/i18n/i18n.js';
7
+ import * as Buttons from '../../ui/components/buttons/buttons.js';
7
8
  import * as SDK from '../../core/sdk/sdk.js';
8
9
  import * as LitHtml from '../../ui/lit-html/lit-html.js';
9
10
  import * as ReportView from '../../ui/components/report_view/report_view.js';
@@ -19,10 +20,6 @@ const UIStrings = {
19
20
  * @description Title text in Back-forward Cache view of the Application panel
20
21
  */
21
22
  mainFrame: 'Main Frame',
22
- /**
23
- * @description Section header text in Back-forward Cache view of the Application panel
24
- */
25
- lastMainFrameNavigation: 'Last Main Frame Navigation',
26
23
  /**
27
24
  * @description Title text in Back-forward Cache view of the Application panel
28
25
  */
@@ -83,6 +80,10 @@ const UIStrings = {
83
80
  * of chrome they will not prevent back-forward cache usage anymore.
84
81
  */
85
82
  supportPending: 'Pending Support',
83
+ /**
84
+ * @description Button name for showing whether BFCache is available in the pages.
85
+ */
86
+ runTest: 'Run Test',
86
87
  /**
87
88
  * @description Explanation for 'pending support' items which prevent the page from being eligible
88
89
  * for back-forward cache.
@@ -131,6 +132,48 @@ export class BackForwardCacheView extends UI.ThrottledWidget.ThrottledWidget {
131
132
  return this.getMainResourceTreeModel()?.mainFrame || null;
132
133
  }
133
134
 
135
+ private async goBackOneHistoryEntry(): Promise<void> {
136
+ SDK.TargetManager.TargetManager.instance().removeModelListener(
137
+ SDK.ResourceTreeModel.ResourceTreeModel, SDK.ResourceTreeModel.Events.FrameNavigated,
138
+ this.goBackOneHistoryEntry, this);
139
+ const mainTarget = SDK.TargetManager.TargetManager.instance().mainTarget();
140
+ if (!mainTarget) {
141
+ return;
142
+ }
143
+ const resourceTreeModel = mainTarget.model(SDK.ResourceTreeModel.ResourceTreeModel);
144
+ if (!resourceTreeModel) {
145
+ return;
146
+ }
147
+ const historyResults = await resourceTreeModel.navigationHistory();
148
+ if (!historyResults) {
149
+ return;
150
+ }
151
+ resourceTreeModel.navigateToHistoryEntry(historyResults.entries[historyResults.currentIndex - 1]);
152
+ }
153
+
154
+ private async navigateAwayAndBack(): Promise<void> {
155
+ // Checking BFCache Compatibility
156
+
157
+ const mainTarget = SDK.TargetManager.TargetManager.instance().mainTarget();
158
+ if (!mainTarget) {
159
+ return;
160
+ }
161
+ const resourceTreeModel = mainTarget.model(SDK.ResourceTreeModel.ResourceTreeModel);
162
+
163
+ if (resourceTreeModel) {
164
+ // This event is removed by inside of goBackOneHistoryEntry().
165
+ SDK.TargetManager.TargetManager.instance().addModelListener(
166
+ SDK.ResourceTreeModel.ResourceTreeModel, SDK.ResourceTreeModel.Events.FrameNavigated,
167
+ this.goBackOneHistoryEntry, this);
168
+
169
+ // We can know whether the current page can use BFCache
170
+ // as the browser navigates to another unrelated page and goes back to the current page.
171
+ // We chose "chrome://version" because it must be cross-site.
172
+ // Ideally, We want to have our own testing page like "chrome: //bfcache-test".
173
+ resourceTreeModel.navigate('chrome://version/');
174
+ }
175
+ }
176
+
134
177
  private renderMainFrameInformation(mainFrame: SDK.ResourceTreeModel.ResourceTreeFrame|null): LitHtml.TemplateResult {
135
178
  if (!mainFrame) {
136
179
  return LitHtml.html`<${ReportView.ReportView.ReportKey.litTagName}>${i18nString(UIStrings.mainFrame)}</${
@@ -140,8 +183,13 @@ export class BackForwardCacheView extends UI.ThrottledWidget.ThrottledWidget {
140
183
  </${ReportView.ReportView.ReportValue.litTagName}>`;
141
184
  }
142
185
  return LitHtml.html`
143
- <${ReportView.ReportView.ReportSectionHeader.litTagName}>${i18nString(UIStrings.lastMainFrameNavigation)}</${
144
- ReportView.ReportView.ReportSectionHeader.litTagName}>
186
+ <${ReportView.ReportView.ReportSectionHeader.litTagName}>
187
+ <${Buttons.Button.Button.litTagName}
188
+ .variant=${Buttons.Button.Variant.PRIMARY}
189
+ @click=${this.navigateAwayAndBack}>
190
+ ${i18nString(UIStrings.runTest)}
191
+ </${Buttons.Button.Button.litTagName}>
192
+ </${ReportView.ReportView.ReportSectionHeader.litTagName}>
145
193
  <${ReportView.ReportView.ReportKey.litTagName}>${i18nString(UIStrings.url)}</${
146
194
  ReportView.ReportView.ReportKey.litTagName}>
147
195
  <${ReportView.ReportView.ReportValue.litTagName}>${mainFrame.url}</${
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "dependencies": [
3
3
  "ui/legacy/components/source_frame",
4
- "ui/legacy/components/cookie_table",
5
4
  "ui/legacy/components/inline_editor",
6
5
  "ui/legacy",
7
6
  "ui/legacy/components/perf_ui",
@@ -68,7 +68,7 @@ export class ConsoleFilter {
68
68
  }
69
69
 
70
70
  if (message.type === SDK.ConsoleModel.FrontendMessageType.Command ||
71
- message.type === SDK.ConsoleModel.FrontendMessageType.Result) {
71
+ message.type === SDK.ConsoleModel.FrontendMessageType.Result || message.isGroupMessage()) {
72
72
  return true;
73
73
  }
74
74
  if (message.level && !this.levelsMask[message.level as string]) {
@@ -1057,25 +1057,8 @@ export class ConsoleViewMessage implements ConsoleViewportElement {
1057
1057
  }
1058
1058
 
1059
1059
  matchesFilterText(filter: string): boolean {
1060
- return ConsoleViewMessage.recursivelyTestParentConsoleMessage(this.message, filter) ||
1061
- ConsoleViewMessage.recursivelyTestChildrenConsoleMessage(this.message, filter);
1062
- }
1063
-
1064
- static recursivelyTestParentConsoleMessage(consoleMessage: SDK.ConsoleModel.ConsoleMessage, filterString: string):
1065
- boolean {
1066
- const doesFilterMatchText = consoleMessage.messageText.toLowerCase().includes(filterString.toLowerCase());
1067
- const doesParentMatchText = consoleMessage.groupParent &&
1068
- ConsoleViewMessage.recursivelyTestParentConsoleMessage(consoleMessage.groupParent, filterString);
1069
- return Boolean(doesFilterMatchText || doesParentMatchText);
1070
- }
1071
-
1072
- static recursivelyTestChildrenConsoleMessage(consoleMessage: SDK.ConsoleModel.ConsoleMessage, filterString: string):
1073
- boolean {
1074
- const doesFilterMatchChildren = consoleMessage.groupChildren?.some(childMessage => {
1075
- const filterMatch = childMessage.messageText.toLowerCase().includes(filterString.toLowerCase());
1076
- return filterMatch || ConsoleViewMessage.recursivelyTestChildrenConsoleMessage(childMessage, filterString);
1077
- });
1078
- return Boolean(doesFilterMatchChildren);
1060
+ const text = this.contentElement().deepTextContent();
1061
+ return text.toLowerCase().includes(filter.toLowerCase());
1079
1062
  }
1080
1063
 
1081
1064
  updateTimestamp(): void {
@@ -2,7 +2,6 @@
2
2
  // Use of this source code is governed by a BSD-style license that can be
3
3
  // found in the LICENSE file.
4
4
 
5
- import * as Root from '../../core/root/root.js';
6
5
  import * as UI from '../../ui/legacy/legacy.js';
7
6
 
8
7
  // eslint-disable-next-line rulesdir/es_modules_import
@@ -12,8 +11,6 @@ let loadedConsoleCountersModule: (typeof ConsoleCounters|undefined);
12
11
 
13
12
  async function loadConsoleCountersModule(): Promise<typeof ConsoleCounters> {
14
13
  if (!loadedConsoleCountersModule) {
15
- // Side-effect import reconsole_counters in module.json
16
- await Root.Runtime.Runtime.instance().loadModulePromise('panels/console_counters');
17
14
  loadedConsoleCountersModule = await import('./console_counters.js');
18
15
  }
19
16
  return loadedConsoleCountersModule;
@@ -2,7 +2,6 @@
2
2
  "dependencies": [
3
3
  "ui/legacy",
4
4
  "ui/legacy/components/inline_editor",
5
- "ui/legacy/components/color_picker",
6
5
  "panels/event_listeners",
7
6
  "ui/legacy/components/text_editor"
8
7
  ]
@@ -4,7 +4,6 @@
4
4
 
5
5
  import * as Common from '../../core/common/common.js';
6
6
  import * as i18n from '../../core/i18n/i18n.js';
7
- import * as Root from '../../core/root/root.js';
8
7
  import * as UI from '../../ui/legacy/legacy.js';
9
8
 
10
9
  // eslint-disable-next-line rulesdir/es_modules_import
@@ -51,8 +50,6 @@ let loadedHelpModule: (typeof Help|undefined);
51
50
 
52
51
  async function loadHelpModule(): Promise<typeof Help> {
53
52
  if (!loadedHelpModule) {
54
- // Side-effect import resources in module.json
55
- await Root.Runtime.Runtime.instance().loadModulePromise('panels/help');
56
53
  loadedHelpModule = await import('./help.js');
57
54
  }
58
55
  return loadedHelpModule;
@@ -46,8 +46,6 @@ let loadedInputModule: (typeof Input|undefined);
46
46
 
47
47
  async function loadInputModule(): Promise<typeof Input> {
48
48
  if (!loadedInputModule) {
49
- // Side-effect import resources in module.json
50
- await Root.Runtime.Runtime.instance().loadModulePromise('panels/input');
51
49
  loadedInputModule = await import('./input.js');
52
50
  }
53
51
  return loadedInputModule;
@@ -1,6 +1,5 @@
1
1
  {
2
2
  "dependencies": [
3
- "ui/legacy/components/cookie_table",
4
3
  "panels/mobile_throttling",
5
4
  "ui/legacy/components/perf_ui",
6
5
  "ui/legacy/components/source_frame",
@@ -61,8 +61,6 @@ let loadedSettingsModule: (typeof Settings|undefined);
61
61
 
62
62
  async function loadSettingsModule(): Promise<typeof Settings> {
63
63
  if (!loadedSettingsModule) {
64
- // Side-effect import resources in module.json
65
- await Root.Runtime.Runtime.instance().loadModulePromise('panels/settings');
66
64
  loadedSettingsModule = await import('./settings.js');
67
65
  }
68
66
  return loadedSettingsModule;
@@ -3,7 +3,6 @@
3
3
  "ui/legacy",
4
4
  "ui/legacy/components/source_frame",
5
5
  "ui/legacy/components/inline_editor",
6
- "ui/legacy/components/color_picker",
7
6
  "panels/event_listeners",
8
7
  "panels/coverage"
9
8
  ]
@@ -3,7 +3,6 @@
3
3
  // found in the LICENSE file.
4
4
 
5
5
  import * as i18n from '../../core/i18n/i18n.js';
6
- import * as Root from '../../core/root/root.js';
7
6
  import * as UI from '../../ui/legacy/legacy.js';
8
7
 
9
8
  // eslint-disable-next-line rulesdir/es_modules_import
@@ -30,8 +29,6 @@ let loadedWebAudioModule: (typeof WebAudio|undefined);
30
29
 
31
30
  async function loadWebAudioModule(): Promise<typeof WebAudio> {
32
31
  if (!loadedWebAudioModule) {
33
- // Side-effect import resources in module.json
34
- await Root.Runtime.Runtime.instance().loadModulePromise('panels/web_audio');
35
32
  loadedWebAudioModule = await import('./web_audio.js');
36
33
  }
37
34
  return loadedWebAudioModule;
@@ -26,8 +26,6 @@ let loadedWebauthnModule: (typeof Webauthn|undefined);
26
26
 
27
27
  async function loadWebauthnModule(): Promise<typeof Webauthn> {
28
28
  if (!loadedWebauthnModule) {
29
- // Side-effect import resources in module.json
30
- await Root.Runtime.Runtime.instance().loadModulePromise('panels/webauthn');
31
29
  loadedWebauthnModule = await import('./webauthn.js');
32
30
  }
33
31
  return loadedWebauthnModule;
@@ -32,6 +32,7 @@ button {
32
32
  display: inline-flex;
33
33
  font-family: inherit;
34
34
  font-size: 12px;
35
+ font-weight: 500;
35
36
  height: 24px;
36
37
  line-height: 14px;
37
38
  padding: 5px 12px;
@@ -42,6 +42,7 @@ import {ContrastDetails, Events as ContrastDetailsEvents} from './ContrastDetail
42
42
 
43
43
  import type {ContrastInfo} from './ContrastInfo.js';
44
44
  import {ContrastOverlay} from './ContrastOverlay.js';
45
+ import spectrumStyles from './spectrum.css.js';
45
46
 
46
47
  const UIStrings = {
47
48
  /**
@@ -183,7 +184,6 @@ export class Spectrum extends Common.ObjectWrapper.eventMixin<EventTypes, typeof
183
184
  private colorFormat?: string;
184
185
  constructor(contrastInfo?: ContrastInfo|null) {
185
186
  super(true);
186
- this.registerRequiredCSS('ui/legacy/components/color_picker/spectrum.css');
187
187
 
188
188
  this.contentElement.tabIndex = 0;
189
189
  this.colorElement = this.contentElement.createChild('div', 'spectrum-color');
@@ -1140,6 +1140,7 @@ export class Spectrum extends Common.ObjectWrapper.eventMixin<EventTypes, typeof
1140
1140
  }
1141
1141
 
1142
1142
  wasShown(): void {
1143
+ this.registerCSSFiles([spectrumStyles]);
1143
1144
  this.hueAlphaWidth = this.hueElement.offsetWidth;
1144
1145
  this.slideHelperWidth = this.hueSlider.offsetWidth / 2;
1145
1146
  this.dragWidth = this.colorElement.offsetWidth;
@@ -43,6 +43,8 @@ import * as NetworkForward from '../../../../panels/network/forward/forward.js';
43
43
  import * as UI from '../../legacy.js';
44
44
  import * as DataGrid from '../data_grid/data_grid.js';
45
45
 
46
+ import cookiesTableStyles from './cookiesTable.css.js';
47
+
46
48
  const UIStrings = {
47
49
  /**
48
50
  *@description Cookie table cookies table expires session value in Cookies Table of the Cookies table in the Application panel
@@ -124,7 +126,6 @@ export class CookiesTable extends UI.Widget.VBox {
124
126
  deleteCallback?: ((arg0: SDK.Cookie.Cookie, arg1: () => void) => void)) {
125
127
  super();
126
128
 
127
- this.registerRequiredCSS('ui/legacy/components/cookie_table/cookiesTable.css');
128
129
  this.element.classList.add('cookies-table');
129
130
 
130
131
  this.saveCallback = saveCallback;
@@ -286,6 +287,10 @@ export class CookiesTable extends UI.Widget.VBox {
286
287
  this.cookieToBlockedReasons = null;
287
288
  }
288
289
 
290
+ wasShown(): void {
291
+ this.registerCSSFiles([cookiesTableStyles]);
292
+ }
293
+
289
294
  setCookies(
290
295
  cookies: SDK.Cookie.Cookie[],
291
296
  cookieToBlockedReasons?: ReadonlyMap<SDK.Cookie.Cookie, SDK.CookieModel.BlockedReason[]>): void {
package/package.json CHANGED
@@ -55,5 +55,5 @@
55
55
  "unittest": "scripts/test/run_unittests.py --no-text-coverage",
56
56
  "watch": "third_party/node/node.py --output scripts/watch_build.js"
57
57
  },
58
- "version": "1.0.935784"
58
+ "version": "1.0.935974"
59
59
  }
@@ -1,5 +0,0 @@
1
- {
2
- "dependencies": [
3
- "ui/legacy"
4
- ]
5
- }
@@ -1,5 +0,0 @@
1
- {
2
- "dependencies": [
3
- "ui/legacy"
4
- ]
5
- }
@@ -1,5 +0,0 @@
1
- {
2
- "dependencies": [
3
- "ui/legacy"
4
- ]
5
- }
@@ -1,5 +0,0 @@
1
- {
2
- "dependencies": [
3
- "ui/legacy"
4
- ]
5
- }
@@ -1,5 +0,0 @@
1
- {
2
- "dependencies": [
3
- "ui/legacy"
4
- ]
5
- }
@@ -1,5 +0,0 @@
1
- {
2
- "dependencies": [
3
- "ui/legacy"
4
- ]
5
- }
@@ -1,8 +0,0 @@
1
- {
2
- "dependencies": [
3
- "ui/legacy"
4
- ],
5
- "resources": [
6
- "spectrum.css"
7
- ]
8
- }
@@ -1,8 +0,0 @@
1
- {
2
- "dependencies": [
3
- "ui/legacy"
4
- ],
5
- "resources": [
6
- "cookiesTable.css"
7
- ]
8
- }