| Index: Source/core/dom/DOMURL.cpp
|
| diff --git a/Source/core/dom/DOMURL.cpp b/Source/core/dom/DOMURL.cpp
|
| index 8881223f72445c4d4933110e6246154d56d8229f..9aa3764185a39971b79b481a9db0f0bc8492a4aa 100644
|
| --- a/Source/core/dom/DOMURL.cpp
|
| +++ b/Source/core/dom/DOMURL.cpp
|
| @@ -67,16 +67,16 @@ String DOMURL::createObjectURL(ExecutionContext* executionContext, Blob* blob)
|
| {
|
| if (!executionContext || !blob)
|
| return String();
|
| - return createPublicURL(executionContext, blob);
|
| + return createPublicURL(executionContext, blob, blob->uuid());
|
| }
|
|
|
| -String DOMURL::createPublicURL(ExecutionContext* executionContext, URLRegistrable* registrable)
|
| +String DOMURL::createPublicURL(ExecutionContext* executionContext, URLRegistrable* registrable, const String& uuid)
|
| {
|
| KURL publicURL = BlobURL::createPublicURL(executionContext->securityOrigin());
|
| if (publicURL.isEmpty())
|
| return String();
|
|
|
| - executionContext->publicURLManager().registerURL(executionContext->securityOrigin(), publicURL, registrable);
|
| + executionContext->publicURLManager().registerURL(executionContext->securityOrigin(), publicURL, registrable, uuid);
|
|
|
| return publicURL.string();
|
| }
|
| @@ -91,4 +91,12 @@ void DOMURL::revokeObjectURL(ExecutionContext* executionContext, const String& u
|
| executionContext->publicURLManager().revoke(url);
|
| }
|
|
|
| +void DOMURL::revokeObjectUUID(ExecutionContext* executionContext, const String& uuid)
|
| +{
|
| + if (!executionContext)
|
| + return;
|
| +
|
| + executionContext->publicURLManager().revoke(uuid);
|
| +}
|
| +
|
| } // namespace WebCore
|
|
|