chrome-devtools-frontend 1.0.1553956 → 1.0.1555174
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/front_end/Images/src/spark.svg +10 -0
- package/front_end/core/sdk/ResourceTreeModel.ts +0 -1
- package/front_end/generated/SupportedCSSProperties.js +18 -0
- package/front_end/models/javascript_metadata/NativeFunctions.js +15 -23
- package/front_end/panels/application/BounceTrackingMitigationsTreeElement.ts +2 -6
- package/front_end/panels/application/components/BounceTrackingMitigationsView.ts +133 -118
- package/front_end/panels/security/CookieControlsView.ts +21 -10
- package/front_end/panels/timeline/CompatibilityTracksAppender.ts +0 -1
- package/front_end/panels/timeline/components/Sidebar.ts +16 -7
- package/front_end/panels/timeline/components/SidebarInsightsTab.ts +169 -129
- package/front_end/panels/timeline/components/insights/Checklist.ts +53 -43
- package/front_end/panels/timeline/components/insights/DocumentLatency.ts +6 -3
- package/front_end/panels/timeline/components/insights/LCPDiscovery.ts +7 -3
- package/front_end/panels/timeline/components/sidebarInsightsTab.css +50 -48
- package/front_end/third_party/chromium/README.chromium +1 -1
- package/front_end/ui/components/settings/SettingCheckbox.ts +4 -6
- package/front_end/ui/legacy/TabbedPane.ts +19 -12
- package/front_end/ui/legacy/Widget.ts +1 -3
- package/front_end/ui/legacy/tabbedPane.css +4 -7
- package/front_end/ui/visual_logging/KnownContextValues.ts +1 -0
- package/package.json +1 -1
|
@@ -4,68 +4,70 @@
|
|
|
4
4
|
* found in the LICENSE file.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.insight-sets-wrapper {
|
|
14
|
-
display: flex;
|
|
15
|
-
flex-flow: column nowrap;
|
|
16
|
-
flex-grow: 1; /* so it fills the available vertical height in the sidebar */
|
|
17
|
-
|
|
18
|
-
details {
|
|
19
|
-
flex-grow: 0;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
details[open] {
|
|
7
|
+
@scope to (devtools-widget > *) {
|
|
8
|
+
:host {
|
|
9
|
+
display: flex;
|
|
10
|
+
flex-flow: column nowrap;
|
|
23
11
|
flex-grow: 1;
|
|
24
|
-
border-bottom: 1px solid var(--sys-color-divider);
|
|
25
12
|
}
|
|
26
13
|
|
|
27
|
-
|
|
28
|
-
background-color: var(--sys-color-surface2);
|
|
29
|
-
border-bottom: 1px solid var(--sys-color-divider);
|
|
30
|
-
overflow: hidden;
|
|
31
|
-
padding: 2px 5px;
|
|
32
|
-
text-overflow: ellipsis;
|
|
33
|
-
white-space: nowrap;
|
|
34
|
-
font: var(--sys-typescale-body4-medium);
|
|
14
|
+
.insight-sets-wrapper {
|
|
35
15
|
display: flex;
|
|
36
|
-
|
|
16
|
+
flex-flow: column nowrap;
|
|
17
|
+
flex-grow: 1; /* so it fills the available vertical height in the sidebar */
|
|
37
18
|
|
|
38
|
-
|
|
39
|
-
|
|
19
|
+
details {
|
|
20
|
+
flex-grow: 0;
|
|
40
21
|
}
|
|
41
22
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
line-height: 1;
|
|
23
|
+
details[open] {
|
|
24
|
+
flex-grow: 1;
|
|
25
|
+
border-bottom: 1px solid var(--sys-color-divider);
|
|
46
26
|
}
|
|
47
27
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
border-
|
|
28
|
+
summary {
|
|
29
|
+
background-color: var(--sys-color-surface2);
|
|
30
|
+
border-bottom: 1px solid var(--sys-color-divider);
|
|
31
|
+
overflow: hidden;
|
|
32
|
+
padding: 2px 5px;
|
|
33
|
+
text-overflow: ellipsis;
|
|
34
|
+
white-space: nowrap;
|
|
35
|
+
font: var(--sys-typescale-body4-medium);
|
|
36
|
+
display: flex;
|
|
37
|
+
align-items: center;
|
|
38
|
+
|
|
39
|
+
&:focus {
|
|
40
|
+
background-color: var(--sys-color-tonal-container);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&::marker {
|
|
44
|
+
color: var(--sys-color-on-surface-subtle);
|
|
45
|
+
font-size: 11px;
|
|
46
|
+
line-height: 1;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/* make sure the first summary has a top border */
|
|
50
|
+
details:first-child & {
|
|
51
|
+
border-top: 1px solid var(--sys-color-divider);
|
|
52
|
+
}
|
|
51
53
|
}
|
|
52
54
|
}
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.zoom-button {
|
|
56
|
-
margin-left: auto;
|
|
57
|
-
}
|
|
58
55
|
|
|
59
|
-
.zoom-
|
|
60
|
-
|
|
56
|
+
.zoom-button {
|
|
57
|
+
margin-left: auto;
|
|
58
|
+
}
|
|
61
59
|
|
|
62
|
-
|
|
63
|
-
visibility:
|
|
60
|
+
.zoom-icon {
|
|
61
|
+
visibility: hidden;
|
|
62
|
+
|
|
63
|
+
&.active devtools-button {
|
|
64
|
+
visibility: visible;
|
|
65
|
+
}
|
|
64
66
|
}
|
|
65
|
-
}
|
|
66
67
|
|
|
67
|
-
.dropdown-icon {
|
|
68
|
-
|
|
69
|
-
|
|
68
|
+
.dropdown-icon {
|
|
69
|
+
&.active devtools-button {
|
|
70
|
+
transform: rotate(90deg);
|
|
71
|
+
}
|
|
70
72
|
}
|
|
71
73
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Name: Dependencies sourced from the upstream `chromium` repository
|
|
2
2
|
URL: https://chromium.googlesource.com/chromium/src
|
|
3
3
|
Version: N/A
|
|
4
|
-
Revision:
|
|
4
|
+
Revision: b5f7f1049c1c66374a70dc4e9110c063c9c66aea
|
|
5
5
|
Update Mechanism: Manual (https://crbug.com/428069060)
|
|
6
6
|
License: BSD-3-Clause
|
|
7
7
|
License File: LICENSE
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
import '../tooltips/tooltips.js';
|
|
7
7
|
import './SettingDeprecationWarning.js';
|
|
8
|
-
import '../../
|
|
8
|
+
import '../../kit/kit.js';
|
|
9
9
|
|
|
10
10
|
import type * as Common from '../../../core/common/common.js';
|
|
11
11
|
import * as Host from '../../../core/host/host.js';
|
|
@@ -90,13 +90,11 @@ export class SettingCheckbox extends HTMLElement {
|
|
|
90
90
|
<devtools-tooltip id=${id} variant="rich">
|
|
91
91
|
<span>${learnMore.tooltip()}</span><br />
|
|
92
92
|
${url
|
|
93
|
-
? html`<
|
|
93
|
+
? html`<devtools-link
|
|
94
94
|
href=${url}
|
|
95
95
|
class="link"
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
})}
|
|
99
|
-
>${i18nString(UIStrings.learnMore)}</x-link
|
|
96
|
+
.jslogContext=${jsLogContext}
|
|
97
|
+
>${i18nString(UIStrings.learnMore)}</devtools-link
|
|
100
98
|
>`
|
|
101
99
|
: Lit.nothing}
|
|
102
100
|
</devtools-tooltip>
|
|
@@ -1203,11 +1203,21 @@ export class TabbedPaneTab {
|
|
|
1203
1203
|
if (!this.#tabElement) {
|
|
1204
1204
|
return;
|
|
1205
1205
|
}
|
|
1206
|
-
const iconElement = this.#tabElement.querySelector('.
|
|
1206
|
+
const iconElement = this.#tabElement.querySelector('.spark');
|
|
1207
1207
|
if (iconVisible) {
|
|
1208
1208
|
if (!iconElement) {
|
|
1209
|
-
const
|
|
1210
|
-
this.#tabElement.
|
|
1209
|
+
const spark = this.createTabAnnotationIcon();
|
|
1210
|
+
this.#tabElement.appendChild(spark);
|
|
1211
|
+
|
|
1212
|
+
const parentRect = this.#tabElement.parentElement?.getBoundingClientRect();
|
|
1213
|
+
if (!parentRect) {
|
|
1214
|
+
return;
|
|
1215
|
+
}
|
|
1216
|
+
const containerRect = this.tabElement.getBoundingClientRect();
|
|
1217
|
+
const iconWidth = spark.getBoundingClientRect().width;
|
|
1218
|
+
// Position the icon so that its right edge is at the container's right edge.
|
|
1219
|
+
const x = containerRect.x - parentRect.x + containerRect.width - iconWidth;
|
|
1220
|
+
(spark as HTMLElement).style.left = `${x}px`;
|
|
1211
1221
|
}
|
|
1212
1222
|
} else {
|
|
1213
1223
|
iconElement?.remove();
|
|
@@ -1393,17 +1403,14 @@ export class TabbedPaneTab {
|
|
|
1393
1403
|
return tabElement as HTMLElement;
|
|
1394
1404
|
}
|
|
1395
1405
|
|
|
1396
|
-
private createTabAnnotationIcon():
|
|
1397
|
-
// TODO(finnur): Replace the ai-icon with the squiggly svg once it becomes available.
|
|
1398
|
-
const iconContainer = document.createElement('div');
|
|
1399
|
-
iconContainer.classList.add('ai-icon');
|
|
1406
|
+
private createTabAnnotationIcon(): Icon {
|
|
1400
1407
|
const tabAnnotationIcon = new Icon();
|
|
1401
|
-
tabAnnotationIcon.name = '
|
|
1408
|
+
tabAnnotationIcon.name = 'spark';
|
|
1402
1409
|
tabAnnotationIcon.classList.add('small');
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
return
|
|
1410
|
+
tabAnnotationIcon.classList.add('spark');
|
|
1411
|
+
tabAnnotationIcon.setAttribute('title', i18nString(UIStrings.panelContainsAnnotation));
|
|
1412
|
+
tabAnnotationIcon.setAttribute('aria-label', i18nString(UIStrings.panelContainsAnnotation));
|
|
1413
|
+
return tabAnnotationIcon;
|
|
1407
1414
|
}
|
|
1408
1415
|
|
|
1409
1416
|
private createCloseIconButton(): Buttons.Button.Button {
|
|
@@ -998,9 +998,7 @@ export class Widget {
|
|
|
998
998
|
* assert.isTrue(widget.someDataLoaded);
|
|
999
999
|
* ```
|
|
1000
1000
|
*
|
|
1001
|
-
* @returns a promise that resolves
|
|
1002
|
-
* updating, the value is `true` if there are no more pending updates,
|
|
1003
|
-
* and `false` if the update cycle triggered another update.
|
|
1001
|
+
* @returns a promise that resolves when the widget has finished updating.
|
|
1004
1002
|
*/
|
|
1005
1003
|
get updateComplete(): Promise<void> {
|
|
1006
1004
|
return this.#updateComplete;
|
|
@@ -521,12 +521,9 @@
|
|
|
521
521
|
}
|
|
522
522
|
}
|
|
523
523
|
|
|
524
|
-
.
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
margin-left: 4px;
|
|
528
|
-
}
|
|
524
|
+
.spark {
|
|
525
|
+
position: absolute;
|
|
526
|
+
top: 2px;
|
|
529
527
|
|
|
530
|
-
|
|
531
|
-
color: var(--sys-color-on-primary);
|
|
528
|
+
--icon-default: var(--sys-color-primary);
|
|
532
529
|
}
|
package/package.json
CHANGED