summaryrefslogtreecommitdiff
path: root/tools/fuzzing/libfuzzer/harness/LibFuzzerTestHarness.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/fuzzing/libfuzzer/harness/LibFuzzerTestHarness.h')
-rw-r--r--tools/fuzzing/libfuzzer/harness/LibFuzzerTestHarness.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/fuzzing/libfuzzer/harness/LibFuzzerTestHarness.h b/tools/fuzzing/libfuzzer/harness/LibFuzzerTestHarness.h
index 70321a5748..6ac2344e31 100644
--- a/tools/fuzzing/libfuzzer/harness/LibFuzzerTestHarness.h
+++ b/tools/fuzzing/libfuzzer/harness/LibFuzzerTestHarness.h
@@ -193,6 +193,14 @@ static class ScopedXPCOM : public nsIDirectoryServiceProvider2
}
greD->Clone(getter_AddRefs(mGREBinD));
+#ifdef XP_MACOSX
+ nsAutoCString leafName;
+ mGREBinD->GetNativeLeafName(leafName);
+ if (leafName.Equals("Resources")) {
+ mGREBinD->SetNativeLeafName(NS_LITERAL_CSTRING("MacOS"));
+ }
+#endif
+
nsCOMPtr<nsIFile> copy = mGREBinD;
return copy.forget();
}