Index: Source/modules/serviceworkers/FetchEvent.cpp |
diff --git a/Source/modules/serviceworkers/FetchEvent.cpp b/Source/modules/serviceworkers/FetchEvent.cpp |
index 81a52fbeb9f5426d73d729afa772aba4394fb085..1d7767cf6adad8e843eeaacc88d131214b231b6b 100644 |
--- a/Source/modules/serviceworkers/FetchEvent.cpp |
+++ b/Source/modules/serviceworkers/FetchEvent.cpp |
@@ -33,6 +33,11 @@ Request* FetchEvent::request() const |
return m_request; |
} |
+ServiceWorkerClient* FetchEvent::client() const |
+{ |
+ return m_client; |
+} |
+ |
bool FetchEvent::isReload() const |
{ |
return m_isReload; |
@@ -60,6 +65,8 @@ FetchEvent::FetchEvent(const AtomicString& type, const FetchEventInit& initializ |
{ |
if (initializer.hasRequest()) |
m_request = initializer.request(); |
+ if (initializer.hasClient()) |
+ m_client = initializer.client(); |
m_isReload = initializer.isReload(); |
} |