chrome-devtools-frontend 1.0.1542501 → 1.0.1543472

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 (74) hide show
  1. package/AUTHORS +1 -0
  2. package/front_end/core/common/Gzip.ts +4 -4
  3. package/front_end/core/common/common.ts +0 -2
  4. package/front_end/core/host/InspectorFrontendHost.ts +0 -3
  5. package/front_end/core/root/DevToolsContext.ts +60 -0
  6. package/front_end/core/root/Runtime.ts +0 -10
  7. package/front_end/core/root/root.ts +6 -1
  8. package/front_end/core/sdk/NetworkManager.ts +0 -7
  9. package/front_end/core/sdk/NetworkRequest.ts +0 -10
  10. package/front_end/core/sdk/TargetManager.ts +5 -6
  11. package/front_end/entrypoints/inspector_main/InspectorMain.ts +1 -13
  12. package/front_end/entrypoints/inspector_main/RenderingOptions.ts +5 -5
  13. package/front_end/entrypoints/main/MainImpl.ts +3 -5
  14. package/front_end/entrypoints/main/main-meta.ts +1 -5
  15. package/front_end/foundation/Universe.ts +13 -1
  16. package/front_end/generated/Deprecation.ts +0 -14
  17. package/front_end/generated/InspectorBackendCommands.ts +1 -1
  18. package/front_end/generated/protocol.ts +0 -1
  19. package/front_end/models/ai_assistance/BuiltInAi.ts +13 -7
  20. package/front_end/models/bindings/CompilerScriptMapping.ts +3 -2
  21. package/front_end/models/bindings/DebuggerWorkspaceBinding.ts +14 -9
  22. package/front_end/models/trace/handlers/SamplesHandler.ts +64 -6
  23. package/front_end/models/trace/types/TraceEvents.ts +16 -0
  24. package/front_end/models/workspace/IgnoreListManager.ts +10 -9
  25. package/front_end/models/workspace/WorkspaceImpl.ts +5 -10
  26. package/front_end/panels/application/ApplicationPanelSidebar.ts +0 -1
  27. package/front_end/panels/application/OpenedWindowDetailsView.ts +0 -2
  28. package/front_end/panels/application/ServiceWorkersView.ts +0 -2
  29. package/front_end/panels/application/StorageView.ts +0 -1
  30. package/front_end/panels/application/components/BackForwardCacheView.ts +12 -9
  31. package/front_end/panels/application/components/FrameDetailsView.ts +468 -447
  32. package/front_end/panels/console/ConsolePrompt.ts +1 -1
  33. package/front_end/panels/console/ConsoleView.ts +12 -7
  34. package/front_end/panels/console/ConsoleViewMessage.ts +19 -9
  35. package/front_end/panels/explain/components/ConsoleInsight.ts +314 -310
  36. package/front_end/panels/network/NetworkDataGridNode.ts +0 -7
  37. package/front_end/panels/network/NetworkLogView.ts +1 -45
  38. package/front_end/panels/security/SecurityPanel.ts +0 -2
  39. package/front_end/panels/security/SecurityPanelSidebar.ts +0 -16
  40. package/front_end/panels/security/security.ts +0 -2
  41. package/front_end/panels/settings/SettingsScreen.ts +3 -6
  42. package/front_end/panels/settings/components/SyncSection.ts +218 -226
  43. package/front_end/panels/settings/components/syncSection.css +81 -80
  44. package/front_end/panels/sources/DebuggerPlugin.ts +3 -1
  45. package/front_end/panels/sources/ResourceOriginPlugin.ts +7 -3
  46. package/front_end/panels/timeline/TimelinePanel.ts +0 -21
  47. package/front_end/third_party/chromium/README.chromium +1 -1
  48. package/front_end/ui/components/docs/component_docs.ts +0 -4
  49. package/front_end/ui/components/expandable_list/ExpandableList.docs.ts +30 -0
  50. package/front_end/ui/components/report_view/ReportView.ts +4 -1
  51. package/front_end/ui/legacy/ReportView.ts +0 -5
  52. package/front_end/ui/legacy/TextPrompt.ts +65 -19
  53. package/front_end/ui/legacy/components/object_ui/JavaScriptREPL.ts +8 -4
  54. package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts +90 -92
  55. package/front_end/ui/legacy/components/object_ui/RemoteObjectPreviewFormatter.ts +114 -184
  56. package/front_end/ui/legacy/components/utils/Linkifier.ts +46 -2
  57. package/front_end/ui/{components/docs/theme_colors/basic.ts → legacy/theme_support/ThemeColors.docs.ts} +33 -23
  58. package/package.json +1 -1
  59. package/front_end/core/common/QueryParamHandler.ts +0 -7
  60. package/front_end/panels/security/IPProtectionTreeElement.ts +0 -21
  61. package/front_end/panels/security/IPProtectionView.ts +0 -287
  62. package/front_end/ui/components/docs/expandable_list/basic.html +0 -24
  63. package/front_end/ui/components/docs/expandable_list/basic.ts +0 -30
  64. package/front_end/ui/components/docs/input/basic.html +0 -31
  65. package/front_end/ui/components/docs/input/basic.ts +0 -12
  66. package/front_end/ui/components/docs/report/basic.html +0 -27
  67. package/front_end/ui/components/docs/report/basic.ts +0 -48
  68. package/front_end/ui/components/docs/text_prompt/basic.html +0 -35
  69. package/front_end/ui/components/docs/text_prompt/basic.ts +0 -19
  70. package/front_end/ui/components/docs/theme_colors/basic.html +0 -56
  71. package/front_end/ui/components/docs/toggle_dark_mode.ts +0 -36
  72. package/front_end/ui/components/docs/toggle_fonts.ts +0 -74
  73. package/front_end/ui/components/docs/user_agent_client_hints/basic.html +0 -25
  74. package/front_end/ui/components/docs/user_agent_client_hints/basic.ts +0 -26
@@ -1,74 +0,0 @@
1
- // Copyright 2021 The Chromium Authors
2
- // Use of this source code is governed by a BSD-style license that can be
3
- // found in the LICENSE file.
4
-
5
- const PLATFROM_SCREENSHOT_TESTS = 'platform-screenshot-test';
6
- const PLATFORM_MAC_CLASS = 'platform-mac';
7
- const PLATFORM_LINUX_CLASS = 'platform-linux';
8
- const PLATFORM_WINDOWS_CLASS = 'platform-windows';
9
-
10
- const urlParams = new URLSearchParams(window.location.search);
11
-
12
- export function init(): void {
13
- // fontFamily is provided by the interaction tests.
14
- // While platform-specific class names define multiple font-families,
15
- // we want a single font-family to be used by the tests.
16
- if (urlParams.has('fontFamily')) {
17
- const div = document.createElement('div');
18
- div.className = 'component-docs-ui';
19
- div.style.position = 'fixed';
20
- div.style.bottom = '10px';
21
- div.style.right = '230px';
22
- div.style.width = '250px';
23
- div.style.fontSize = '16px';
24
- div.style.padding = '5px';
25
- div.innerText = `font-family: ${urlParams.get('fontFamily')}`;
26
- window.addEventListener('load', () => {
27
- document.body.appendChild(div);
28
- });
29
- document.body.style.fontFamily = `${urlParams.get('fontFamily')}`;
30
- return;
31
- }
32
-
33
- document.documentElement.classList.add(PLATFORM_LINUX_CLASS);
34
- const button = document.createElement('button');
35
- button.className = 'component-docs-ui';
36
-
37
- const loop = [
38
- PLATFROM_SCREENSHOT_TESTS,
39
- PLATFORM_LINUX_CLASS,
40
- PLATFORM_MAC_CLASS,
41
- PLATFORM_WINDOWS_CLASS,
42
- ];
43
-
44
- function toggleFonts(): void {
45
- for (const className of loop) {
46
- if (className === loop[0]) {
47
- document.documentElement.classList.add(className);
48
- } else {
49
- document.documentElement.classList.remove(className);
50
- }
51
- }
52
- loop.push(loop.shift() as string);
53
- button.innerText = 'Turn on ' + loop[0] + ' fonts';
54
- }
55
-
56
- window.addEventListener('load', () => {
57
- toggleFonts();
58
-
59
- button.style.position = 'fixed';
60
- button.style.bottom = '10px';
61
- button.style.right = '230px';
62
- button.style.width = '250px';
63
- button.style.fontSize = '16px';
64
- button.style.padding = '5px';
65
- button.style.cursor = 'pointer';
66
-
67
- button.addEventListener('click', event => {
68
- event.preventDefault();
69
- toggleFonts();
70
- });
71
-
72
- document.body.appendChild(button);
73
- });
74
- }
@@ -1,25 +0,0 @@
1
- <!--
2
- Copyright 2021 The Chromium Authors
3
- Use of this source code is governed by a BSD-style license that can be
4
- found in the LICENSE file.
5
- -->
6
- <!DOCTYPE html>
7
- <html>
8
- <head>
9
- <meta charset="UTF-8" />
10
- <meta name="viewport" content="width=device-width" />
11
- <title>User agent client hints form</title>
12
- <style>
13
- #user-agent-client-hints-container {
14
- width: 500px;
15
- }
16
- </style>
17
- </head>
18
- <body>
19
-
20
- <div id="user-agent-client-hints-container">
21
- </div>
22
-
23
- <script type="module" src="./basic.js"></script>
24
- </body>
25
- </html>
@@ -1,26 +0,0 @@
1
- // Copyright 2021 The Chromium Authors
2
- // Use of this source code is governed by a BSD-style license that can be
3
- // found in the LICENSE file.
4
- import * as EmulationComponents from '../../../../panels/settings/emulation/components/components.js';
5
- import * as FrontendHelpers from '../../../../testing/EnvironmentHelpers.js';
6
- import * as ComponentHelpers from '../../helpers/helpers.js';
7
-
8
- await ComponentHelpers.ComponentServerSetup.setup();
9
- await FrontendHelpers.initializeGlobalVars();
10
-
11
- const userAgentClientHintsContainer = document.getElementById('user-agent-client-hints-container');
12
-
13
- const userAgentsForm = new EmulationComponents.UserAgentClientHintsForm.UserAgentClientHintsForm();
14
- userAgentsForm.value = {
15
- metaData: {
16
- fullVersion: '',
17
- platform: '',
18
- platformVersion: '',
19
- architecture: '',
20
- model: '',
21
- mobile: true,
22
- },
23
- showMobileCheckbox: true,
24
- };
25
-
26
- userAgentClientHintsContainer?.appendChild(userAgentsForm);