[Win] WebFrameLoaderClient: 'getpid': identifier not found
authorannulen@yandex.ru <annulen@yandex.ru@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 4 Apr 2018 15:20:48 +0000 (15:20 +0000)
committerannulen@yandex.ru <annulen@yandex.ru@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 4 Apr 2018 15:20:48 +0000 (15:20 +0000)
https://bugs.webkit.org/show_bug.cgi?id=184291

Patch by Fujii Hironori <Hironori.Fujii@sony.com> on 2018-04-04
Reviewed by Konstantin Tokarev.

* WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
(WebKit::WebFrameLoaderClient::dispatchDidReceiveServerRedirectForProvisionalLoad):
Use WTF::getCurrentProcessID() instead of getpid().
(WebKit::WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction): Ditto.

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

Source/WebKit/ChangeLog
Source/WebKit/WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp

index 6d786496da46778fc513143696ce5c042d724e70..ed8d3c25c6607cd6aa3b3d0cb31176c73fba737b 100644 (file)
@@ -1,3 +1,15 @@
+2018-04-04  Fujii Hironori  <Hironori.Fujii@sony.com>
+
+        [Win] WebFrameLoaderClient: 'getpid': identifier not found
+        https://bugs.webkit.org/show_bug.cgi?id=184291
+
+        Reviewed by Konstantin Tokarev.
+
+        * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
+        (WebKit::WebFrameLoaderClient::dispatchDidReceiveServerRedirectForProvisionalLoad):
+        Use WTF::getCurrentProcessID() instead of getpid().
+        (WebKit::WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction): Ditto.
+
 2018-04-03  Carlos Garcia Campos  <cgarcia@igalia.com>
 
         ASSERTION FAILED: !m_mainFrame->coreFrame()->loader().frameHasLoaded() || !m_pendingNavigationID when reloading page while a page is loading
index 1e2a92fcccd97716481497e5b29a87c5cb206948..bb9093268ad9b557deb883195b6e97944b017eda 100644 (file)
@@ -91,6 +91,7 @@
 #include <WebCore/Widget.h>
 #include <WebCore/WindowFeatures.h>
 #include <wtf/NeverDestroyed.h>
+#include <wtf/ProcessID.h>
 #include <wtf/ProcessPrivilege.h>
 
 using namespace WebCore;
@@ -307,7 +308,7 @@ void WebFrameLoaderClient::dispatchDidReceiveServerRedirectForProvisionalLoad()
     WebDocumentLoader& documentLoader = static_cast<WebDocumentLoader&>(*m_frame->coreFrame()->loader().provisionalDocumentLoader());
     RefPtr<API::Object> userData;
 
-    LOG(Loading, "WebProcess %i - dispatchDidReceiveServerRedirectForProvisionalLoad to request url %s", getpid(), documentLoader.request().url().string().utf8().data());
+    LOG(Loading, "WebProcess %i - dispatchDidReceiveServerRedirectForProvisionalLoad to request url %s", getCurrentProcessID(), documentLoader.request().url().string().utf8().data());
 
     // Notify the bundle client.
     webPage->injectedBundleLoaderClient().didReceiveServerRedirectForProvisionalLoadForFrame(*webPage, *m_frame, userData);
@@ -821,7 +822,7 @@ void WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction(const Navigat
         return;
     }
 
-    LOG(Loading, "WebProcess %i - dispatchDecidePolicyForNavigationAction to request url %s", getpid(), request.url().string().utf8().data());
+    LOG(Loading, "WebProcess %i - dispatchDecidePolicyForNavigationAction to request url %s", getCurrentProcessID(), request.url().string().utf8().data());
 
     m_isDecidingNavigationPolicyDecision = true;
     if (m_frame->isMainFrame())