mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
chore: update code for chromium-bidi update (#10467)
This commit is contained in:
parent
919f0e8e7f
commit
1175fe98c1
@ -41,7 +41,7 @@ export class Browser extends BrowserBase {
|
|||||||
'network',
|
'network',
|
||||||
'log',
|
'log',
|
||||||
];
|
];
|
||||||
static readonly subscribeCdpEvents: Bidi.CDP.EventNames[] = [
|
static readonly subscribeCdpEvents: Bidi.Cdp.EventNames[] = [
|
||||||
// Coverage
|
// Coverage
|
||||||
'cdp.Debugger.scriptParsed',
|
'cdp.Debugger.scriptParsed',
|
||||||
'cdp.CSS.styleSheetAdded',
|
'cdp.CSS.styleSheetAdded',
|
||||||
|
@ -136,12 +136,12 @@ interface Commands {
|
|||||||
returnType: Bidi.Message.EmptyResult;
|
returnType: Bidi.Message.EmptyResult;
|
||||||
};
|
};
|
||||||
'cdp.sendCommand': {
|
'cdp.sendCommand': {
|
||||||
params: Bidi.CDP.SendCommandParams;
|
params: Bidi.Cdp.SendCommandParams;
|
||||||
returnType: Bidi.CDP.SendCommandResult;
|
returnType: Bidi.Cdp.SendCommandResult;
|
||||||
};
|
};
|
||||||
'cdp.getSession': {
|
'cdp.getSession': {
|
||||||
params: Bidi.CDP.GetSessionParams;
|
params: Bidi.Cdp.GetSessionParams;
|
||||||
returnType: Bidi.CDP.GetSessionResult;
|
returnType: Bidi.Cdp.GetSessionResult;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -285,6 +285,6 @@ function createProtocolError(object: Bidi.Message.ErrorResult): string {
|
|||||||
|
|
||||||
function isCDPEvent(
|
function isCDPEvent(
|
||||||
event: Bidi.Message.EventMessage
|
event: Bidi.Message.EventMessage
|
||||||
): event is Bidi.CDP.EventReceivedEvent {
|
): event is Bidi.Cdp.EventReceivedEvent {
|
||||||
return event.method.startsWith('cdp.');
|
return event.method.startsWith('cdp.');
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user