Index: Source/core/workers/WorkerGlobalScope.h |
diff --git a/Source/core/workers/WorkerGlobalScope.h b/Source/core/workers/WorkerGlobalScope.h |
index 8a15f8993381748fa2747b8a4448202dc4728c91..f6b0810070fb55dc327eec69c2e95a1242aabb85 100644 |
--- a/Source/core/workers/WorkerGlobalScope.h |
+++ b/Source/core/workers/WorkerGlobalScope.h |
@@ -111,7 +111,7 @@ public: |
// ExecutionContextClient |
WorkerEventQueue* eventQueue() const override final; |
- SecurityContext& securityContext() override final { return *this; } |
+ const SecurityContext& securityContext() const override final { return *this; } |
bool isContextThread() const override final; |
bool isJSExecutionForbidden() const override final; |
@@ -137,7 +137,7 @@ public: |
virtual void scriptLoaded(size_t scriptSize, size_t cachedMetadataSize) { } |
- bool isPrivilegedContext(String& errorMessage, const PrivilegeContextCheck = StandardPrivilegeCheck) override; |
+ bool isPrivilegedContext(String& errorMessage, const PrivilegeContextCheck = StandardPrivilegeCheck) const override; |
DECLARE_VIRTUAL_TRACE(); |