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.
- package/.agents/rules/ui-and-widgets/ui-css-scoping-and-flex-layout.md +1 -1
- package/.agents/skills/version-control/SKILL.md +63 -11
- package/docs/devtools-protocol.md +3 -1
- package/eslint.config.mjs +0 -6
- package/front_end/core/host/AidaClient.ts +14 -36
- package/front_end/core/host/AidaGcaTranslation.ts +8 -5
- package/front_end/core/root/Runtime.ts +0 -5
- package/front_end/design_system_tokens.css +1 -0
- package/front_end/entrypoints/main/GlobalAiButton.ts +2 -9
- package/front_end/entrypoints/main/MainImpl.ts +0 -4
- package/front_end/generated/SupportedCSSProperties.ts +8 -23
- package/front_end/models/ai-utils/AiUtils.ts +1 -5
- package/front_end/models/ai_assistance/agents/AiAgent.ts +2 -18
- package/front_end/models/ai_assistance/contexts/FileContext.ts +1 -2
- package/front_end/models/ai_assistance/tools/ListSources.ts +3 -1
- package/front_end/models/ai_code_generation/AiCodeGeneration.ts +0 -6
- package/front_end/models/javascript_metadata/NativeFunctions.ts +9 -5
- package/front_end/models/trace/EventsSerializer.ts +0 -8
- package/front_end/models/workspace/UISourceCode.ts +30 -8
- package/front_end/panels/ai_assistance/AiAssistancePanel.ts +1 -7
- package/front_end/panels/ai_assistance/ai_assistance-meta.ts +15 -34
- package/front_end/panels/ai_assistance/components/ChatView.ts +2 -16
- package/front_end/panels/ai_assistance/components/chatView.css +0 -32
- package/front_end/panels/ai_assistance/components/walkthroughView.css +1 -1
- package/front_end/panels/animation/AnimationTimeline.ts +1 -1
- package/front_end/panels/animation/animationTimeline.css +5 -3
- package/front_end/panels/application/PrivateVerificationTokensView.ts +114 -26
- package/front_end/panels/application/ResourcesPanel.ts +1 -0
- package/front_end/panels/application/backgroundServiceView.css +2 -2
- package/front_end/panels/application/components/permissionsPolicySection.css +0 -4
- package/front_end/panels/application/frameDetailsReportView.css +0 -7
- package/front_end/panels/application/indexedDBViews.css +3 -3
- package/front_end/panels/application/privateVerificationTokensView.css +6 -0
- package/front_end/panels/application/serviceWorkerUpdateCycleView.css +1 -1
- package/front_end/panels/application/serviceWorkersView.css +2 -2
- package/front_end/panels/comments/CommentsPane.ts +1 -1
- package/front_end/panels/comments/commentsPane.css +1 -1
- package/front_end/panels/common/common.ts +0 -1
- package/front_end/panels/console/ConsoleView.ts +11 -1
- package/front_end/panels/console/ConsoleViewMessage.ts +5 -1
- package/front_end/panels/console/consolePinPane.css +1 -1
- package/front_end/panels/console/consoleView.css +5 -4
- package/front_end/panels/elements/DOMTreeWidget.ts +47 -5
- package/front_end/panels/elements/layoutPane.css +0 -1
- package/front_end/panels/emulation/InspectedPagePlaceholder.ts +1 -0
- package/front_end/panels/emulation/deviceModeView.css +0 -1
- package/front_end/panels/issues/issuesTree.css +2 -2
- package/front_end/panels/layer_viewer/LayerDetailsView.ts +34 -17
- package/front_end/panels/layer_viewer/LayerTreeOutline.ts +39 -17
- package/front_end/panels/layer_viewer/Layers3DView.ts +34 -13
- package/front_end/panels/layer_viewer/layerDetailsView.css +1 -1
- package/front_end/panels/layer_viewer/layers3DView.css +0 -4
- package/front_end/panels/media/playerListView.css +0 -18
- package/front_end/panels/media/playerPropertiesView.css +1 -1
- package/front_end/panels/network/NetworkWaterfallColumn.ts +22 -10
- package/front_end/panels/network/RequestPreviewView.ts +182 -63
- package/front_end/panels/network/SignedExchangeInfoView.ts +242 -158
- package/front_end/panels/network/networkConfigView.css +1 -1
- package/front_end/panels/network/networkLogView.css +2 -1
- package/front_end/panels/network/networkPanel.css +0 -5
- package/front_end/panels/network/networkTimingTable.css +1 -1
- package/front_end/panels/network/signedExchangeInfoView.css +12 -8
- package/front_end/panels/performance_monitor/performanceMonitor.css +2 -2
- package/front_end/panels/profiler/IsolateSelector.ts +31 -10
- package/front_end/panels/profiler/profilesPanel.css +0 -8
- package/front_end/panels/protocol_monitor/JSONEditor.css +1 -1
- package/front_end/panels/screencast/screencastView.css +2 -2
- package/front_end/panels/security/SecurityPanel.ts +474 -418
- package/front_end/panels/security/SecurityPanelSidebar.ts +68 -48
- package/front_end/panels/security/lockIcon.css +52 -50
- package/front_end/panels/security/mainView.css +149 -145
- package/front_end/panels/security/originView.css +117 -115
- package/front_end/panels/sensors/LocationsSettingsTab.ts +2 -50
- package/front_end/panels/sensors/locationsSettingsTab.css +1 -21
- package/front_end/panels/settings/AISettingsTab.ts +1 -2
- package/front_end/panels/settings/SettingsScreen.ts +1 -1
- package/front_end/panels/sources/CallStackSidebarPane.ts +31 -6
- package/front_end/panels/sources/NavigatorView.ts +105 -31
- package/front_end/panels/sources/breakpointsView.css +2 -1
- package/front_end/panels/sources/scopeChainSidebarPane.css +1 -1
- package/front_end/panels/timeline/ThirdPartyTreeView.ts +1 -0
- package/front_end/panels/timeline/TimelineLayersView.ts +108 -46
- package/front_end/panels/timeline/TimelinePanel.ts +4 -2
- package/front_end/panels/timeline/components/insights/BaseInsightComponent.ts +1 -1
- package/front_end/panels/timeline/components/networkRequestDetails.css +1 -1
- package/front_end/panels/timeline/overlays/components/EntryLabelOverlay.ts +0 -7
- package/front_end/panels/web_audio/webAudio.css +1 -2
- package/front_end/panels/webauthn/WebauthnPane.ts +1 -1
- package/front_end/panels/whats_new/ReleaseNoteText.ts +6 -6
- package/front_end/panels/whats_new/resources/WNDT.md +6 -6
- package/front_end/third_party/chromium/README.chromium +1 -1
- package/front_end/ui/comments/CommentAnchorResolver.ts +45 -4
- package/front_end/ui/comments/CommentOverlayManager.ts +45 -12
- package/front_end/ui/components/buttons/FloatingButton.ts +2 -6
- package/front_end/ui/components/buttons/button.css +2 -2
- package/front_end/ui/components/buttons/floatingButton.css +0 -44
- package/front_end/ui/components/icon_button/iconButton.css +1 -1
- package/front_end/ui/components/markdown_view/markdownView.css +1 -1
- package/front_end/ui/legacy/ContextMenu.ts +7 -5
- package/front_end/ui/legacy/InspectorDrawerView.ts +1 -0
- package/front_end/ui/legacy/InspectorView.ts +5 -1
- package/front_end/ui/legacy/PopoverHelper.ts +1 -0
- package/front_end/ui/legacy/RootView.ts +9 -3
- package/front_end/ui/legacy/SplitWidget.ts +1 -0
- package/front_end/ui/legacy/Treeoutline.ts +9 -0
- package/front_end/ui/legacy/UIUtils.ts +1 -1
- package/front_end/ui/legacy/components/cookie_table/CookiesTable.ts +130 -137
- package/front_end/ui/legacy/components/inline_editor/CSSShadowEditor.ts +1 -1
- package/front_end/ui/legacy/components/inline_editor/SwatchPopoverHelper.ts +1 -0
- package/front_end/ui/legacy/components/inline_editor/bezierEditor.css +1 -1
- package/front_end/ui/legacy/components/inline_editor/cssAngleEditor.css +3 -1
- package/front_end/ui/legacy/components/inline_editor/cssShadowEditor.css +7 -6
- package/front_end/ui/legacy/components/perf_ui/FlameChart.ts +2 -0
- package/front_end/ui/legacy/components/perf_ui/pieChart.css +2 -2
- package/front_end/ui/legacy/components/quick_open/filteredListWidget.css +1 -10
- package/front_end/ui/legacy/filter.css +1 -1
- package/front_end/ui/legacy/infobar.css +1 -1
- package/front_end/ui/legacy/inspectorCommon.css +2 -2
- package/front_end/ui/legacy/inspectorDrawerTabbedPane.css +3 -3
- package/front_end/ui/legacy/listWidget.css +2 -7
- package/front_end/ui/legacy/softDropDownButton.css +1 -1
- package/front_end/ui/legacy/tabbedPane.css +2 -1
- package/front_end/ui/legacy/treeoutline.css +3 -2
- package/front_end/ui/visual_logging/KnownContextValues.ts +133 -0
- package/front_end/ui/visual_logging/LoggingEvents.ts +1 -1
- package/package.json +1 -1
- package/front_end/Images/geminiInDevTools.png +0 -0
- package/front_end/Images/geminiInDevTools_2x.png +0 -0
- package/front_end/generated/InspectorBackendCommands.ts +0 -1690
- package/front_end/generated/protocol-mapping.d.ts +0 -5986
- package/front_end/generated/protocol-proxy-api.d.ts +0 -5452
- package/front_end/generated/protocol.ts +0 -23364
- package/front_end/panels/common/GeminiRebrandPromoDialog.ts +0 -193
- 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:
|
|
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:
|
|
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
|
-
|
|
86
|
-
|
|
79
|
+
input.onElementSelected(origin);
|
|
80
|
+
input.onShowOrigin(origin);
|
|
87
81
|
}}>
|
|
88
|
-
${
|
|
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,
|
|
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
|
|
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
|
-
|
|
195
|
-
|
|
189
|
+
input.onElementSelected('overview');
|
|
190
|
+
input.onShowOrigin(null);
|
|
196
191
|
}}>
|
|
197
|
-
${
|
|
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
|
|
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
|
-
|
|
234
|
-
this.#
|
|
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
|
-
|
|
240
|
-
this.#
|
|
241
|
-
this.#showOriginsUnconditionally = !hidden;
|
|
242
|
-
this.requestUpdate();
|
|
241
|
+
get mainOrigin(): string|null {
|
|
242
|
+
return this.#mainOrigin;
|
|
243
243
|
}
|
|
244
244
|
|
|
245
|
-
|
|
246
|
-
this.#origins
|
|
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
|
-
|
|
251
|
-
this.#
|
|
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
|
|
256
|
-
return this.#
|
|
265
|
+
get originsHidden(): boolean {
|
|
266
|
+
return this.#originsHidden;
|
|
257
267
|
}
|
|
258
268
|
|
|
259
|
-
|
|
260
|
-
this.#
|
|
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
|
-
|
|
265
|
-
this.#
|
|
266
|
-
this.requestUpdate();
|
|
277
|
+
get showOriginsUnconditionally(): boolean {
|
|
278
|
+
return this.#showOriginsUnconditionally;
|
|
267
279
|
}
|
|
268
280
|
|
|
269
|
-
|
|
270
|
-
this.#
|
|
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
|
-
|
|
275
|
-
this.#
|
|
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
|
|
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,
|
|
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
|
-
|
|
8
|
-
.
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
.url-scheme-
|
|
55
|
-
.url-scheme-insecure
|
|
56
|
-
|
|
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
|
-
|
|
8
|
-
|
|
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
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}
|
|
12
|
+
:scope,
|
|
13
|
+
.security-main-view {
|
|
14
|
+
overflow: hidden auto;
|
|
15
|
+
background-color: var(--sys-color-cdt-base-container);
|
|
16
|
+
}
|
|
25
17
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
}
|
|
18
|
+
:scope > div,
|
|
19
|
+
.security-main-view > div {
|
|
20
|
+
flex-shrink: 0;
|
|
21
|
+
}
|
|
31
22
|
|
|
32
|
-
.security-summary
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
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
|
-
.
|
|
41
|
-
|
|
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
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
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
|
-
|
|
52
|
-
|
|
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:
|
|
51
|
+
color: var(--sys-color-state-disabled);
|
|
61
52
|
}
|
|
62
|
-
}
|
|
63
53
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
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-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
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
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
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
|
-
.
|
|
88
|
-
|
|
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-
|
|
92
|
-
|
|
93
|
-
}
|
|
90
|
+
.security-summary-secure .triangle-pointer-wrapper {
|
|
91
|
+
transform: translateX(0);
|
|
92
|
+
}
|
|
94
93
|
|
|
95
|
-
.security-summary-
|
|
96
|
-
|
|
97
|
-
}
|
|
94
|
+
.security-summary-neutral .triangle-pointer-wrapper {
|
|
95
|
+
transform: translateX(var(--sys-size-13));
|
|
96
|
+
}
|
|
98
97
|
|
|
99
|
-
.security-summary-insecure
|
|
100
|
-
|
|
101
|
-
}
|
|
98
|
+
.security-summary-insecure .triangle-pointer-wrapper {
|
|
99
|
+
transform: translateX(var(--sys-size-18));
|
|
100
|
+
}
|
|
102
101
|
|
|
103
|
-
.security-summary-
|
|
104
|
-
|
|
105
|
-
|
|
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-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
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-
|
|
120
|
-
.security-summary-
|
|
121
|
-
.security-explanation-title-
|
|
122
|
-
|
|
123
|
-
|
|
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-
|
|
128
|
-
|
|
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
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
}
|
|
130
|
+
.security-explanation-list {
|
|
131
|
+
padding-bottom: var(--sys-size-8);
|
|
132
|
+
}
|
|
135
133
|
|
|
136
|
-
.security-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
}
|
|
134
|
+
.security-explanation-list:empty {
|
|
135
|
+
border-bottom: none;
|
|
136
|
+
padding: 0;
|
|
137
|
+
}
|
|
141
138
|
|
|
142
|
-
.security-explanations-
|
|
143
|
-
|
|
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-
|
|
147
|
-
|
|
148
|
-
|
|
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
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
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
|
-
.
|
|
161
|
-
|
|
162
|
-
|
|
157
|
+
.security-explanation-text {
|
|
158
|
+
flex: auto;
|
|
159
|
+
white-space: normal;
|
|
160
|
+
max-width: var(--sys-size-33);
|
|
161
|
+
}
|
|
163
162
|
|
|
164
|
-
.
|
|
165
|
-
|
|
166
|
-
|
|
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-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
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-
|
|
178
|
-
|
|
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-
|
|
182
|
-
|
|
183
|
-
}
|
|
180
|
+
.security-mixed-content {
|
|
181
|
+
margin-top: var(--sys-size-5);
|
|
182
|
+
}
|
|
184
183
|
|
|
185
|
-
.security-explanation-recommendations
|
|
186
|
-
|
|
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
|
}
|