Changeset 207293 in webkit


Ignore:
Timestamp:
Oct 13, 2016 11:11:29 AM (8 years ago)
Author:
Michael Catanzaro
Message:

[SOUP] SHOULD NEVER BE REACHED ../../Source/WebCore/platform/URL.cpp(1291) : void WebCore::URL::parse(const WTF::String&)
https://bugs.webkit.org/show_bug.cgi?id=163392

Reviewed by Alex Christensen.

Fix the URL constructor to work with URLParser.

  • platform/soup/URLSoup.cpp:

(WebCore::URL::URL):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r207291 r207293  
     12016-10-13  Michael Catanzaro  <mcatanzaro@igalia.com>
     2
     3        [SOUP] SHOULD NEVER BE REACHED ../../Source/WebCore/platform/URL.cpp(1291) : void WebCore::URL::parse(const WTF::String&)
     4        https://bugs.webkit.org/show_bug.cgi?id=163392
     5
     6        Reviewed by Alex Christensen.
     7
     8        Fix the URL constructor to work with URLParser.
     9
     10        * platform/soup/URLSoup.cpp:
     11        (WebCore::URL::URL):
     12
    1132016-10-13  Ryan Haddad  <ryanhaddad@apple.com>
    214
  • trunk/Source/WebCore/platform/soup/URLSoup.cpp

    r166506 r207293  
    3030#include "URL.h"
    3131
     32#include "URLParser.h"
    3233#include <libsoup/soup.h>
    3334#include <wtf/text/CString.h>
     
    4344
    4445    GUniquePtr<gchar> urlString(soup_uri_to_string(soupURI, FALSE));
    45     parse(String::fromUTF8(urlString.get()));
     46    if (URLParser::enabled()) {
     47        URLParser parser(String::fromUTF8(urlString.get()));
     48        *this = parser.result();
     49    } else
     50        parse(String::fromUTF8(urlString.get()));
     51
    4652    if (!isValid())
    4753        return;
Note: See TracChangeset for help on using the changeset viewer.