Title: [230256] trunk/Source/WebKit
Revision
230256
Author
annu...@yandex.ru
Date
2018-04-04 08:20:48 -0700 (Wed, 04 Apr 2018)

Log Message

[Win] WebFrameLoaderClient: 'getpid': identifier not found
https://bugs.webkit.org/show_bug.cgi?id=184291

Patch by Fujii Hironori <hironori.fu...@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.

Modified Paths

Diff

Modified: trunk/Source/WebKit/ChangeLog (230255 => 230256)


--- trunk/Source/WebKit/ChangeLog	2018-04-04 15:00:26 UTC (rev 230255)
+++ trunk/Source/WebKit/ChangeLog	2018-04-04 15:20:48 UTC (rev 230256)
@@ -1,3 +1,15 @@
+2018-04-04  Fujii Hironori  <hironori.fu...@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  <cgar...@igalia.com>
 
         ASSERTION FAILED: !m_mainFrame->coreFrame()->loader().frameHasLoaded() || !m_pendingNavigationID when reloading page while a page is loading

Modified: trunk/Source/WebKit/WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp (230255 => 230256)


--- trunk/Source/WebKit/WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp	2018-04-04 15:00:26 UTC (rev 230255)
+++ trunk/Source/WebKit/WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp	2018-04-04 15:20:48 UTC (rev 230256)
@@ -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 @@
     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 @@
         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())
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to