RFR: 8255940: localStorage is null after window.close() [v2]
Jay Bhaskar
duke at openjdk.java.net
Sun Feb 6 11:57:16 UTC 2022
On Sat, 5 Feb 2022 15:01:37 GMT, Kevin Rushforth <kcr at openjdk.org> wrote:
>> i think /tmp/java-store is ok, as it would not require cleanup
>
> No, it's not OK for two reasons:
>
> 1. It prevents concurrent execution of tests from two different directories
> 2. The Java temp directory might be something other than "/tmp" on some systems.
>
> Best is to use a local subdir under the build directory.
i am unable to find other test case which uses local sub-directory in the build dir so let me know i can use this
String defaultBaseDir = System.getProperty("java.io.tmpdir");
webEngine.setUserDataDirectory(new File(defaultBaseDir + "localstorage")
-------------
PR: https://git.openjdk.java.net/jfx/pull/703
More information about the openjfx-dev
mailing list