Skip to content

Commit ae3f260

Browse files
committed
bump protocol
1 parent 964f6cc commit ae3f260

File tree

5 files changed

+140
-16
lines changed

5 files changed

+140
-16
lines changed

_data/tot/protocol.json

Lines changed: 101 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -533,6 +533,7 @@
533533
"commands": [
534534
{
535535
"name": "evaluate",
536+
"async": true,
536537
"parameters": [
537538
{
538539
"name": "expression",
@@ -563,7 +564,7 @@
563564
"name": "contextId",
564565
"$ref": "ExecutionContextId",
565566
"optional": true,
566-
"description": "Specifies in which isolated context to perform evaluation. Each content script lives in an isolated context and this parameter may be used to specify one of those contexts. If the parameter is omitted or 0 the evaluation will be performed in the context of the inspected page."
567+
"description": "Specifies in which isolated context to perform evaluation. Each content script lives in an isolated context and this parameter may be used to specify one of those contexts. If the parameter is omitted the evaluation will be performed in the context of the inspected page."
567568
},
568569
{
569570
"name": "returnByValue",
@@ -584,6 +585,13 @@
584585
"optional": true,
585586
"hidden": true,
586587
"description": "Whether execution should be treated as initiated by user in the UI."
588+
},
589+
{
590+
"name": "awaitPromise",
591+
"type": "boolean",
592+
"optional": true,
593+
"hidden": true,
594+
"description": "Whether execution should wait for promise to be resolved. If the result of evaluation is not a Promise, it's considered to be an error."
587595
}
588596
],
589597
"returns": [
@@ -608,8 +616,53 @@
608616
],
609617
"description": "Evaluates expression on global object."
610618
},
619+
{
620+
"name": "awaitPromise",
621+
"hidden": true,
622+
"async": true,
623+
"parameters": [
624+
{
625+
"name": "promiseObjectId",
626+
"$ref": "RemoteObjectId",
627+
"description": "Identifier of the promise."
628+
},
629+
{
630+
"name": "returnByValue",
631+
"type": "boolean",
632+
"optional": true,
633+
"description": "Whether the result is expected to be a JSON object that should be sent by value."
634+
},
635+
{
636+
"name": "generatePreview",
637+
"type": "boolean",
638+
"optional": true,
639+
"description": "Whether preview should be generated for the result."
640+
}
641+
],
642+
"returns": [
643+
{
644+
"name": "result",
645+
"$ref": "RemoteObject",
646+
"description": "Promise result. Will contain rejected value if promise was rejected."
647+
},
648+
{
649+
"name": "wasThrown",
650+
"type": "boolean",
651+
"optional": true,
652+
"description": "True if the promise was rejected."
653+
},
654+
{
655+
"name": "exceptionDetails",
656+
"$ref": "ExceptionDetails",
657+
"optional": true,
658+
"description": "Exception details if stack strace is available."
659+
}
660+
],
661+
"description": "Add handler to promise with given promise object id."
662+
},
611663
{
612664
"name": "callFunctionOn",
665+
"async": true,
613666
"parameters": [
614667
{
615668
"name": "objectId",
@@ -657,6 +710,13 @@
657710
"optional": true,
658711
"hidden": true,
659712
"description": "Whether execution should be treated as initiated by user in the UI."
713+
},
714+
{
715+
"name": "awaitPromise",
716+
"type": "boolean",
717+
"optional": true,
718+
"hidden": true,
719+
"description": "Whether execution should wait for promise to be resolved. If the result of evaluation is not a Promise, it's considered to be an error."
660720
}
661721
],
662722
"returns": [
@@ -670,6 +730,13 @@
670730
"type": "boolean",
671731
"optional": true,
672732
"description": "True if the result was thrown during the evaluation."
733+
},
734+
{
735+
"name": "exceptionDetails",
736+
"$ref": "ExceptionDetails",
737+
"optional": true,
738+
"hidden": true,
739+
"description": "Exception details."
673740
}
674741
],
675742
"description": "Calls function with given declaration on the given object. Object group of the result is inherited from the target object."
@@ -805,7 +872,8 @@
805872
{
806873
"name": "executionContextId",
807874
"$ref": "ExecutionContextId",
808-
"description": "Specifies in which isolated context to perform script run. Each content script lives in an isolated context and this parameter is used to specify one of those contexts."
875+
"optional": true,
876+
"description": "Specifies in which isolated context to perform script run. Each content script lives in an isolated context and this parameter is used to specify one of those contexts. If the parameter is omitted the evaluation will be performed in the context of the inspected page."
809877
}
810878
],
811879
"returns": [
@@ -827,6 +895,7 @@
827895
{
828896
"name": "runScript",
829897
"hidden": true,
898+
"async": true,
830899
"parameters": [
831900
{
832901
"name": "scriptId",
@@ -836,7 +905,8 @@
836905
{
837906
"name": "executionContextId",
838907
"$ref": "ExecutionContextId",
839-
"description": "Specifies in which isolated context to perform script run. Each content script lives in an isolated context and this parameter is used to specify one of those contexts."
908+
"optional": true,
909+
"description": "Specifies in which isolated context to perform script run. Each content script lives in an isolated context and this parameter is used to specify one of those contexts. If the parameter is omitted the evaluation will be performed in the context of the inspected page."
840910
},
841911
{
842912
"name": "objectGroup",
@@ -855,6 +925,24 @@
855925
"type": "boolean",
856926
"optional": true,
857927
"description": "Determines whether Command Line API should be available during the evaluation."
928+
},
929+
{
930+
"name": "returnByValue",
931+
"type": "boolean",
932+
"optional": true,
933+
"description": "Whether the result is expected to be a JSON object which should be sent by value."
934+
},
935+
{
936+
"name": "generatePreview",
937+
"type": "boolean",
938+
"optional": true,
939+
"description": "Whether preview should be generated for the result."
940+
},
941+
{
942+
"name": "awaitPromise",
943+
"type": "boolean",
944+
"optional": true,
945+
"description": "Whether execution should wait for promise to be resolved. If the result of evaluation is not a Promise, it's considered to be an error."
858946
}
859947
],
860948
"returns": [
@@ -863,6 +951,12 @@
863951
"$ref": "RemoteObject",
864952
"description": "Run result."
865953
},
954+
{
955+
"name": "wasThrown",
956+
"type": "boolean",
957+
"optional": true,
958+
"description": "True if the result was thrown during the execution."
959+
},
866960
{
867961
"name": "exceptionDetails",
868962
"$ref": "ExceptionDetails",
@@ -7454,6 +7548,10 @@
74547548
"name": "mediaQueryResultChanged",
74557549
"description": "Fires whenever a MediaQuery result changes (for example, after a browser window has been resized.) The current implementation considers only viewport-dependent media features."
74567550
},
7551+
{
7552+
"name": "fontsUpdated",
7553+
"description": "Fires whenever a web font gets loaded."
7554+
},
74577555
{
74587556
"name": "styleSheetChanged",
74597557
"parameters": [

0 commit comments

Comments
 (0)