Integrated: 8255940: localStorage is null after window.close()

Jay Bhaskar jbhaskar at openjdk.java.net
Sat Mar 5 14:45:12 UTC 2022


On Mon, 27 Dec 2021 09:31:08 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."

This pull request has now been integrated.

Changeset: 5112be95
Author:    Jay Bhaskar <jbhaskar at openjdk.org>
Committer: Kevin Rushforth <kcr at openjdk.org>
URL:       https://git.openjdk.java.net/jfx/commit/5112be957be70dd6521e6fb6ee64e669c148729c
Stats:     168 lines in 4 files changed: 167 ins; 0 del; 1 mod

8255940: localStorage is null after window.close()

Reviewed-by: kcr, arapte

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

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


More information about the openjfx-dev mailing list