Fix Version/s: openjfx12
Compatibility Risk Description:This implements existing HTML functionality with no new API and poses no compatibility risk.
Interface Kind:File or wire format
Provide FileReader support in JavaFX webview so that application developers can have the ability to read the file contents (as a whole/slice ) via JavaSciript. in an asynchronous manner. This change supports reading multiple files also.
Since webkit has support for FileReader, we have to implement the missing file related functionality in java webkit port. From native code , we implemented methods like openFile, readFromFile, seekFile and closeFile (in FileSystemJava.cpp) and the corresponding JNI calls are implemented like fwkOpenFile, fwkReadFromFile, fwkSeekFile and fwkCloseFile in FileSystem.java. We opted for RandomAccessFile to create file from java.
Currently we don't support reading file contents via drag and drop API.
We provide support in WebView for the following HTML5
Also refer to the attached FileReader.patch.