Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script type="application/javascript">
5 window.addEventListener('message', doContentTest);
7 function doContentTest() {
9 // This has always worked.
10 var nodelist1 = document.getElementsByTagName('details');
11 Object.getOwnPropertyDescriptor(nodelist1, 'length');
12 ok(nodelist1['length'] == 0, "Content should be able to get the length of " +
13 "its own nodelist after calling getOwnPropertyDescriptor.");
15 // This is bug 706301.
16 var nodelist2 = document.getElementsByTagName('section');
17 ok(getLengthInChrome(nodelist2), "Chrome should be able to get the length of " +
18 "content nodelist after calling getOwnPropertyDescriptor.");
20 // All done.
21 finishTestInChrome();
22 }
23 </script>
24 </head>
25 <body>
26 </body>
27 </html>