browser/components/sessionstore/test/browser_formdata_sample.html

Thu, 15 Jan 2015 15:59:08 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 15:59:08 +0100
branch
TOR_BUG_9701
changeset 10
ac0c01689b40
permissions
-rw-r--r--

Implement a real Private Browsing Mode condition by changing the API/ABI;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.

     1 <!DOCTYPE html>
     2 <html lang="en">
     3   <head>
     4     <meta charset="utf-8">
     5     <title>browser_formdata_sample.html</title>
     6   </head>
     7   <body>
     8     <input id="txt" />
    10     <script type="text/javascript;version=1.8">
    11       let isOuter = window == window.top;
    13       if (isOuter) {
    14         let iframe = document.createElement("iframe");
    15         iframe.setAttribute("src", "https://example.com" + location.pathname);
    16         document.body.appendChild(iframe);
    17       }
    18     </script>
    19   </body>
    20 </html>

mercurial