fix: correctly handle IPC for promise-based methods (#16433)
This commit is contained in:
parent
4d0b2ac9be
commit
720197f9c8
3 changed files with 44 additions and 8 deletions
|
@ -50,18 +50,20 @@ exports.syncMethods = new Set([
|
|||
'setZoomLevel'
|
||||
])
|
||||
|
||||
exports.asyncMethods = new Set([
|
||||
exports.asyncCallbackMethods = new Set([
|
||||
'insertCSS',
|
||||
'insertText',
|
||||
'send',
|
||||
'sendInputEvent',
|
||||
'setLayoutZoomLevelLimits',
|
||||
'setVisualZoomLevelLimits',
|
||||
// with callback
|
||||
'capturePage',
|
||||
'executeJavaScript',
|
||||
'getZoomFactor',
|
||||
'getZoomLevel',
|
||||
'print',
|
||||
'printToPDF'
|
||||
])
|
||||
|
||||
exports.asyncPromiseMethods = new Set([
|
||||
'capturePage',
|
||||
'executeJavaScript'
|
||||
])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue