Closed Bug 609551 Opened 14 years ago Closed 13 years ago

Intermittent test_bug404320.html | [SimpleTest/SimpleTest.js, window.onerror] An error occurred - uncaught exception: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMNSHTMLDocument.execCommand]"

Categories

(Core :: DOM: Editor, defect)

x86
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Tracking Status
blocking2.0 --- -

People

(Reporter: philor, Assigned: ehsan.akhgari)

References

Details

(Keywords: intermittent-failure)

Attachments

(1 file)

http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1288838444.1288839359.27358.gz
Rev3 WINNT 6.1 mozilla-central opt test mochitests-1/5 on 2010/11/03 19:40:44
s: talos-r3-w7-012

55134 INFO TEST-START | /tests/content/html/document/test/test_bug404320.html
55135 ERROR TEST-UNEXPECTED-FAIL | /tests/content/html/document/test/test_bug404320.html | [SimpleTest/SimpleTest.js, window.onerror] An error occurred - uncaught exception: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMNSHTMLDocument.execCommand]"  nsresult: "0x80004005 (NS_ERROR_FAILURE)"  location: "JS frame :: http://mochi.test:8888/tests/content/html/document/test/test_bug404320.html :: testFormatBlock :: line 32"  data: no] at :0
55136 INFO TEST-END | /tests/content/html/document/test/test_bug404320.html | finished in 141ms
Component: DOM: Core & HTML → Editor
QA Contact: general → editor
http://tinderbox.mozilla.org/showlog.cgi?log=SeaMonkey/1291706625.1291709153.19853.gz
WINNT 5.2 comm-central-trunk debug test mochitests-1/5 on 2010/12/06 23:23:45
blocking2.0: --- → ?
Attached patch Patch (v1)Splinter Review
This test has some stuff which happen while the script tag is executing, specifically accessing's the iframe's contentDocument and contentWindow.  Those are not safe if the document has not yet fully loaded.  I bet this is the reason why the test fails intermittently.

This patch moves that stuff inside of runTest.  Note that almost all of this patch is indentation changes.
Assignee: nobody → ehsan
Status: NEW → ASSIGNED
Attachment #518913 - Flags: review?(roc)
http://hg.mozilla.org/mozilla-central/rev/415f9b51fc5c
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Whiteboard: [orange]
You need to log in before you can comment on or make changes to this bug.