RFR: 8255940: localStorage is null after window.close() [v3]
Jay Bhaskar
duke at openjdk.java.net
Mon Feb 7 08:17:20 UTC 2022
On Sun, 6 Feb 2022 11:54:14 GMT, Jay Bhaskar <duke at openjdk.java.net> wrote:
>> 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")
I have updated your suggestions and used local dir for setUserDataDirectory
-------------
PR: https://git.openjdk.java.net/jfx/pull/703
More information about the openjfx-dev
mailing list