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

Changeset 276685 in webkit


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

Unreviewed build fix. rdar://problem/77211405

Added blobOwner declaration from trac.webkit.org/r276230.

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

Legend:

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

    r276668 r276685  
     12021-04-27  Alan Coon  <alancoon@apple.com>
     2
     3    Added blobOwner declaration from trac.webkit.org/r276230.
     4
    152021-04-27  Russell Epstein  <repstein@apple.com>
    26
  • branches/safari-611-branch/Source/WebCore/fileapi/BlobURL.cpp

    r276665 r276685  
    5353}
    5454
     55static const Document* blobOwner(const SecurityOrigin& blobOrigin)
     56{
     57    if (!isMainThread())
     58        return nullptr;
     59
     60    for (const auto* document : Document::allDocuments()) {
     61        if (&document->securityOrigin() == &blobOrigin)
     62            return document;
     63    }
     64    return nullptr;
     65}
     66
    5567String BlobURL::getOrigin(const URL& url)
    5668{
Note: See TracChangeset for help on using the changeset viewer.