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

Changeset 276352 in webkit


Ignore:
Timestamp:
Apr 21, 2021, 1:44:42 AM (5 years ago)
Author:
youenn@apple.com
Message:

Use BlobURL::getOriginURL in more places
​https://bugs.webkit.org/show_bug.cgi?id=224857

Reviewed by Alex Christensen.

Covered by existing tests.

  • loader/PolicyChecker.cpp:

(WebCore::FrameLoader::PolicyChecker::extendBlobURLLifetimeIfNecessary const):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r276351 r276352  
     12021-04-21  Youenn Fablet  <youenn@apple.com>
     2
     3        Use BlobURL::getOriginURL in more places
     4        https://bugs.webkit.org/show_bug.cgi?id=224857
     5
     6        Reviewed by Alex Christensen.
     7
     8        Covered by existing tests.
     9
     10        * loader/PolicyChecker.cpp:
     11        (WebCore::FrameLoader::PolicyChecker::extendBlobURLLifetimeIfNecessary const):
     12
    1132021-04-21  Tim Horton  <timothy_horton@apple.com>
    214
  • trunk/Source/WebCore/loader/PolicyChecker.cpp

    r276012 r276352  
    112112
    113113    // Create a new temporary blobURL in case this one gets revoked during the asynchronous navigation policy decision.
    114     URL temporaryBlobURL = BlobURL::createPublicURL(&m_frame.document()->securityOrigin());
    115     ThreadableBlobRegistry::registerBlobURL(&m_frame.document()->securityOrigin(), temporaryBlobURL, request.url());
     114    auto origin = SecurityOrigin::create(BlobURL::getOriginURL(request.url()));
     115    URL temporaryBlobURL = BlobURL::createPublicURL(origin.ptr());
     116    ThreadableBlobRegistry::registerBlobURL(origin.ptr(), temporaryBlobURL, request.url());
    116117    request.setURL(temporaryBlobURL);
    117118    if (loader)
Note: See TracChangeset for help on using the changeset viewer.