add sandbox property indicating whether test plugin is present

RESOLVED FIXED in mozilla1.9.2a1

Status

RESOLVED FIXED
10 years ago
10 years ago

People

(Reporter: ted, Unassigned)

Tracking

Trunk
mozilla1.9.2a1
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

Created attachment 357341 [details] [diff] [review]
add haveTestPlugin property to sandbox

In bug 473577 I'm making Josh's new test plugin usable for reftests, and I have some basic reftests to go along with it. I'd like them to be conditional on the test plugin being available. dbaron suggested I could check MOZ_PLUGINS=="1", but I think we can be even cleverer and add a sandbox property that says specifically that our test plugin is present, since the tests don't just require plugins, they require this specific plugin.
Attachment #357341 - Flags: review?(dbaron)
Comment on attachment 357341 [details] [diff] [review]
add haveTestPlugin property to sandbox

>+    sandbox.haveTestPlugin = 0;

>+            sandbox.haveTestPlugin = 1;

r=dbaron if you use false/true rather than 0/1.
Pushed to m-c:
http://hg.mozilla.org/mozilla-central/rev/2de42ef0e5a9
Status: NEW → RESOLVED
Last Resolved: 10 years ago
Resolution: --- → FIXED
Is there any reason not to land this on m-1.9.1?
Target Milestone: --- → mozilla1.9.2a1
Version: unspecified → Trunk
You need to log in before you can comment on or make changes to this bug.