chrome-devtools-frontend 1.0.1736236 → 1.0.1738725

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 (134) hide show
  1. package/.agents/rules/ui-and-widgets/ui-css-scoping-and-flex-layout.md +1 -1
  2. package/.agents/skills/version-control/SKILL.md +63 -11
  3. package/docs/devtools-protocol.md +3 -1
  4. package/eslint.config.mjs +0 -6
  5. package/front_end/core/host/AidaClient.ts +14 -36
  6. package/front_end/core/host/AidaGcaTranslation.ts +8 -5
  7. package/front_end/core/root/Runtime.ts +0 -5
  8. package/front_end/design_system_tokens.css +1 -0
  9. package/front_end/entrypoints/main/GlobalAiButton.ts +2 -9
  10. package/front_end/entrypoints/main/MainImpl.ts +0 -4
  11. package/front_end/generated/SupportedCSSProperties.ts +8 -23
  12. package/front_end/models/ai-utils/AiUtils.ts +1 -5
  13. package/front_end/models/ai_assistance/agents/AiAgent.ts +2 -18
  14. package/front_end/models/ai_assistance/contexts/FileContext.ts +1 -2
  15. package/front_end/models/ai_assistance/tools/ListSources.ts +3 -1
  16. package/front_end/models/ai_code_generation/AiCodeGeneration.ts +0 -6
  17. package/front_end/models/javascript_metadata/NativeFunctions.ts +9 -5
  18. package/front_end/models/trace/EventsSerializer.ts +0 -8
  19. package/front_end/models/workspace/UISourceCode.ts +30 -8
  20. package/front_end/panels/ai_assistance/AiAssistancePanel.ts +1 -7
  21. package/front_end/panels/ai_assistance/ai_assistance-meta.ts +15 -34
  22. package/front_end/panels/ai_assistance/components/ChatView.ts +2 -16
  23. package/front_end/panels/ai_assistance/components/chatView.css +0 -32
  24. package/front_end/panels/ai_assistance/components/walkthroughView.css +1 -1
  25. package/front_end/panels/animation/AnimationTimeline.ts +1 -1
  26. package/front_end/panels/animation/animationTimeline.css +5 -3
  27. package/front_end/panels/application/PrivateVerificationTokensView.ts +114 -26
  28. package/front_end/panels/application/ResourcesPanel.ts +1 -0
  29. package/front_end/panels/application/backgroundServiceView.css +2 -2
  30. package/front_end/panels/application/components/permissionsPolicySection.css +0 -4
  31. package/front_end/panels/application/frameDetailsReportView.css +0 -7
  32. package/front_end/panels/application/indexedDBViews.css +3 -3
  33. package/front_end/panels/application/privateVerificationTokensView.css +6 -0
  34. package/front_end/panels/application/serviceWorkerUpdateCycleView.css +1 -1
  35. package/front_end/panels/application/serviceWorkersView.css +2 -2
  36. package/front_end/panels/comments/CommentsPane.ts +1 -1
  37. package/front_end/panels/comments/commentsPane.css +1 -1
  38. package/front_end/panels/common/common.ts +0 -1
  39. package/front_end/panels/console/ConsoleView.ts +11 -1
  40. package/front_end/panels/console/ConsoleViewMessage.ts +5 -1
  41. package/front_end/panels/console/consolePinPane.css +1 -1
  42. package/front_end/panels/console/consoleView.css +5 -4
  43. package/front_end/panels/elements/DOMTreeWidget.ts +47 -5
  44. package/front_end/panels/elements/layoutPane.css +0 -1
  45. package/front_end/panels/emulation/InspectedPagePlaceholder.ts +1 -0
  46. package/front_end/panels/emulation/deviceModeView.css +0 -1
  47. package/front_end/panels/issues/issuesTree.css +2 -2
  48. package/front_end/panels/layer_viewer/LayerDetailsView.ts +34 -17
  49. package/front_end/panels/layer_viewer/LayerTreeOutline.ts +39 -17
  50. package/front_end/panels/layer_viewer/Layers3DView.ts +34 -13
  51. package/front_end/panels/layer_viewer/layerDetailsView.css +1 -1
  52. package/front_end/panels/layer_viewer/layers3DView.css +0 -4
  53. package/front_end/panels/media/playerListView.css +0 -18
  54. package/front_end/panels/media/playerPropertiesView.css +1 -1
  55. package/front_end/panels/network/NetworkWaterfallColumn.ts +22 -10
  56. package/front_end/panels/network/RequestPreviewView.ts +182 -63
  57. package/front_end/panels/network/SignedExchangeInfoView.ts +242 -158
  58. package/front_end/panels/network/networkConfigView.css +1 -1
  59. package/front_end/panels/network/networkLogView.css +2 -1
  60. package/front_end/panels/network/networkPanel.css +0 -5
  61. package/front_end/panels/network/networkTimingTable.css +1 -1
  62. package/front_end/panels/network/signedExchangeInfoView.css +12 -8
  63. package/front_end/panels/performance_monitor/performanceMonitor.css +2 -2
  64. package/front_end/panels/profiler/IsolateSelector.ts +31 -10
  65. package/front_end/panels/profiler/profilesPanel.css +0 -8
  66. package/front_end/panels/protocol_monitor/JSONEditor.css +1 -1
  67. package/front_end/panels/screencast/screencastView.css +2 -2
  68. package/front_end/panels/security/SecurityPanel.ts +474 -418
  69. package/front_end/panels/security/SecurityPanelSidebar.ts +68 -48
  70. package/front_end/panels/security/lockIcon.css +52 -50
  71. package/front_end/panels/security/mainView.css +149 -145
  72. package/front_end/panels/security/originView.css +117 -115
  73. package/front_end/panels/sensors/LocationsSettingsTab.ts +2 -50
  74. package/front_end/panels/sensors/locationsSettingsTab.css +1 -21
  75. package/front_end/panels/settings/AISettingsTab.ts +1 -2
  76. package/front_end/panels/settings/SettingsScreen.ts +1 -1
  77. package/front_end/panels/sources/CallStackSidebarPane.ts +31 -6
  78. package/front_end/panels/sources/NavigatorView.ts +105 -31
  79. package/front_end/panels/sources/breakpointsView.css +2 -1
  80. package/front_end/panels/sources/scopeChainSidebarPane.css +1 -1
  81. package/front_end/panels/timeline/ThirdPartyTreeView.ts +1 -0
  82. package/front_end/panels/timeline/TimelineLayersView.ts +108 -46
  83. package/front_end/panels/timeline/TimelinePanel.ts +4 -2
  84. package/front_end/panels/timeline/components/insights/BaseInsightComponent.ts +1 -1
  85. package/front_end/panels/timeline/components/networkRequestDetails.css +1 -1
  86. package/front_end/panels/timeline/overlays/components/EntryLabelOverlay.ts +0 -7
  87. package/front_end/panels/web_audio/webAudio.css +1 -2
  88. package/front_end/panels/webauthn/WebauthnPane.ts +1 -1
  89. package/front_end/panels/whats_new/ReleaseNoteText.ts +6 -6
  90. package/front_end/panels/whats_new/resources/WNDT.md +6 -6
  91. package/front_end/third_party/chromium/README.chromium +1 -1
  92. package/front_end/ui/comments/CommentAnchorResolver.ts +45 -4
  93. package/front_end/ui/comments/CommentOverlayManager.ts +45 -12
  94. package/front_end/ui/components/buttons/FloatingButton.ts +2 -6
  95. package/front_end/ui/components/buttons/button.css +2 -2
  96. package/front_end/ui/components/buttons/floatingButton.css +0 -44
  97. package/front_end/ui/components/icon_button/iconButton.css +1 -1
  98. package/front_end/ui/components/markdown_view/markdownView.css +1 -1
  99. package/front_end/ui/legacy/ContextMenu.ts +7 -5
  100. package/front_end/ui/legacy/InspectorDrawerView.ts +1 -0
  101. package/front_end/ui/legacy/InspectorView.ts +5 -1
  102. package/front_end/ui/legacy/PopoverHelper.ts +1 -0
  103. package/front_end/ui/legacy/RootView.ts +9 -3
  104. package/front_end/ui/legacy/SplitWidget.ts +1 -0
  105. package/front_end/ui/legacy/Treeoutline.ts +9 -0
  106. package/front_end/ui/legacy/UIUtils.ts +1 -1
  107. package/front_end/ui/legacy/components/cookie_table/CookiesTable.ts +130 -137
  108. package/front_end/ui/legacy/components/inline_editor/CSSShadowEditor.ts +1 -1
  109. package/front_end/ui/legacy/components/inline_editor/SwatchPopoverHelper.ts +1 -0
  110. package/front_end/ui/legacy/components/inline_editor/bezierEditor.css +1 -1
  111. package/front_end/ui/legacy/components/inline_editor/cssAngleEditor.css +3 -1
  112. package/front_end/ui/legacy/components/inline_editor/cssShadowEditor.css +7 -6
  113. package/front_end/ui/legacy/components/perf_ui/FlameChart.ts +2 -0
  114. package/front_end/ui/legacy/components/perf_ui/pieChart.css +2 -2
  115. package/front_end/ui/legacy/components/quick_open/filteredListWidget.css +1 -10
  116. package/front_end/ui/legacy/filter.css +1 -1
  117. package/front_end/ui/legacy/infobar.css +1 -1
  118. package/front_end/ui/legacy/inspectorCommon.css +2 -2
  119. package/front_end/ui/legacy/inspectorDrawerTabbedPane.css +3 -3
  120. package/front_end/ui/legacy/listWidget.css +2 -7
  121. package/front_end/ui/legacy/softDropDownButton.css +1 -1
  122. package/front_end/ui/legacy/tabbedPane.css +2 -1
  123. package/front_end/ui/legacy/treeoutline.css +3 -2
  124. package/front_end/ui/visual_logging/KnownContextValues.ts +133 -0
  125. package/front_end/ui/visual_logging/LoggingEvents.ts +1 -1
  126. package/package.json +1 -1
  127. package/front_end/Images/geminiInDevTools.png +0 -0
  128. package/front_end/Images/geminiInDevTools_2x.png +0 -0
  129. package/front_end/generated/InspectorBackendCommands.ts +0 -1690
  130. package/front_end/generated/protocol-mapping.d.ts +0 -5986
  131. package/front_end/generated/protocol-proxy-api.d.ts +0 -5452
  132. package/front_end/generated/protocol.ts +0 -23364
  133. package/front_end/panels/common/GeminiRebrandPromoDialog.ts +0 -193
  134. package/front_end/panels/common/geminiRebrandPromoDialog.css +0 -47
@@ -5,7 +5,6 @@
5
5
  import * as i18n from '../../core/i18n/i18n.js';
6
6
  import type * as Platform from '../../core/platform/platform.js';
7
7
  import * as Protocol from '../../generated/protocol.js';
8
- import type {Icon} from '../../ui/kit/kit.js';
9
8
  import * as UI from '../../ui/legacy/legacy.js';
10
9
  import {Directives, html, nothing, render, type TemplateResult} from '../../ui/lit/lit.js';
11
10
 
@@ -54,23 +53,18 @@ const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
54
53
 
55
54
  export interface ViewInput {
56
55
  mainOrigin: string|null;
57
- origins: Map<Platform.DevToolsPath.UrlString, Protocol.Security.SecurityState>;
56
+ origins: ReadonlyMap<Platform.DevToolsPath.UrlString, Protocol.Security.SecurityState>;
58
57
  originsHidden: boolean;
59
58
  showOriginsUnconditionally: boolean;
60
59
  overviewSecurityState: Protocol.Security.SecurityState;
61
60
  selectedElementId: string;
62
- }
63
-
64
- export interface ViewOutput {
65
61
  onElementSelected: (id: string) => void;
66
62
  onShowOrigin: (origin: Platform.DevToolsPath.UrlString|null) => void;
67
63
  }
68
64
 
69
- export type View = (input: ViewInput, output: ViewOutput, target: HTMLElement) => void;
70
-
71
- export const DEFAULT_VIEW: View = (input, output, target) => {
72
- const renderIcon = (icon: Icon): TemplateResult => html`${icon}`;
65
+ export type View = (input: ViewInput, output: undefined, target: HTMLElement) => void;
73
66
 
67
+ export const DEFAULT_VIEW: View = (input, _output, target) => {
74
68
  const renderOrigin =
75
69
  (origin: Platform.DevToolsPath.UrlString, state: Protocol.Security.SecurityState): TemplateResult => {
76
70
  const icon = getSecurityStateIconForDetailedView(state, `security-property security-property-${state}`);
@@ -82,10 +76,10 @@ export const DEFAULT_VIEW: View = (input, output, target) => {
82
76
  title=${origin}
83
77
  ?selected=${selected}
84
78
  @click=${() => {
85
- output.onElementSelected(origin);
86
- output.onShowOrigin(origin);
79
+ input.onElementSelected(origin);
80
+ input.onShowOrigin(origin);
87
81
  }}>
88
- ${renderIcon(icon)}
82
+ ${icon}
89
83
  ${renderHighlightedUrl(origin, state)}
90
84
  </li>
91
85
  `;
@@ -105,7 +99,8 @@ export const DEFAULT_VIEW: View = (input, output, target) => {
105
99
  }
106
100
  };
107
101
 
108
- const getGroupIcon = (group: OriginGroup, mainOriginState: Protocol.Security.SecurityState|null): Icon|null => {
102
+ const getGroupIcon = (group: OriginGroup,
103
+ mainOriginState: Protocol.Security.SecurityState|null): TemplateResult|null => {
109
104
  switch (group) {
110
105
  case OriginGroup.MainOrigin:
111
106
  return mainOriginState ?
@@ -162,7 +157,7 @@ export const DEFAULT_VIEW: View = (input, output, target) => {
162
157
  // clang-format off
163
158
  return html`
164
159
  <li role="treeitem" class="security-sidebar-origins" open ?hidden=${isHidden}>
165
- ${icon ? renderIcon(icon) : nothing}
160
+ ${icon ?? nothing}
166
161
  <span class="security-sidebar-origins-title">${title}</span>
167
162
  <ul role="group" aria-label=${title}>
168
163
  ${showReloadMessage ? html`
@@ -179,7 +174,7 @@ export const DEFAULT_VIEW: View = (input, output, target) => {
179
174
 
180
175
  // clang-format off
181
176
  render(html`
182
- <devtools-tree class="security-sidebar" navigation-variant .template=${html`
177
+ <devtools-tree class="security-sidebar" autofocus navigation-variant .template=${html`
183
178
  <style>${sidebarStyles}</style>
184
179
  <style>${lockIconStyles}</style>
185
180
  <ul role="tree">
@@ -191,10 +186,10 @@ export const DEFAULT_VIEW: View = (input, output, target) => {
191
186
  title=${i18nString(UIStrings.overview)}
192
187
  ?selected=${input.selectedElementId === 'overview'}
193
188
  @click=${() => {
194
- output.onElementSelected('overview');
195
- output.onShowOrigin(null);
189
+ input.onElementSelected('overview');
190
+ input.onShowOrigin(null);
196
191
  }}>
197
- ${renderIcon(overviewIcon)}
192
+ ${overviewIcon}
198
193
  <span title=${i18nString(UIStrings.overview)}>${i18nString(UIStrings.overview)}</span>
199
194
  </li>
200
195
  ${Object.values(OriginGroup).map(group => renderGroup(group))}
@@ -208,7 +203,7 @@ export const DEFAULT_VIEW: View = (input, output, target) => {
208
203
 
209
204
  export class SecurityPanelSidebar extends UI.Widget.VBox {
210
205
  #mainOrigin: string|null = null;
211
- #origins = new Map<Platform.DevToolsPath.UrlString, Protocol.Security.SecurityState>();
206
+ #origins: ReadonlyMap<Platform.DevToolsPath.UrlString, Protocol.Security.SecurityState> = new Map();
212
207
  #originsHidden = false;
213
208
  #showOriginsUnconditionally = false;
214
209
  #overviewSecurityState = Protocol.Security.SecurityState.Unknown;
@@ -219,66 +214,93 @@ export class SecurityPanelSidebar extends UI.Widget.VBox {
219
214
  constructor(element?: HTMLElement, view: View = DEFAULT_VIEW) {
220
215
  super(element);
221
216
  this.#view = view;
217
+ this.setMinimumSize(100, 25);
222
218
  }
223
219
 
224
- set onShowOrigin(callback: (origin: Platform.DevToolsPath.UrlString|null) => void) {
220
+ set onShowOrigin(callback: ((origin: Platform.DevToolsPath.UrlString|null) => void)|undefined) {
225
221
  this.#onShowOrigin = callback;
226
222
  }
227
223
 
224
+ get onShowOrigin(): ((origin: Platform.DevToolsPath.UrlString|null) => void)|undefined {
225
+ return this.#onShowOrigin;
226
+ }
227
+
228
228
  override wasShown(): void {
229
229
  super.wasShown();
230
230
  this.requestUpdate();
231
231
  }
232
232
 
233
- showOverview(): void {
234
- this.#selectedElementId = 'overview';
233
+ set mainOrigin(origin: string|null) {
234
+ if (this.#mainOrigin === origin) {
235
+ return;
236
+ }
237
+ this.#mainOrigin = origin;
235
238
  this.requestUpdate();
236
- this.#onShowOrigin?.(null);
237
239
  }
238
240
 
239
- toggleOriginsList(hidden: boolean): void {
240
- this.#originsHidden = hidden;
241
- this.#showOriginsUnconditionally = !hidden;
242
- this.requestUpdate();
241
+ get mainOrigin(): string|null {
242
+ return this.#mainOrigin;
243
243
  }
244
244
 
245
- addOrigin(origin: Platform.DevToolsPath.UrlString, securityState: Protocol.Security.SecurityState): void {
246
- this.#origins.set(origin, securityState);
245
+ set origins(origins: ReadonlyMap<Platform.DevToolsPath.UrlString, Protocol.Security.SecurityState>) {
246
+ if (this.#origins === origins) {
247
+ return;
248
+ }
249
+ this.#origins = origins;
247
250
  this.requestUpdate();
248
251
  }
249
252
 
250
- setMainOrigin(origin: string): void {
251
- this.#mainOrigin = origin;
253
+ get origins(): ReadonlyMap<Platform.DevToolsPath.UrlString, Protocol.Security.SecurityState> {
254
+ return this.#origins;
255
+ }
256
+
257
+ set originsHidden(originsHidden: boolean) {
258
+ if (this.#originsHidden === originsHidden) {
259
+ return;
260
+ }
261
+ this.#originsHidden = originsHidden;
252
262
  this.requestUpdate();
253
263
  }
254
264
 
255
- get mainOrigin(): string|null {
256
- return this.#mainOrigin;
265
+ get originsHidden(): boolean {
266
+ return this.#originsHidden;
257
267
  }
258
268
 
259
- updateOrigin(origin: Platform.DevToolsPath.UrlString, securityState: Protocol.Security.SecurityState): void {
260
- this.#origins.set(origin, securityState);
269
+ set showOriginsUnconditionally(showOriginsUnconditionally: boolean) {
270
+ if (this.#showOriginsUnconditionally === showOriginsUnconditionally) {
271
+ return;
272
+ }
273
+ this.#showOriginsUnconditionally = showOriginsUnconditionally;
261
274
  this.requestUpdate();
262
275
  }
263
276
 
264
- updateOverviewSecurityState(securityState: Protocol.Security.SecurityState): void {
265
- this.#overviewSecurityState = securityState;
266
- this.requestUpdate();
277
+ get showOriginsUnconditionally(): boolean {
278
+ return this.#showOriginsUnconditionally;
267
279
  }
268
280
 
269
- clearOrigins(): void {
270
- this.#origins.clear();
281
+ set overviewSecurityState(overviewSecurityState: Protocol.Security.SecurityState) {
282
+ if (this.#overviewSecurityState === overviewSecurityState) {
283
+ return;
284
+ }
285
+ this.#overviewSecurityState = overviewSecurityState;
271
286
  this.requestUpdate();
272
287
  }
273
288
 
274
- set selectedOrigin(origin: Platform.DevToolsPath.UrlString|null) {
275
- this.#selectedElementId = origin ?? 'overview';
289
+ get overviewSecurityState(): Protocol.Security.SecurityState {
290
+ return this.#overviewSecurityState;
291
+ }
292
+
293
+ set activeOrigin(origin: Platform.DevToolsPath.UrlString|null) {
294
+ const elementId = origin ?? 'overview';
295
+ if (this.#selectedElementId === elementId) {
296
+ return;
297
+ }
298
+ this.#selectedElementId = elementId;
276
299
  this.requestUpdate();
277
- this.#onShowOrigin?.(origin);
278
300
  }
279
301
 
280
- get selectedOrigin(): string {
281
- return this.#selectedElementId;
302
+ get activeOrigin(): Platform.DevToolsPath.UrlString|null {
303
+ return this.#selectedElementId === 'overview' ? null : this.#selectedElementId as Platform.DevToolsPath.UrlString;
282
304
  }
283
305
 
284
306
  override performUpdate(): void {
@@ -289,8 +311,6 @@ export class SecurityPanelSidebar extends UI.Widget.VBox {
289
311
  showOriginsUnconditionally: this.#showOriginsUnconditionally,
290
312
  overviewSecurityState: this.#overviewSecurityState,
291
313
  selectedElementId: this.#selectedElementId,
292
- };
293
- const output: ViewOutput = {
294
314
  onElementSelected: (id: string) => {
295
315
  this.#selectedElementId = id;
296
316
  this.requestUpdate();
@@ -299,6 +319,6 @@ export class SecurityPanelSidebar extends UI.Widget.VBox {
299
319
  this.#onShowOrigin?.(origin);
300
320
  },
301
321
  };
302
- this.#view(input, output, this.contentElement);
322
+ this.#view(input, undefined, this.contentElement);
303
323
  }
304
324
  }
@@ -4,54 +4,56 @@
4
4
  * found in the LICENSE file.
5
5
  */
6
6
 
7
- .lock-icon,
8
- .security-property {
9
- height: var(--sys-size-9);
10
- width: var(--sys-size-9);
11
- }
12
-
13
- .lock-icon-secure {
14
- color: var(--sys-color-green);
15
- }
16
-
17
- .lock-icon-insecure {
18
- color: var(--sys-color-error);
19
- }
20
-
21
- .lock-icon-insecure-broken {
22
- color: var(--sys-color-error);
23
- }
24
-
25
- .security-property-secure {
26
- color: var(--sys-color-green);
27
- }
28
-
29
- .security-property-neutral {
30
- color: var(--sys-color-error);
31
- }
32
-
33
- .security-property-insecure {
34
- color: var(--sys-color-error);
35
- }
36
-
37
- .security-property-insecure-broken {
38
- color: var(--sys-color-error);
39
- }
40
-
41
- .security-property-info {
42
- color: var(--sys-color-on-surface-subtle);
43
- }
44
-
45
- .security-property-unknown {
46
- color: var(--sys-color-on-surface-subtle);
47
- }
48
-
49
- .url-scheme-secure {
50
- color: var(--sys-color-green);
51
- }
52
-
53
- .url-scheme-neutral,
54
- .url-scheme-insecure,
55
- .url-scheme-insecure-broken {
56
- color: var(--sys-color-error);
7
+ @scope to (devtools-widget > *) {
8
+ .lock-icon,
9
+ .security-property {
10
+ height: var(--sys-size-9);
11
+ width: var(--sys-size-9);
12
+ }
13
+
14
+ .lock-icon-secure {
15
+ color: var(--sys-color-green);
16
+ }
17
+
18
+ .lock-icon-insecure {
19
+ color: var(--sys-color-error);
20
+ }
21
+
22
+ .lock-icon-insecure-broken {
23
+ color: var(--sys-color-error);
24
+ }
25
+
26
+ .security-property-secure {
27
+ color: var(--sys-color-green);
28
+ }
29
+
30
+ .security-property-neutral {
31
+ color: var(--sys-color-error);
32
+ }
33
+
34
+ .security-property-insecure {
35
+ color: var(--sys-color-error);
36
+ }
37
+
38
+ .security-property-insecure-broken {
39
+ color: var(--sys-color-error);
40
+ }
41
+
42
+ .security-property-info {
43
+ color: var(--sys-color-on-surface-subtle);
44
+ }
45
+
46
+ .security-property-unknown {
47
+ color: var(--sys-color-on-surface-subtle);
48
+ }
49
+
50
+ .url-scheme-secure {
51
+ color: var(--sys-color-green);
52
+ }
53
+
54
+ .url-scheme-neutral,
55
+ .url-scheme-insecure,
56
+ .url-scheme-insecure-broken {
57
+ color: var(--sys-color-error);
58
+ }
57
59
  }
@@ -4,184 +4,188 @@
4
4
  * found in the LICENSE file.
5
5
  */
6
6
 
7
- .devtools-link {
8
- display: inline-block;
9
- }
10
-
11
- .security-main-view {
12
- overflow: hidden auto;
13
- background-color: var(--sys-color-cdt-base-container);
14
- }
15
-
16
- .security-main-view > div {
17
- flex-shrink: 0;
18
- }
7
+ @scope to (devtools-widget > *) {
8
+ .devtools-link {
9
+ display: inline-block;
10
+ }
19
11
 
20
- .security-summary-section-title {
21
- font-size: var(--sys-typescale-headline4-size);
22
- margin: var(--sys-size-6) var(--sys-size-8);
23
- user-select: text;
24
- }
12
+ :scope,
13
+ .security-main-view {
14
+ overflow: hidden auto;
15
+ background-color: var(--sys-color-cdt-base-container);
16
+ }
25
17
 
26
- .lock-spectrum {
27
- margin: var(--sys-size-5) var(--sys-size-8);
28
- display: flex;
29
- align-items: flex-start;
30
- }
18
+ :scope > div,
19
+ .security-main-view > div {
20
+ flex-shrink: 0;
21
+ }
31
22
 
32
- .security-summary .lock-icon {
33
- flex: none;
34
- width: var(--sys-size-8);
35
- height: var(--sys-size-8);
36
- margin: 0;
37
- }
38
- /* Separate the middle icon from the other two. */
23
+ .security-summary-section-title {
24
+ font-size: var(--sys-typescale-headline4-size);
25
+ margin: var(--sys-size-6) var(--sys-size-8);
26
+ user-select: text;
27
+ }
39
28
 
40
- .security-summary .lock-icon-neutral {
41
- margin: 0 var(--sys-size-8);
42
- }
29
+ .lock-spectrum {
30
+ margin: var(--sys-size-5) var(--sys-size-8);
31
+ display: flex;
32
+ align-items: flex-start;
33
+ }
43
34
 
44
- .security-summary:not(.security-summary-secure) .lock-icon-secure,
45
- .security-summary:not(.security-summary-neutral) .lock-icon-neutral,
46
- .security-summary:not(.security-summary-insecure) .lock-icon-insecure,
47
- .security-summary:not(.security-summary-insecure-broken) .lock-icon-insecure-broken {
48
- color: var(--sys-color-state-disabled);
49
- }
35
+ .security-summary .lock-icon {
36
+ flex: none;
37
+ width: var(--sys-size-8);
38
+ height: var(--sys-size-8);
39
+ margin: 0;
40
+ }
41
+ /* Separate the middle icon from the other two. */
50
42
 
51
- @media (forced-colors: active) {
52
- .security-summary-neutral .lock-icon-neutral {
53
- color: Highlight;
43
+ .security-summary .lock-icon-neutral {
44
+ margin: 0 var(--sys-size-8);
54
45
  }
55
46
 
56
47
  .security-summary:not(.security-summary-secure) .lock-icon-secure,
57
48
  .security-summary:not(.security-summary-neutral) .lock-icon-neutral,
58
49
  .security-summary:not(.security-summary-insecure) .lock-icon-insecure,
59
50
  .security-summary:not(.security-summary-insecure-broken) .lock-icon-insecure-broken {
60
- color: canvastext;
51
+ color: var(--sys-color-state-disabled);
61
52
  }
62
- }
63
53
 
64
- .triangle-pointer-container {
65
- margin: var(--sys-size-5) var(--sys-size-11) 0;
66
- padding: 0;
67
- }
54
+ @media (forced-colors: active) {
55
+ .security-summary-neutral .lock-icon-neutral {
56
+ color: Highlight;
57
+ }
58
+
59
+ .security-summary:not(.security-summary-secure) .lock-icon-secure,
60
+ .security-summary:not(.security-summary-neutral) .lock-icon-neutral,
61
+ .security-summary:not(.security-summary-insecure) .lock-icon-insecure,
62
+ .security-summary:not(.security-summary-insecure-broken) .lock-icon-insecure-broken {
63
+ color: canvastext;
64
+ }
65
+ }
68
66
 
69
- .triangle-pointer-wrapper {
70
- /* Defaults for dynamic properties. */
71
- transform: translateX(0);
72
- transition: transform 0.3s;
73
- }
67
+ .triangle-pointer-container {
68
+ margin: var(--sys-size-5) var(--sys-size-11) 0;
69
+ padding: 0;
70
+ }
74
71
 
75
- .triangle-pointer {
76
- width: var(--sys-size-6);
77
- height: var(--sys-size-6);
78
- margin-bottom: calc(-1 * var(--sys-size-4));
79
- margin-left: calc(-1 * var(--sys-size-4));
80
- transform: rotate(-45deg);
81
- border-style: solid;
82
- border-width: var(--sys-size-1) var(--sys-size-1) 0 0;
83
- background: var(--sys-color-cdt-base-container);
84
- border-color: var(--sys-color-neutral-outline);
85
- }
72
+ .triangle-pointer-wrapper {
73
+ /* Defaults for dynamic properties. */
74
+ transform: translateX(0);
75
+ transition: transform 0.3s;
76
+ }
86
77
 
87
- .security-summary-secure .triangle-pointer-wrapper {
88
- transform: translateX(0);
89
- }
78
+ .triangle-pointer {
79
+ width: var(--sys-size-6);
80
+ height: var(--sys-size-6);
81
+ margin-bottom: calc(-1 * var(--sys-size-4));
82
+ margin-left: calc(-1 * var(--sys-size-4));
83
+ transform: rotate(-45deg);
84
+ border-style: solid;
85
+ border-width: var(--sys-size-1) var(--sys-size-1) 0 0;
86
+ background: var(--sys-color-cdt-base-container);
87
+ border-color: var(--sys-color-neutral-outline);
88
+ }
90
89
 
91
- .security-summary-neutral .triangle-pointer-wrapper {
92
- transform: translateX(var(--sys-size-13));
93
- }
90
+ .security-summary-secure .triangle-pointer-wrapper {
91
+ transform: translateX(0);
92
+ }
94
93
 
95
- .security-summary-insecure .triangle-pointer-wrapper {
96
- transform: translateX(var(--sys-size-18));
97
- }
94
+ .security-summary-neutral .triangle-pointer-wrapper {
95
+ transform: translateX(var(--sys-size-13));
96
+ }
98
97
 
99
- .security-summary-insecure-broken .triangle-pointer-wrapper {
100
- transform: translateX(var(--sys-size-18));
101
- }
98
+ .security-summary-insecure .triangle-pointer-wrapper {
99
+ transform: translateX(var(--sys-size-18));
100
+ }
102
101
 
103
- .security-summary-text {
104
- padding: var(--sys-size-8) var(--sys-size-11);
105
- border-style: solid;
106
- border-width: var(--sys-size-1) 0;
107
- font-size: var(--sys-typescale-body2-size);
108
- background: var(--sys-color-cdt-base-container);
109
- border-color: var(--sys-color-neutral-outline);
110
- user-select: text;
111
- }
102
+ .security-summary-insecure-broken .triangle-pointer-wrapper {
103
+ transform: translateX(var(--sys-size-18));
104
+ }
112
105
 
113
- .security-summary-secure .triangle-pointer,
114
- .security-summary-secure .security-summary-text,
115
- .security-explanation-title-secure {
116
- color: var(--sys-color-green);
117
- }
106
+ .security-summary-text {
107
+ padding: var(--sys-size-8) var(--sys-size-11);
108
+ border-style: solid;
109
+ border-width: var(--sys-size-1) 0;
110
+ font-size: var(--sys-typescale-body2-size);
111
+ background: var(--sys-color-cdt-base-container);
112
+ border-color: var(--sys-color-neutral-outline);
113
+ user-select: text;
114
+ }
118
115
 
119
- .security-summary-insecure-broken .triangle-pointer,
120
- .security-summary-insecure-broken .security-summary-text,
121
- .security-explanation-title-neutral,
122
- .security-explanation-title-insecure,
123
- .security-explanation-title-insecure-broken {
124
- color: var(--sys-color-error);
125
- }
116
+ .security-summary-secure .triangle-pointer,
117
+ .security-summary-secure .security-summary-text,
118
+ .security-explanation-title-secure {
119
+ color: var(--sys-color-green);
120
+ }
126
121
 
127
- .security-explanation-list {
128
- padding-bottom: var(--sys-size-8);
129
- }
122
+ .security-summary-insecure-broken .triangle-pointer,
123
+ .security-summary-insecure-broken .security-summary-text,
124
+ .security-explanation-title-neutral,
125
+ .security-explanation-title-insecure,
126
+ .security-explanation-title-insecure-broken {
127
+ color: var(--sys-color-error);
128
+ }
130
129
 
131
- .security-explanation-list:empty {
132
- border-bottom: none;
133
- padding: 0;
134
- }
130
+ .security-explanation-list {
131
+ padding-bottom: var(--sys-size-8);
132
+ }
135
133
 
136
- .security-explanations-main {
137
- margin-top: calc(-1 * var(--sys-size-3));
138
- background-color: var(--sys-color-cdt-base-container);
139
- border-bottom: var(--sys-size-1) solid var(--sys-color-divider);
140
- }
134
+ .security-explanation-list:empty {
135
+ border-bottom: none;
136
+ padding: 0;
137
+ }
141
138
 
142
- .security-explanations-extra {
143
- background-color: transparent;
144
- }
139
+ .security-explanations-main {
140
+ margin-top: calc(-1 * var(--sys-size-3));
141
+ background-color: var(--sys-color-cdt-base-container);
142
+ border-bottom: var(--sys-size-1) solid var(--sys-color-divider);
143
+ }
145
144
 
146
- .security-explanation {
147
- padding: 11px;
148
- display: flex;
149
- white-space: nowrap;
150
- border: none;
151
- color: var(--sys-color-token-subtle);
152
- }
145
+ .security-explanations-extra {
146
+ background-color: transparent;
147
+ }
153
148
 
154
- .security-explanation-text {
155
- flex: auto;
156
- white-space: normal;
157
- max-width: var(--sys-size-33);
158
- }
149
+ .security-explanation {
150
+ padding: 11px;
151
+ display: flex;
152
+ white-space: nowrap;
153
+ border: none;
154
+ color: var(--sys-color-token-subtle);
155
+ }
159
156
 
160
- .origin-button {
161
- margin-top: var(--sys-size-4);
162
- }
157
+ .security-explanation-text {
158
+ flex: auto;
159
+ white-space: normal;
160
+ max-width: var(--sys-size-33);
161
+ }
163
162
 
164
- .security-explanation .security-property {
165
- flex: none;
166
- width: var(--sys-size-8);
167
- height: var(--sys-size-8);
168
- margin-right: var(--sys-size-8);
169
- }
163
+ .origin-button {
164
+ margin-top: var(--sys-size-4);
165
+ }
170
166
 
171
- .security-explanation-title {
172
- color: var(--sys-color-token-subtle);
173
- margin-top: var(--sys-size-1);
174
- margin-bottom: var(--sys-size-5);
175
- }
167
+ .security-explanation .security-property {
168
+ flex: none;
169
+ width: var(--sys-size-8);
170
+ height: var(--sys-size-8);
171
+ margin-right: var(--sys-size-8);
172
+ }
176
173
 
177
- .security-mixed-content {
178
- margin-top: var(--sys-size-5);
179
- }
174
+ .security-explanation-title {
175
+ color: var(--sys-color-token-subtle);
176
+ margin-top: var(--sys-size-1);
177
+ margin-bottom: var(--sys-size-5);
178
+ }
180
179
 
181
- .security-explanation-recommendations {
182
- padding-inline-start: var(--sys-size-8);
183
- }
180
+ .security-mixed-content {
181
+ margin-top: var(--sys-size-5);
182
+ }
184
183
 
185
- .security-explanation-recommendations > li {
186
- margin-bottom: var(--sys-size-3);
184
+ .security-explanation-recommendations {
185
+ padding-inline-start: var(--sys-size-8);
186
+ }
187
+
188
+ .security-explanation-recommendations > li {
189
+ margin-bottom: var(--sys-size-3);
190
+ }
187
191
  }