Changeset 120667 in webkit
- Timestamp:
- Jun 18, 2012 9:13:44 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 8 added
- 21 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r120666 r120667 1 2012-06-12 Kinuko Yasuda <kinuko@chromium.org> 2 3 Support File/DirectoryEntry access for <input type=file> if FileSystem API is enabled 4 https://bugs.webkit.org/show_bug.cgi?id=88293 5 6 Reviewed by Tony Chang. 7 8 * fast/forms/file/input-file-entries-expected.txt: Added. 9 * fast/forms/file/input-file-entries.html: Added. 10 * fast/forms/resources/dir1/UTF8-2.txt: Added. 11 * fast/forms/resources/dir1/UTF8.txt: Added. 12 * fast/forms/resources/dir2/green.jpg: Added. 13 * platform/efl/Skipped: 14 * platform/efl/TestExpectations: 15 * platform/gtk/TestExpectations: 16 * platform/mac/Skipped: 17 * platform/qt/Skipped: 18 * platform/win/Skipped: 19 * platform/wincairo/Skipped: 20 * platform/wk2/Skipped: 21 1 22 2012-06-18 Shinya Kawanaka <shinyak@chromium.org> 2 23 -
trunk/LayoutTests/platform/efl/Skipped
r120645 r120667 1133 1133 fast/forms/file/file-input-capture.html 1134 1134 1135 # Requires ENABLE(FILE_SYSTEM) 1136 fast/forms/file/input-file-entries.html 1137 1135 1138 # Transparent image being produced 1136 1139 fast/frames/transparent-scrollbar.html -
trunk/LayoutTests/platform/efl/TestExpectations
r120654 r120667 219 219 BUGWK84333 : fast/forms/file/get-file-upload.html = TEXT 220 220 BUGWK84333 : fast/forms/file/input-file-directory-upload.html = TEXT 221 BUGWK84333 : fast/forms/file/input-file-entries.html = TEXT 221 222 BUGWK84333 : fast/forms/file/input-file-re-render.html = MISSING 222 223 BUGWK84333 : fast/forms/file/input-file-write-files.html = TEXT -
trunk/LayoutTests/platform/gtk/TestExpectations
r120645 r120667 160 160 BUGWKGTK SKIP : http/tests/workers/terminate-during-sync-operation.html = TEXT 161 161 BUGWKGTK SKIP : fast/mutation/filesystem-callback-delivery.html = TEXT 162 BUGWKGTK SKIP : fast/forms/file/input-file-entries.html = TEXT 162 163 163 164 // Requires WebP support. -
trunk/LayoutTests/platform/mac/Skipped
r120645 r120667 244 244 fast/forms/file/input-file-directory-upload.html 245 245 246 # Requires ENABLE(FILE_SYSTEM) 247 fast/forms/file/input-file-entries.html 248 246 249 # Web Timing is not enabled. 247 250 # https://bugs.webkit.org/show_bug.cgi?id=42434 -
trunk/LayoutTests/platform/qt/Skipped
r120645 r120667 100 100 # ENABLE(DIRECTORY_UPLOAD) is disabled. 101 101 fast/forms/file/input-file-directory-upload.html 102 103 # ENABLE(FILE_SYSTEM) is disabled. 104 fast/forms/file/input-file-entries.html 102 105 103 106 # ENABLE(INDEXED_DATABASE) is disabled. -
trunk/LayoutTests/platform/win/Skipped
r120645 r120667 260 260 fast/forms/file/file-reset-in-change.html 261 261 fast/forms/file/input-file-directory-upload.html 262 fast/forms/file/input-file-entries.html 262 263 fast/forms/file/input-file-re-render.html 263 264 fast/forms/file/recover-file-input-in-unposted-form.html -
trunk/LayoutTests/platform/wincairo/Skipped
r120645 r120667 1809 1809 http/tests/websocket/tests/hybi/send-file-blob-fail.html 1810 1810 fast/mutation/filesystem-callback-delivery.html 1811 fast/forms/file/input-file-entries.html 1811 1812 1812 1813 # LayoutTestController::nodesFromRect is not supported. -
trunk/LayoutTests/platform/wk2/Skipped
r120645 r120667 1398 1398 fast/forms/file/get-file-upload.html 1399 1399 fast/forms/file/input-file-re-render.html 1400 fast/forms/file/input-file-entries.html 1400 1401 fast/forms/file/recover-file-input-in-unposted-form.html 1401 1402 http/tests/local/fileapi/file-last-modified-after-delete.html -
trunk/Source/WebCore/ChangeLog
r120666 r120667 1 2012-06-12 Kinuko Yasuda <kinuko@chromium.org> 2 3 Support File/DirectoryEntry access for <input type=file> if FileSystem API is enabled 4 https://bugs.webkit.org/show_bug.cgi?id=88293 5 6 Reviewed by Tony Chang. 7 8 Proposal email on whatwg: http://lists.whatwg.org/pipermail/whatwg-whatwg.org/2011-November/033814.html 9 Proposal draft: http://wiki.whatwg.org/wiki/DragAndDropEntries 10 11 Test: fast/forms/file/input-file-entries.html 12 13 * Modules/filesystem/HTMLInputElementFileSystem.cpp: Added. 14 * Modules/filesystem/HTMLInputElementFileSystem.h: Added. 15 * Modules/filesystem/HTMLInputElementFileSystem.idl: Added. 16 * WebCore.gypi: 17 * html/FileInputType.cpp: 18 (WebCore::FileInputType::receiveDroppedFiles): Retrieves dropped file 19 system Id if the given DragData has it. 20 (WebCore::FileInputType::droppedFileSystemId): Added. This returns 21 dropped file system Id retrieved in receiveDroppedFiles, or an empty 22 string if the platform does not support isolated file system for 23 dropped files. 24 * html/FileInputType.h: 25 * html/HTMLInputElement.cpp: 26 (WebCore::HTMLInputElement::droppedFileSystemId): Added. 27 * html/HTMLInputElement.h: 28 * html/InputType.cpp: 29 (WebCore::InputType::droppedFileSystemId): Added. 30 * html/InputType.h: 31 * platform/DragData.cpp: 32 * platform/DragData.h: 33 * platform/chromium/DragDataChromium.cpp: 34 (WebCore::DragData::droppedFileSystemId): Added. 35 1 36 2012-06-18 Shinya Kawanaka <shinyak@chromium.org> 2 37 -
trunk/Source/WebCore/Modules/filesystem/DOMFileSystem.cpp
r120645 r120667 65 65 PassRefPtr<DOMFileSystem> DOMFileSystem::createIsolatedFileSystem(ScriptExecutionContext* context, const String& filesystemId) 66 66 { 67 if (filesystemId.isEmpty()) 68 return 0; 69 67 70 StringBuilder filesystemName; 68 71 filesystemName.append(context->securityOrigin()->databaseIdentifier()); 69 filesystemName.append(":"); 70 filesystemName.append(isolatedPathPrefix); 71 filesystemName.append("_"); 72 filesystemName.append(":Isolated_"); 72 73 filesystemName.append(filesystemId); 73 74 -
trunk/Source/WebCore/WebCore.gypi
r120645 r120667 786 786 'Modules/filesystem/FileWriterCallback.idl', 787 787 'Modules/filesystem/FileWriterSync.idl', 788 'Modules/filesystem/HTMLInputElementFileSystem.idl', 788 789 'Modules/filesystem/Metadata.idl', 789 790 'Modules/filesystem/MetadataCallback.idl', … … 1413 1414 'Modules/filesystem/FileWriterSync.cpp', 1414 1415 'Modules/filesystem/FileWriterSync.h', 1416 'Modules/filesystem/HTMLInputElementFileSystem.cpp', 1417 'Modules/filesystem/HTMLInputElementFileSystem.h', 1415 1418 'Modules/filesystem/LocalFileSystem.cpp', 1416 1419 'Modules/filesystem/LocalFileSystem.h', -
trunk/Source/WebCore/html/FileInputType.cpp
r120645 r120667 408 408 #endif 409 409 410 #if ENABLE(FILE_SYSTEM) 411 m_droppedFileSystemId = dragData->droppedFileSystemId(); 412 #endif 413 410 414 Vector<FileChooserFileInfo> files; 411 415 for (unsigned i = 0; i < paths.size(); ++i) … … 422 426 } 423 427 428 #if ENABLE(FILE_SYSTEM) 429 String FileInputType::droppedFileSystemId() 430 { 431 return m_droppedFileSystemId; 432 } 433 #endif 434 424 435 Icon* FileInputType::icon() const 425 436 { -
trunk/Source/WebCore/html/FileInputType.h
r120645 r120667 65 65 virtual void setValue(const String&, bool valueChanged, TextFieldEventBehavior) OVERRIDE; 66 66 virtual bool receiveDroppedFiles(const DragData*) OVERRIDE; 67 #if ENABLE(FILE_SYSTEM) 68 virtual String droppedFileSystemId() OVERRIDE; 69 #endif 67 70 virtual Icon* icon() const OVERRIDE; 68 71 virtual bool isFileUpload() const OVERRIDE; … … 85 88 RefPtr<FileList> m_fileList; 86 89 RefPtr<Icon> m_icon; 90 91 #if ENABLE(FILE_SYSTEM) 92 String m_droppedFileSystemId; 93 #endif 87 94 }; 88 95 -
trunk/Source/WebCore/html/HTMLInputElement.cpp
r120645 r120667 1236 1236 } 1237 1237 1238 #if ENABLE(FILE_SYSTEM) 1239 String HTMLInputElement::droppedFileSystemId() 1240 { 1241 return m_inputType->droppedFileSystemId(); 1242 } 1243 #endif 1244 1238 1245 Icon* HTMLInputElement::icon() const 1239 1246 { -
trunk/Source/WebCore/html/HTMLInputElement.h
r120645 r120667 220 220 bool receiveDroppedFiles(const DragData*); 221 221 222 #if ENABLE(FILE_SYSTEM) 223 String droppedFileSystemId(); 224 #endif 225 222 226 Icon* icon() const; 223 227 // These functions are used for rendering the input active during a -
trunk/Source/WebCore/html/InputType.cpp
r120645 r120667 678 678 } 679 679 680 #if ENABLE(FILE_SYSTEM) 681 String InputType::droppedFileSystemId() 682 { 683 ASSERT_NOT_REACHED(); 684 return String(); 685 } 686 #endif 687 680 688 Icon* InputType::icon() const 681 689 { -
trunk/Source/WebCore/html/InputType.h
r120645 r120667 236 236 // Should return true if the given DragData has more than one dropped files. 237 237 virtual bool receiveDroppedFiles(const DragData*); 238 #if ENABLE(FILE_SYSTEM) 239 virtual String droppedFileSystemId(); 240 #endif 238 241 virtual Icon* icon() const; 239 242 // Should return true if the corresponding renderer for a type can display a suggested value. -
trunk/Source/WebCore/platform/DragData.cpp
r120645 r120667 71 71 return keyState; 72 72 } 73 74 #if ENABLE(FILE_SYSTEM) 75 String DragData::droppedFileSystemId() const 76 { 77 return String(); 78 } 73 79 #endif 74 80 #endif 75 81 76 82 } // namespace WebCore 77 83 84 78 85 #endif // ENABLE(DRAG_SUPPORT) -
trunk/Source/WebCore/platform/DragData.h
r120645 r120667 124 124 #endif 125 125 126 #if ENABLE(FILE_SYSTEM) 127 String droppedFileSystemId() const; 128 #endif 129 126 130 #if PLATFORM(QT) || PLATFORM(GTK) 127 131 // This constructor should used only by WebKit2 IPC because DragData … … 157 161 158 162 #endif // !DragData_h 159 -
trunk/Source/WebCore/platform/chromium/DragDataChromium.cpp
r120645 r120667 43 43 #include <public/Platform.h> 44 44 #include <public/WebFileUtilities.h> 45 46 #if ENABLE(FILE_SYSTEM) 47 #include "DraggedIsolatedFileSystem.h" 48 #endif 45 49 46 50 namespace WebCore { … … 163 167 } 164 168 169 #if ENABLE(FILE_SYSTEM) 170 String DragData::droppedFileSystemId() const 171 { 172 DraggedIsolatedFileSystem* filesystem = DraggedIsolatedFileSystem::from(m_platformDragData); 173 if (!filesystem) 174 return String(); 175 return filesystem->filesystemId(); 176 } 177 #endif 178 179 165 180 } // namespace WebCore
Note: See TracChangeset
for help on using the changeset viewer.