Changeset 147671 in webkit


Ignore:
Timestamp:
Apr 4, 2013 2:57:58 PM (11 years ago)
Author:
ap@apple.com
Message:

REGRESSION (r146580): Assertion using SecurityOrigin::create, URL string is not valid
https://bugs.webkit.org/show_bug.cgi?id=113961

Reviewed by Geoff Garen.

  • page/SecurityOrigin.cpp: (WebCore::SecurityOrigin::createFromDatabaseIdentifier): (WebCore::SecurityOrigin::create): Don't use ParsedURLString, because http://host:80/ is normalized to http://host/, so it's not a parsed URL string.
Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r147667 r147671  
     12013-04-04  Alexey Proskuryakov  <ap@apple.com>
     2
     3        REGRESSION (r146580): Assertion using SecurityOrigin::create, URL string is not valid
     4        https://bugs.webkit.org/show_bug.cgi?id=113961
     5
     6        Reviewed by Geoff Garen.
     7
     8        * page/SecurityOrigin.cpp:
     9        (WebCore::SecurityOrigin::createFromDatabaseIdentifier):
     10        (WebCore::SecurityOrigin::create):
     11        Don't use ParsedURLString, because http://host:80/ is normalized to http://host/,
     12        so it's not a parsed URL string.
     13
    1142013-04-04  Sheriff Bot  <webkit.review.bot@gmail.com>
    215
  • trunk/Source/WebCore/page/SecurityOrigin.cpp

    r147526 r147671  
    530530   
    531531    host = decodeURLEscapeSequences(host);
    532     return create(KURL(ParsedURLString, protocol + "://" + host + ":" + String::number(port) + "/"));
     532    return create(KURL(KURL(), protocol + "://" + host + ":" + String::number(port) + "/"));
    533533}
    534534
     
    538538        createUnique();
    539539    String decodedHost = decodeURLEscapeSequences(host);
    540     return create(KURL(ParsedURLString, protocol + "://" + host + ":" + String::number(port) + "/"));
     540    return create(KURL(KURL(), protocol + "://" + host + ":" + String::number(port) + "/"));
    541541}
    542542
Note: See TracChangeset for help on using the changeset viewer.