|
1 <!DOCTYPE HTML> |
|
2 <html> |
|
3 <!-- |
|
4 https://bugzilla.mozilla.org/show_bug.cgi?id=968148 |
|
5 --> |
|
6 <head> |
|
7 <title>Test for Bug 968148</title> |
|
8 <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> |
|
9 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/> |
|
10 <script type="text/javascript;version=1.7"> |
|
11 function setRemoteFrame() { |
|
12 var iframe = document.getElementById("testFrame"); |
|
13 iframe.src = "bug968148_inner.html"; |
|
14 |
|
15 function messageListener(event) { |
|
16 eval(event.data); |
|
17 } |
|
18 |
|
19 window.addEventListener("message", messageListener, false); |
|
20 } |
|
21 |
|
22 function runTest() { |
|
23 SimpleTest.waitForExplicitFinish(); |
|
24 |
|
25 SpecialPowers.pushPrefEnv({ |
|
26 "set": [ |
|
27 ["dom.w3c_pointer_events.enabled", true] |
|
28 ] |
|
29 }, setRemoteFrame); |
|
30 } |
|
31 </script> |
|
32 </head> |
|
33 <body onload="runTest();"> |
|
34 <iframe id="testFrame" height="500" width="500"></iframe> |
|
35 </body> |
|
36 |