Closed Bug 766112 Opened 12 years ago Closed 12 years ago

Intermittent accessible/events/test_docload.xul | uncaught JS exception - TypeError: currentTabDocument().getElementsByTagName("iframe")[0] is undefined at test_docload.xul:112 (and another)

Categories

(Core :: Disability Access APIs, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla18
Tracking Status
firefox17 --- fixed

People

(Reporter: emorley, Assigned: surkov)

References

Details

(Keywords: intermittent-failure)

Attachments

(1 file)

+++ This bug was initially created as a clone of Bug #759670 +++

Rev3 Fedora 12x64 fx-team opt test mochitest-other on 2012-06-18 03:25:06 PDT for push b1a0fb2bdbf7

slave: talos-r3-fed64-061

https://tbpl.mozilla.org/php/getParsedLog.php?id=12751054&tree=Fx-Team

{
3566 INFO TEST-START | chrome://mochitests/content/a11y/accessible/events/test_docload.xul
3567 INFO TEST-INFO | chrome://mochitests/content/a11y/accessible/events/test_docload.xul | must wait for load
3568 INFO TEST-INFO | chrome://mochitests/content/a11y/accessible/events/test_docload.xul | must wait for focus
3569 INFO TEST-INFO | chrome://mochitests/content/a11y/accessible/events/test_docload.xul | Invoke the 'load uri data:text/html,<html><body><iframe src='http://example.com'></iframe></body></html>' test { expected 'document load complete' event; expected 'state change' event; unexpected 'document load complete' event; unexpected 'state change' event;  }
3570 ERROR TEST-UNEXPECTED-FAIL | chrome://mochitests/content/a11y/accessible/events/test_docload.xul | an unexpected uncaught JS exception reported through window.onerror - TypeError: currentTabDocument().getElementsByTagName("iframe")[0] is undefined at chrome://mochitests/content/a11y/accessible/events/test_docload.xul:112
3571 ERROR TEST-UNEXPECTED-FAIL | chrome://mochitests/content/a11y/accessible/events/test_docload.xul | an unexpected uncaught JS exception reported through window.onerror - TypeError: currentTabDocument().getElementsByTagName("iframe")[0] is undefined at chrome://mochitests/content/a11y/accessible/events/test_docload.xul:112
3572 INFO TEST-END | chrome://mochitests/content/a11y/accessible/events/test_docload.xul | finished in 1739ms
3573 INFO TEST-START | chrome://mochitests/content/a11y/accessible/events/test_docload_aria.html
3574 INFO TEST-UNEXPECTED-FAIL | chrome://mochitests/content/a11y/accessible/events/test_docload_aria.html | finished in a non-clean fashion (in chrome://mochitests/content/a11y/accessible/events/test_docload.xul)
3575 INFO TEST-END | chrome://mochitests/content/a11y/accessible/events/test_docload_aria.html | finished in 8ms
}

...

{
3637 INFO TEST-UNEXPECTED-FAIL | chrome://mochitests/content/a11y/accessible/events/test_dragndrop.html | finished in a non-clean fashion (in chrome://mochitests/content/a11y/accessible/events/test_docload.xul)
3661 INFO TEST-UNEXPECTED-FAIL | chrome://mochitests/content/a11y/accessible/events/test_focus_aria_activedescendant.html | finished in a non-clean fashion (in chrome://mochitests/content/a11y/accessible/events/test_dragndrop.html)
}
https://tbpl.mozilla.org/php/getParsedLog.php?id=14454531&tree=Firefox (in the classic a11y style, with hundreds of fallout failures afterward)
Alex/Trevor, do you know when you'll be able to take a look at this? :-)
Backed out the logging from https://hg.mozilla.org/integration/mozilla-inbound/rev/fb49a2f819ad in https://hg.mozilla.org/integration/mozilla-inbound/rev/559c5895bad6 since the "firstFrame is not defined" exceptions were giving tens of thousands of test failures per run.
Whiteboard: [orange] → [orange][more logging via comment 101]
Whiteboard: [orange][more logging via comment 101] → [orange][leave open][more logging via comment 101]
https://hg.mozilla.org/mozilla-central/rev/1c2e9acb91a3
Assignee: nobody → surkov.alexander
Whiteboard: [orange][leave open][more logging via comment 101] → [orange][more logging via comment 101]
Attached patch patchSplinter Review
the log is:

registered: event type: document load complete, target: currentTabDocument, arg: undefined

registered: event type: state change, target: no target description

registered unexpected: event type: document load complete, target: getNestedDoc, arg: undefined

registered unexpected: event type: state change, target: getNestedDoc, arg: undefined

Event queue:
  invoke: load uri data:text/html,<html><body><iframe src='http://example.com'></iframe></body></html>
3642 INFO TEST-INFO | chrome://mochitests/content/a11y/accessible/events/test_docload.xul | Invoke the 'load uri data:text/html,<html><body><iframe src='http://example.com'></iframe></body></html>' test { expected 'document load complete' event; expected 'state change' event; unexpected 'document load complete' event; unexpected 'state change' event;  }

Event type: state change. Target: ['toolbarbutton@id="urlbar-reload-button" node', address: [object XULElement], role: pushbutton, name: 'Location', address: [xpconnect wrapped nsIAccessible]]. Listeners count: 1
3643 ERROR TEST-UNEXPECTED-FAIL | chrome://mochitests/content/a11y/accessible/events/test_docload.xul | an unexpected uncaught JS exception reported through window.onerror - TypeError: currentTabDocument(...).getElementsByTagName(...)[0] is undefined at chrome://mochitests/content/a11y/accessible/events/test_docload.xul:112

the fail cause: when this state change event triggers the tested document is not loaded yet so we can't get a target to compare with a target of handled event.
Attachment #664385 - Flags: review?(trev.saunders)
Whiteboard: [orange][more logging via comment 101] → [orange][logging via comment 101]
Attachment #664385 - Flags: review?(trev.saunders) → review+
http://hg.mozilla.org/integration/mozilla-inbound/rev/4a080f2c3091
Whiteboard: [orange][logging via comment 101] → [orange]
Target Milestone: --- → mozilla18
https://hg.mozilla.org/mozilla-central/rev/4a080f2c3091
Status: NEW → RESOLVED
Closed: 12 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Blocks: 795210
Whiteboard: [orange]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: