Open szanto90balazs opened 1 year ago
Hello @szanto90balazs,
Thanks for your bug report. I've assigned this to a dev that can best try to replicate the issue and follow up on this.
@szanto90balazs. Can you provide the minimum sample code, and the URL which triggered it? Is it a problem with the escape characters of the JsonSerializer.Deserialize
API? Thanks.
@victorthoang Thanks for following up.
@yizhao5 The URL can be arbitrary, as long as the page uses a certain flavor of prototype.js or just simple choose to override Array.prototype members. I can't share our Jenkins url, since it's behind auth.
Attached the minimum sample code which you can reproduce the issue with. The problem is that elements in the array are one more time, so you can't just deserialize them in one step.
Got it. If it's not urgent, I'll find time to look at it after the recent New Year. Thanks.
Description
Native - JS web messaging is broken on some sites utilizing prototype.js.
Version SDK: 1.0.1418.22 Runtime: 107.0.1418.62 Framework: WPF OS: Win10
Repro Steps
I ran into the issue while I was visiting our Jenkins site, but I managed to narrow down the issue and make it reproducible.
Get the Jenkins flavor of prototype.js
Inject the following code - make sure to do it before starting navigation:
Start the browser - it won't be able to deserialize the web message
Notes:
E.g. see the change in the Array.prototype:
e.WebMessageAsJson
looks like this (BAD version):e.WebMessageAsJson
looks like this (GOOD version):AB#47984249