Closed Bug 570328 Opened 14 years ago Closed 14 years ago

make SimpleTest.executeSoon work on Gecko browsers in non-mochitest profiles

Categories

(Testing :: Mochitest, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla1.9.3a5

People

(Reporter: dbaron, Assigned: dbaron)

Details

Attachments

(1 file)

Attached patch patchSplinter Review
Much of our mochitests in many cases work fine on other browsers, which is often quite useful when writing mochitests for Web standards features.  However, tests that use executeSoon (which I think may mean all tests now, although I'm not sure), don't work on Gecko browsers not run from the mochitest harness itself.  I often find it useful to run mochitests in a browsers not within the harness (especially to check if a test that I just wrote fails without my patch; I can just run it in the browser that I'm using).

So this fixes executeSoon so that its fallback codepath works when enablePrivilege fails (in addition to when Components.classes doesn't exist).
Attachment #449461 - Flags: review?(jwalden+bmo)
Attachment #449461 - Flags: review?(jwalden+bmo) → review+
http://hg.mozilla.org/mozilla-central/rev/e89ae2aa45eb
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9.3a5
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: