devtools-protocol 0.0.1412693 → 0.0.1413303
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.
@@ -20260,6 +20260,42 @@
|
|
20260
20260
|
"name": "frameResized",
|
20261
20261
|
"experimental": true
|
20262
20262
|
},
|
20263
|
+
{
|
20264
|
+
"name": "frameStartedNavigating",
|
20265
|
+
"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).",
|
20266
|
+
"experimental": true,
|
20267
|
+
"parameters": [
|
20268
|
+
{
|
20269
|
+
"name": "frameId",
|
20270
|
+
"description": "ID of the frame that is being navigated.",
|
20271
|
+
"$ref": "FrameId"
|
20272
|
+
},
|
20273
|
+
{
|
20274
|
+
"name": "url",
|
20275
|
+
"description": "The URL the navigation started with. The final URL can be different.",
|
20276
|
+
"type": "string"
|
20277
|
+
},
|
20278
|
+
{
|
20279
|
+
"name": "loaderId",
|
20280
|
+
"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.",
|
20281
|
+
"$ref": "Network.LoaderId"
|
20282
|
+
},
|
20283
|
+
{
|
20284
|
+
"name": "navigationType",
|
20285
|
+
"type": "string",
|
20286
|
+
"enum": [
|
20287
|
+
"reload",
|
20288
|
+
"reloadBypassingCache",
|
20289
|
+
"restore",
|
20290
|
+
"restoreWithPost",
|
20291
|
+
"historySameDocument",
|
20292
|
+
"historyDifferentDocument",
|
20293
|
+
"sameDocument",
|
20294
|
+
"differentDocument"
|
20295
|
+
]
|
20296
|
+
}
|
20297
|
+
]
|
20298
|
+
},
|
20263
20299
|
{
|
20264
20300
|
"name": "frameRequestedNavigation",
|
20265
20301
|
"description": "Fired when a renderer-initiated navigation is requested.\nNavigation may still be cancelled after the event is issued.",
|
package/package.json
CHANGED
package/pdl/browser_protocol.pdl
CHANGED
@@ -9396,6 +9396,34 @@ domain Page
|
|
9396
9396
|
|
9397
9397
|
experimental event frameResized
|
9398
9398
|
|
9399
|
+
# Fired when a navigation starts. This event is fired for both
|
9400
|
+
# renderer-initiated and browser-initiated navigations. For renderer-initiated
|
9401
|
+
# navigations, the event is fired after `frameRequestedNavigation`.
|
9402
|
+
# Navigation may still be cancelled after the event is issued. Multiple events
|
9403
|
+
# can be fired for a single navigation, for example, when a same-document
|
9404
|
+
# navigation becomes a cross-document navigation (such as in the case of a
|
9405
|
+
# frameset).
|
9406
|
+
experimental event frameStartedNavigating
|
9407
|
+
parameters
|
9408
|
+
# ID of the frame that is being navigated.
|
9409
|
+
FrameId frameId
|
9410
|
+
# The URL the navigation started with. The final URL can be different.
|
9411
|
+
string url
|
9412
|
+
# Loader identifier. Even though it is present in case of same-document
|
9413
|
+
# navigation, the previously committed loaderId would not change unless
|
9414
|
+
# the navigation changes from a same-document to a cross-document
|
9415
|
+
# navigation.
|
9416
|
+
Network.LoaderId loaderId
|
9417
|
+
enum navigationType
|
9418
|
+
reload
|
9419
|
+
reloadBypassingCache
|
9420
|
+
restore
|
9421
|
+
restoreWithPost
|
9422
|
+
historySameDocument
|
9423
|
+
historyDifferentDocument
|
9424
|
+
sameDocument
|
9425
|
+
differentDocument
|
9426
|
+
|
9399
9427
|
# Fired when a renderer-initiated navigation is requested.
|
9400
9428
|
# Navigation may still be cancelled after the event is issued.
|
9401
9429
|
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.
|
package/types/protocol.d.ts
CHANGED
@@ -15131,6 +15131,48 @@ export namespace Protocol {
|
|
15131
15131
|
frame: Frame;
|
15132
15132
|
}
|
15133
15133
|
|
15134
|
+
export const enum FrameStartedNavigatingEventNavigationType {
|
15135
|
+
Reload = 'reload',
|
15136
|
+
ReloadBypassingCache = 'reloadBypassingCache',
|
15137
|
+
Restore = 'restore',
|
15138
|
+
RestoreWithPost = 'restoreWithPost',
|
15139
|
+
HistorySameDocument = 'historySameDocument',
|
15140
|
+
HistoryDifferentDocument = 'historyDifferentDocument',
|
15141
|
+
SameDocument = 'sameDocument',
|
15142
|
+
DifferentDocument = 'differentDocument',
|
15143
|
+
}
|
15144
|
+
|
15145
|
+
/**
|
15146
|
+
* Fired when a navigation starts. This event is fired for both
|
15147
|
+
* renderer-initiated and browser-initiated navigations. For renderer-initiated
|
15148
|
+
* navigations, the event is fired after `frameRequestedNavigation`.
|
15149
|
+
* Navigation may still be cancelled after the event is issued. Multiple events
|
15150
|
+
* can be fired for a single navigation, for example, when a same-document
|
15151
|
+
* navigation becomes a cross-document navigation (such as in the case of a
|
15152
|
+
* frameset).
|
15153
|
+
*/
|
15154
|
+
export interface FrameStartedNavigatingEvent {
|
15155
|
+
/**
|
15156
|
+
* ID of the frame that is being navigated.
|
15157
|
+
*/
|
15158
|
+
frameId: FrameId;
|
15159
|
+
/**
|
15160
|
+
* The URL the navigation started with. The final URL can be different.
|
15161
|
+
*/
|
15162
|
+
url: string;
|
15163
|
+
/**
|
15164
|
+
* Loader identifier. Even though it is present in case of same-document
|
15165
|
+
* navigation, the previously committed loaderId would not change unless
|
15166
|
+
* the navigation changes from a same-document to a cross-document
|
15167
|
+
* navigation.
|
15168
|
+
*/
|
15169
|
+
loaderId: Network.LoaderId;
|
15170
|
+
/**
|
15171
|
+
* (FrameStartedNavigatingEventNavigationType enum)
|
15172
|
+
*/
|
15173
|
+
navigationType: ('reload' | 'reloadBypassingCache' | 'restore' | 'restoreWithPost' | 'historySameDocument' | 'historyDifferentDocument' | 'sameDocument' | 'differentDocument');
|
15174
|
+
}
|
15175
|
+
|
15134
15176
|
/**
|
15135
15177
|
* Fired when a renderer-initiated navigation is requested.
|
15136
15178
|
* Navigation may still be cancelled after the event is issued.
|