Build failure after r249501 for ports with SERVICE_WORKER set OFF
authorpsaavedra@igalia.com <psaavedra@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 5 Sep 2019 14:21:31 +0000 (14:21 +0000)
committerpsaavedra@igalia.com <psaavedra@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 5 Sep 2019 14:21:31 +0000 (14:21 +0000)
https://bugs.webkit.org/show_bug.cgi?id=201503

Reviewed by Youenn Fablet.

* WebProcess/Network/WebLoaderStrategy.cpp:
(WebKit::WebLoaderStrategy::scheduleLoad):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@249528 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKit/ChangeLog
Source/WebKit/WebProcess/Network/WebLoaderStrategy.cpp

index 8e68322..660d081 100644 (file)
@@ -1,3 +1,13 @@
+2019-09-05  Pablo Saavedra  <psaavedra@igalia.com>
+
+        Build failure after r249501 for ports with SERVICE_WORKER set OFF
+        https://bugs.webkit.org/show_bug.cgi?id=201503
+
+        Reviewed by Youenn Fablet.
+
+        * WebProcess/Network/WebLoaderStrategy.cpp:
+        (WebKit::WebLoaderStrategy::scheduleLoad):
+
 2019-09-04  Wenson Hsieh  <wenson_hsieh@apple.com>
 
         MobileSafari may crash when invoking the C++ lambda in -[WKContentView _shareForWebView:]
index 034a663..b539beb 100644 (file)
@@ -160,8 +160,10 @@ void WebLoaderStrategy::scheduleLoad(ResourceLoader& resourceLoader, CachedResou
     WebResourceLoader::TrackingParameters trackingParameters;
     if (auto* webFrameLoaderClient = toWebFrameLoaderClient(frameLoaderClient))
         trackingParameters.webPageProxyID = webFrameLoaderClient->webPageProxyID().valueOr(WebPageProxyIdentifier { });
+#if ENABLE(SERVICE_WORKER)
     else if (is<ServiceWorkerFrameLoaderClient>(frameLoaderClient))
         trackingParameters.webPageProxyID = downcast<ServiceWorkerFrameLoaderClient>(frameLoaderClient).webPageProxyID();
+#endif
     trackingParameters.pageID = frameLoaderClient.pageID().valueOr(PageIdentifier { });
     trackingParameters.frameID = frameLoaderClient.frameID().valueOr(FrameIdentifier { });
     trackingParameters.resourceID = identifier;