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
webview functionality issue - something went wrong #6876
Comments
I can confirm. When visiting some websites within a webview using nwjs, is breaking some of the expected functionality. Taking a look at the issues described below can provide a better insight on the matter. The first website is aa.com
The second website is kayak.com
The third website is booking.com
|
Could you please try this latest build? It works well for me when load aa.com and search in a webview in windows. https://dl.nwjs.io/live-build/nw35/11-26-2018/3a11b2178/v0.35.0/ |
Thank you for your response. Your feedback is appreciated. However, that is why I explicitly stated the OS. In windows it is functioning properly. However, when trying Ubuntu I reproduce that. |
I tested on windows with the latest version(nwjs 0.35.0) I can confirm that it works, but on linux it is not working, any idea why? |
I just tried on Linux with the latest build and it works for me too. |
Do you use the webview tag? |
That's sure and I'm using this sample: <!DOCTYPE html>
<html>
<head>
<title>My App</title>
</head>
<body>
<webview src="https://www.aa.com/"></webview>
</body>
</html> |
This is mine:
|
That error message is from the server, not NW. |
@asteriosgr I don't think there is anything wrong with the NW on the Ubuntu machine, maybe the server blocks the IP of that machine. For the 2nd issue, when you try to sign up with Google chrome will open a new window. With webview I believe you need to handle this with the And please report separate issues for different scenarios. That would make tracking clear. |
But if my IP was blocked I would not be able to use aa.com via chromium, firefox or any other browser. Only when accessing it via the webview of nwjs it is not loading. Secondly, thank you for your consideration on the second issue. Yes now that you explained it I will try with the new window event. However, some issues still remain. I fixed my post above regarding issues and I removed those related to new window event. |
@rogerwang I implemented the newwin event and even if I do so it is not working. What happens is that the page opened by kayak.com is staying in infinite loading and if I open the console it said: "The user agent does not support public key credentials" - this is why I think it is related to nwjs |
@dansachelarie this is another issue. And as I can see you track it here. #6875 Now regarding this topic. For me the something went wrong page is still appearing. And the search functionality of other websites is affected as well. |
@rogerwang I also can confirm that the message displayed by @asteriosgr with "Something went wrong" is displayed only in the combination on nwjs + webview. In other browser it works from same pc. Also, I tried on electron + webview and it works. |
@asteriosgr I know it is tracked on the other issue, but I think they are somehow related. Maybe the difference between kayak.com which remain in infinite loading screen and aa.com is that aa.com took into consideration the case when "The user agent does not support public key credentials" - and display that error page. Just a guess. |
In the original report, you referred to two sites: www.aa.com and www.aa.ro. Which one should I use trying to reproduce it? I tried aa.com and it works well for me under Linux with the latest build. And in your test case posted in #6876 (comment) you are referring to www.google.com. It's very confusing .... |
And in your original report you said it breaks on both Windows and Linux, then later, both of you said it works on Windows: #6876 (comment) Why is that happening? I'm wondering what changes on the Window machine... |
@asteriosgr the blocking could be a combination of IP, cookies and user agent strings. It could be other reason as well. Anyway more information is needed to know why the server refuses your request. |
@rogerwang sorry I edited my post, initially I tested on 0.34.5 because this is the stable version of nwjs. On that one the aa.com is not working on windows. In the 0.35.0 it is working on windows but not on linux. Any idea why? (no aa.ro, only aa.com) |
Google is simple the front page. I type aa.com and visit the site. |
You could clean the user data directory and try again. And then try with |
Let me resume it because I feel somehow that we are not on the same page.
If you still need more information from me please let me know. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
NWJS Version :
I tried on window/linux with the latest nwjs version (0.34.5) just to load a page inside an webview (www.aa.com) and do a flight serch. It said "Something wrong happend" on the window/linux but in osx it is working. Also if I try in chrome it is working as expected, also tested on a nwjs window without webview and it is also working.
Expected behavior
The results of the search should appear.
Actual behavior
"Something wrong happend" message appear on the screen only on linux/window but in osx is working as expected.
How to reproduce
Just load that website (www.aa.com) in a webview and do a valid flight search.
The text was updated successfully, but these errors were encountered: