Title: [276667] branches/safari-611-branch/Source/WebCore
- Revision
- 276667
- Author
- [email protected]
- Date
- 2021-04-27 14:07:27 -0700 (Tue, 27 Apr 2021)
Log 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
Modified Paths
Diff
Modified: branches/safari-611-branch/Source/WebCore/ChangeLog (276666 => 276667)
--- branches/safari-611-branch/Source/WebCore/ChangeLog 2021-04-27 21:07:24 UTC (rev 276666)
+++ branches/safari-611-branch/Source/WebCore/ChangeLog 2021-04-27 21:07:27 UTC (rev 276667)
@@ -1,5 +1,34 @@
2021-04-27 Russell Epstein <[email protected]>
+ 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
+
+ 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-27 Russell Epstein <[email protected]>
+
Cherry-pick r276012. rdar://problem/77211405
REGRESSION(Safari 14): iframe with blob url does not work with sandboxing
Modified: branches/safari-611-branch/Source/WebCore/loader/PolicyChecker.cpp (276666 => 276667)
--- branches/safari-611-branch/Source/WebCore/loader/PolicyChecker.cpp 2021-04-27 21:07:24 UTC (rev 276666)
+++ branches/safari-611-branch/Source/WebCore/loader/PolicyChecker.cpp 2021-04-27 21:07:27 UTC (rev 276667)
@@ -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