chrome-devtools-frontend 1.0.1570343 → 1.0.1571573
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/prompts/README.md +18 -0
- package/agents/prompts/devtools-imports.md +47 -0
- package/agents/prompts/verification.md +27 -0
- package/docs/contributing/infrastructure.md +22 -0
- package/front_end/core/host/AidaClient.ts +1 -1
- package/front_end/core/host/UserMetrics.ts +1 -1
- package/front_end/core/root/Runtime.ts +54 -34
- package/front_end/core/sdk/CSSProperty.ts +1 -1
- package/front_end/core/sdk/CookieModel.ts +1 -1
- package/front_end/core/sdk/DOMModel.ts +1 -1
- package/front_end/core/sdk/DebuggerModel.ts +2 -21
- package/front_end/core/sdk/OverlayModel.ts +3 -2
- package/front_end/core/sdk/SourceMap.ts +0 -9
- package/front_end/core/sdk/SourceMapScopesInfo.ts +0 -24
- package/front_end/entrypoints/main/MainImpl.ts +43 -18
- package/front_end/generated/SupportedCSSProperties.js +2 -6
- package/front_end/models/ai_assistance/BuiltInAi.ts +5 -4
- package/front_end/models/issues_manager/ContrastCheckTrigger.ts +2 -2
- package/front_end/models/javascript_metadata/NativeFunctions.js +8 -0
- package/front_end/models/trace/ModelImpl.ts +0 -4
- package/front_end/panels/accessibility/AccessibilitySidebarView.ts +1 -1
- package/front_end/panels/ai_assistance/PatchWidget.ts +10 -15
- package/front_end/panels/ai_assistance/SelectWorkspaceDialog.ts +5 -4
- package/front_end/panels/ai_assistance/components/ChatMessage.ts +3 -2
- package/front_end/panels/application/FrameDetailsView.ts +2 -1
- package/front_end/panels/application/components/ReportsGrid.ts +2 -1
- package/front_end/panels/common/AiCodeCompletionSummaryToolbar.ts +3 -5
- package/front_end/panels/common/AiCodeCompletionTeaser.ts +5 -5
- package/front_end/panels/console/ConsoleInsightTeaser.ts +10 -11
- package/front_end/panels/css_overview/CSSOverviewCompletedView.ts +2 -2
- package/front_end/panels/css_overview/CSSOverviewModel.ts +1 -1
- package/front_end/panels/elements/ComputedStyleModel.ts +11 -13
- package/front_end/panels/elements/ComputedStyleWidget.ts +3 -3
- package/front_end/panels/elements/ElementsPanel.ts +5 -2
- package/front_end/panels/elements/ElementsSidebarPane.ts +1 -1
- package/front_end/panels/elements/PlatformFontsWidget.ts +1 -1
- package/front_end/panels/elements/StylePropertiesSection.ts +1 -1
- package/front_end/panels/elements/StylePropertyTreeElement.ts +1 -1
- package/front_end/panels/emulation/DeviceModeWrapper.ts +101 -62
- package/front_end/panels/explain/components/ConsoleInsight.ts +27 -23
- package/front_end/panels/explain/components/consoleInsight.css +1 -1
- package/front_end/panels/network/RequestConditionsDrawer.ts +0 -1
- package/front_end/panels/network/RequestTimingView.ts +4 -3
- package/front_end/panels/network/components/RequestHeadersView.css +2 -2
- package/front_end/panels/network/components/RequestHeadersView.ts +7 -6
- package/front_end/panels/profiler/HeapProfileView.ts +3 -3
- package/front_end/panels/profiler/HeapSnapshotView.ts +2 -2
- package/front_end/panels/recorder/RecorderController.ts +6 -7
- package/front_end/panels/recorder/recorderController.css +1 -1
- package/front_end/panels/security/CookieControlsView.ts +2 -2
- package/front_end/panels/security/CookieReportView.ts +7 -7
- package/front_end/panels/settings/AISettingsTab.ts +5 -5
- package/front_end/panels/settings/components/SyncSection.ts +4 -3
- package/front_end/panels/sources/CallStackSidebarPane.ts +4 -1
- package/front_end/panels/sources/NavigatorView.ts +1 -1
- package/front_end/panels/sources/SourcesPanel.ts +3 -1
- package/front_end/panels/timeline/CompatibilityTracksAppender.ts +1 -1
- package/front_end/panels/timeline/ThreadAppender.ts +1 -1
- package/front_end/panels/timeline/TimelineController.ts +4 -3
- package/front_end/panels/timeline/TimelinePanel.ts +4 -3
- package/front_end/panels/whats_new/ReleaseNoteView.ts +4 -3
- package/front_end/third_party/chromium/README.chromium +1 -1
- package/front_end/ui/components/markdown_view/CodeBlock.ts +3 -6
- package/front_end/ui/components/markdown_view/MarkdownLink.ts +3 -4
- package/front_end/ui/components/panel_feedback/PanelFeedback.ts +3 -4
- package/front_end/ui/components/panel_feedback/PreviewToggle.ts +9 -6
- package/front_end/ui/components/panel_feedback/panelFeedback.css +2 -2
- package/front_end/ui/kit/link/Link.ts +1 -14
- package/front_end/ui/legacy/components/color_picker/ContrastDetails.ts +1 -1
- package/front_end/ui/legacy/components/color_picker/ContrastOverlay.ts +5 -4
- package/front_end/ui/visual_logging/KnownContextValues.ts +3 -1
- package/package.json +1 -1
|
@@ -429,6 +429,7 @@ export class SourcesPanel extends UI.Panel.Panel implements
|
|
|
429
429
|
SourcesPanel.updateResizerAndSidebarButtons(this);
|
|
430
430
|
}
|
|
431
431
|
this.editorView.setMainWidget(this.#sourcesView);
|
|
432
|
+
this.callstackPane.requestUpdate();
|
|
432
433
|
}
|
|
433
434
|
|
|
434
435
|
override willHide(): void {
|
|
@@ -638,7 +639,8 @@ export class SourcesPanel extends UI.Panel.Panel implements
|
|
|
638
639
|
}
|
|
639
640
|
|
|
640
641
|
private addExperimentMenuItem(
|
|
641
|
-
menuSection: UI.ContextMenu.Section, experiment:
|
|
642
|
+
menuSection: UI.ContextMenu.Section, experiment: Root.Runtime.ExperimentName,
|
|
643
|
+
menuItem: Common.UIString.LocalizedString): void {
|
|
642
644
|
/** menu handler **/
|
|
643
645
|
function toggleExperiment(): void {
|
|
644
646
|
const checked = Root.Runtime.experiments.isEnabled(experiment);
|
|
@@ -327,7 +327,7 @@ export class CompatibilityTracksAppender {
|
|
|
327
327
|
}
|
|
328
328
|
};
|
|
329
329
|
const threads = Trace.Handlers.Threads.threadsInTrace(this.#parsedTrace.data);
|
|
330
|
-
const showAllEvents = Root.Runtime.experiments.isEnabled(
|
|
330
|
+
const showAllEvents = Root.Runtime.experiments.isEnabled(Root.Runtime.ExperimentName.TIMELINE_SHOW_ALL_EVENTS);
|
|
331
331
|
|
|
332
332
|
for (const {pid, tid, name, type, entries, tree} of threads) {
|
|
333
333
|
if (this.#parsedTrace.data.Meta.traceIsGeneric) {
|
|
@@ -151,7 +151,7 @@ export class ThreadAppender implements TrackAppender {
|
|
|
151
151
|
#headerAppended = false;
|
|
152
152
|
readonly threadType: Trace.Handlers.Threads.ThreadType = Trace.Handlers.Threads.ThreadType.MAIN_THREAD;
|
|
153
153
|
readonly isOnMainFrame: boolean;
|
|
154
|
-
#showAllEventsEnabled = Root.Runtime.experiments.isEnabled(
|
|
154
|
+
#showAllEventsEnabled = Root.Runtime.experiments.isEnabled(Root.Runtime.ExperimentName.TIMELINE_SHOW_ALL_EVENTS);
|
|
155
155
|
#url = '';
|
|
156
156
|
#headerNestingLevel: number|null = null;
|
|
157
157
|
constructor(
|
|
@@ -229,7 +229,7 @@ export class TimelineController implements Tracing.TracingManager.TracingManager
|
|
|
229
229
|
// 'disabled-by-default-v8.cpu_profiler'
|
|
230
230
|
// └ default: on, option: enableJSSampling
|
|
231
231
|
const categoriesArray = [
|
|
232
|
-
Root.Runtime.experiments.isEnabled(
|
|
232
|
+
Root.Runtime.experiments.isEnabled(Root.Runtime.ExperimentName.TIMELINE_SHOW_ALL_EVENTS) ? '*' : '-*',
|
|
233
233
|
Trace.Types.Events.Categories.Console,
|
|
234
234
|
Trace.Types.Events.Categories.Loading,
|
|
235
235
|
Trace.Types.Events.Categories.UserTiming,
|
|
@@ -251,13 +251,14 @@ export class TimelineController implements Tracing.TracingManager.TracingManager
|
|
|
251
251
|
'navigation,rail',
|
|
252
252
|
];
|
|
253
253
|
|
|
254
|
-
if (Root.Runtime.experiments.isEnabled(
|
|
254
|
+
if (Root.Runtime.experiments.isEnabled(Root.Runtime.ExperimentName.TIMELINE_V8_RUNTIME_CALL_STATS) &&
|
|
255
|
+
options.enableJSSampling) {
|
|
255
256
|
categoriesArray.push(disabledByDefault('v8.runtime_stats_sampling'));
|
|
256
257
|
}
|
|
257
258
|
if (options.enableJSSampling) {
|
|
258
259
|
categoriesArray.push(disabledByDefault('v8.cpu_profiler'));
|
|
259
260
|
}
|
|
260
|
-
if (Root.Runtime.experiments.isEnabled(
|
|
261
|
+
if (Root.Runtime.experiments.isEnabled(Root.Runtime.ExperimentName.TIMELINE_INVALIDATION_TRACKING)) {
|
|
261
262
|
categoriesArray.push(disabledByDefault('devtools.timeline.invalidationTracking'));
|
|
262
263
|
}
|
|
263
264
|
if (options.capturePictures) {
|
|
@@ -732,8 +732,9 @@ export class TimelinePanel extends Common.ObjectWrapper.eventMixin<EventTypes, t
|
|
|
732
732
|
|
|
733
733
|
#instantiateNewModel(): Trace.TraceModel.Model {
|
|
734
734
|
const config = Trace.Types.Configuration.defaults();
|
|
735
|
-
config.showAllEvents = Root.Runtime.experiments.isEnabled(
|
|
736
|
-
config.includeRuntimeCallStats =
|
|
735
|
+
config.showAllEvents = Root.Runtime.experiments.isEnabled(Root.Runtime.ExperimentName.TIMELINE_SHOW_ALL_EVENTS);
|
|
736
|
+
config.includeRuntimeCallStats =
|
|
737
|
+
Root.Runtime.experiments.isEnabled(Root.Runtime.ExperimentName.TIMELINE_V8_RUNTIME_CALL_STATS);
|
|
737
738
|
config.debugMode = Root.Runtime.experiments.isEnabled(Root.Runtime.ExperimentName.TIMELINE_DEBUG_MODE);
|
|
738
739
|
|
|
739
740
|
const traceEngineModel = Trace.TraceModel.Model.createWithAllHandlers(config);
|
|
@@ -2089,7 +2090,7 @@ export class TimelinePanel extends Common.ObjectWrapper.eventMixin<EventTypes, t
|
|
|
2089
2090
|
|
|
2090
2091
|
#applyActiveFilters(traceIsGeneric: boolean, exclusiveFilter: Trace.Extras.TraceFilter.TraceFilter|null = null):
|
|
2091
2092
|
void {
|
|
2092
|
-
if (traceIsGeneric || Root.Runtime.experiments.isEnabled(
|
|
2093
|
+
if (traceIsGeneric || Root.Runtime.experiments.isEnabled(Root.Runtime.ExperimentName.TIMELINE_SHOW_ALL_EVENTS)) {
|
|
2093
2094
|
return;
|
|
2094
2095
|
}
|
|
2095
2096
|
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
// found in the LICENSE file.
|
|
4
4
|
|
|
5
5
|
import '../../ui/components/markdown_view/markdown_view.js';
|
|
6
|
+
import '../../ui/kit/kit.js';
|
|
6
7
|
|
|
7
8
|
import * as i18n from '../../core/i18n/i18n.js';
|
|
8
9
|
import type * as Platform from '../../core/platform/platform.js';
|
|
@@ -87,14 +88,14 @@ export class ReleaseNoteView extends UI.Panel.Panel {
|
|
|
87
88
|
<div class="video-container">
|
|
88
89
|
${releaseNote.videoLinks.map((value: {description: string, link: Platform.DevToolsPath.UrlString, type?: VideoType}) => {
|
|
89
90
|
return html`
|
|
90
|
-
<
|
|
91
|
+
<devtools-link
|
|
91
92
|
href=${value.link}
|
|
92
|
-
|
|
93
|
+
.jslogContext=${'learn-more'}>
|
|
93
94
|
<div class="video">
|
|
94
95
|
<img class="thumbnail" src=${input.getThumbnailPath(value.type ?? VideoType.WHATS_NEW)}>
|
|
95
96
|
<div class="thumbnail-description"><span>${value.description}</span></div>
|
|
96
97
|
</div>
|
|
97
|
-
</
|
|
98
|
+
</devtools-link>
|
|
98
99
|
`;
|
|
99
100
|
})}
|
|
100
101
|
</div>
|
|
@@ -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: 68ce69fc7f71cb8b57403cba5397e1d12753b37c
|
|
5
5
|
Update Mechanism: Manual (https://crbug.com/428069060)
|
|
6
6
|
License: BSD-3-Clause
|
|
7
7
|
License File: LICENSE
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// found in the LICENSE file.
|
|
4
4
|
/* eslint-disable @devtools/no-lit-render-outside-of-view, @devtools/enforce-custom-element-definitions-location */
|
|
5
5
|
|
|
6
|
-
import '../../../ui/
|
|
6
|
+
import '../../../ui/kit/kit.js';
|
|
7
7
|
|
|
8
8
|
import * as i18n from '../../../core/i18n/i18n.js';
|
|
9
9
|
import * as CodeMirror from '../../../third_party/codemirror.next/codemirror.next.js';
|
|
@@ -204,12 +204,9 @@ export class CodeBlock extends HTMLElement {
|
|
|
204
204
|
#renderNotice(): Lit.TemplateResult {
|
|
205
205
|
// clang-format off
|
|
206
206
|
return html`<p class="notice">
|
|
207
|
-
<
|
|
208
|
-
VisualLogging.link('code-disclaimer').track({
|
|
209
|
-
click: true,
|
|
210
|
-
})}>
|
|
207
|
+
<devtools-link class="link" href="https://support.google.com/legal/answer/13505487" .jslogContext=${'code-disclaimer'}>
|
|
211
208
|
${i18nString(UIStrings.disclaimer)}
|
|
212
|
-
</
|
|
209
|
+
</devtools-link>
|
|
213
210
|
</p>`;
|
|
214
211
|
// clang-format on
|
|
215
212
|
}
|
|
@@ -3,10 +3,9 @@
|
|
|
3
3
|
// found in the LICENSE file.
|
|
4
4
|
/* eslint-disable @devtools/no-lit-render-outside-of-view, @devtools/enforce-custom-element-definitions-location */
|
|
5
5
|
|
|
6
|
-
import '../../
|
|
6
|
+
import '../../kit/kit.js';
|
|
7
7
|
|
|
8
8
|
import {html, render} from '../../lit/lit.js';
|
|
9
|
-
import * as VisualLogging from '../../visual_logging/visual_logging.js';
|
|
10
9
|
|
|
11
10
|
import markdownLinkStyles from './markdownLink.css.js';
|
|
12
11
|
import {getMarkdownLink} from './MarkdownLinksMap.js';
|
|
@@ -38,8 +37,8 @@ export class MarkdownLink extends HTMLElement {
|
|
|
38
37
|
// clang-format off
|
|
39
38
|
const output = html`
|
|
40
39
|
<style>${markdownLinkStyles}</style>
|
|
41
|
-
<
|
|
42
|
-
>${this.#linkText}</
|
|
40
|
+
<devtools-link class="devtools-link" href=${this.#linkUrl}
|
|
41
|
+
>${this.#linkText}</devtools-link>`;
|
|
43
42
|
render(output, this.#shadow, {host: this});
|
|
44
43
|
// clang-format on
|
|
45
44
|
}
|
|
@@ -3,13 +3,12 @@
|
|
|
3
3
|
// found in the LICENSE file.
|
|
4
4
|
/* eslint-disable @devtools/no-lit-render-outside-of-view, @devtools/enforce-custom-element-definitions-location */
|
|
5
5
|
|
|
6
|
-
import '../../
|
|
6
|
+
import '../../kit/kit.js';
|
|
7
7
|
|
|
8
8
|
import * as i18n from '../../../core/i18n/i18n.js';
|
|
9
9
|
import * as Platform from '../../../core/platform/platform.js';
|
|
10
10
|
import * as ComponentHelpers from '../../components/helpers/helpers.js';
|
|
11
11
|
import {html, render} from '../../lit/lit.js';
|
|
12
|
-
import * as VisualLogging from '../../visual_logging/visual_logging.js';
|
|
13
12
|
|
|
14
13
|
import panelFeedbackStyles from './panelFeedback.css.js';
|
|
15
14
|
|
|
@@ -68,14 +67,14 @@ export class PanelFeedback extends HTMLElement {
|
|
|
68
67
|
<h2 class="flex">
|
|
69
68
|
<devtools-icon name="experiment" class="extra-large" style="color: var(--icon-primary);"></devtools-icon> ${i18nString(UIStrings.previewFeature)}
|
|
70
69
|
</h2>
|
|
71
|
-
<p>${i18nString(UIStrings.previewText)} <
|
|
70
|
+
<p>${i18nString(UIStrings.previewText)} <devtools-link href=${this.#props.feedbackUrl} .jslogContext=${'feedback'}>${i18nString(UIStrings.previewTextFeedbackLink)}</devtools-link></p>
|
|
72
71
|
<div class="video">
|
|
73
72
|
<div class="thumbnail">
|
|
74
73
|
<img src=${videoThumbnailUrl} role="presentation" />
|
|
75
74
|
</div>
|
|
76
75
|
<div class="video-description">
|
|
77
76
|
<h3>${i18nString(UIStrings.videoAndDocumentation)}</h3>
|
|
78
|
-
<
|
|
77
|
+
<devtools-link class="quick-start-link" href=${this.#props.quickStartUrl} .jslogContext=${'css-overview.quick-start'}>${this.#props.quickStartLinkText}</devtools-link>
|
|
79
78
|
</div>
|
|
80
79
|
</div>
|
|
81
80
|
</div>
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
/* eslint-disable @devtools/no-lit-render-outside-of-view, @devtools/enforce-custom-element-definitions-location */
|
|
5
5
|
|
|
6
6
|
import '../../../ui/legacy/legacy.js';
|
|
7
|
+
import '../../../ui/kit/kit.js';
|
|
7
8
|
|
|
8
9
|
import * as i18n from '../../../core/i18n/i18n.js';
|
|
9
10
|
import * as Root from '../../../core/root/root.js';
|
|
@@ -45,7 +46,7 @@ export class PreviewToggle extends HTMLElement {
|
|
|
45
46
|
#helperText: string|null = null;
|
|
46
47
|
#feedbackURL: string|null = null;
|
|
47
48
|
#learnMoreURL: string|undefined;
|
|
48
|
-
#experiment = '';
|
|
49
|
+
#experiment: Root.Runtime.ExperimentName|'' = '';
|
|
49
50
|
#onChangeCallback?: (checked: boolean) => void;
|
|
50
51
|
|
|
51
52
|
set data(data: PreviewToggleData) {
|
|
@@ -59,7 +60,7 @@ export class PreviewToggle extends HTMLElement {
|
|
|
59
60
|
}
|
|
60
61
|
|
|
61
62
|
#render(): void {
|
|
62
|
-
const checked = Root.Runtime.experiments.isEnabled(this.#experiment);
|
|
63
|
+
const checked = this.#experiment && Root.Runtime.experiments.isEnabled(this.#experiment);
|
|
63
64
|
// Disabled until https://crbug.com/1079231 is fixed.
|
|
64
65
|
// clang-format off
|
|
65
66
|
render(
|
|
@@ -75,14 +76,14 @@ export class PreviewToggle extends HTMLElement {
|
|
|
75
76
|
</devtools-checkbox>
|
|
76
77
|
<div class="spacer"></div>
|
|
77
78
|
${this.#feedbackURL && !this.#helperText
|
|
78
|
-
? html`<div class="feedback"><
|
|
79
|
+
? html`<div class="feedback"><devtools-link class="x-link" href=${this.#feedbackURL}>${i18nString(UIStrings.shortFeedbackLink)}</devtools-link></div>`
|
|
79
80
|
: nothing}
|
|
80
81
|
${this.#learnMoreURL
|
|
81
|
-
? html`<div class="learn-more"><
|
|
82
|
+
? html`<div class="learn-more"><devtools-link class="x-link" href=${this.#learnMoreURL}>${i18nString(UIStrings.learnMoreLink)}</devtools-link></div>`
|
|
82
83
|
: nothing}
|
|
83
84
|
<div class="helper">
|
|
84
85
|
${this.#helperText && this.#feedbackURL
|
|
85
|
-
? html`<p>${this.#helperText} <
|
|
86
|
+
? html`<p>${this.#helperText} <devtools-link class="x-link" href=${this.#feedbackURL}>${i18nString(UIStrings.previewTextFeedbackLink)}</devtools-link></p>`
|
|
86
87
|
: nothing}
|
|
87
88
|
</div>
|
|
88
89
|
</div>`,
|
|
@@ -95,7 +96,9 @@ export class PreviewToggle extends HTMLElement {
|
|
|
95
96
|
|
|
96
97
|
#checkboxChanged(event: Event): void {
|
|
97
98
|
const checked = (event.target as HTMLInputElement).checked;
|
|
98
|
-
|
|
99
|
+
if (this.#experiment) {
|
|
100
|
+
Root.Runtime.experiments.setEnabled(this.#experiment, checked);
|
|
101
|
+
}
|
|
99
102
|
this.#onChangeCallback?.(checked);
|
|
100
103
|
}
|
|
101
104
|
}
|
|
@@ -54,7 +54,7 @@ h3 {
|
|
|
54
54
|
gap: 20px;
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
|
|
57
|
+
devtools-link {
|
|
58
58
|
color: var(--sys-color-primary);
|
|
59
59
|
text-decoration-line: underline;
|
|
60
60
|
}
|
|
@@ -72,7 +72,7 @@ x-link.quick-start-link {
|
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
@media (forced-colors: active) {
|
|
75
|
-
|
|
75
|
+
devtools-link {
|
|
76
76
|
color: linktext;
|
|
77
77
|
}
|
|
78
78
|
}
|
|
@@ -82,20 +82,7 @@ export class Link extends HTMLElement {
|
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
#onJslogContextChange(): void {
|
|
85
|
-
|
|
86
|
-
if (!jslogContext) {
|
|
87
|
-
try {
|
|
88
|
-
if (!this.href) {
|
|
89
|
-
return;
|
|
90
|
-
}
|
|
91
|
-
const urlForContext = new URL(this.href);
|
|
92
|
-
urlForContext.search = '';
|
|
93
|
-
jslogContext = Platform.StringUtilities.toKebabCase(urlForContext.toString());
|
|
94
|
-
} catch {
|
|
95
|
-
return;
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
|
|
85
|
+
const jslogContext = this.jslogContext ?? undefined;
|
|
99
86
|
const jslog = VisualLogging.link().track({click: true, keydown: 'Enter|Space'}).context(jslogContext);
|
|
100
87
|
this.setAttribute('jslog', jslog.toString());
|
|
101
88
|
}
|
|
@@ -242,7 +242,7 @@ export class ContrastDetails extends Common.ObjectWrapper.ObjectWrapper<EventTyp
|
|
|
242
242
|
this.setVisible(true);
|
|
243
243
|
this.hideNoContrastInfoAvailableMessage();
|
|
244
244
|
|
|
245
|
-
const isAPCAEnabled = Root.Runtime.experiments.isEnabled(
|
|
245
|
+
const isAPCAEnabled = Root.Runtime.experiments.isEnabled(Root.Runtime.ExperimentName.APCA);
|
|
246
246
|
|
|
247
247
|
const fgColor = this.contrastInfo.color();
|
|
248
248
|
const bgColor = this.contrastInfo.bgColor();
|
|
@@ -25,7 +25,7 @@ export class ContrastOverlay {
|
|
|
25
25
|
|
|
26
26
|
this.contrastRatioSVG = UI.UIUtils.createSVGChild(colorElement, 'svg', 'spectrum-contrast-container fill');
|
|
27
27
|
this.contrastRatioLines = new Map();
|
|
28
|
-
if (Root.Runtime.experiments.isEnabled(
|
|
28
|
+
if (Root.Runtime.experiments.isEnabled(Root.Runtime.ExperimentName.APCA)) {
|
|
29
29
|
this.contrastRatioLines.set(
|
|
30
30
|
'APCA', UI.UIUtils.createSVGChild(this.contrastRatioSVG, 'path', 'spectrum-contrast-line'));
|
|
31
31
|
} else {
|
|
@@ -50,7 +50,8 @@ export class ContrastOverlay {
|
|
|
50
50
|
if (!this.visible || this.contrastInfo.isNull()) {
|
|
51
51
|
return;
|
|
52
52
|
}
|
|
53
|
-
if (Root.Runtime.experiments.isEnabled(
|
|
53
|
+
if (Root.Runtime.experiments.isEnabled(Root.Runtime.ExperimentName.APCA) &&
|
|
54
|
+
this.contrastInfo.contrastRatioAPCA() === null) {
|
|
54
55
|
return;
|
|
55
56
|
}
|
|
56
57
|
if (!this.contrastInfo.contrastRatio()) {
|
|
@@ -90,7 +91,7 @@ export class ContrastRatioLineBuilder {
|
|
|
90
91
|
}
|
|
91
92
|
|
|
92
93
|
drawContrastRatioLine(width: number, height: number, level: string): string|null {
|
|
93
|
-
const isAPCA = Root.Runtime.experiments.isEnabled(
|
|
94
|
+
const isAPCA = Root.Runtime.experiments.isEnabled(Root.Runtime.ExperimentName.APCA);
|
|
94
95
|
const requiredContrast =
|
|
95
96
|
isAPCA ? this.contrastInfo.contrastRatioAPCAThreshold() : this.contrastInfo.contrastRatioThreshold(level);
|
|
96
97
|
if (!width || !height || requiredContrast === null) {
|
|
@@ -139,7 +140,7 @@ export class ContrastRatioLineBuilder {
|
|
|
139
140
|
Common.ColorUtils.blendColors(Common.Color.Legacy.fromHSVA(candidateHSVA).rgba(), bgRGBA));
|
|
140
141
|
};
|
|
141
142
|
|
|
142
|
-
if (Root.Runtime.experiments.isEnabled(
|
|
143
|
+
if (Root.Runtime.experiments.isEnabled(Root.Runtime.ExperimentName.APCA)) {
|
|
143
144
|
candidateLuminance = (candidateHSVA: Common.ColorUtils.Color4D) => {
|
|
144
145
|
return Common.ColorUtils.luminanceAPCA(
|
|
145
146
|
Common.ColorUtils.blendColors(Common.Color.Legacy.fromHSVA(candidateHSVA).rgba(), bgRGBA));
|
|
@@ -1748,6 +1748,7 @@ export const knownContextValues = new Set([
|
|
|
1748
1748
|
'geolocation.get-current-position',
|
|
1749
1749
|
'geolocation.watch-position',
|
|
1750
1750
|
'georgia',
|
|
1751
|
+
'get-devtools-mcp',
|
|
1751
1752
|
'gl',
|
|
1752
1753
|
'global-ai-button',
|
|
1753
1754
|
'global-ai-button-click-count',
|
|
@@ -3534,7 +3535,7 @@ export const knownContextValues = new Set([
|
|
|
3534
3535
|
'show-minimal-safe-area-for-maskable-icons',
|
|
3535
3536
|
'show-more',
|
|
3536
3537
|
'show-network-requests',
|
|
3537
|
-
'show-option-
|
|
3538
|
+
'show-option-to-expose-internals-in-heap-snapshot',
|
|
3538
3539
|
'show-overrides',
|
|
3539
3540
|
'show-paint-rects',
|
|
3540
3541
|
'show-paint-rects-true',
|
|
@@ -3802,6 +3803,7 @@ export const knownContextValues = new Set([
|
|
|
3802
3803
|
'text-emphasis-color',
|
|
3803
3804
|
'text-emphasis-position',
|
|
3804
3805
|
'text-emphasis-style',
|
|
3806
|
+
'text-fit',
|
|
3805
3807
|
'text-grow',
|
|
3806
3808
|
'text-indent',
|
|
3807
3809
|
'text-justify',
|
package/package.json
CHANGED