diff --git a/toolkit/components/osfile/modules/osfile_async_front.jsm b/toolkit/components/osfile/modules/osfile_async_front.jsm index c564c831bd68..181471cd8171 100644 --- a/toolkit/components/osfile/modules/osfile_async_front.jsm +++ b/toolkit/components/osfile/modules/osfile_async_front.jsm @@ -1525,10 +1525,9 @@ function setupShutdown(phaseName) { ); } - -if (isContent) { - setupShutdown("contentChildShutdown"); -} else { +// profile-before-change only exists in the parent, and OS.File should +// not be used in the child process anyways. +if (!isContent) { setupShutdown("profileBeforeChange") } File.shutdown = Barriers.shutdown.client;