Inappropriate "InvalidArgument" error when providing both "context" and "realm" argument to "script.evaluate", "script.callFunction", and "script.disown"
Categories
(Remote Protocol :: WebDriver BiDi, defect, P2)
Tracking
(firefox123 fixed)
| Tracking | Status | |
|---|---|---|
| firefox123 | --- | fixed |
People
(Reporter: Sasha, Assigned: Sasha)
References
()
Details
(Whiteboard: [webdriver:m10][wptsync upstream][webdriver:relnote])
Attachments
(3 files)
In the initial implementation (see bug1779231), we assumed that specification of "script.evaluate", "script.callFunction", and "script.disown" (see this spec issue) should move into the direction of allowing to have only one type of argument based on the fields and added the assertion to not allow "context" and "realm" fields at the same time. But the spec was not changed that way, and now it causes an issue for a Puppeteer user: https://github.com/puppeteer/puppeteer/issues/11653, so in the scope of this bug we should align the implementation with the spec, meaning do not throw the error and ignore a "realm" argument if a "context" argument is provided.
| Assignee | ||
Updated•2 years ago
|
Updated•2 years ago
|
| Assignee | ||
Comment 1•2 years ago
|
||
Updated•2 years ago
|
| Assignee | ||
Comment 2•2 years ago
|
||
Depends on D198151
| Assignee | ||
Comment 3•2 years ago
|
||
Depends on D198152
| Assignee | ||
Updated•2 years ago
|
Comment 6•2 years ago
|
||
Backed out for causing puppeteer failures in evaluation.spec.js
- Backout link
- Push with failures
- Failure Log
- Failure line: TEST-UNEXPECTED-PASS | Evaluation specs Page.evaluate should work from-inside an exposed function (evaluation.spec.js) | expected FAIL
| Assignee | ||
Comment 9•2 years ago
|
||
The test expectation data for puppeteer is updated, so the failure should be gone now.
Comment 10•2 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/d0e34106490a
https://hg.mozilla.org/mozilla-central/rev/743d6c09f4d7
https://hg.mozilla.org/mozilla-central/rev/7a6e6415fd6b
Updated•1 year ago
|
Description
•