Skip to content

Commit 2fef0e4

Browse files
committed
Roll protocol to r1413303
1 parent c026fa6 commit 2fef0e4

File tree

8 files changed

+183
-2
lines changed

8 files changed

+183
-2
lines changed

changelog.md

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,48 @@
11

22

3+
## Roll protocol to r1413303 — _2025-01-30T04:28:44.000Z_
4+
###### Diff: [`c026fa6...2f92589`](https://github.com/ChromeDevTools/devtools-protocol/compare/c026fa6...2f92589)
5+
6+
```diff
7+
@@ browser_protocol.pdl:9396 @@ domain Page
8+
9+
experimental event frameResized
10+
11+
+ # Fired when a navigation starts. This event is fired for both
12+
+ # renderer-initiated and browser-initiated navigations. For renderer-initiated
13+
+ # navigations, the event is fired after `frameRequestedNavigation`.
14+
+ # Navigation may still be cancelled after the event is issued. Multiple events
15+
+ # can be fired for a single navigation, for example, when a same-document
16+
+ # navigation becomes a cross-document navigation (such as in the case of a
17+
+ # frameset).
18+
+ experimental event frameStartedNavigating
19+
+ parameters
20+
+ # ID of the frame that is being navigated.
21+
+ FrameId frameId
22+
+ # The URL the navigation started with. The final URL can be different.
23+
+ string url
24+
+ # Loader identifier. Even though it is present in case of same-document
25+
+ # navigation, the previously committed loaderId would not change unless
26+
+ # the navigation changes from a same-document to a cross-document
27+
+ # navigation.
28+
+ Network.LoaderId loaderId
29+
+ enum navigationType
30+
+ reload
31+
+ reloadBypassingCache
32+
+ restore
33+
+ restoreWithPost
34+
+ historySameDocument
35+
+ historyDifferentDocument
36+
+ sameDocument
37+
+ differentDocument
38+
+
39+
# Fired when a renderer-initiated navigation is requested.
40+
# Navigation may still be cancelled after the event is issued.
41+
experimental event frameRequestedNavigation
42+
```
43+
344
## Roll protocol to r1412693 — _2025-01-29T04:28:28.000Z_
4-
###### Diff: [`2fe675d...19a2330`](https://github.com/ChromeDevTools/devtools-protocol/compare/2fe675d...19a2330)
45+
###### Diff: [`2fe675d...c026fa6`](https://github.com/ChromeDevTools/devtools-protocol/compare/2fe675d...c026fa6)
546

647
```diff
748
@@ js_protocol.pdl:564 @@ domain Debugger

json/browser_protocol.json

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20260,6 +20260,42 @@
2026020260
"name": "frameResized",
2026120261
"experimental": true
2026220262
},
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+
},
2026320299
{
2026420300
"name": "frameRequestedNavigation",
2026520301
"description": "Fired when a renderer-initiated navigation is requested.\nNavigation may still be cancelled after the event is issued.",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "devtools-protocol",
3-
"version": "0.0.1412693",
3+
"version": "0.0.1413303",
44
"description": "The Chrome DevTools Protocol JSON",
55
"repository": "https://github.com/ChromeDevTools/devtools-protocol",
66
"author": "The Chromium Authors",

pdl/browser_protocol.pdl

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9396,6 +9396,34 @@ domain Page
93969396

93979397
experimental event frameResized
93989398

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+
93999427
# Fired when a renderer-initiated navigation is requested.
94009428
# Navigation may still be cancelled after the event is issued.
94019429
experimental event frameRequestedNavigation

types/protocol-mapping.d.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,16 @@ export namespace ProtocolMapping {
454454
*/
455455
'Page.documentOpened': [Protocol.Page.DocumentOpenedEvent];
456456
'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];
457467
/**
458468
* Fired when a renderer-initiated navigation is requested.
459469
* Navigation may still be cancelled after the event is issued.

types/protocol-proxy-api.d.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3265,6 +3265,17 @@ export namespace ProtocolProxyApi {
32653265

32663266
on(event: 'frameResized', listener: () => void): void;
32673267

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+
32683279
/**
32693280
* Fired when a renderer-initiated navigation is requested.
32703281
* Navigation may still be cancelled after the event is issued.

types/protocol-tests-proxy-api.d.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3495,6 +3495,19 @@ export namespace ProtocolTestsProxyApi {
34953495
offFrameResized(listener: (event: ) => void): void;
34963496
onceFrameResized(eventMatcher?: (event: ) => boolean): Promise<>;
34973497

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+
34983511
/**
34993512
* Fired when a renderer-initiated navigation is requested.
35003513
* Navigation may still be cancelled after the event is issued.

types/protocol.d.ts

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15131,6 +15131,48 @@ export namespace Protocol {
1513115131
frame: Frame;
1513215132
}
1513315133

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+
1513415176
/**
1513515177
* Fired when a renderer-initiated navigation is requested.
1513615178
* Navigation may still be cancelled after the event is issued.

0 commit comments

Comments
 (0)