-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Error serializing page.evaluate
return value if URL
is overridden on the page
#21109
Labels
Comments
yury-s
added a commit
that referenced
this issue
Feb 22, 2023
yury-s
added a commit
that referenced
this issue
Feb 23, 2023
The test is failing for overridden Date in Firefox. #21109
Thank you @yury-s! Should I close this issue or leave it open? (I noticed you had reopened it) |
I reopened it as the new test doesn't pass in Firefox, we want it work in all browsers. |
aslushnikov
added a commit
to aslushnikov/playwright
that referenced
this issue
Mar 9, 2023
aslushnikov
added a commit
to aslushnikov/playwright
that referenced
this issue
Mar 10, 2023
aslushnikov
added a commit
to aslushnikov/playwright
that referenced
this issue
Mar 10, 2023
aslushnikov
added a commit
that referenced
this issue
Mar 10, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Context:
Code Snippet
I created this repo to reproduce this issue, but the code to reproduce this is shown below:
Describe the bug
If a site overrides
URL
with a string value, attempting to evaluate a script on a page that returns an object will returnundefined
due to the isUrl check throwing an error during serialization. Perhaps the check should be similar to the isError check where the check is wrapped in a try/catch? (I know you shouldn’t override the URL property, but I can’t control the target website).I am willing to open a PR to fix this if you'd like.
The text was updated successfully, but these errors were encountered: