Files
palemoon27/dom/tests/mochitest/localstorage/frameLocalStorageCookieSettings.html
T
Pale Moon 2969f099a1 Make DOM storage from 3rd parties honor 3rd party cookie setting.
- restricts usage of DOM storage by 3rd parties if the use has set 3rd party cookies to be blocked.
- extends "cookie-like" handling for DOM storage to enhance privacy and combat cross-origin tracking.

This resolves #860
2018-07-25 06:42:59 +08:00

20 lines
452 B
HTML

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>localStorage cookies settings test</title>
<script type="text/javascript" src="interOriginFrame.js"></script>
</head>
<body>
<script type="text/javascript">
try {
localStorage.setItem("contentkey", "test-value");
ok(false, "Setting localStorageItem should throw a security exception");
} catch(ex) {
is(ex.name, "SecurityError");
}
finishTest();
</script>
</body>
</html>