Skip to content

Commit acf4480

Browse files
committed
Roll protocol to r1697629
1 parent f395a59 commit acf4480

10 files changed

Lines changed: 219 additions & 19 deletions

changelog.md

Lines changed: 45 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,51 @@
11

22

3+
## Roll protocol to r1697629 — _2026-09-14T23:38:30.000Z_
4+
###### Diff: [`f395a59...4a83b76`](https://github.com/ChromeDevTools/devtools-protocol/compare/f395a59...4a83b76)
5+
6+
```diff
7+
@@ domains/DOM.pdl:845 @@ domain DOM
8+
# If true, opens and holds interest. If false, releases forced interest.
9+
boolean enable
10+
11+
+ # Sets a spelling or grammar error marker on the given range of text.
12+
+ # See https://github.com/Igalia/explainers/blob/main/force-spelling-grammar-markers/README.md
13+
+ # Note: exactly one between nodeId, backendNodeId and objectId should be passed
14+
+ # to identify the node.
15+
+ experimental command setTextMarker
16+
+ parameters
17+
+ # Identifier of the node.
18+
+ optional NodeId nodeId
19+
+ # Identifier of the backend node.
20+
+ optional BackendNodeId backendNodeId
21+
+ # JavaScript object id of the node wrapper.
22+
+ optional Runtime.RemoteObjectId objectId
23+
+ # The type of marker to set on the given range of text.
24+
+ enum type
25+
+ # A spelling error marker, rendered as ::spelling-error
26+
+ spelling
27+
+ # A grammar error marker, rendered as ::grammar-error
28+
+ grammar
29+
+ # Start offset into the element's rendered text in UTF-16 code units.
30+
+ # For a text control, an offset into the control's value.
31+
+ # Offsets count text in DOM order and do not enter shadow trees.
32+
+ # To mark text inside a shadow tree, pass the element inside the shadow tree.
33+
+ integer start
34+
+ # End offset (exclusive) in the same units and space as start.
35+
+ integer end
36+
+
37+
+ # Clears the spelling and grammar error text markers overlapping the ranges
38+
+ # set by setTextMarker in this session. These markers are also removed when
39+
+ # the DOM domain is disabled or the session ends.
40+
+ experimental command clearTextMarkers
41+
+
42+
# Fired when `Element`'s attribute is modified.
43+
event attributeModified
44+
parameters
45+
```
46+
347
## Roll protocol to r1696802 — _2026-09-12T04:34:27.000Z_
4-
###### Diff: [`9b417d8...4c6a7e5`](https://github.com/ChromeDevTools/devtools-protocol/compare/9b417d8...4c6a7e5)
48+
###### Diff: [`9b417d8...f395a59`](https://github.com/ChromeDevTools/devtools-protocol/compare/9b417d8...f395a59)
549

650
```diff
751
@@ domains/Audits.pdl:741 @@ experimental domain Audits
@@ -43533,18 +43577,4 @@ index 4754f17c..8dad9c98 100644
4353343577
# Refined HTTP request headers that were actually transmitted over the network.
4353443578
optional Headers requestHeaders
4353543579
# HTTP request headers text. This has been replaced by the headers in Network.requestWillBeSentExtraInfo.
43536-
```
43537-
43538-
## Roll protocol to r1245094 — _2024-01-10T04:27:17.000Z_
43539-
###### Diff: [`91ab8a2...fcea28f`](https://github.com/ChromeDevTools/devtools-protocol/compare/91ab8a2...fcea28f)
43540-
43541-
```diff
43542-
@@ browser_protocol.pdl:8907 @@ domain Page
43543-
WebSocketSticky
43544-
SmartCard
43545-
LiveMediaStreamTrack
43546-
+ UnloadHandler
43547-
# Disabled for RenderFrameHost reasons
43548-
# See content/browser/renderer_host/back_forward_cache_disable.h for explanations.
43549-
ContentSecurityHandler
4355043580
```

json/browser_protocol.json

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9044,6 +9044,55 @@
90449044
"type": "boolean"
90459045
}
90469046
]
9047+
},
9048+
{
9049+
"name": "setTextMarker",
9050+
"description": "Sets a spelling or grammar error marker on the given range of text.\nSee https://github.com/Igalia/explainers/blob/main/force-spelling-grammar-markers/README.md\nNote: exactly one between nodeId, backendNodeId and objectId should be passed\nto identify the node.",
9051+
"experimental": true,
9052+
"parameters": [
9053+
{
9054+
"name": "nodeId",
9055+
"description": "Identifier of the node.",
9056+
"optional": true,
9057+
"$ref": "NodeId"
9058+
},
9059+
{
9060+
"name": "backendNodeId",
9061+
"description": "Identifier of the backend node.",
9062+
"optional": true,
9063+
"$ref": "BackendNodeId"
9064+
},
9065+
{
9066+
"name": "objectId",
9067+
"description": "JavaScript object id of the node wrapper.",
9068+
"optional": true,
9069+
"$ref": "Runtime.RemoteObjectId"
9070+
},
9071+
{
9072+
"name": "type",
9073+
"description": "The type of marker to set on the given range of text.",
9074+
"type": "string",
9075+
"enum": [
9076+
"spelling",
9077+
"grammar"
9078+
]
9079+
},
9080+
{
9081+
"name": "start",
9082+
"description": "Start offset into the element's rendered text in UTF-16 code units.\nFor a text control, an offset into the control's value.\nOffsets count text in DOM order and do not enter shadow trees.\nTo mark text inside a shadow tree, pass the element inside the shadow tree.",
9083+
"type": "integer"
9084+
},
9085+
{
9086+
"name": "end",
9087+
"description": "End offset (exclusive) in the same units and space as start.",
9088+
"type": "integer"
9089+
}
9090+
]
9091+
},
9092+
{
9093+
"name": "clearTextMarkers",
9094+
"description": "Clears the spelling and grammar error text markers overlapping the ranges\nset by setTextMarker in this session. These markers are also removed when\nthe DOM domain is disabled or the session ends.",
9095+
"experimental": true
90479096
}
90489097
],
90499098
"events": [

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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.1696802",
3+
"version": "0.0.1697629",
44
"description": "The Chrome DevTools Protocol JSON",
55
"repository": "https://github.com/ChromeDevTools/devtools-protocol",
66
"author": "The Chromium Authors",

pdl/domains/DOM.pdl

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -845,6 +845,37 @@ domain DOM
845845
# If true, opens and holds interest. If false, releases forced interest.
846846
boolean enable
847847

848+
# Sets a spelling or grammar error marker on the given range of text.
849+
# See https://github.com/Igalia/explainers/blob/main/force-spelling-grammar-markers/README.md
850+
# Note: exactly one between nodeId, backendNodeId and objectId should be passed
851+
# to identify the node.
852+
experimental command setTextMarker
853+
parameters
854+
# Identifier of the node.
855+
optional NodeId nodeId
856+
# Identifier of the backend node.
857+
optional BackendNodeId backendNodeId
858+
# JavaScript object id of the node wrapper.
859+
optional Runtime.RemoteObjectId objectId
860+
# The type of marker to set on the given range of text.
861+
enum type
862+
# A spelling error marker, rendered as ::spelling-error
863+
spelling
864+
# A grammar error marker, rendered as ::grammar-error
865+
grammar
866+
# Start offset into the element's rendered text in UTF-16 code units.
867+
# For a text control, an offset into the control's value.
868+
# Offsets count text in DOM order and do not enter shadow trees.
869+
# To mark text inside a shadow tree, pass the element inside the shadow tree.
870+
integer start
871+
# End offset (exclusive) in the same units and space as start.
872+
integer end
873+
874+
# Clears the spelling and grammar error text markers overlapping the ranges
875+
# set by setTextMarker in this session. These markers are also removed when
876+
# the DOM domain is disabled or the session ends.
877+
experimental command clearTextMarkers
878+
848879
# Fired when `Element`'s attribute is modified.
849880
event attributeModified
850881
parameters

scripts/inspector_protocol

Submodule inspector_protocol updated from 3b2e0c4 to b814180

types/protocol-mapping.d.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3062,6 +3062,27 @@ export namespace ProtocolMapping {
30623062
paramsType: [Protocol.DOM.ForceShowInterestRequest];
30633063
returnType: void;
30643064
};
3065+
/**
3066+
* Sets a spelling or grammar error marker on the given range of text.
3067+
* See https://github.com/Igalia/explainers/blob/main/force-spelling-grammar-markers/README.md
3068+
* Note: exactly one between nodeId, backendNodeId and objectId should be passed
3069+
* to identify the node.
3070+
* @experimental
3071+
*/
3072+
'DOM.setTextMarker': {
3073+
paramsType: [Protocol.DOM.SetTextMarkerRequest];
3074+
returnType: void;
3075+
};
3076+
/**
3077+
* Clears the spelling and grammar error text markers overlapping the ranges
3078+
* set by setTextMarker in this session. These markers are also removed when
3079+
* the DOM domain is disabled or the session ends.
3080+
* @experimental
3081+
*/
3082+
'DOM.clearTextMarkers': {
3083+
paramsType: [];
3084+
returnType: void;
3085+
};
30653086
/**
30663087
* Returns event listeners of the given object.
30673088
*/

types/protocol-proxy-api.d.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1892,6 +1892,23 @@ export namespace ProtocolProxyApi {
18921892
*/
18931893
forceShowInterest(params: Protocol.DOM.ForceShowInterestRequest): Promise<void>;
18941894

1895+
/**
1896+
* Sets a spelling or grammar error marker on the given range of text.
1897+
* See https://github.com/Igalia/explainers/blob/main/force-spelling-grammar-markers/README.md
1898+
* Note: exactly one between nodeId, backendNodeId and objectId should be passed
1899+
* to identify the node.
1900+
* @experimental
1901+
*/
1902+
setTextMarker(params: Protocol.DOM.SetTextMarkerRequest): Promise<void>;
1903+
1904+
/**
1905+
* Clears the spelling and grammar error text markers overlapping the ranges
1906+
* set by setTextMarker in this session. These markers are also removed when
1907+
* the DOM domain is disabled or the session ends.
1908+
* @experimental
1909+
*/
1910+
clearTextMarkers(): Promise<void>;
1911+
18951912
/**
18961913
* Fired when `Element`'s attribute is modified.
18971914
*/

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

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1982,6 +1982,23 @@ export namespace ProtocolTestsProxyApi {
19821982
*/
19831983
forceShowInterest(params: Protocol.DOM.ForceShowInterestRequest): Promise<{id: number, result: void, sessionId: string}>;
19841984

1985+
/**
1986+
* Sets a spelling or grammar error marker on the given range of text.
1987+
* See https://github.com/Igalia/explainers/blob/main/force-spelling-grammar-markers/README.md
1988+
* Note: exactly one between nodeId, backendNodeId and objectId should be passed
1989+
* to identify the node.
1990+
* @experimental
1991+
*/
1992+
setTextMarker(params: Protocol.DOM.SetTextMarkerRequest): Promise<{id: number, result: void, sessionId: string}>;
1993+
1994+
/**
1995+
* Clears the spelling and grammar error text markers overlapping the ranges
1996+
* set by setTextMarker in this session. These markers are also removed when
1997+
* the DOM domain is disabled or the session ends.
1998+
* @experimental
1999+
*/
2000+
clearTextMarkers(): Promise<{id: number, result: void, sessionId: string}>;
2001+
19852002
/**
19862003
* Fired when `Element`'s attribute is modified.
19872004
*/

types/protocol.d.ts

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8218,6 +8218,41 @@ export namespace Protocol {
82188218
enable: boolean;
82198219
}
82208220

8221+
export const enum SetTextMarkerRequestType {
8222+
Spelling = 'spelling',
8223+
Grammar = 'grammar',
8224+
}
8225+
8226+
export interface SetTextMarkerRequest {
8227+
/**
8228+
* Identifier of the node.
8229+
*/
8230+
nodeId?: NodeId;
8231+
/**
8232+
* Identifier of the backend node.
8233+
*/
8234+
backendNodeId?: BackendNodeId;
8235+
/**
8236+
* JavaScript object id of the node wrapper.
8237+
*/
8238+
objectId?: Runtime.RemoteObjectId;
8239+
/**
8240+
* The type of marker to set on the given range of text.
8241+
*/
8242+
type: ('spelling' | 'grammar');
8243+
/**
8244+
* Start offset into the element's rendered text in UTF-16 code units.
8245+
* For a text control, an offset into the control's value.
8246+
* Offsets count text in DOM order and do not enter shadow trees.
8247+
* To mark text inside a shadow tree, pass the element inside the shadow tree.
8248+
*/
8249+
start: integer;
8250+
/**
8251+
* End offset (exclusive) in the same units and space as start.
8252+
*/
8253+
end: integer;
8254+
}
8255+
82218256
/**
82228257
* Fired when `Element`'s attribute is modified.
82238258
*/

0 commit comments

Comments
 (0)