mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-07 11:56:51 +00:00
Bug 824923 - Stablize WebRTC mochitests against Javascript exceptions to prevent timeouts. r=jesup
This commit is contained in:
parent
951234cefc
commit
1b3fd919f0
@ -24,8 +24,14 @@ function runTest(aCallback, desktopSupportedOnly) {
|
||||
ok(true, navigator.userAgent + ' currently not supported');
|
||||
SimpleTest.finish();
|
||||
} else {
|
||||
SpecialPowers.pushPrefEnv({'set': [['media.peerconnection.enabled', true]]},
|
||||
aCallback);
|
||||
SpecialPowers.pushPrefEnv({'set': [['media.peerconnection.enabled', true]]}, function () {
|
||||
try {
|
||||
aCallback();
|
||||
}
|
||||
catch (err) {
|
||||
unexpectedCallbackAndFinish(err);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user