Bug 795210 - intermittent failure of events/test_docload.xul, r=tbsaunde
authorAlexander Surkov <surkov.alexander@gmail.com>
Wed, 03 Oct 2012 20:11:39 +0900
changeset 109043 876ea6e98dd92d0cf2fe23c433d5eaee2e8c90ca
parent 109042 950e5705e8e9b0a2af65d0e906df0d9c7ad80958
child 109044 6f31bcbcdbf466f4fe2c1d9b903098ed057b2195
push id15817
push usersurkov.alexander@gmail.com
push dateWed, 03 Oct 2012 11:08:54 +0000
treeherdermozilla-inbound@876ea6e98dd9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstbsaunde
bugs795210
milestone18.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 795210 - intermittent failure of events/test_docload.xul, r=tbsaunde
accessible/tests/mochitest/events/test_docload.xul
--- a/accessible/tests/mochitest/events/test_docload.xul
+++ b/accessible/tests/mochitest/events/test_docload.xul
@@ -106,17 +106,18 @@
       this.unexpectedEventSeq = [
         new invokerChecker(EVENT_DOCUMENT_LOAD_COMPLETE, getNestedDoc),
         new invokerChecker(EVENT_STATE_CHANGE, getNestedDoc)
       ];
 
       function getNestedDoc()
       {
         var iframeNodes = currentTabDocument().getElementsByTagName("iframe");
-        return iframeNodes ? iframeNodes[0].firstChild : null;
+        return iframeNodes && iframeNodes.length > 0 ?
+          iframeNodes[0].firstChild : null;
       }
     }
 
     /**
      * Reload the page by F5 (isFromUserInput flag is true).
      */
     function userReloadInvoker()
     {