Title: [280238] releases/WebKitGTK/webkit-2.32/Source/WebCore
Revision
280238
Author
[email protected]
Date
2021-07-23 03:11:24 -0700 (Fri, 23 Jul 2021)

Log Message

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

Modified Paths

Diff

Modified: releases/WebKitGTK/webkit-2.32/Source/WebCore/ChangeLog (280237 => 280238)


--- releases/WebKitGTK/webkit-2.32/Source/WebCore/ChangeLog	2021-07-23 10:11:19 UTC (rev 280237)
+++ releases/WebKitGTK/webkit-2.32/Source/WebCore/ChangeLog	2021-07-23 10:11:24 UTC (rev 280238)
@@ -1,3 +1,15 @@
+2021-04-21  Youenn Fablet  <[email protected]>
+
+        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):
+
 2021-04-15  Youenn Fablet  <[email protected]>
 
         REGRESSION(Safari 14): iframe with blob url does not work with sandboxing

Modified: releases/WebKitGTK/webkit-2.32/Source/WebCore/loader/PolicyChecker.cpp (280237 => 280238)


--- releases/WebKitGTK/webkit-2.32/Source/WebCore/loader/PolicyChecker.cpp	2021-07-23 10:11:19 UTC (rev 280237)
+++ releases/WebKitGTK/webkit-2.32/Source/WebCore/loader/PolicyChecker.cpp	2021-07-23 10:11:24 UTC (rev 280238)
@@ -111,8 +111,9 @@
         return { };
 
     // Create a new temporary blobURL in case this one gets revoked during the asynchronous navigation policy decision.
-    URL temporaryBlobURL = BlobURL::createPublicURL(&m_frame.document()->securityOrigin());
-    ThreadableBlobRegistry::registerBlobURL(&m_frame.document()->securityOrigin(), temporaryBlobURL, request.url());
+    auto origin = SecurityOrigin::create(BlobURL::getOriginURL(request.url()));
+    URL temporaryBlobURL = BlobURL::createPublicURL(origin.ptr());
+    ThreadableBlobRegistry::registerBlobURL(origin.ptr(), temporaryBlobURL, request.url());
     request.setURL(temporaryBlobURL);
     if (loader)
         loader->request().setURL(temporaryBlobURL);
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to