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>
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>