Bug 1086684 - Stash the full path for file inputs to avoid doing IPC at inopportune times. r=ehsan/bent/gps

This commit is contained in:
Blake Kaplan
2015-03-27 13:12:37 -07:00
parent a2a346563e
commit 794310be28
4 changed files with 34 additions and 5 deletions

View File

@@ -1254,6 +1254,7 @@ protected:
*/
nsTextEditorState* mState;
} mInputData;
/**
* The value of the input if it is a file input. This is the list of filenames
* used when uploading a file. It is vital that this is kept separate from
@@ -1266,6 +1267,13 @@ protected:
*/
nsTArray<nsRefPtr<File>> mFiles;
#ifndef MOZ_CHILD_PERMISSIONS
/**
* Hack for bug 1086684: Stash the .value when we're a file picker.
*/
nsString mFirstFilePath;
#endif
nsRefPtr<FileList> mFileList;
nsRefPtr<DirPickerFileListBuilderTask> mDirPickerFileListBuilderTask;