Changeset 116158 in webkit


Ignore:
Timestamp:
May 4, 2012 1:14:58 PM (12 years ago)
Author:
commit-queue@webkit.org
Message:

[EFL] Implement layoutTestController.dumpResourceResponseMIMETypes
https://bugs.webkit.org/show_bug.cgi?id=84941

Patch by Christophe Dumez <Christophe Dumez> on 2012-05-04
Reviewed by Martin Robinson.

Source/WebKit/efl:

Extend Ewk_Frame_Resource_Response structure to pass resource MIME type
information.

  • WebCoreSupport/FrameLoaderClientEfl.cpp:

(WebCore::FrameLoaderClientEfl::dispatchWillSendRequest):
(WebCore::FrameLoaderClientEfl::dispatchDidReceiveResponse):

  • ewk/ewk_frame.h:

Tools:

Print MIME type detection messages in EFL's DumpRenderTree if
LayoutTestController's dumpResourceResponseMIMETypes() returns true.

  • DumpRenderTree/efl/DumpRenderTreeChrome.cpp:

(DumpRenderTreeChrome::onResponseReceived):

LayoutTests:

  • platform/efl/Skipped: Unskip test cases which require MIME type

detection messages now that is is implemented in EFL port.

  • platform/efl/fast/preloader/script-expected.txt: Added. Use same

EFL expectation as in chromium and mac ports (MIME type is
"application/javascript" instead of "application/x-javascript").

Location:
trunk
Files:
2 added
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r116156 r116158  
     12012-05-04  Christophe Dumez  <christophe.dumez@intel.com>
     2
     3        [EFL] Implement layoutTestController.dumpResourceResponseMIMETypes
     4        https://bugs.webkit.org/show_bug.cgi?id=84941
     5
     6        Reviewed by Martin Robinson.
     7
     8        * platform/efl/Skipped: Unskip test cases which require MIME type
     9        detection messages now that is is implemented in EFL port.
     10        * platform/efl/fast/preloader/script-expected.txt: Added. Use same
     11        EFL expectation as in chromium and mac ports (MIME type is
     12        "application/javascript" instead of "application/x-javascript").
     13
    1142012-05-04  Ojan Vafai  <ojan@chromium.org>
    215
  • trunk/LayoutTests/platform/efl/Skipped

    r116119 r116158  
    549549fast/js/i18n-bindings-locale.html
    550550fast/js/navigator-language.html
    551 
    552 # BUG: no mimetype detection messages (LayoutTestController:dumpResourceResponseMIMETypes)
    553 fast/preloader/document-write-noscript.html
    554 fast/preloader/image.html
    555 fast/preloader/input.html
    556 fast/preloader/link.html
    557 fast/preloader/noscript.html
    558 fast/preloader/script.html
    559 fast/preloader/style.html
    560 http/tests/mime/uppercase-mime-type.html
    561 http/tests/loading/preload-append-scan.php
    562551
    563552# BUG: Needs setPrinting
  • trunk/Source/WebKit/efl/ChangeLog

    r116121 r116158  
     12012-05-04  Christophe Dumez  <christophe.dumez@intel.com>
     2
     3        [EFL] Implement layoutTestController.dumpResourceResponseMIMETypes
     4        https://bugs.webkit.org/show_bug.cgi?id=84941
     5
     6        Reviewed by Martin Robinson.
     7
     8        Extend Ewk_Frame_Resource_Response structure to pass resource MIME type
     9        information.
     10
     11        * WebCoreSupport/FrameLoaderClientEfl.cpp:
     12        (WebCore::FrameLoaderClientEfl::dispatchWillSendRequest):
     13        (WebCore::FrameLoaderClientEfl::dispatchDidReceiveResponse):
     14        * ewk/ewk_frame.h:
     15
    1162012-05-04  Nate Chapin  <japhet@chromium.org>
    217
  • trunk/Source/WebKit/efl/WebCoreSupport/FrameLoaderClientEfl.cpp

    r116121 r116158  
    189189    Ewk_Frame_Resource_Response* redirectResponse;
    190190    Ewk_Frame_Resource_Response responseBuffer;
    191     CString redirectUrl;
     191    CString redirectUrl, mimeType;
    192192
    193193    if (coreResponse.isNull())
     
    195195    else {
    196196        redirectUrl = coreResponse.url().string().utf8();
     197        mimeType = coreResponse.mimeType().utf8();
    197198        responseBuffer.url = redirectUrl.data();
    198199        responseBuffer.status_code = coreResponse.httpStatusCode();
    199200        responseBuffer.identifier = identifier;
     201        responseBuffer.mime_type = mimeType.data();
    200202        redirectResponse = &responseBuffer;
    201203    }
     
    271273    m_response = coreResponse;
    272274
    273     Ewk_Frame_Resource_Response response = { 0, coreResponse.httpStatusCode(), identifier };
     275    CString mimeType = coreResponse.mimeType().utf8();
     276    Ewk_Frame_Resource_Response response = { 0, coreResponse.httpStatusCode(), identifier, mimeType.data() };
    274277    CString url = coreResponse.url().string().utf8();
    275278    response.url = url.data();
  • trunk/Source/WebKit/efl/ewk/ewk_frame.h

    r116119 r116158  
    139139    int status_code; /**< http status code */
    140140    unsigned long identifier; /**< identifier of resource */
     141    const char *mime_type; /**< MIME type of the resource */
    141142};
    142143
  • trunk/Tools/ChangeLog

    r116146 r116158  
     12012-05-04  Christophe Dumez  <christophe.dumez@intel.com>
     2
     3        [EFL] Implement layoutTestController.dumpResourceResponseMIMETypes
     4        https://bugs.webkit.org/show_bug.cgi?id=84941
     5
     6        Reviewed by Martin Robinson.
     7
     8        Print MIME type detection messages in EFL's DumpRenderTree if
     9        LayoutTestController's dumpResourceResponseMIMETypes() returns true.
     10
     11        * DumpRenderTree/efl/DumpRenderTreeChrome.cpp:
     12        (DumpRenderTreeChrome::onResponseReceived):
     13
    1142012-05-04  Sudarsana Nagineni  <sudarsana.nagineni@linux.intel.com>
    215
  • trunk/Tools/DumpRenderTree/efl/DumpRenderTreeChrome.cpp

    r116119 r116158  
    593593               responseDescription.data());
    594594    }
     595
     596    if (!done && gLayoutTestController->dumpResourceResponseMIMETypes()) {
     597        printf("%s has MIME type %s\n",
     598               KURL(ParsedURLString, response->url).lastPathComponent().utf8().data(),
     599               response->mime_type);
     600    }
    595601}
    596602
Note: See TracChangeset for help on using the changeset viewer.