mirror of
https://github.com/roytam1/palemoon27.git
synced 2026-06-10 02:18:57 +00:00
2969f099a1
- 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
20 lines
452 B
HTML
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> |