@@ -327,7 +327,13 @@ export namespace Browser {
327
327
export namespace Browser {
328
328
export type CreateUserContext = {
329
329
method : 'browser.createUserContext' ;
330
- params : EmptyParams ;
330
+ params : Browser . CreateUserContextParameters ;
331
+ } ;
332
+ }
333
+ export namespace Browser {
334
+ export type CreateUserContextParameters = {
335
+ acceptInsecureCerts ?: boolean ;
336
+ proxy ?: Session . ProxyConfiguration ;
331
337
} ;
332
338
}
333
339
export namespace Browser {
@@ -941,8 +947,14 @@ export namespace Emulation {
941
947
} ;
942
948
}
943
949
export namespace Emulation {
944
- export type SetGeolocationOverrideParameters = {
945
- coordinates : Emulation . GeolocationCoordinates | null ;
950
+ export type SetGeolocationOverrideParameters = (
951
+ | {
952
+ coordinates : Emulation . GeolocationCoordinates | null ;
953
+ }
954
+ | {
955
+ error : Emulation . GeolocationPositionError ;
956
+ }
957
+ ) & {
946
958
contexts ?: [
947
959
BrowsingContext . BrowsingContext ,
948
960
...BrowsingContext . BrowsingContext [ ] ,
@@ -990,6 +1002,11 @@ export namespace Emulation {
990
1002
speed ?: number | null ;
991
1003
} ;
992
1004
}
1005
+ export namespace Emulation {
1006
+ export type GeolocationPositionError = {
1007
+ type : 'positionUnavailable' ;
1008
+ } ;
1009
+ }
993
1010
export type NetworkCommand =
994
1011
| Network . AddIntercept
995
1012
| Network . ContinueRequest
@@ -1699,16 +1716,16 @@ export namespace Script {
1699
1716
} ;
1700
1717
}
1701
1718
export namespace Script {
1702
- export type RegExpRemoteValue = {
1719
+ export type RegExpRemoteValue = Script . RegExpLocalValue & {
1703
1720
handle ?: Script . Handle ;
1704
1721
internalId ?: Script . InternalId ;
1705
- } & Script . RegExpLocalValue ;
1722
+ } ;
1706
1723
}
1707
1724
export namespace Script {
1708
- export type DateRemoteValue = {
1725
+ export type DateRemoteValue = Script . DateLocalValue & {
1709
1726
handle ?: Script . Handle ;
1710
1727
internalId ?: Script . InternalId ;
1711
- } & Script . DateLocalValue ;
1728
+ } ;
1712
1729
}
1713
1730
export namespace Script {
1714
1731
export type MapRemoteValue = {
0 commit comments