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.");