WebAssembly Support in JavaFX WebKit
RJ Sheperd
rsheperd at sig-gis.com
Mon Nov 13 17:27:01 UTC 2023
First, big thanks to the folks who have maintained this project.
I recently opened a "Feature Request" ticket for "WebAssembly Support in
JavaFX WebKit", and stated that I would be happy to help get this support
enabled. WebAssembly has been enabled in WebKit since 2017:
https://webkit.org/blog/7691/webassembly/
The basic gist is: when I run load the following HTML, I get "undefined"
rather than "object":
<-- index.html -->
<!DOCTYPE html>
<html>
<body>
Hello from Webkit!
<div id="console"></div>
<script type="text/javascript">
var app = document.getElementById("console");
app.innerHTML = typeof WebAssembly; // Should return "object"
</body>
</html>
I can see that all of the relevant .h/.cpp files from the WebKit project
are indeed included:
https://github.com/openjdk/jfx/tree/master/modules/javafx.web/src/main/native/Source/JavaScriptCore/wasm
I am not sure why this would fail. Might it be that WebAssembly simply
needs to be enabled in the JavaFX build script?
Thank you in advance!
Sincerely,
Richard "RJ" Sheperd
Software Engineer
Spatial Informatics Group, Inc.
rsheperd at sig-gis.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/openjfx-dev/attachments/20231113/72a668ab/attachment.htm>
More information about the openjfx-dev
mailing list