summaryrefslogtreecommitdiffstats
path: root/browser/components/sessionstore/test/browser_formdata_sample.html
blob: 6cbb54fb5bbc61cd59bc459fda1533d14076ff22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>browser_formdata_sample.html</title>
  </head>
  <body>
    <input id="txt" />

    <script type="text/javascript;version=1.8">
      let isOuter = window == window.top;

      if (isOuter) {
        let iframe = document.createElement("iframe");
        iframe.setAttribute("src", "https://example.com" + location.pathname);
        document.body.appendChild(iframe);
      }
    </script>
  </body>
</html>