JDK-8222912 : Websocket client doesn't work in WebView
  • Type: Bug
  • Component: javafx
  • Sub-Component: web
  • Affected Version: 8u211,openjfx13
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: windows_10
  • CPU: x86_64
  • Submitted: 2019-04-23
  • Updated: 2020-01-31
  • Resolved: 2019-07-11
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8 Other
8u231Fixed openjfx11.0.5Fixed
Related Reports
Duplicate :  
Description
ADDITIONAL SYSTEM INFORMATION :
Windows 10 / Java 1.8.0_211

A DESCRIPTION OF THE PROBLEM :
WebView's websocket client doesn't connect to a websocket server in the last java 8 update, but it works fine in the previous versions.

REGRESSION : Last worked in version 8u202


FREQUENCY : always



Comments
Changeset: 4c6d39fc63ef Author: arajkumar Date: 2019-07-11 15:37 +0530 URL: https://hg.openjdk.java.net/openjfx/13-dev/rt/rev/4c6d39fc63ef 8222912: Websocket client doesn't work in WebView Reviewed-by: kcr, ghb
12-07-2019

Changeset: 18917676a9a2 Author: arajkumar Date: 2019-07-11 15:37 +0530 URL: https://hg.openjdk.java.net/openjfx/jfx-dev/rt/rev/18917676a9a2 8222912: Websocket client doesn't work in WebView Reviewed-by: kcr, ghb
11-07-2019

[~arajkumar] I see that this was pushed to openjfx/jfx-dev/rt, which is now openjfx14 not openjfx13. Since this bug is targeted to openjfx13, it should have been pushed to 13-dev/rt instead. You can still push it to 13-dev. We will get a duplicate changeset when I do the forward sync, but it will be OK in this case.
11-07-2019

Please review the following PR, https://github.com/javafxports/openjdk-jfx/pull/524 Root cause: SocketStreamHandleImpl::platformSendHandshake is not implemented. Solution: SocketStreamHandleImpl.cpp already has boilerplate implementation and used by other WebKit ports as well. Switch to the above mentioned implementation and provide only platform specific functionality like connect, send, receive and close.
09-07-2019

See JDK-8226229 for an additional test case.
17-06-2019

Additional information == You can reproduce the bug here: http://www.websocket.org/echo.html
10-05-2019

I see that the following websocket demo[1] works with 8u211, it would be good if the submitter provides a right reproducer. [1] http://demos.kaazing.com/echo/index.html
09-05-2019

Possibly caused by JDK-8216015.
24-04-2019