Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
1 <!DOCTYPE HTML>
2 <html dir="ltr" xml:lang="en-US" lang="en-US">
3 <head>
4 <meta charset="utf-8">
5 <script>
6 var _console = {
7 foo: "bar"
8 }
10 window.console = _console;
12 function loadIFrame() {
13 var iframe = document.body.querySelector("iframe");
14 iframe.addEventListener("load", function() {
15 iframe.removeEventListener("load", arguments.callee, true);
16 }, true);
18 iframe.setAttribute("src", "test-console.html");
19 }
20 </script>
21 </head>
22 <body>
23 <iframe></iframe>
24 </body>