Changeset 152230 in webkit


Ignore:
Timestamp:
Jul 1, 2013 10:45:29 AM (11 years ago)
Author:
weinig@apple.com
Message:

WKPageLoadDataWithUserData neglects to set the base URL that is passed in
<rdar://problem/14306784>
https://bugs.webkit.org/show_bug.cgi?id=118256

Reviewed by Anders Carlsson.

  • WebProcess/WebPage/WebPage.cpp:

(WebKit::WebPage::loadData):
Pass the baseURL, not blankURL(), and remove an unnecessary multiplication by sizeof(uint8_t) which is always 1.

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r152218 r152230  
     12013-07-01  Sam Weinig  <sam@webkit.org>
     2
     3        WKPageLoadDataWithUserData neglects to set the base URL that is passed in
     4        <rdar://problem/14306784>
     5        https://bugs.webkit.org/show_bug.cgi?id=118256
     6
     7        Reviewed by Anders Carlsson.
     8
     9        * WebProcess/WebPage/WebPage.cpp:
     10        (WebKit::WebPage::loadData):
     11        Pass the baseURL, not blankURL(), and remove an unnecessary multiplication by sizeof(uint8_t) which is always 1.
     12
    1132013-07-01  Kangil Han  <kangil.han@samsung.com>
    214
  • trunk/Source/WebKit2/WebProcess/WebPage/WebPage.cpp

    r152190 r152230  
    938938void WebPage::loadData(const CoreIPC::DataReference& data, const String& MIMEType, const String& encodingName, const String& baseURLString, CoreIPC::MessageDecoder& decoder)
    939939{
    940     RefPtr<SharedBuffer> sharedBuffer = SharedBuffer::create(reinterpret_cast<const char*>(data.data()), data.size() * sizeof(uint8_t));
     940    RefPtr<SharedBuffer> sharedBuffer = SharedBuffer::create(reinterpret_cast<const char*>(data.data()), data.size());
    941941    KURL baseURL = baseURLString.isEmpty() ? blankURL() : KURL(KURL(), baseURLString);
    942     loadDataImpl(sharedBuffer, MIMEType, encodingName, blankURL(), KURL(), decoder);
     942    loadDataImpl(sharedBuffer, MIMEType, encodingName, baseURL, KURL(), decoder);
    943943}
    944944
Note: See TracChangeset for help on using the changeset viewer.