Closed Bug 603210 Opened 12 years ago Closed 12 years ago
Fix test: browser
_webconsole _bug _580030 _errors _after _page _reload .js
This test asserts and/or fails too often - needs a refactor. Have had to remove it from the webconsole suite.
Proposed test fix. Changes: - the DOMContentLoaded event is fired before load, and we are trying to reload the page before it completes the first load. Changed the code to use only the load event. - use executeSoon() in the onLoad event handler because we do not want to ask for reloading while the browser still executes the onload event handlers. We push the reload() call a bit later this way. - we use a synthetic MouseEvent that is not wrapped by xpcom, to workaround a bug in Gecko that prevents the logging of exceptions thrown in event handlers executed by synthetic events. - removed the output error line check, because that depends on UI localization and was unneeded. I don't know when this check was added. Afaik, it wasn't in the initial test I submitted. The test now runs fine in opt and debug builds.
Attachment #482822 - Flags: feedback?(ddahl)
Status: NEW → ASSIGNED
Attachment #482822 - Flags: feedback?(ddahl) → feedback+
Comment on attachment 482822 [details] [diff] [review] proposed test fix Thanks David for the feedback+! Asking for review now.
Comment on attachment 482822 [details] [diff] [review] proposed test fix Canceling review request - this only a test fix, and it seems reviews are not needed for such changes.
Adding checkin-needed, given it's only a test change.
Fix for compartments landing.
Attachment #482822 - Attachment is obsolete: true
Whiteboard: [patchclean:1013] → [patchclean:1018]
Comment on attachment 484019 [details] [diff] [review] [checked-in] rebased patch (fix for compartments) http://hg.mozilla.org/mozilla-central/rev/e695ac53ec47
Attachment #484019 - Attachment description: rebased patch (fix for compartments) → [checked-in] rebased patch (fix for compartments)
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.