chrome-devtools-frontend 1.0.950484 → 1.0.950768

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.
@@ -554,7 +554,6 @@ grd_files_debug_sources = [
554
554
  "front_end/core/platform/set-utilities.js",
555
555
  "front_end/core/platform/string-utilities.js",
556
556
  "front_end/core/platform/typescript-utilities.js",
557
- "front_end/core/platform/utilities.js",
558
557
  "front_end/core/protocol_client/InspectorBackend.js",
559
558
  "front_end/core/protocol_client/NodeURL.js",
560
559
  "front_end/core/root/Runtime.js",
@@ -45,8 +45,8 @@ Issues in the untriaged queue should receive a meaningful response within a busi
45
45
 
46
46
  - Close issues as `WontFix` if they don't reproduce (in simple cases) or are requests for features we've already concluded not to pursue.
47
47
  - Close issues as `Archived` that are valid, but it seems unlikely that we will get there anytime soon.
48
- - Move issues out of `Platform>DevTools` if they are not DevTools issues (but just reported via the menu item in DevTools), put on the `Hotlist-DevTools-Triaged` and leave the `Untriaged` status as is.
49
- - Assign regression bugs with bisects to individuals directly and set the status to `Assigned`.
48
+ - Move issues out of `Platform>DevTools` if they are not DevTools issues (but just reported via the menu item in DevTools), put on the `DevTools-Triaged` label and leave the `Untriaged` status as is.
49
+ - Assign regression bugs with bisects to individuals directly and set the status to `Assigned`.
50
50
  - Put proper `Platform>DevTools>XXX` component(s) on the issue and do an initial check-in regarding the priority.
51
51
  - Put one of the following labels on it and set the status to `Available`:
52
52
  - `Hotlist-DevTools-ProductReview` if it's controversial or clear that consensus needs to be built first.
@@ -457,7 +457,7 @@ Node.prototype.isSelfOrDescendant = function(node: Node|null): boolean {
457
457
  return Boolean(node) && (node === this || this.isDescendant(node));
458
458
  };
459
459
 
460
- Node.prototype.traverseNextNode = function(stayWithin?: Node, skipShadowRoot?: boolean = false): Node|null {
460
+ Node.prototype.traverseNextNode = function(stayWithin?: Node, skipShadowRoot: boolean = false): Node|null {
461
461
  if (!skipShadowRoot && this.shadowRoot) {
462
462
  return this.shadowRoot;
463
463
  }
@@ -357,7 +357,6 @@ export enum EnumeratedHistogram {
357
357
  IssuesPanelOpenedFrom = 'DevTools.IssuesPanelOpenedFrom',
358
358
  IssuesPanelResourceOpened = 'DevTools.IssuesPanelResourceOpened',
359
359
  KeybindSetSettingChanged = 'DevTools.KeybindSetSettingChanged',
360
- DualScreenDeviceEmulated = 'DevTools.DualScreenDeviceEmulated',
361
360
  ExperimentEnabledAtLaunch = 'DevTools.ExperimentEnabledAtLaunch',
362
361
  ExperimentEnabled = 'DevTools.ExperimentEnabled',
363
362
  ExperimentDisabled = 'DevTools.ExperimentDisabled',
@@ -158,12 +158,6 @@ export class UserMetrics {
158
158
  InspectorFrontendHostInstance.recordEnumeratedHistogram(EnumeratedHistogram.IssueCreated, issueCreated, size);
159
159
  }
160
160
 
161
- dualScreenDeviceEmulated(emulationAction: DualScreenDeviceEmulated): void {
162
- const size = Object.keys(DualScreenDeviceEmulated).length + 1;
163
- InspectorFrontendHostInstance.recordEnumeratedHistogram(
164
- EnumeratedHistogram.DualScreenDeviceEmulated, emulationAction, size);
165
- }
166
-
167
161
  experimentEnabledAtLaunch(experimentId: string): void {
168
162
  const size = DevtoolsExperiments['__lastValidEnumPosition'] + 1;
169
163
  const experiment = DevtoolsExperiments[experimentId];
@@ -537,14 +531,6 @@ export enum IssueOpener {
537
531
  CommandMenu = 5,
538
532
  }
539
533
 
540
- // TODO(crbug.com/1167717): Make this a const enum again
541
- // eslint-disable-next-line rulesdir/const_enum
542
- export enum DualScreenDeviceEmulated {
543
- DualScreenDeviceSelected = 0,
544
- SpanButtonClicked = 1,
545
- PlatformSupportUsed = 2, // user starts to use platform dual screen support feature.
546
- }
547
-
548
534
  /**
549
535
  * This list should contain the currently active Devtools Experiments.
550
536
  * Therefore, it is possible that the id's will no longer be continuous
@@ -45,8 +45,7 @@ export {DCHECK} from './dcheck.js';
45
45
  * (e.g. `Platform.TypeScriptUtilities.assertNotNull` causes a
46
46
  * compiler error)
47
47
  */
48
- export {assertNotNullOrUndefined, assertUnhandled} from './typescript-utilities.js';
49
- export {assertNever, runOnWindowLoad} from './utilities.js';
48
+ export {assertNever, assertNotNullOrUndefined, assertUnhandled} from './typescript-utilities.js';
50
49
  export {
51
50
  ArrayUtilities,
52
51
  DateUtilities,
@@ -13,6 +13,10 @@ export function assertNotNullOrUndefined<T>(val: T): asserts val is NonNullable<
13
13
  }
14
14
  }
15
15
 
16
+ export function assertNever(type: never, message: string): never {
17
+ throw new Error(message);
18
+ }
19
+
16
20
  /**
17
21
  * This is useful to check on the type-level that the unhandled cases of
18
22
  * a switch are exactly `T` (where T is usually a union type of enum values).
@@ -385,7 +385,6 @@
385
385
  IssuesPanelOpenedFrom: 'DevTools.IssuesPanelOpenedFrom',
386
386
  IssuesPanelResourceOpened: 'DevTools.IssuesPanelResourceOpened',
387
387
  KeybindSetSettingChanged: 'DevTools.KeybindSetSettingChanged',
388
- DualScreenDeviceEmulated: 'DevTools.DualScreenDeviceEmulated',
389
388
  ExperimentEnabledAtLaunch: 'DevTools.ExperimentEnabledAtLaunch',
390
389
  ExperimentEnabled: 'DevTools.ExperimentEnabled',
391
390
  ExperimentDisabled: 'DevTools.ExperimentDisabled',
@@ -5,13 +5,8 @@
5
5
  import '../../core/dom_extension/dom_extension.js';
6
6
  import '../../Images/Images.js';
7
7
 
8
- import * as Platform from '../../core/platform/platform.js';
9
-
10
- Platform.runOnWindowLoad(() => {
11
- if (!window.opener) {
12
- return;
13
- }
8
+ if (window.opener) {
14
9
  // @ts-ignore TypeScript doesn't know about `Emulation` on `Window`.
15
10
  const app = window.opener.Emulation.AdvancedApp.instance();
16
11
  app.deviceModeEmulationFrameLoaded(document);
17
- });
12
+ }
@@ -118,9 +118,7 @@ export class MainImpl {
118
118
 
119
119
  constructor() {
120
120
  MainImpl.instanceForTest = this;
121
- Platform.runOnWindowLoad(() => {
122
- this.loaded();
123
- });
121
+ this.loaded();
124
122
  }
125
123
 
126
124
  static time(label: string): void {