Closed Bug 1614109 Opened 5 years ago Closed 1 year ago

[meta] Runtime.callFunctionOn fails to evaluate JS scripts

Categories

(Remote Protocol :: CDP, defect)

defect

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: whimboo, Unassigned)

References

Details

(Keywords: meta)

While working on the setCookie implementation I noticed that evaluating a script like document.cookie via page.evaluate() in Puppeteer doesn't return any data, even with the cookie being present on the document.

Same for variables of type BigInt, which returns an unknown type. So something is wrong in that function, which needs to be investigated.

A lot of Puppeteer unit tests are affected by that.

With the landed patch on bug 1611274 a lot of unit tests around page.eval() have been marked as failing with Firefox. With the fix on that bug we would have a huge jump forward.

Maybe somewhat related is bug 1597343.

See Also: → 1597343
Keywords: meta
Summary: Runtime.callFunctionOn fails to evaluate JS scripts → [meta] Runtime.callFunctionOn fails to evaluate JS scripts
Component: CDP: Runtime → CDP
Severity: normal → S3

All dependencies are fixed.

Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.