⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 144068 in webkit


Ignore:
Timestamp:
Feb 26, 2013, 9:50:46 AM (14 years ago)
Author:
Antti Koivisto
Message:

REGRESSION(r143986): fast/files/revoke-blob-url.html asserts
https://bugs.webkit.org/show_bug.cgi?id=110885

Reviewed by Alexey Proskuryakov.

The ResourceRequest string constructor assumes that the string is a valid URL. Use KURL constructor instead.

  • html/DOMURL.cpp:

(WebCore::DOMURL::revokeObjectURL):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r144067 r144068  
     12013-02-26  Antti Koivisto  <antti@apple.com>
     2
     3        REGRESSION(r143986): fast/files/revoke-blob-url.html asserts
     4        https://bugs.webkit.org/show_bug.cgi?id=110885
     5       
     6        Reviewed by Alexey Proskuryakov.
     7
     8        The ResourceRequest string constructor assumes that the string is a valid URL. Use KURL constructor instead.
     9
     10        * html/DOMURL.cpp:
     11        (WebCore::DOMURL::revokeObjectURL):
     12
    1132013-02-26  Dean Jackson  <dino@apple.com>
    214
  • trunk/Source/WebCore/html/DOMURL.cpp

    r143986 r144068  
    115115        return;
    116116
    117     ResourceRequest request(urlString);
     117    KURL url(KURL(), urlString);
     118    ResourceRequest request(url);
    118119#if ENABLE(CACHE_PARTITIONING)
    119120    request.setCachePartition(scriptExecutionContext->topOrigin()->cachePartition());
     
    121122    MemoryCache::removeRequestFromCache(scriptExecutionContext, request);
    122123
    123     KURL url(KURL(), urlString);
    124124    HashSet<String>& blobURLs = scriptExecutionContext->publicURLManager().blobURLs();
    125125    if (blobURLs.contains(url.string())) {
Note: See TracChangeset for help on using the changeset viewer.