Changeset 173726 in webkit


Ignore:
Timestamp:
Sep 18, 2014 10:36:45 AM (10 years ago)
Author:
Carlos Garcia Campos
Message:

Incorrect pending API request URL when loading an HTML string
https://bugs.webkit.org/show_bug.cgi?id=136913

Reviewed by Alexey Proskuryakov.

Use about:blank as pending API request URL when the given base URL
is empty, otherwise use the given base URL.

  • UIProcess/WebPageProxy.cpp:

(WebKit::WebPageProxy::loadHTMLString):

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r173722 r173726  
     12014-09-18  Carlos Garcia Campos  <cgarcia@igalia.com>
     2
     3        Incorrect pending API request URL when loading an HTML string
     4        https://bugs.webkit.org/show_bug.cgi?id=136913
     5
     6        Reviewed by Alexey Proskuryakov.
     7
     8        Use about:blank as pending API request URL when the given base URL
     9        is empty, otherwise use the given base URL.
     10
     11        * UIProcess/WebPageProxy.cpp:
     12        (WebKit::WebPageProxy::loadHTMLString):
     13
    1142014-09-18  Tim Horton  <timothy_horton@apple.com>
    215
  • trunk/Source/WebKit2/UIProcess/WebPageProxy.cpp

    r173686 r173726  
    793793    auto transaction = m_pageLoadState.transaction();
    794794
    795     String pendingAPIRequestURL = baseURL.isEmpty() ? baseURL : ASCIILiteral("about:blank");
    796     m_pageLoadState.setPendingAPIRequestURL(transaction, pendingAPIRequestURL);
     795    m_pageLoadState.setPendingAPIRequestURL(transaction, !baseURL.isEmpty() ? baseURL : ASCIILiteral("about:blank"));
    797796
    798797    if (!isValid())
Note: See TracChangeset for help on using the changeset viewer.