RFR: 8264501: UIWebView for iOS is deprecated [v2]

Jose Pereda jpereda at openjdk.java.net
Wed Mar 31 12:29:35 UTC 2021


> This PR replaces the deprecated iOS native view for web (UIWebView) with WKWebView. 
> 
> While most of the native API can be easily replaced from one to the other, there are some changes that affect the scripts execution, and therefore some minor changes in WebEngine/JS2JavaBridge are required.
> 
> There is also a side effect if named members of JS objects are used via JSObject::setMember. The Java callbacks to JavaScript are now async, and the return value will be ignored. A workaround is to use JSObject::call instead to pass that value. This should be dealt with in a follow-up issue.
> 
> Also, a peer is provided to allow having a JavaFX node that can be resized and relocated.
> 
> This PR has been tested on iOS, loading URLs and local html files with JS scripts.

Jose Pereda has updated the pull request incrementally with one additional commit since the last revision:

  Add new line at the end of file

-------------

Changes:
  - all: https://git.openjdk.java.net/jfx/pull/449/files
  - new: https://git.openjdk.java.net/jfx/pull/449/files/c7586db4..73d11608

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=jfx&pr=449&range=01
 - incr: https://webrevs.openjdk.java.net/?repo=jfx&pr=449&range=00-01

  Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
  Patch: https://git.openjdk.java.net/jfx/pull/449.diff
  Fetch: git fetch https://git.openjdk.java.net/jfx pull/449/head:pull/449

PR: https://git.openjdk.java.net/jfx/pull/449


More information about the openjfx-dev mailing list