tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

test_localStorageOriginsSchemaDiffs.html (1247B)


      1 <html xmlns="http://www.w3.org/1999/xhtml">
      2 <head>
      3 <title>localStorage different domains</title>
      4 
      5 <script src="/resources/testharness.js"></script>
      6 <script src="/resources/testharnessreport.js"></script>
      7 <script src="interOriginTest2.js"></script>
      8 
      9 <!--
     10  This test loads two frames from different
     11  origins and checks that entries of localStorage
     12  objects don't leak each between other.
     13 
     14  The subsystem is based on postMessage and addEventListener
     15  to send messages among different origins. The subsystem waits
     16  for both frames be loaded and then alternately calls each frames'
     17  doStep() function that on each call proceeds with a single step
     18  of the test on its side. This way the subsystem alternate between
     19  both frames until both sequences completely finish.
     20 -->
     21 
     22 <script type="text/javascript">
     23 
     24 function startTest()
     25 {
     26  masterFrameOrigin = "http://example.com";
     27  slaveFrameOrigin = "https://example.com";
     28 
     29  masterFrame.location = masterFrameOrigin + framePath + "frameMasterNotEqual.html";
     30  slaveFrame.location = slaveFrameOrigin + framePath + "frameSlaveNotEqual.html";
     31 }
     32 
     33 </script>
     34 
     35 </head>
     36 
     37 <body onload="startTest();">
     38  <iframe src="" name="masterFrame"></iframe>
     39  <iframe src="" name="slaveFrame"></iframe>
     40 </body>
     41 </html>