-
-
Notifications
You must be signed in to change notification settings - Fork 23
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
cant get the Location modify by JS. #98
Comments
Thanks for your support. |
every last version
The website only returns the HTML I gave it. The script in this HTML is randomly generated. This is obviously an anti-crawler method.
The first paragraph (Html) is what I expanded and formatted as much as possible to analyze the function of this script. And I added intermediate variables to the script in order to debug this script at the browser breakpoint as much as possible to observe its true purpose. |
The situation in the browser is: I visited the target website http://localhost:8080/thread-13587-1-1.html path, but the target website returned the above html to me, and then the page was redirected to: But "jump to web page" = "thread-13587-1-1.html" = "the above Html", currently in the above AngleSharp.JS, it seems that it can't be executed normally. It won't jump. Through analysis, I noticed that the script part is mainly modified. Location=thread-13587-1-1.html?_dsign=b460e65b,Window['Href']=thread-13587. I hope:
|
If you want to check the function of the script, you can save the above Html to an HTML file and open this page directly with a browser. You should be able to see my code, I tried multiple things before asking the question, but to no avail. |
I noticed that the original return only has <script></script>. |
I still don't get the issue and how this is a bug. Right now it seems to me that this script is modfiying the location and thus the location / page changes. That's how it should be. I don't see any bug right now. Please explain / modify the MWE to show your scenario. |
the problem is location / page not any changes what im got in C# |
here is MWE, https://github.com/sgf/AngleSharpJsMWE |
Describe the bug at AngleSharp.Js.DomPrototypeInstance.<>c__DisplayClass13_0.b__1(JsValue obj, JsValue[] values) To Reproduce <script type="text/javascript">
location = ”xxx.html?q=123456“;
</script> but if the jscode changed to: The exception will disappear. screenshot: |
Bug Report
[Description of the bug]
the script not executed or its executed but i cant get the result.
the script is modify the location.but i cant get any change with
Steps to Reproduce
Expected behavior: [What you expected to happen]
got the threadDoclocation : http://localhost:8080/thread-13587-1-1.html?_dsign=b460e65b
Actual behavior: [What actually happened]
Environment details: [OS, .NET Runtime, ...]
.net 8.0
Possible Solution
[Optionally, share your idea to fix the issue]
The text was updated successfully, but these errors were encountered: