Add support for "returnByValue" and "awaitPromise" to Runtime.evaluate
Categories
(Remote Protocol :: CDP, task, P1)
Tracking
(firefox76 fixed)
Tracking | Status | |
---|---|---|
firefox76 | --- | fixed |
People
(Reporter: whimboo, Assigned: whimboo)
References
Details
(Whiteboard: [puppeteer-beta-mvp])
Attachments
(4 files)
Puppeteer uses it in _evaluateInternal()
(ExecutionContext.js) with the value set to both true
and false
. We should implement that given that it is part of Runtime.evaluate
and highly used.
I will do it beside the work on bug 1623484.
Updated•5 years ago
|
Assignee | ||
Comment 1•5 years ago
|
||
As noticed we also miss waitPromise
, which actually can cause hanging promises and as result crashing Puppeteer unit tests. As seen lately that happens a lot for waitForSelector()
. As such lets also get it implemented here, which basically is hopefully a copy and paste from Runtime.callFunctionOn
only.
Assignee | ||
Comment 2•5 years ago
|
||
Assignee | ||
Comment 3•5 years ago
|
||
Tests are mixing APIs between each other, which this patch removes.
Also error messages have been adjusted for both methods to
be on par with Chrome.
Assignee | ||
Comment 4•5 years ago
|
||
Depends on D67840
Assignee | ||
Comment 5•5 years ago
|
||
Depends on D67841
Assignee | ||
Comment 6•5 years ago
|
||
Depends on D67843
Comment 8•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/9f32172ae499
https://hg.mozilla.org/mozilla-central/rev/36920c4ef850
https://hg.mozilla.org/mozilla-central/rev/c92f0faccdb5
https://hg.mozilla.org/mozilla-central/rev/bebf8622dd3b
Updated•4 years ago
|
Description
•