Changeset 52660 in webkit


Ignore:
Timestamp:
Dec 30, 2009 6:58:29 AM (14 years ago)
Author:
eric@webkit.org
Message:

2009-12-30 Jakub Wieczorek <faw217@gmail.com>

Reviewed by Simon Hausmann.

[Qt] Fix PluginView::handlePostReadFile().
https://bugs.webkit.org/show_bug.cgi?id=33052

The function should actually rewrite the given file to the buffer.

This change fixes http/tests/plugins/post-url-file.html, which can be unskipped
now along with other passing http/plugins tests.

  • plugins/qt/PluginViewQt.cpp: (WebCore::PluginView::handlePostReadFile):

2009-12-30 Jakub Wieczorek <faw217@gmail.com>

Reviewed by Simon Hausmann.

[Qt] Fix PluginView::handlePostReadFile().
https://bugs.webkit.org/show_bug.cgi?id=33052

The function should actually rewrite the given file to the buffer.

This change fixes http/tests/plugins/post-url-file.html, which can be unskipped
now along with other passing http/plugins tests.

  • platform/qt/Skipped:
Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r52656 r52660  
     12009-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
    1152009-12-30  Gustavo Noronha Silva  <gustavo.noronha@collabora.co.uk>
    216
  • trunk/LayoutTests/platform/qt/Skipped

    r52634 r52660  
    2222http/tests/incremental
    2323http/tests/media
    24 http/tests/plugins
    2524http/tests/webarchive
    2625http/tests/wml
     
    3534http/tests/loading/simple-subframe.html
    3635http/tests/loading/text-content-type-with-binary-extension.html
     36
     37# Failing plugins tests
     38http/tests/plugins/npapi-response-headers.html
    3739
    3840# Failing Local tests
  • trunk/WebCore/ChangeLog

    r52657 r52660  
     12009-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
    1162009-12-30  Holger Hans Peter Freyther  <zecke@selfish.org>
    217
  • trunk/WebCore/plugins/qt/PluginViewQt.cpp

    r52319 r52660  
    530530        filename = filename.substring(8);
    531531
    532     if (!fileExists(filename))
     532    long long size;
     533    if (!getFileSize(filename, size))
    533534        return NPERR_FILE_NOT_FOUND;
    534535
    535     // FIXME - read the file data into buffer
    536536    FILE* fileHandle = fopen((filename.utf8()).data(), "r");
    537 
    538537    if (!fileHandle)
    539538        return NPERR_FILE_NOT_FOUND;
    540539
    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);
    544542
    545543    fclose(fileHandle);
Note: See TracChangeset for help on using the changeset viewer.