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

Changeset 276667 in webkit


Ignore:
Timestamp:
Apr 27, 2021, 2:07:27 PM (5 years ago)
Author:
Alan Coon
Message:

Cherry-pick r276352. rdar://problem/77211405

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):

git-svn-id: ​https://svn.webkit.org/repository/webkit/trunk@276352 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Location:
branches/safari-611-branch/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/safari-611-branch/Source/WebCore/ChangeLog

    r276666 r276667  
     12021-04-27  Russell Epstein  <repstein@apple.com>
     2
     3        Cherry-pick r276352. rdar://problem/77211405
     4
     5    Use BlobURL::getOriginURL in more places
     6    https://bugs.webkit.org/show_bug.cgi?id=224857
     7   
     8    Reviewed by Alex Christensen.
     9   
     10    Covered by existing tests.
     11   
     12    * loader/PolicyChecker.cpp:
     13    (WebCore::FrameLoader::PolicyChecker::extendBlobURLLifetimeIfNecessary const):
     14   
     15   
     16    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@276352 268f45cc-cd09-0410-ab3c-d52691b4dbfc
     17
     18    2021-04-21  Youenn Fablet  <youenn@apple.com>
     19
     20            Use BlobURL::getOriginURL in more places
     21            https://bugs.webkit.org/show_bug.cgi?id=224857
     22
     23            Reviewed by Alex Christensen.
     24
     25            Covered by existing tests.
     26
     27            * loader/PolicyChecker.cpp:
     28            (WebCore::FrameLoader::PolicyChecker::extendBlobURLLifetimeIfNecessary const):
     29
    1302021-04-27  Russell Epstein  <repstein@apple.com>
    231
  • branches/safari-611-branch/Source/WebCore/loader/PolicyChecker.cpp

    r276666 r276667  
    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.