Title: [276685] branches/safari-611-branch/Source/WebCore
- Revision
- 276685
- Author
- alanc...@apple.com
- Date
- 2021-04-27 17:54:42 -0700 (Tue, 27 Apr 2021)
Log Message
Unreviewed build fix. rdar://problem/77211405
Added blobOwner declaration from trac.webkit.org/r276230.
Modified Paths
Diff
Modified: branches/safari-611-branch/Source/WebCore/ChangeLog (276684 => 276685)
--- branches/safari-611-branch/Source/WebCore/ChangeLog 2021-04-28 00:44:09 UTC (rev 276684)
+++ branches/safari-611-branch/Source/WebCore/ChangeLog 2021-04-28 00:54:42 UTC (rev 276685)
@@ -1,3 +1,7 @@
+2021-04-27 Alan Coon <alanc...@apple.com>
+
+ Added blobOwner declaration from trac.webkit.org/r276230.
+
2021-04-27 Russell Epstein <repst...@apple.com>
Cherry-pick r276357. rdar://problem/77211423
Modified: branches/safari-611-branch/Source/WebCore/fileapi/BlobURL.cpp (276684 => 276685)
--- branches/safari-611-branch/Source/WebCore/fileapi/BlobURL.cpp 2021-04-28 00:44:09 UTC (rev 276684)
+++ branches/safari-611-branch/Source/WebCore/fileapi/BlobURL.cpp 2021-04-28 00:54:42 UTC (rev 276685)
@@ -52,6 +52,18 @@
return createBlobURL("blobinternal://");
}
+static const Document* blobOwner(const SecurityOrigin& blobOrigin)
+{
+ if (!isMainThread())
+ return nullptr;
+
+ for (const auto* document : Document::allDocuments()) {
+ if (&document->securityOrigin() == &blobOrigin)
+ return document;
+ }
+ return nullptr;
+}
+
String BlobURL::getOrigin(const URL& url)
{
ASSERT(url.protocolIs(kBlobProtocol));
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes