Index: third_party/WebKit/Source/core/frame/UseCounter.cpp |
diff --git a/third_party/WebKit/Source/core/frame/UseCounter.cpp b/third_party/WebKit/Source/core/frame/UseCounter.cpp |
index 2cbb53d3846cd2556310cd3cf5b033dab8e7523a..2ac6a5e0ab5d9199d00f93ea3b76f261767d1926 100644 |
--- a/third_party/WebKit/Source/core/frame/UseCounter.cpp |
+++ b/third_party/WebKit/Source/core/frame/UseCounter.cpp |
@@ -1180,8 +1180,8 @@ void UseCounter::count(const ExecutionContext* context, Feature feature) { |
count(*toDocument(context), feature); |
return; |
} |
- if (context->isWorkerGlobalScope()) |
- toWorkerGlobalScope(context)->countFeature(feature); |
+ if (context->isWorkerOrWorkletGlobalScope()) |
+ toWorkerOrWorkletGlobalScope(context)->countFeature(feature); |
} |
void UseCounter::countIfNotPrivateScript(v8::Isolate* isolate, |