chrome-devtools-frontend 1.0.935332 → 1.0.935784

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.
@@ -170,12 +170,10 @@ all_devtools_files = [
170
170
  "front_end/models/issues_manager/descriptions/TwaDigitalAssetLinksFailed.md",
171
171
  "front_end/models/issues_manager/descriptions/TwaHttpError.md",
172
172
  "front_end/models/issues_manager/descriptions/TwaPageUnavailableOffline.md",
173
- "front_end/panels/developer_resources/module.json",
174
173
  "front_end/panels/protocol_monitor/module.json",
175
174
  "front_end/panels/application/module.json",
176
175
  "front_end/panels/screencast/module.json",
177
176
  "front_end/legacy_test_runner/sdk_test_runner/sdk_test_runner.js",
178
- "front_end/panels/search/module.json",
179
177
  "front_end/legacy_test_runner/security_test_runner/security_test_runner.js",
180
178
  "front_end/panels/security/module.json",
181
179
  "front_end/panels/settings/module.json",
@@ -360,7 +360,6 @@ grd_files_release_sources = [
360
360
  "front_end/panels/css_overview/css_overview_module.js",
361
361
  "front_end/panels/developer_resources/developer_resources-meta.js",
362
362
  "front_end/panels/developer_resources/developer_resources.js",
363
- "front_end/panels/developer_resources/developer_resources_module.js",
364
363
  "front_end/panels/elements/components/components.js",
365
364
  "front_end/panels/elements/elements-legacy.js",
366
365
  "front_end/panels/elements/elements-meta.js",
@@ -422,7 +421,6 @@ grd_files_release_sources = [
422
421
  "front_end/panels/screencast/screencast.js",
423
422
  "front_end/panels/search/search-legacy.js",
424
423
  "front_end/panels/search/search.js",
425
- "front_end/panels/search/search_module.js",
426
424
  "front_end/panels/security/security-legacy.js",
427
425
  "front_end/panels/security/security-meta.js",
428
426
  "front_end/panels/security/security.js",
@@ -737,7 +735,6 @@ grd_files_debug_sources = [
737
735
  "front_end/models/issues_manager/ContrastCheckTrigger.js",
738
736
  "front_end/models/issues_manager/CorsIssue.js",
739
737
  "front_end/models/issues_manager/CrossOriginEmbedderPolicyIssue.js",
740
- "front_end/models/issues_manager/DeprecationIssue.js",
741
738
  "front_end/models/issues_manager/GenericIssue.js",
742
739
  "front_end/models/issues_manager/HeavyAdIssue.js",
743
740
  "front_end/models/issues_manager/Issue.js",
@@ -747,6 +744,7 @@ grd_files_debug_sources = [
747
744
  "front_end/models/issues_manager/LowTextContrastIssue.js",
748
745
  "front_end/models/issues_manager/MarkdownIssueDescription.js",
749
746
  "front_end/models/issues_manager/MixedContentIssue.js",
747
+ "front_end/models/issues_manager/NavigatorUserAgentIssue.js",
750
748
  "front_end/models/issues_manager/QuirksModeIssue.js",
751
749
  "front_end/models/issues_manager/RelatedIssue.js",
752
750
  "front_end/models/issues_manager/SameSiteCookieIssue.js",
@@ -1520,6 +1520,19 @@
1520
1520
  this.evaluateInConsole_(`new WebSocket('ws://127.0.0.1:${websocketPort}')`, () => {});
1521
1521
  };
1522
1522
 
1523
+ TestSuite.prototype.testExtensionWebSocketOfflineNetworkConditions = async function(websocketPort) {
1524
+ self.SDK.multitargetNetworkManager.setNetworkConditions(SDK.NetworkManager.OfflineConditions);
1525
+
1526
+ // TODO(crbug.com/1263900): Currently we don't send loadingFailed for web sockets.
1527
+ // Update this once we do.
1528
+ this.addSniffer(SDK.NetworkDispatcher.prototype, 'webSocketClosed', () => {
1529
+ this.releaseControl();
1530
+ });
1531
+
1532
+ this.takeControl();
1533
+ this.evaluateInConsole_(`new WebSocket('ws://127.0.0.1:${websocketPort}/echo-with-no-extension')`, () => {});
1534
+ };
1535
+
1523
1536
  /**
1524
1537
  * Serializes array of uiSourceCodes to string.
1525
1538
  * @param {!Array.<!Workspace.UISourceCode>} uiSourceCodes
@@ -1331,9 +1331,6 @@
1331
1331
  "models/issues_manager/CrossOriginEmbedderPolicyIssue.ts | samesiteAndSameorigin": {
1332
1332
  "message": "Same-Site and Same-Origin"
1333
1333
  },
1334
- "models/issues_manager/DeprecationIssue.ts | userAgentReduction": {
1335
- "message": "User-Agent String Reduction"
1336
- },
1337
1334
  "models/issues_manager/GenericIssue.ts | crossOriginPortalPostMessage": {
1338
1335
  "message": "Portals - Same-origin communication channels"
1339
1336
  },
@@ -1364,6 +1361,9 @@
1364
1361
  "models/issues_manager/MixedContentIssue.ts | preventingMixedContent": {
1365
1362
  "message": "Preventing mixed content"
1366
1363
  },
1364
+ "models/issues_manager/NavigatorUserAgentIssue.ts | userAgentReduction": {
1365
+ "message": "User-Agent String Reduction"
1366
+ },
1367
1367
  "models/issues_manager/QuirksModeIssue.ts | documentCompatibilityMode": {
1368
1368
  "message": "Document compatibility mode"
1369
1369
  },
@@ -1331,9 +1331,6 @@
1331
1331
  "models/issues_manager/CrossOriginEmbedderPolicyIssue.ts | samesiteAndSameorigin": {
1332
1332
  "message": "Ŝám̂é-Ŝít̂é âńd̂ Śâḿê-Ór̂íĝín̂"
1333
1333
  },
1334
- "models/issues_manager/DeprecationIssue.ts | userAgentReduction": {
1335
- "message": "Ûśêŕ-Âǵêńt̂ Śt̂ŕîńĝ Ŕêd́ûćt̂íôń"
1336
- },
1337
1334
  "models/issues_manager/GenericIssue.ts | crossOriginPortalPostMessage": {
1338
1335
  "message": "P̂ór̂t́âĺŝ - Śâḿê-ór̂íĝín̂ ćôḿm̂ún̂íĉát̂íôń ĉh́âńn̂él̂ś"
1339
1336
  },
@@ -1364,6 +1361,9 @@
1364
1361
  "models/issues_manager/MixedContentIssue.ts | preventingMixedContent": {
1365
1362
  "message": "P̂ŕêv́êńt̂ín̂ǵ m̂íx̂éd̂ ćôńt̂én̂t́"
1366
1363
  },
1364
+ "models/issues_manager/NavigatorUserAgentIssue.ts | userAgentReduction": {
1365
+ "message": "Ûśêŕ-Âǵêńt̂ Śt̂ŕîńĝ Ŕêd́ûćt̂íôń"
1366
+ },
1367
1367
  "models/issues_manager/QuirksModeIssue.ts | documentCompatibilityMode": {
1368
1368
  "message": "D̂óĉúm̂én̂t́ ĉóm̂ṕât́îb́îĺît́ŷ ḿôd́ê"
1369
1369
  },
@@ -12,7 +12,6 @@
12
12
  { "name": "panels/elements" },
13
13
  { "name": "emulated_devices" },
14
14
  { "name": "panels/issues" },
15
- { "name": "panels/developer_resources" },
16
15
  { "name": "panels/help" },
17
16
  { "name": "panels/layers" },
18
17
  { "name": "panels/layer_viewer" },
@@ -13,7 +13,6 @@
13
13
  { "name": "ui/legacy/components/perf_ui" },
14
14
  { "name": "panels/profiler" },
15
15
  { "name": "panels/protocol_monitor"},
16
- { "name": "panels/search" },
17
16
  { "name": "panels/settings" },
18
17
  { "name": "ui/legacy/components/source_frame" },
19
18
  { "name": "panels/sources" },
@@ -7,7 +7,6 @@
7
7
  { "name": "panels/elements" },
8
8
  { "name": "panels/help" },
9
9
  { "name": "panels/issues" },
10
- { "name": "panels/developer_resources" },
11
10
  { "name": "panels/layer_viewer" },
12
11
  { "name": "panels/network" },
13
12
  { "name": "panels/application" },
@@ -11,13 +11,13 @@ import {AttributionReportingIssue} from './AttributionReportingIssue.js';
11
11
  import {ContentSecurityPolicyIssue} from './ContentSecurityPolicyIssue.js';
12
12
  import {CorsIssue} from './CorsIssue.js';
13
13
  import {CrossOriginEmbedderPolicyIssue, isCrossOriginEmbedderPolicyIssue} from './CrossOriginEmbedderPolicyIssue.js';
14
- import {DeprecationIssue} from './DeprecationIssue.js';
15
14
  import {GenericIssue} from './GenericIssue.js';
16
15
  import {HeavyAdIssue} from './HeavyAdIssue.js';
17
16
  import type {Issue, IssueKind} from './Issue.js';
18
17
  import {Events} from './IssuesManagerEvents.js';
19
18
  import {LowTextContrastIssue} from './LowTextContrastIssue.js';
20
19
  import {MixedContentIssue} from './MixedContentIssue.js';
20
+ import {NavigatorUserAgentIssue} from './NavigatorUserAgentIssue.js';
21
21
  import {QuirksModeIssue} from './QuirksModeIssue.js';
22
22
  import {SameSiteCookieIssue} from './SameSiteCookieIssue.js';
23
23
  import {SharedArrayBufferIssue} from './SharedArrayBufferIssue.js';
@@ -85,7 +85,7 @@ const issueCodeHandlers = new Map<
85
85
  ],
86
86
  [
87
87
  Protocol.Audits.InspectorIssueCode.NavigatorUserAgentIssue,
88
- DeprecationIssue.fromInspectorIssue,
88
+ NavigatorUserAgentIssue.fromInspectorIssue,
89
89
  ],
90
90
  [
91
91
  Protocol.Audits.InspectorIssueCode.AttributionReportingIssue,
@@ -17,7 +17,7 @@ const UIStrings = {
17
17
  */
18
18
  userAgentReduction: 'User-Agent String Reduction',
19
19
  };
20
- const str_ = i18n.i18n.registerUIStrings('models/issues_manager/DeprecationIssue.ts', UIStrings);
20
+ const str_ = i18n.i18n.registerUIStrings('models/issues_manager/NavigatorUserAgentIssue.ts', UIStrings);
21
21
  const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
22
22
 
23
23
  // TODO(crbug.com/1167717): Make this a const enum again
@@ -26,7 +26,7 @@ export enum IssueCode {
26
26
  NavigatorUserAgentIssue = 'DeprecationIssue::NavigatorUserAgentIssue',
27
27
  }
28
28
 
29
- export class DeprecationIssue extends Issue<IssueCode> {
29
+ export class NavigatorUserAgentIssue extends Issue<IssueCode> {
30
30
  private issueDetails: Protocol.Audits.NavigatorUserAgentIssueDetails;
31
31
 
32
32
  constructor(issueDetails: Protocol.Audits.NavigatorUserAgentIssueDetails, issuesModel: SDK.IssuesModel.IssuesModel) {
@@ -73,12 +73,12 @@ export class DeprecationIssue extends Issue<IssueCode> {
73
73
  }
74
74
 
75
75
  static fromInspectorIssue(issuesModel: SDK.IssuesModel.IssuesModel, inspectorIssue: Protocol.Audits.InspectorIssue):
76
- DeprecationIssue[] {
76
+ NavigatorUserAgentIssue[] {
77
77
  const details = inspectorIssue.details.navigatorUserAgentIssueDetails;
78
78
  if (!details) {
79
79
  console.warn('NavigatorUserAgent issue without details received.');
80
80
  return [];
81
81
  }
82
- return [new DeprecationIssue(details, issuesModel)];
82
+ return [new NavigatorUserAgentIssue(details, issuesModel)];
83
83
  }
84
84
  }
@@ -7,7 +7,6 @@ import * as ContentSecurityPolicyIssue from './ContentSecurityPolicyIssue.js';
7
7
  import * as ContrastCheckTrigger from './ContrastCheckTrigger.js';
8
8
  import * as CorsIssue from './CorsIssue.js';
9
9
  import * as CrossOriginEmbedderPolicyIssue from './CrossOriginEmbedderPolicyIssue.js';
10
- import * as DeprecationIssue from './DeprecationIssue.js';
11
10
  import * as GenericIssue from './GenericIssue.js';
12
11
  import * as HeavyAdIssue from './HeavyAdIssue.js';
13
12
  import * as Issue from './Issue.js';
@@ -16,6 +15,7 @@ import * as IssuesManager from './IssuesManager.js';
16
15
  import * as LowTextContrastIssue from './LowTextContrastIssue.js';
17
16
  import * as MarkdownIssueDescription from './MarkdownIssueDescription.js';
18
17
  import * as MixedContentIssue from './MixedContentIssue.js';
18
+ import * as NavigatorUserAgentIssue from './NavigatorUserAgentIssue.js';
19
19
  import * as QuirksModeIssue from './QuirksModeIssue.js';
20
20
  import * as RelatedIssue from './RelatedIssue.js';
21
21
  import * as SameSiteCookieIssue from './SameSiteCookieIssue.js';
@@ -30,7 +30,6 @@ export {
30
30
  ContrastCheckTrigger,
31
31
  CorsIssue,
32
32
  CrossOriginEmbedderPolicyIssue,
33
- DeprecationIssue,
34
33
  GenericIssue,
35
34
  HeavyAdIssue,
36
35
  Issue,
@@ -39,6 +38,7 @@ export {
39
38
  LowTextContrastIssue,
40
39
  MarkdownIssueDescription,
41
40
  MixedContentIssue,
41
+ NavigatorUserAgentIssue,
42
42
  QuirksModeIssue,
43
43
  RelatedIssue,
44
44
  SameSiteCookieIssue,
@@ -26,8 +26,6 @@ let loadedDeveloperResourcesModule: (typeof DeveloperResources|undefined);
26
26
 
27
27
  async function loadDeveloperResourcesModule(): Promise<typeof DeveloperResources> {
28
28
  if (!loadedDeveloperResourcesModule) {
29
- // Side-effect import resources in module.json
30
- await Root.Runtime.Runtime.instance().loadModulePromise('panels/developer_resources');
31
29
  loadedDeveloperResourcesModule = await import('./developer_resources.js');
32
30
  }
33
31
  return loadedDeveloperResourcesModule;
@@ -1052,7 +1052,7 @@ export class ElementsTreeElement extends UI.TreeOutline.TreeElement {
1052
1052
  html(),
1053
1053
  TextEditor.Config.domWordWrap,
1054
1054
  CodeMirror.EditorView.theme({
1055
- '.cm-editor': {maxHeight: '300px'},
1055
+ '&.cm-editor': {maxHeight: '300px'},
1056
1056
  '.cm-scroller': {overflowY: 'auto'},
1057
1057
  }),
1058
1058
  CodeMirror.EditorView.domEventHandlers({
@@ -56,6 +56,10 @@ export class DeviceModeWrapper extends UI.Widget.VBox {
56
56
  this.showDeviceModeSetting.set(!this.showDeviceModeSetting.get());
57
57
  }
58
58
 
59
+ isDeviceModeOn(): boolean {
60
+ return this.showDeviceModeSetting.get();
61
+ }
62
+
59
63
  captureScreenshot(fullSize?: boolean, clip?: Protocol.Page.Viewport): boolean {
60
64
  if (!this.deviceModeView) {
61
65
  this.deviceModeView = new DeviceModeView();
@@ -3,7 +3,6 @@
3
3
  "ui/legacy/components/cookie_table",
4
4
  "panels/mobile_throttling",
5
5
  "ui/legacy/components/perf_ui",
6
- "panels/search",
7
6
  "ui/legacy/components/source_frame",
8
7
  "ui/legacy"
9
8
  ]
@@ -55,7 +55,7 @@
55
55
 
56
56
  .profile-view .data-grid span.percent-column {
57
57
  color: var(--color-text-secondary);
58
- width: 50px;
58
+ width: 55px;
59
59
  display: inline-block;
60
60
  }
61
61
 
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "dependencies": [
3
3
  "ui/legacy",
4
- "panels/search",
5
4
  "ui/legacy/components/source_frame",
6
5
  "ui/legacy/components/inline_editor",
7
6
  "ui/legacy/components/color_picker",
@@ -57,6 +57,11 @@ export const editorTheme = CM.EditorView.theme({
57
57
  padding: '0 3px 0 9px',
58
58
  },
59
59
 
60
+ '.cm-matchingBracket, .cm-nonmatchingBracket': {
61
+ background: 'transparent',
62
+ borderBottom: 'none',
63
+ },
64
+
60
65
  '&:focus-within .cm-matchingBracket': {
61
66
  color: 'inherit',
62
67
  backgroundColor: 'var(--color-matching-bracket-background)',
@@ -106,7 +106,7 @@ export class CSSShadowEditor extends Common.ObjectWrapper.eventMixin<EventTypes,
106
106
  field.appendChild(textInput);
107
107
  textInput.id = propertyName;
108
108
  textInput.addEventListener('keydown', this.handleValueModification.bind(this), false);
109
- textInput.addEventListener('mousewheel', this.handleValueModification.bind(this), false);
109
+ textInput.addEventListener('wheel', this.handleValueModification.bind(this), false);
110
110
  textInput.addEventListener('input', this.onTextInput.bind(this), false);
111
111
  textInput.addEventListener('blur', this.onTextBlur.bind(this), false);
112
112
  return textInput;
package/package.json CHANGED
@@ -55,5 +55,5 @@
55
55
  "unittest": "scripts/test/run_unittests.py --no-text-coverage",
56
56
  "watch": "third_party/node/node.py --output scripts/watch_build.js"
57
57
  },
58
- "version": "1.0.935332"
58
+ "version": "1.0.935784"
59
59
  }
@@ -1,5 +0,0 @@
1
- {
2
- "dependencies": [
3
- "ui/legacy"
4
- ]
5
- }
@@ -1,5 +0,0 @@
1
- {
2
- "dependencies": [
3
- "ui/legacy"
4
- ]
5
- }