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.
Files changed (44) hide show
  1. package/docs/contributing/infrastructure.md +32 -0
  2. package/docs/contributing/issues.md +15 -37
  3. package/eslint.config.mjs +1 -0
  4. package/front_end/core/host/InspectorFrontendHost.ts +2 -0
  5. package/front_end/core/host/InspectorFrontendHostAPI.ts +1 -0
  6. package/front_end/core/host/UserMetrics.ts +29 -1
  7. package/front_end/core/protocol_client/CDPConnection.ts +53 -5
  8. package/front_end/core/protocol_client/InspectorBackend.ts +0 -89
  9. package/front_end/core/protocol_client/protocol_client.ts +2 -0
  10. package/front_end/core/root/Runtime.ts +1 -0
  11. package/front_end/core/sdk/RehydratingConnection.ts +1 -1
  12. package/front_end/devtools_compatibility.js +230 -32
  13. package/front_end/generated/SupportedCSSProperties.js +38 -0
  14. package/front_end/models/ai_assistance/BuiltInAi.ts +141 -39
  15. package/front_end/panels/ai_assistance/PatchWidget.ts +39 -40
  16. package/front_end/panels/ai_assistance/components/ExploreWidget.ts +0 -2
  17. package/front_end/panels/autofill/AutofillView.ts +2 -3
  18. package/front_end/panels/changes/CombinedDiffView.ts +13 -14
  19. package/front_end/panels/common/BadgeNotification.ts +1 -3
  20. package/front_end/panels/console/ConsoleInsightTeaser.ts +8 -1
  21. package/front_end/panels/console/ConsoleView.ts +1 -0
  22. package/front_end/panels/console/consoleView.css +0 -1
  23. package/front_end/panels/elements/ElementsTreeOutline.ts +1 -1
  24. package/front_end/panels/network/components/DirectSocketConnectionView.ts +4 -6
  25. package/front_end/panels/network/components/ResponseHeaderSection.ts +1 -2
  26. package/front_end/panels/security/CookieControlsView.ts +72 -66
  27. package/front_end/panels/security/CookieReportView.ts +15 -14
  28. package/front_end/panels/security/IPProtectionView.ts +1 -2
  29. package/front_end/panels/security/SecurityPanel.ts +19 -19
  30. package/front_end/panels/timeline/TimelineSelectorStatsView.ts +36 -36
  31. package/front_end/panels/timeline/components/SidebarAnnotationsTab.ts +1 -2
  32. package/front_end/third_party/chromium/README.chromium +1 -1
  33. package/front_end/ui/components/dialogs/Dialog.ts +7 -17
  34. package/front_end/ui/components/text_editor/TextEditor.ts +2 -3
  35. package/front_end/ui/components/text_editor/config.ts +1 -3
  36. package/front_end/ui/legacy/UIUtils.ts +5 -0
  37. package/front_end/ui/legacy/components/inline_editor/CSSAngle.ts +1 -1
  38. package/front_end/ui/legacy/components/perf_ui/BrickBreaker.ts +2 -2
  39. package/front_end/ui/legacy/components/perf_ui/Font.ts +1 -14
  40. package/front_end/ui/visual_logging/KnownContextValues.ts +2 -0
  41. package/inspector_overlay/testing/InspectorOverlayHelpers.ts +2 -10
  42. package/package.json +1 -1
  43. package/front_end/services/window_bounds/WindowBoundsService.ts +0 -27
  44. 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
- if (fontFamily) {
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
@@ -102,5 +102,5 @@
102
102
  "flat-cache": "6.1.12"
103
103
  }
104
104
  },
105
- "version": "1.0.1534251"
105
+ "version": "1.0.1535712"
106
106
  }
@@ -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
- }
@@ -1,9 +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 WindowBoundsService from './WindowBoundsService.js';
6
-
7
- export {
8
- WindowBoundsService,
9
- };