United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-8138652 : [macosx] New WebView Native Code uses private Apple APIs

Details
Type:
Bug
Submit Date:
2015-09-30
Status:
Resolved
Updated Date:
2017-02-13
Project Name:
JDK
Resolved Date:
2017-02-10
Component:
javafx
OS:
os_x
Sub-Component:
web
CPU:
Priority:
P3
Resolution:
Fixed
Affected Versions:
8u60,9
Fixed Versions:
9

Related Reports
Backport:
Duplicate:
Relates:
Relates:

Sub Tasks

Description
The new update to the QTKit code for JavaFX Web View uses some APIs that apple considers "private."

    ubrk_getRuleStatus
    ubrk_setUText
    ucnv_getCanonicalName
    ucnv_reset
    ucol_strcollIter

If you do some web searching you will find some QTWebKit bugs and blog posts that provide instructions for a Mac App Store "clean" way to build it, so it can be fixed.

Right now packager has to remove the dylib, much in the same way the media libraries were excluded for QuickTime APIs.
                                    

Comments
Changeset: 9bdcf1b4cc72
Author:    ghb
Date:      2017-02-10 09:12 +0530
URL:       http://hg.openjdk.java.net/openjfx/9-dev/rt/rev/9bdcf1b4cc72
                                     
2017-02-10
Build failure is resolved.

+1
                                     
2017-02-09
I get build failures with your patch applied. These will need to be resolved before we can proceed. I am compiling on Mac OS X 10.9.5 which matches our production build machines.

                                     
2017-02-08
+1
                                     
2017-02-07
lgtm
                                     
2017-02-06
webrev : http://cr.openjdk.java.net/~ghb/8138652/webrev.00/
Root cause : We were dynamically linked native library "libicucore.dylib" provided by OS X framework. Some of the API (mentioned in Description) are public. This restricts our javafx bundled with native webkit library getting rejected from app store.

Solution: Use statically linked lib icu (which we are doing for windows and linux) with native webkit.
                                     
2017-01-25
Issue blocks app submission to Apple (Mac) app store.
                                     
2016-05-05
If this is fixed in 8u then please file a bug against the Java Packager to not strip out libjfxwebkit.dylib
                                     
2016-05-05



Hardware and Software, Engineered to Work Together