rv = filePicker->Init(aParentWindow, NS_LITERAL_STRING("Open HTML").get(),
rv = filePicker->Init(aParentWindow, NS_LITERAL_STRING("Open HTML"),
static PRBool GetFileFromFileSelector(nsIDOMWindowInternal* aParentWindow,                                      nsILocalFile **aFile,                                      nsILocalFile **aDisplayDirectory){  nsresult rv;  nsCOMPtr<nsIFilePicker> filePicker = do_CreateInstance("@mozilla.org/filepicker;1");  if (filePicker) {    rv = filePicker->Init(aParentWindow, NS_LITERAL_STRING("Open HTML").get(),                          nsIFilePicker::modeOpen);    if (NS_SUCCEEDED(rv)) {      filePicker->AppendFilters(nsIFilePicker::filterAll | nsIFilePicker::filterHTML |                                nsIFilePicker::filterXML | nsIFilePicker::filterImages);      if (*aDisplayDirectory)        filePicker->SetDisplayDirectory(*aDisplayDirectory);            PRInt16 dialogResult;      rv = filePicker->Show(&dialogResult);      if (NS_FAILED(rv) || dialogResult == nsIFilePicker::returnCancel)        return PR_FALSE;      filePicker->GetFile(aFile);      if (*aFile) {        NS_IF_RELEASE(*aDisplayDirectory);        filePicker->GetDisplayDirectory(aDisplayDirectory);        return PR_TRUE;      }    }  }