Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(609)

Unified Diff: third_party/WebKit/Source/modules/mediasource/URLMediaSource.cpp

Issue 1908263002: Don't expose URL.createObjectURL and revokeObjectURL to Service Workers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: test cleanup Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/mediasource/URLMediaSource.cpp
diff --git a/third_party/WebKit/Source/modules/mediasource/URLMediaSource.cpp b/third_party/WebKit/Source/modules/mediasource/URLMediaSource.cpp
index bfee6914f157f6dc892efab56f1384fb9589e32e..b7bd93243edc4a651a94e7b76627d0a232c8ccb6 100644
--- a/third_party/WebKit/Source/modules/mediasource/URLMediaSource.cpp
+++ b/third_party/WebKit/Source/modules/mediasource/URLMediaSource.cpp
@@ -31,8 +31,6 @@
#include "modules/mediasource/URLMediaSource.h"
#include "core/dom/DOMURL.h"
-#include "core/frame/Deprecation.h"
-#include "core/frame/UseCounter.h"
#include "modules/mediasource/MediaSource.h"
namespace blink {
@@ -42,12 +40,8 @@ String URLMediaSource::createObjectURL(ExecutionContext* executionContext, Media
// Since WebWorkers cannot obtain MediaSource objects, we should be on the main thread.
ASSERT(isMainThread());
- if (executionContext && executionContext->isServiceWorkerGlobalScope())
- Deprecation::countDeprecation(executionContext, UseCounter::URLMethodCreateObjectURLServiceWorker);
-
if (!executionContext)
return String();
-
return DOMURL::createPublicURL(executionContext, source);
}
« no previous file with comments | « third_party/WebKit/Source/core/frame/Deprecation.cpp ('k') | third_party/WebKit/Source/modules/mediasource/URLMediaSource.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698