mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 827050 - Ignore do_get_profile() calls when made from a content process in xpcshell tests. r=jmaher
This commit is contained in:
parent
a2c970dddc
commit
380dbbcc74
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user