Bug 1863044 - remove unneeded variable and associated MOZ_ASSERT r=ipc-reviewers,nika

`mFileDialogInstance` is not needed, since we don't reuse old file-
dialog actors. (We _do_ reuse active file-dialog utility processes as
hosts for those actors; this check is a leftover from when that was
expected not to be the case.)

Differential Revision: https://phabricator.services.mozilla.com/D192983
This commit is contained in:
Ray Kraesig 2023-11-08 17:25:57 +00:00
parent 5e55c7effe
commit e722e487bb
2 changed files with 0 additions and 5 deletions

View File

@ -310,9 +310,6 @@ mozilla::ipc::IPCResult UtilityProcessChild::RecvStartWinFileDialogService(
"UtilityProcessChild::RecvStartWinFileDialogService", OTHER,
MarkerOptions(MarkerTiming::IntervalUntilNowFrom(mChildStartTime)));
MOZ_RELEASE_ASSERT(!mFileDialogInstance,
"attempted to double-start file dialog service");
auto instance = MakeRefPtr<widget::filedialog::WinFileDialogChild>();
if (!instance) {
return IPC_FAIL(this, "Failed to create WinFileDialogChild");
@ -323,7 +320,6 @@ mozilla::ipc::IPCResult UtilityProcessChild::RecvStartWinFileDialogService(
return IPC_FAIL(this, "Failed to bind created WinFileDialogChild");
}
mFileDialogInstance = std::move(instance);
return IPC_OK();
}

View File

@ -100,7 +100,6 @@ class UtilityProcessChild final : public PUtilityProcessChild {
RefPtr<dom::JSOracleChild> mJSOracleInstance{};
#ifdef XP_WIN
RefPtr<PWindowsUtilsChild> mWindowsUtilsInstance;
RefPtr<PWinFileDialogChild> mFileDialogInstance;
#endif
AsyncBlockers mShutdownBlockers;