browser/devtools/framework/test/browser_toolbox_options_disable_js.html

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     1 <!DOCTYPE html>
     2 <html>
     3   <head>
     4     <title>browser_toolbox_options_disablejs.html</title>
     5     <meta charset="UTF-8">
     6     <style>
     7       div {
     8         width: 260px;
     9         height: 24px;
    10         border: 1px solid #000;
    11         margin-top: 10px;
    12       }
    14       iframe {
    15         height: 90px;
    16         border: 1px solid #000;
    17       }
    19       h1 {
    20         font-size: 20px
    21       }
    22     </style>
    23     <script type="application/javascript;version=1.8">
    24       function log(msg) {
    25         let output = document.getElementById("output");
    27         output.innerHTML = msg;
    28       }
    29     </script>
    30   </head>
    31   <body>
    32     <h1>Test in page</h1>
    33     <input id="logJSEnabled"
    34            type="button"
    35            value="Log JS Enabled"
    36            onclick="log('JavaScript Enabled')"/>
    37     <input id="logJSDisabled"
    38            type="button"
    39            value="Log JS Disabled"
    40            onclick="log('JavaScript Disabled')"/>
    41     <br>
    42     <div id="output">No output</div>
    43     <h1>Test in iframe</h1>
    44     <iframe src="browser_toolbox_options_disable_js_iframe.html"></iframe>
    45   </body>
    46 </html>

mercurial