RFR: 8255940: localStorage is null after window.close() [v9]

Andreas Müller duke at openjdk.java.net
Mon Mar 7 17:23:19 UTC 2022


On Fri, 4 Mar 2022 16:55:48 GMT, Jay Bhaskar <jbhaskar at openjdk.org> wrote:

>> Issue: The current implementation of DOMWindow ::localStorage(..) returns null pointer in case of page is being closed. 
>> Fix: It should not return nullptr , as per the [w3c web storage spec](https://www.w3.org/TR/2016/REC-webstorage-20160419/) 
>> "User agents should expire data from the local storage areas only for security reasons or when requested to do so by the user. User agents should always avoid deleting data while a script that could access that data is running."
>
> Jay Bhaskar has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Added review change JAVA

Thanks, the fix is working great for me. And, sorry, this is probably the wrong channel for this, but will this fix be considered to be backported (11/17)? I could not figure out how to properly request that, if I could do that at all.

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

PR: https://git.openjdk.java.net/jfx/pull/703


More information about the openjfx-dev mailing list