chrome-devtools-frontend 1.0.1593959 → 1.0.1595090
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/docs/contributing/settings-experiments-features.md +25 -5
- package/front_end/core/common/README.md +126 -0
- package/front_end/core/sdk/CSSModel.ts +22 -0
- package/front_end/core/sdk/CSSNavigation.ts +33 -0
- package/front_end/core/sdk/CSSRule.ts +12 -2
- package/front_end/core/sdk/sdk-meta.ts +22 -18
- package/front_end/core/sdk/sdk.ts +2 -0
- package/front_end/design_system_tokens.css +538 -259
- package/front_end/entrypoints/main/main-meta.ts +2 -2
- package/front_end/generated/SupportedCSSProperties.js +12 -0
- package/front_end/models/issues_manager/Issue.ts +1 -0
- package/front_end/models/issues_manager/IssueAggregator.ts +9 -0
- package/front_end/models/issues_manager/IssuesManager.ts +5 -0
- package/front_end/models/issues_manager/SelectivePermissionsInterventionIssue.ts +65 -0
- package/front_end/models/issues_manager/descriptions/selectivePermissionsIntervention.md +7 -0
- package/front_end/models/issues_manager/issues_manager.ts +2 -0
- package/front_end/models/javascript_metadata/NativeFunctions.js +44 -9
- package/front_end/models/persistence/persistence-meta.ts +4 -4
- package/front_end/panels/ai_assistance/AiAssistancePanel.ts +12 -1
- package/front_end/panels/ai_assistance/components/ChatInput.ts +37 -30
- package/front_end/panels/ai_assistance/components/ChatView.ts +4 -2
- package/front_end/panels/ai_assistance/components/chatInput.css +26 -1
- package/front_end/panels/application/StorageView.ts +8 -2
- package/front_end/panels/application/preloading/PreloadingView.ts +105 -7
- package/front_end/panels/application/preloading/preloadingView.css +4 -0
- package/front_end/panels/console/ConsoleView.ts +2 -2
- package/front_end/panels/console/console-meta.ts +18 -14
- package/front_end/panels/elements/ComputedStyleWidget.ts +12 -7
- package/front_end/panels/elements/ElementsPanel.ts +1 -1
- package/front_end/panels/elements/ElementsTreeOutline.ts +4 -6
- package/front_end/panels/elements/ImagePreviewPopover.ts +6 -9
- package/front_end/panels/elements/StylePropertiesSection.ts +30 -0
- package/front_end/panels/elements/StylesSidebarPane.ts +13 -7
- package/front_end/panels/elements/elements-meta.ts +12 -8
- package/front_end/panels/issues/AffectedSelectivePermissionsInterventionView.ts +120 -0
- package/front_end/panels/issues/IssueView.ts +2 -0
- package/front_end/panels/issues/IssuesPane.ts +6 -0
- package/front_end/panels/issues/issues.ts +2 -0
- package/front_end/panels/lighthouse/LighthouseStartView.ts +99 -38
- package/front_end/panels/lighthouse/LighthouseTimespanView.ts +53 -14
- package/front_end/panels/lighthouse/RadioSetting.ts +33 -19
- package/front_end/panels/lighthouse/lighthouse.ts +2 -0
- package/front_end/panels/media/PlayerMessagesView.ts +62 -49
- package/front_end/panels/media/media.ts +2 -0
- package/front_end/panels/media/playerMessagesView.css +1 -1
- package/front_end/panels/profiler/HeapSnapshotGridNodes.ts +49 -24
- package/front_end/panels/settings/FrameworkIgnoreListSettingsTab.ts +2 -2
- package/front_end/panels/sources/sources-meta.ts +8 -4
- package/front_end/panels/utils/utils.ts +11 -5
- package/front_end/third_party/chromium/README.chromium +1 -1
- package/front_end/third_party/lit/lib/async-directive.d.ts +465 -0
- package/front_end/third_party/lit/lib/async-directive.js +23 -0
- package/front_end/third_party/lit/lib/async-directive.js.map +1 -0
- package/front_end/third_party/lit/lib/decorators.d.ts +7 -1
- package/front_end/third_party/lit/lib/decorators.js +2 -2
- package/front_end/third_party/lit/lib/decorators.js.map +1 -1
- package/front_end/third_party/lit/lib/directive.js.map +1 -1
- package/front_end/third_party/lit/lib/directives.d.ts +27 -8
- package/front_end/third_party/lit/lib/directives.js +8 -8
- package/front_end/third_party/lit/lib/directives.js.map +1 -1
- package/front_end/third_party/lit/lib/lit.d.ts +15 -5
- package/front_end/third_party/lit/lib/lit.js +4 -4
- package/front_end/third_party/lit/lib/lit.js.map +1 -1
- package/front_end/third_party/lit/lib/static-html.js +2 -2
- package/front_end/third_party/lit/lib/static-html.js.map +1 -1
- package/front_end/third_party/lit/lit.ts +2 -1
- package/front_end/third_party/lit/rollup.config.mjs +1 -1
- package/front_end/ui/components/markdown_view/MarkdownLinksMap.ts +5 -0
- package/front_end/ui/legacy/components/utils/ImagePreview.ts +27 -23
- package/front_end/ui/lit/lit.ts +1 -0
- package/front_end/ui/visual_logging/Debugging.ts +1 -1
- package/front_end/ui/visual_logging/KnownContextValues.ts +4 -0
- package/package.json +1 -1
|
@@ -183,33 +183,37 @@ export class ImagePreview {
|
|
|
183
183
|
});
|
|
184
184
|
}
|
|
185
185
|
|
|
186
|
-
static
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
|
|
186
|
+
static defaultAltTextForImageURL(url: Platform.DevToolsPath.UrlString): string {
|
|
187
|
+
const parsedImageURL = new Common.ParsedURL.ParsedURL(url);
|
|
188
|
+
const imageSourceText = parsedImageURL.isValid ? parsedImageURL.displayName : i18nString(UIStrings.unknownSource);
|
|
189
|
+
return i18nString(UIStrings.imageFromS, {PH1: imageSourceText});
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
192
|
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
193
|
+
export async function loadPrecomputedFeatures(node?: SDK.DOMModel.DOMNode|null):
|
|
194
|
+
Promise<PrecomputedFeatures|undefined> {
|
|
195
|
+
if (!node) {
|
|
196
|
+
return undefined;
|
|
197
|
+
}
|
|
198
|
+
if (!node.nodeName() || node.nodeName().toLowerCase() !== 'img') {
|
|
199
|
+
return undefined;
|
|
200
|
+
}
|
|
196
201
|
|
|
197
|
-
|
|
198
|
-
object.release();
|
|
199
|
-
return featuresObject ?? undefined;
|
|
202
|
+
const object = await node.resolveToObject('');
|
|
200
203
|
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
renderedWidth: this.width,
|
|
204
|
-
renderedHeight: this.height,
|
|
205
|
-
currentSrc: this.currentSrc as Platform.DevToolsPath.UrlString,
|
|
206
|
-
};
|
|
207
|
-
}
|
|
204
|
+
if (!object) {
|
|
205
|
+
return undefined;
|
|
208
206
|
}
|
|
209
207
|
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
208
|
+
const featuresObject = await object.callFunctionJSON(features, undefined);
|
|
209
|
+
object.release();
|
|
210
|
+
return featuresObject ?? undefined;
|
|
211
|
+
|
|
212
|
+
function features(this: HTMLImageElement): PrecomputedFeatures {
|
|
213
|
+
return {
|
|
214
|
+
renderedWidth: this.width,
|
|
215
|
+
renderedHeight: this.height,
|
|
216
|
+
currentSrc: this.currentSrc as Platform.DevToolsPath.UrlString,
|
|
217
|
+
};
|
|
214
218
|
}
|
|
215
219
|
}
|
package/front_end/ui/lit/lit.ts
CHANGED
|
@@ -241,7 +241,7 @@ export function processEventForIntuitiveDebugging(
|
|
|
241
241
|
|
|
242
242
|
export function processEventForTestDebugging(
|
|
243
243
|
event: EventType, state: LoggingState|null, _extraInfo?: EventAttributes): void {
|
|
244
|
-
if (event !== 'SettingAccess' && event !== 'FunctionCall') {
|
|
244
|
+
if (event !== 'SettingAccess' && event !== 'FunctionCall' && event !== 'Resize') {
|
|
245
245
|
lastImpressionLogEntry = null;
|
|
246
246
|
}
|
|
247
247
|
maybeLogDebugEvent({interaction: event, veid: state?.veid || 0});
|
|
@@ -2937,6 +2937,7 @@ export const knownContextValues = new Set([
|
|
|
2937
2937
|
'patch-widget.save-all',
|
|
2938
2938
|
'patch-widget.workspace',
|
|
2939
2939
|
'path',
|
|
2940
|
+
'path-length',
|
|
2940
2941
|
'pathname',
|
|
2941
2942
|
'pattern',
|
|
2942
2943
|
'pause',
|
|
@@ -3025,6 +3026,7 @@ export const knownContextValues = new Set([
|
|
|
3025
3026
|
'preloading-speculations',
|
|
3026
3027
|
'preloading-status-panel',
|
|
3027
3028
|
'preloading-status-panel-pretty-print',
|
|
3029
|
+
'preloading.clear',
|
|
3028
3030
|
'presentation',
|
|
3029
3031
|
'preserve-console-log',
|
|
3030
3032
|
'preserve-console-log-true',
|
|
@@ -3448,6 +3450,7 @@ export const knownContextValues = new Set([
|
|
|
3448
3450
|
'selected-context-filter-enabled',
|
|
3449
3451
|
'selected-context-filter-enabled-true',
|
|
3450
3452
|
'selected-profile-type',
|
|
3453
|
+
'selective-permissions-intervention-details',
|
|
3451
3454
|
'selector',
|
|
3452
3455
|
'selector-aria',
|
|
3453
3456
|
'selector-attribute',
|
|
@@ -3842,6 +3845,7 @@ export const knownContextValues = new Set([
|
|
|
3842
3845
|
'test-combo-box-setting',
|
|
3843
3846
|
'test-device',
|
|
3844
3847
|
'test-font',
|
|
3848
|
+
'test-radio-setting',
|
|
3845
3849
|
'test-setting',
|
|
3846
3850
|
'test-setting-true',
|
|
3847
3851
|
'test-sidebar',
|
package/package.json
CHANGED