devtools-protocol 0.0.1412693 → 0.0.1413902

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.
@@ -4684,6 +4684,12 @@
4684
4684
  "name": "frameId",
4685
4685
  "description": "Identifier of the frame where \"via-inspector\" stylesheet should be created.",
4686
4686
  "$ref": "Page.FrameId"
4687
+ },
4688
+ {
4689
+ "name": "force",
4690
+ "description": "If true, creates a new stylesheet for every call. If false,\nreturns a stylesheet previously created by a call with force=false\nfor the frame's document if it exists or creates a new stylesheet\n(default: false).",
4691
+ "optional": true,
4692
+ "type": "boolean"
4687
4693
  }
4688
4694
  ],
4689
4695
  "returns": [
@@ -20260,6 +20266,42 @@
20260
20266
  "name": "frameResized",
20261
20267
  "experimental": true
20262
20268
  },
20269
+ {
20270
+ "name": "frameStartedNavigating",
20271
+ "description": "Fired when a navigation starts. This event is fired for both\nrenderer-initiated and browser-initiated navigations. For renderer-initiated\nnavigations, the event is fired after `frameRequestedNavigation`.\nNavigation may still be cancelled after the event is issued. Multiple events\ncan be fired for a single navigation, for example, when a same-document\nnavigation becomes a cross-document navigation (such as in the case of a\nframeset).",
20272
+ "experimental": true,
20273
+ "parameters": [
20274
+ {
20275
+ "name": "frameId",
20276
+ "description": "ID of the frame that is being navigated.",
20277
+ "$ref": "FrameId"
20278
+ },
20279
+ {
20280
+ "name": "url",
20281
+ "description": "The URL the navigation started with. The final URL can be different.",
20282
+ "type": "string"
20283
+ },
20284
+ {
20285
+ "name": "loaderId",
20286
+ "description": "Loader identifier. Even though it is present in case of same-document\nnavigation, the previously committed loaderId would not change unless\nthe navigation changes from a same-document to a cross-document\nnavigation.",
20287
+ "$ref": "Network.LoaderId"
20288
+ },
20289
+ {
20290
+ "name": "navigationType",
20291
+ "type": "string",
20292
+ "enum": [
20293
+ "reload",
20294
+ "reloadBypassingCache",
20295
+ "restore",
20296
+ "restoreWithPost",
20297
+ "historySameDocument",
20298
+ "historyDifferentDocument",
20299
+ "sameDocument",
20300
+ "differentDocument"
20301
+ ]
20302
+ }
20303
+ ]
20304
+ },
20263
20305
  {
20264
20306
  "name": "frameRequestedNavigation",
20265
20307
  "description": "Fired when a renderer-initiated navigation is requested.\nNavigation may still be cancelled after the event is issued.",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devtools-protocol",
3
- "version": "0.0.1412693",
3
+ "version": "0.0.1413902",
4
4
  "description": "The Chrome DevTools Protocol JSON",
5
5
  "repository": "https://github.com/ChromeDevTools/devtools-protocol",
6
6
  "author": "The Chromium Authors",
@@ -2253,6 +2253,11 @@ experimental domain CSS
2253
2253
  parameters
2254
2254
  # Identifier of the frame where "via-inspector" stylesheet should be created.
2255
2255
  Page.FrameId frameId
2256
+ # If true, creates a new stylesheet for every call. If false,
2257
+ # returns a stylesheet previously created by a call with force=false
2258
+ # for the frame's document if it exists or creates a new stylesheet
2259
+ # (default: false).
2260
+ optional boolean force
2256
2261
  returns
2257
2262
  # Identifier of the created "via-inspector" stylesheet.
2258
2263
  StyleSheetId styleSheetId
@@ -9396,6 +9401,34 @@ domain Page
9396
9401
 
9397
9402
  experimental event frameResized
9398
9403
 
9404
+ # Fired when a navigation starts. This event is fired for both
9405
+ # renderer-initiated and browser-initiated navigations. For renderer-initiated
9406
+ # navigations, the event is fired after `frameRequestedNavigation`.
9407
+ # Navigation may still be cancelled after the event is issued. Multiple events
9408
+ # can be fired for a single navigation, for example, when a same-document
9409
+ # navigation becomes a cross-document navigation (such as in the case of a
9410
+ # frameset).
9411
+ experimental event frameStartedNavigating
9412
+ parameters
9413
+ # ID of the frame that is being navigated.
9414
+ FrameId frameId
9415
+ # The URL the navigation started with. The final URL can be different.
9416
+ string url
9417
+ # Loader identifier. Even though it is present in case of same-document
9418
+ # navigation, the previously committed loaderId would not change unless
9419
+ # the navigation changes from a same-document to a cross-document
9420
+ # navigation.
9421
+ Network.LoaderId loaderId
9422
+ enum navigationType
9423
+ reload
9424
+ reloadBypassingCache
9425
+ restore
9426
+ restoreWithPost
9427
+ historySameDocument
9428
+ historyDifferentDocument
9429
+ sameDocument
9430
+ differentDocument
9431
+
9399
9432
  # Fired when a renderer-initiated navigation is requested.
9400
9433
  # Navigation may still be cancelled after the event is issued.
9401
9434
  experimental event frameRequestedNavigation
@@ -454,6 +454,16 @@ export namespace ProtocolMapping {
454
454
  */
455
455
  'Page.documentOpened': [Protocol.Page.DocumentOpenedEvent];
456
456
  'Page.frameResized': [];
457
+ /**
458
+ * Fired when a navigation starts. This event is fired for both
459
+ * renderer-initiated and browser-initiated navigations. For renderer-initiated
460
+ * navigations, the event is fired after `frameRequestedNavigation`.
461
+ * Navigation may still be cancelled after the event is issued. Multiple events
462
+ * can be fired for a single navigation, for example, when a same-document
463
+ * navigation becomes a cross-document navigation (such as in the case of a
464
+ * frameset).
465
+ */
466
+ 'Page.frameStartedNavigating': [Protocol.Page.FrameStartedNavigatingEvent];
457
467
  /**
458
468
  * Fired when a renderer-initiated navigation is requested.
459
469
  * Navigation may still be cancelled after the event is issued.
@@ -3265,6 +3265,17 @@ export namespace ProtocolProxyApi {
3265
3265
 
3266
3266
  on(event: 'frameResized', listener: () => void): void;
3267
3267
 
3268
+ /**
3269
+ * Fired when a navigation starts. This event is fired for both
3270
+ * renderer-initiated and browser-initiated navigations. For renderer-initiated
3271
+ * navigations, the event is fired after `frameRequestedNavigation`.
3272
+ * Navigation may still be cancelled after the event is issued. Multiple events
3273
+ * can be fired for a single navigation, for example, when a same-document
3274
+ * navigation becomes a cross-document navigation (such as in the case of a
3275
+ * frameset).
3276
+ */
3277
+ on(event: 'frameStartedNavigating', listener: (params: Protocol.Page.FrameStartedNavigatingEvent) => void): void;
3278
+
3268
3279
  /**
3269
3280
  * Fired when a renderer-initiated navigation is requested.
3270
3281
  * Navigation may still be cancelled after the event is issued.
@@ -3495,6 +3495,19 @@ export namespace ProtocolTestsProxyApi {
3495
3495
  offFrameResized(listener: (event: ) => void): void;
3496
3496
  onceFrameResized(eventMatcher?: (event: ) => boolean): Promise<>;
3497
3497
 
3498
+ /**
3499
+ * Fired when a navigation starts. This event is fired for both
3500
+ * renderer-initiated and browser-initiated navigations. For renderer-initiated
3501
+ * navigations, the event is fired after `frameRequestedNavigation`.
3502
+ * Navigation may still be cancelled after the event is issued. Multiple events
3503
+ * can be fired for a single navigation, for example, when a same-document
3504
+ * navigation becomes a cross-document navigation (such as in the case of a
3505
+ * frameset).
3506
+ */
3507
+ onFrameStartedNavigating(listener: (event: { params: Protocol.Page.FrameStartedNavigatingEvent }) => void): void;
3508
+ offFrameStartedNavigating(listener: (event: { params: Protocol.Page.FrameStartedNavigatingEvent }) => void): void;
3509
+ onceFrameStartedNavigating(eventMatcher?: (event: { params: Protocol.Page.FrameStartedNavigatingEvent }) => boolean): Promise<{ params: Protocol.Page.FrameStartedNavigatingEvent }>;
3510
+
3498
3511
  /**
3499
3512
  * Fired when a renderer-initiated navigation is requested.
3500
3513
  * Navigation may still be cancelled after the event is issued.
@@ -5492,6 +5492,13 @@ export namespace Protocol {
5492
5492
  * Identifier of the frame where "via-inspector" stylesheet should be created.
5493
5493
  */
5494
5494
  frameId: Page.FrameId;
5495
+ /**
5496
+ * If true, creates a new stylesheet for every call. If false,
5497
+ * returns a stylesheet previously created by a call with force=false
5498
+ * for the frame's document if it exists or creates a new stylesheet
5499
+ * (default: false).
5500
+ */
5501
+ force?: boolean;
5495
5502
  }
5496
5503
 
5497
5504
  export interface CreateStyleSheetResponse {
@@ -15131,6 +15138,48 @@ export namespace Protocol {
15131
15138
  frame: Frame;
15132
15139
  }
15133
15140
 
15141
+ export const enum FrameStartedNavigatingEventNavigationType {
15142
+ Reload = 'reload',
15143
+ ReloadBypassingCache = 'reloadBypassingCache',
15144
+ Restore = 'restore',
15145
+ RestoreWithPost = 'restoreWithPost',
15146
+ HistorySameDocument = 'historySameDocument',
15147
+ HistoryDifferentDocument = 'historyDifferentDocument',
15148
+ SameDocument = 'sameDocument',
15149
+ DifferentDocument = 'differentDocument',
15150
+ }
15151
+
15152
+ /**
15153
+ * Fired when a navigation starts. This event is fired for both
15154
+ * renderer-initiated and browser-initiated navigations. For renderer-initiated
15155
+ * navigations, the event is fired after `frameRequestedNavigation`.
15156
+ * Navigation may still be cancelled after the event is issued. Multiple events
15157
+ * can be fired for a single navigation, for example, when a same-document
15158
+ * navigation becomes a cross-document navigation (such as in the case of a
15159
+ * frameset).
15160
+ */
15161
+ export interface FrameStartedNavigatingEvent {
15162
+ /**
15163
+ * ID of the frame that is being navigated.
15164
+ */
15165
+ frameId: FrameId;
15166
+ /**
15167
+ * The URL the navigation started with. The final URL can be different.
15168
+ */
15169
+ url: string;
15170
+ /**
15171
+ * Loader identifier. Even though it is present in case of same-document
15172
+ * navigation, the previously committed loaderId would not change unless
15173
+ * the navigation changes from a same-document to a cross-document
15174
+ * navigation.
15175
+ */
15176
+ loaderId: Network.LoaderId;
15177
+ /**
15178
+ * (FrameStartedNavigatingEventNavigationType enum)
15179
+ */
15180
+ navigationType: ('reload' | 'reloadBypassingCache' | 'restore' | 'restoreWithPost' | 'historySameDocument' | 'historyDifferentDocument' | 'sameDocument' | 'differentDocument');
15181
+ }
15182
+
15134
15183
  /**
15135
15184
  * Fired when a renderer-initiated navigation is requested.
15136
15185
  * Navigation may still be cancelled after the event is issued.