toolkit/devtools/server/tests/browser/storage-unsecured-iframe.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/toolkit/devtools/server/tests/browser/storage-unsecured-iframe.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,25 @@
     1.4 +<!DOCTYPE HTML>
     1.5 +<html>
     1.6 +<!--
     1.7 +Iframe for testing multiple host detetion in storage actor
     1.8 +-->
     1.9 +<head>
    1.10 +  <meta charset="utf-8">
    1.11 +</head>
    1.12 +<body>
    1.13 +<script>
    1.14 +
    1.15 +document.cookie = "uc1=foobar; domain=.example.org; path=/; secure=true";
    1.16 +localStorage.setItem("iframe-u-ls1", "foobar");
    1.17 +sessionStorage.setItem("iframe-u-ss1", "foobar1");
    1.18 +sessionStorage.setItem("iframe-u-ss2", "foobar2");
    1.19 +console.log("added cookies and stuff from unsecured iframe");
    1.20 +
    1.21 +window.onunload = function() {
    1.22 +  localStorage.clear();
    1.23 +  sessionStorage.clear();
    1.24 +  console.log("removed cookies and stuff from unsecured iframe");
    1.25 +}
    1.26 +</script>
    1.27 +</body>
    1.28 +</html>

mercurial