Commit 3a1bf871 authored by Dmitry Rozhkov's avatar Dmitry Rozhkov

fix message name in nsFilePicker

parent 3e49333e
......@@ -198,7 +198,7 @@ NS_IMETHODIMP nsEmbedFilePicker::Show(int16_t* _retval)
rv = NS_ERROR_UNEXPECTED;
}
}
mService->RemoveMessageListener("promptresponse", this);
mService->RemoveMessageListener("filepickerresponse", this);
uint32_t winid;
mService->GetIDByWindow(mWin, &winid);
......@@ -312,7 +312,7 @@ nsEmbedFilePicker::OnMessageReceived(const char* messageName, const char16_t* me
if (mCallback) {
mCallback->Done(nsIFilePicker::returnOK);
mCallback = nullptr;
mService->RemoveMessageListener("promptresponse", this);
mService->RemoveMessageListener("filepickerresponse", this);
}
else {
mModalDepth--;
......@@ -401,4 +401,4 @@ nsEmbedFilePicker::GetDomfiles(nsISimpleEnumerator * *aDomfiles)
retIter.forget(aDomfiles);
return NS_OK;
}
\ No newline at end of file
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment