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

Changeset 276665 in webkit


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

Apply patch. rdar://problem/77211405

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

Legend:

Unmodified
Added
Removed
  • branches/safari-611-branch/Source/WebCore/fileapi/BlobURL.cpp

    r262421 r276665  
    6262}
    6363
     64URL BlobURL::getOriginURL(const URL& url)
     65{
     66    ASSERT(url.protocolIs(kBlobProtocol));
     67    if (auto blobOrigin = ThreadableBlobRegistry::getCachedOrigin(url)) {
     68      if (auto* document = blobOwner(*blobOrigin))
     69          return document->url();
     70    }
     71    return SecurityOrigin::extractInnerURL(url);
     72}
     73
    6474URL BlobURL::createBlobURL(const String& originString)
    6575{
  • branches/safari-611-branch/Source/WebCore/fileapi/BlobURL.h

    r262421 r276665  
    5151    static URL createInternalURL();
    5252    static String getOrigin(const URL&);
     53    static URL getOriginURL(const URL&);
    5354
    5455private:
Note: See TracChangeset for help on using the changeset viewer.