chrome-devtools-frontend 1.0.1534251 → 1.0.1535712
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/infrastructure.md +32 -0
- package/docs/contributing/issues.md +15 -37
- package/eslint.config.mjs +1 -0
- package/front_end/core/host/InspectorFrontendHost.ts +2 -0
- package/front_end/core/host/InspectorFrontendHostAPI.ts +1 -0
- package/front_end/core/host/UserMetrics.ts +29 -1
- package/front_end/core/protocol_client/CDPConnection.ts +53 -5
- package/front_end/core/protocol_client/InspectorBackend.ts +0 -89
- package/front_end/core/protocol_client/protocol_client.ts +2 -0
- package/front_end/core/root/Runtime.ts +1 -0
- package/front_end/core/sdk/RehydratingConnection.ts +1 -1
- package/front_end/devtools_compatibility.js +230 -32
- package/front_end/generated/SupportedCSSProperties.js +38 -0
- package/front_end/models/ai_assistance/BuiltInAi.ts +141 -39
- package/front_end/panels/ai_assistance/PatchWidget.ts +39 -40
- package/front_end/panels/ai_assistance/components/ExploreWidget.ts +0 -2
- package/front_end/panels/autofill/AutofillView.ts +2 -3
- package/front_end/panels/changes/CombinedDiffView.ts +13 -14
- package/front_end/panels/common/BadgeNotification.ts +1 -3
- package/front_end/panels/console/ConsoleInsightTeaser.ts +8 -1
- package/front_end/panels/console/ConsoleView.ts +1 -0
- package/front_end/panels/console/consoleView.css +0 -1
- package/front_end/panels/elements/ElementsTreeOutline.ts +1 -1
- package/front_end/panels/network/components/DirectSocketConnectionView.ts +4 -6
- package/front_end/panels/network/components/ResponseHeaderSection.ts +1 -2
- package/front_end/panels/security/CookieControlsView.ts +72 -66
- package/front_end/panels/security/CookieReportView.ts +15 -14
- package/front_end/panels/security/IPProtectionView.ts +1 -2
- package/front_end/panels/security/SecurityPanel.ts +19 -19
- package/front_end/panels/timeline/TimelineSelectorStatsView.ts +36 -36
- package/front_end/panels/timeline/components/SidebarAnnotationsTab.ts +1 -2
- package/front_end/third_party/chromium/README.chromium +1 -1
- package/front_end/ui/components/dialogs/Dialog.ts +7 -17
- package/front_end/ui/components/text_editor/TextEditor.ts +2 -3
- package/front_end/ui/components/text_editor/config.ts +1 -3
- package/front_end/ui/legacy/UIUtils.ts +5 -0
- package/front_end/ui/legacy/components/inline_editor/CSSAngle.ts +1 -1
- package/front_end/ui/legacy/components/perf_ui/BrickBreaker.ts +2 -2
- package/front_end/ui/legacy/components/perf_ui/Font.ts +1 -14
- package/front_end/ui/visual_logging/KnownContextValues.ts +2 -0
- package/inspector_overlay/testing/InspectorOverlayHelpers.ts +2 -10
- package/package.json +1 -1
- package/front_end/services/window_bounds/WindowBoundsService.ts +0 -27
- package/front_end/services/window_bounds/window_bounds.ts +0 -9
|
@@ -3,8 +3,6 @@
|
|
|
3
3
|
// found in the LICENSE file.
|
|
4
4
|
import * as Host from '../../../../core/host/host.js';
|
|
5
5
|
|
|
6
|
-
let fontFamily: string|null = null;
|
|
7
|
-
|
|
8
6
|
/**
|
|
9
7
|
* Because we run our UI in a couple of contexts (actual app & test
|
|
10
8
|
* environments) and on multiple platforms, the font is not consistent, so this
|
|
@@ -19,18 +17,7 @@ let fontFamily: string|null = null;
|
|
|
19
17
|
* to ensure that the screenshot tests are consistent.
|
|
20
18
|
**/
|
|
21
19
|
export function getFontFamilyForCanvas(): string {
|
|
22
|
-
|
|
23
|
-
return fontFamily;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
const bodyStyles = getComputedStyle(document.body);
|
|
27
|
-
if (bodyStyles.fontFamily) {
|
|
28
|
-
fontFamily = bodyStyles.fontFamily;
|
|
29
|
-
} else {
|
|
30
|
-
fontFamily = Host.Platform.fontFamily();
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
return fontFamily;
|
|
20
|
+
return Host.Platform.fontFamily();
|
|
34
21
|
}
|
|
35
22
|
|
|
36
23
|
export const DEFAULT_FONT_SIZE = '11px';
|
|
@@ -810,6 +810,7 @@ export const knownContextValues = new Set([
|
|
|
810
810
|
'column-rule-color',
|
|
811
811
|
'column-rule-outset',
|
|
812
812
|
'column-rule-style',
|
|
813
|
+
'column-rule-visibility-items',
|
|
813
814
|
'column-rule-width',
|
|
814
815
|
'column-span',
|
|
815
816
|
'column-width',
|
|
@@ -3729,6 +3730,7 @@ export const knownContextValues = new Set([
|
|
|
3729
3730
|
'text-emphasis-style',
|
|
3730
3731
|
'text-grow',
|
|
3731
3732
|
'text-indent',
|
|
3733
|
+
'text-justify',
|
|
3732
3734
|
'text-node',
|
|
3733
3735
|
'text-orientation',
|
|
3734
3736
|
'text-overflow',
|
|
@@ -217,11 +217,7 @@ export function drawGridLineNamesAndAssertLabels(
|
|
|
217
217
|
|
|
218
218
|
for (const expected of expectedLabels) {
|
|
219
219
|
const foundLabel = foundLabels.find(({textContent}) => textContent === expected.textContent);
|
|
220
|
-
|
|
221
|
-
if (!foundLabel) {
|
|
222
|
-
assert.fail(`Expected line name label with text content ${expected.textContent} not found`);
|
|
223
|
-
return;
|
|
224
|
-
}
|
|
220
|
+
assert.exists(foundLabel, `Expected line name label with text content ${expected.textContent} not found`);
|
|
225
221
|
|
|
226
222
|
if (expected.type === 'column' && typeof expected.x !== 'undefined') {
|
|
227
223
|
assert.closeTo(
|
|
@@ -256,11 +252,7 @@ export function drawGridAreaNamesAndAssertLabels(
|
|
|
256
252
|
});
|
|
257
253
|
for (const expected of expectedLabels) {
|
|
258
254
|
const foundLabel = foundLabels.find(({textContent}) => textContent === expected.textContent);
|
|
259
|
-
|
|
260
|
-
if (!foundLabel) {
|
|
261
|
-
assert.fail(`Expected area label with text content ${expected.textContent} not found`);
|
|
262
|
-
return;
|
|
263
|
-
}
|
|
255
|
+
assert.exists(foundLabel, `Expected area label with text content ${expected.textContent} not found`);
|
|
264
256
|
|
|
265
257
|
if (typeof expected.left !== 'undefined') {
|
|
266
258
|
assert.strictEqual(
|
package/package.json
CHANGED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
// Copyright 2021 The Chromium Authors
|
|
2
|
-
// Use of this source code is governed by a BSD-style license that can be
|
|
3
|
-
// found in the LICENSE file.
|
|
4
|
-
|
|
5
|
-
import * as Legacy from '../../ui/legacy/legacy.js';
|
|
6
|
-
|
|
7
|
-
export interface WindowBoundsService {
|
|
8
|
-
getDevToolsBoundingElement(): HTMLElement;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
let windowBoundsServiceImplInstance: WindowBoundsServiceImpl;
|
|
12
|
-
export class WindowBoundsServiceImpl implements WindowBoundsService {
|
|
13
|
-
static instance(opts: {
|
|
14
|
-
forceNew: boolean|null,
|
|
15
|
-
} = {forceNew: null}): WindowBoundsServiceImpl {
|
|
16
|
-
const {forceNew} = opts;
|
|
17
|
-
if (!windowBoundsServiceImplInstance || forceNew) {
|
|
18
|
-
windowBoundsServiceImplInstance = new WindowBoundsServiceImpl();
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
return windowBoundsServiceImplInstance;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
getDevToolsBoundingElement(): HTMLElement {
|
|
25
|
-
return Legacy.InspectorView.InspectorView.maybeGetInspectorViewInstance()?.element || document.body;
|
|
26
|
-
}
|
|
27
|
-
}
|