Changeset 52660 in webkit
- Timestamp:
- Dec 30, 2009 6:58:29 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r52656 r52660 1 2009-12-30 Jakub Wieczorek <faw217@gmail.com> 2 3 Reviewed by Simon Hausmann. 4 5 [Qt] Fix PluginView::handlePostReadFile(). 6 https://bugs.webkit.org/show_bug.cgi?id=33052 7 8 The function should actually rewrite the given file to the buffer. 9 10 This change fixes http/tests/plugins/post-url-file.html, which can be unskipped 11 now along with other passing http/plugins tests. 12 13 * platform/qt/Skipped: 14 1 15 2009-12-30 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> 2 16 -
trunk/LayoutTests/platform/qt/Skipped
r52634 r52660 22 22 http/tests/incremental 23 23 http/tests/media 24 http/tests/plugins25 24 http/tests/webarchive 26 25 http/tests/wml … … 35 34 http/tests/loading/simple-subframe.html 36 35 http/tests/loading/text-content-type-with-binary-extension.html 36 37 # Failing plugins tests 38 http/tests/plugins/npapi-response-headers.html 37 39 38 40 # Failing Local tests -
trunk/WebCore/ChangeLog
r52657 r52660 1 2009-12-30 Jakub Wieczorek <faw217@gmail.com> 2 3 Reviewed by Simon Hausmann. 4 5 [Qt] Fix PluginView::handlePostReadFile(). 6 https://bugs.webkit.org/show_bug.cgi?id=33052 7 8 The function should actually rewrite the given file to the buffer. 9 10 This change fixes http/tests/plugins/post-url-file.html, which can be unskipped 11 now along with other passing http/plugins tests. 12 13 * plugins/qt/PluginViewQt.cpp: 14 (WebCore::PluginView::handlePostReadFile): 15 1 16 2009-12-30 Holger Hans Peter Freyther <zecke@selfish.org> 2 17 -
trunk/WebCore/plugins/qt/PluginViewQt.cpp
r52319 r52660 530 530 filename = filename.substring(8); 531 531 532 if (!fileExists(filename)) 532 long long size; 533 if (!getFileSize(filename, size)) 533 534 return NPERR_FILE_NOT_FOUND; 534 535 535 // FIXME - read the file data into buffer536 536 FILE* fileHandle = fopen((filename.utf8()).data(), "r"); 537 538 537 if (!fileHandle) 539 538 return NPERR_FILE_NOT_FOUND; 540 539 541 //buffer.resize(); 542 543 int bytesRead = fread(buffer.data(), 1, 0, fileHandle); 540 buffer.resize(size); 541 int bytesRead = fread(buffer.data(), 1, size, fileHandle); 544 542 545 543 fclose(fileHandle);
Note: See TracChangeset
for help on using the changeset viewer.