JDK-8211308 : Support HTTP/2 in WebView
  • Type: Enhancement
  • Component: javafx
  • Sub-Component: web
  • Affected Version: openjfx12
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2018-10-01
  • Updated: 2022-05-03
  • Resolved: 2019-12-04
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.
Other
openjfx11.0.13Fixed
Related Reports
Blocks :  
Blocks :  
Blocks :  
Blocks :  
Blocks :  
Relates :  
Relates :  
Relates :  
Relates :  
Sub Tasks
JDK-8211444 :  
Description
Currently WebView makes uses of JDK's URLConnection class to serve HTTP requests. Since JDK11, java.net module also supports HTTP/2 using new set of interfaces as described in JDK-8181784.

Goals:
 - Only http/https schemes supported
 - Runtime property will be provided to fallback to legacy HTTP API
 - Both Sync/Async requests has to be supported

Non Goals:
 - Using WebSocket implementation from java.net.http
Comments
Changeset: 98035cb Author: Arunprasad Rajkumar Date: 2019-12-03 08:24:01 +0000 URL: https://git.openjdk.java.net/jfx/commit/98035cb2 8211308: Support HTTP/2 in WebView Reviewed-by: ghb, kcr
04-12-2019

The PR has been integrated, so this JBS enhancement can now be Resolved as Fixed.
03-12-2019

Review: https://github.com/openjdk/jfx/pull/14
03-12-2019

Removing review-requested label. With the impending move of the jfx repo to GitHub, this will need to be resubmitted as a pull request against https://github.com/openjdk/jfx in order for the review to proceed.
01-10-2019

Out of time for openjfx13. Will want to do this early in openjfx14 to get plenty of testing.
23-07-2019

Ok, that sounds a good approach.
21-03-2019

Right. So the plan will be to detect the JDK version and fall back to existing HTTP implementation if JDK is < 12.
21-03-2019

[~jvos], Though this uses JDK 11 HttpClient APIs, it needs latest JDK 12 to work correctly due to the dependency on following issues, JDK-8218546 Unable to connect to https://google.com using java.net.HttpClient JDK-8218662 Allow 204 responses with Content-Length:0 JDK-8203850 java.net.http HTTP client should allow specifying Origin and Referer headers
21-03-2019

Why is this blocked on JDK 12 (JDK-8221097) ?
21-03-2019