|
1 <!DOCTYPE HTML> |
|
2 <html> |
|
3 <!-- |
|
4 https://bugzilla.mozilla.org/show_bug.cgi?id=411966 |
|
5 --> |
|
6 <head> |
|
7 <title>Test for Bug 411966</title> |
|
8 <script type="text/javascript" src="http://mochi.test:8888/tests/SimpleTest/SimpleTest.js"></script> |
|
9 <script type="text/javascript" src="http://mochi.test:8888/tests/toolkit/components/places/tests/mochitest/bug_411966/redirect.js"></script> |
|
10 <link rel="stylesheet" type="text/css" href="http://mochi.test:8888/tests/SimpleTest/test.css" /> |
|
11 </head> |
|
12 <body> |
|
13 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=411966"> |
|
14 Mozilla Bug 411966</a> |
|
15 <p id="display"></p> |
|
16 <div id="content" style="display: none"> |
|
17 <iframe id="iframe"></iframe> |
|
18 </div> |
|
19 <pre id="test"> |
|
20 <script class="testbody" type="text/javascript"> |
|
21 |
|
22 /** Test for Bug 411966 **/ |
|
23 addVisits(typedURI, function() { |
|
24 histsvc.markPageAsTyped(typedURI); |
|
25 |
|
26 var clickedLinkChannel = ios.newChannelFromURI(clickedLinkURI); |
|
27 clickedLinkChannel.QueryInterface(Ci.nsIHttpChannel).referrer = typedURI; |
|
28 var listener = new StreamListener(clickedLinkChannel, checkDB); |
|
29 clickedLinkChannel.notificationCallbacks = listener; |
|
30 clickedLinkChannel.asyncOpen(listener, null); |
|
31 }); |
|
32 |
|
33 SimpleTest.waitForExplicitFinish(); |
|
34 |
|
35 </script> |
|
36 </pre> |
|
37 </body> |
|
38 </html> |