Source code

Revision control

Copy as Markdown

Other Tools

Test Info: Warnings

<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="chrome://global/skin"?>
<?xml-stylesheet type="text/css" href="chrome://mochikit/content/tests/SimpleTest/test.css"?>
<!--
-->
<window title="Mozilla Bug 980023 "
<!-- test results are displayed in the html:body -->
target="_blank">Mozilla Bug 980023 </a>
</body>
<!-- test code goes here -->
<script type="application/javascript">
<![CDATA[
/** Test for localstorage access with expanded principal. **/
SimpleTest.waitForExplicitFinish();
function go() {
var iwin = document.getElementById('ifr').contentWindow;
var sb = new Cu.Sandbox([iwin], {sandboxPrototype: iwin});
Cu.evalInSandbox("window.localStorage.test_localstorage_with_nsEp = 3",sb);
is(Cu.evalInSandbox("window.localStorage.test_localstorage_with_nsEp",sb), "3");
is(iwin.localStorage.test_localstorage_with_nsEp, "3");
iwin.localStorage.removeItem("test_localstorage_with_nsEp");
SimpleTest.finish();
}
]]>
</script>
</window>