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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user