Bug 827050 - Ignore do_get_profile() calls when made from a content process in xpcshell tests. r=jmaher

This commit is contained in:
Mounir Lamouri 2013-01-08 15:13:44 +00:00
parent a2c970dddc
commit 380dbbcc74

View File

@ -738,6 +738,11 @@ function do_register_cleanup(aFunction)
* @return nsILocalFile of the profile directory.
*/
function do_get_profile() {
if (!runningInParent) {
_dump("TEST-INFO | (xpcshell/head.js) | Ignoring profile creation from child process.\n");
return null;
}
if (!_profileInitialized) {
// Since we have a profile, we will notify profile shutdown topics at
// the end of the current test, to ensure correct cleanup on shutdown.