[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openjdk-openjfx-dev
Subject:    RFR: 8242361: JavaFX Web View crashes with Segmentation Fault, when HTML contains Data-URIs
From:       Matthias =?UTF-8?B?QmzDpHNpbmc=?= <github.com+2179736+matthiasblaesing () openjdk ! j
Date:       2020-11-27 17:29:08
Message-ID: rBNycylbFDHZE1xdZXcQ6TbHLl2LvmZ_01ncs-JmOGs=.3886e4ca-7637-45ed-ab58-ef989304b7d3 () github ! com
[Download RAW message or body]

The code in WTF::scheduleDispatchFunctionsOnMainThread assumes, that
the java class com.sun.webkit.MainThread can be found be the JNI
function FindClass. This is only true if the class is loadable by the
system class loader.

One such case is when the OpenJFX modules are loaded from a new
ModuleLayer. To fix this, the reference to the class needs to be loaded
from when a JNI call from Java into native code is active. In that case
FindClass uses the classloader associated with that method.

The test code can be executed by running:

cd tests/manual/web/dataurl
../../../../gradlew run

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

Commit messages:
 - 8242361: JavaFX Web View crashes with Segmentation Fault, when HTML contains Data-URIs

Changes: https://git.openjdk.java.net/jfx/pull/360/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jfx&pr=360&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8242361
  Stats: 191 lines in 6 files changed: 170 ins; 16 del; 5 mod
  Patch: https://git.openjdk.java.net/jfx/pull/360.diff
  Fetch: git fetch https://git.openjdk.java.net/jfx pull/360/head:pull/360

PR: https://git.openjdk.java.net/jfx/pull/360
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic