Modified: trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebChromeClient.cpp (194329 => 194330)
--- trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebChromeClient.cpp 2015-12-21 15:15:23 UTC (rev 194329)
+++ trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebChromeClient.cpp 2015-12-21 15:16:58 UTC (rev 194330)
@@ -341,11 +341,7 @@
HangDetectionDisabler hangDetectionDisabler;
- unsigned syncSendFlags = IPC::InformPlatformProcessWillSuspend;
- if (WebPage::synchronousMessagesShouldSpinRunLoop())
- syncSendFlags |= IPC::SpinRunLoopWhileWaitingForReply;
-
- if (!WebProcess::singleton().parentProcessConnection()->sendSync(Messages::WebPageProxy::RunBeforeUnloadConfirmPanel(message, webFrame->frameID()), Messages::WebPageProxy::RunBeforeUnloadConfirmPanel::Reply(shouldClose), m_page->pageID(), std::chrono::milliseconds::max(), syncSendFlags))
+ if (!WebProcess::singleton().parentProcessConnection()->sendSync(Messages::WebPageProxy::RunBeforeUnloadConfirmPanel(message, webFrame->frameID()), Messages::WebPageProxy::RunBeforeUnloadConfirmPanel::Reply(shouldClose), m_page->pageID(), std::chrono::milliseconds::max(), IPC::InformPlatformProcessWillSuspend))
return false;
return shouldClose;
@@ -380,10 +376,7 @@
HangDetectionDisabler hangDetectionDisabler;
- unsigned syncSendFlags = IPC::InformPlatformProcessWillSuspend;
- if (WebPage::synchronousMessagesShouldSpinRunLoop())
- syncSendFlags |= IPC::SpinRunLoopWhileWaitingForReply;
- WebProcess::singleton().parentProcessConnection()->sendSync(Messages::WebPageProxy::RunJavaScriptAlert(webFrame->frameID(), SecurityOriginData::fromFrame(frame), alertText), Messages::WebPageProxy::RunJavaScriptAlert::Reply(), m_page->pageID(), std::chrono::milliseconds::max(), syncSendFlags);
+ WebProcess::singleton().parentProcessConnection()->sendSync(Messages::WebPageProxy::RunJavaScriptAlert(webFrame->frameID(), SecurityOriginData::fromFrame(frame), alertText), Messages::WebPageProxy::RunJavaScriptAlert::Reply(), m_page->pageID(), std::chrono::milliseconds::max(), IPC::InformPlatformProcessWillSuspend);
}
bool WebChromeClient::runJavaScriptConfirm(Frame* frame, const String& message)
@@ -396,11 +389,8 @@
HangDetectionDisabler hangDetectionDisabler;
- unsigned syncSendFlags = IPC::InformPlatformProcessWillSuspend;
- if (WebPage::synchronousMessagesShouldSpinRunLoop())
- syncSendFlags |= IPC::SpinRunLoopWhileWaitingForReply;
bool result = false;
- if (!WebProcess::singleton().parentProcessConnection()->sendSync(Messages::WebPageProxy::RunJavaScriptConfirm(webFrame->frameID(), SecurityOriginData::fromFrame(frame), message), Messages::WebPageProxy::RunJavaScriptConfirm::Reply(result), m_page->pageID(), std::chrono::milliseconds::max(), syncSendFlags))
+ if (!WebProcess::singleton().parentProcessConnection()->sendSync(Messages::WebPageProxy::RunJavaScriptConfirm(webFrame->frameID(), SecurityOriginData::fromFrame(frame), message), Messages::WebPageProxy::RunJavaScriptConfirm::Reply(result), m_page->pageID(), std::chrono::milliseconds::max(), IPC::InformPlatformProcessWillSuspend))
return false;
return result;
@@ -416,11 +406,7 @@
HangDetectionDisabler hangDetectionDisabler;
- unsigned syncSendFlags = IPC::InformPlatformProcessWillSuspend;
- if (WebPage::synchronousMessagesShouldSpinRunLoop())
- syncSendFlags |= IPC::SpinRunLoopWhileWaitingForReply;
-
- if (!WebProcess::singleton().parentProcessConnection()->sendSync(Messages::WebPageProxy::RunJavaScriptPrompt(webFrame->frameID(), SecurityOriginData::fromFrame(frame), message, defaultValue), Messages::WebPageProxy::RunJavaScriptPrompt::Reply(result), m_page->pageID(), std::chrono::milliseconds::max(), syncSendFlags))
+ if (!WebProcess::singleton().parentProcessConnection()->sendSync(Messages::WebPageProxy::RunJavaScriptPrompt(webFrame->frameID(), SecurityOriginData::fromFrame(frame), message, defaultValue), Messages::WebPageProxy::RunJavaScriptPrompt::Reply(result), m_page->pageID(), std::chrono::milliseconds::max(), IPC::InformPlatformProcessWillSuspend))
return false;
return !result.isNull();
@@ -644,11 +630,7 @@
}
#endif
- unsigned syncSendFlags = IPC::InformPlatformProcessWillSuspend;
- if (WebPage::synchronousMessagesShouldSpinRunLoop())
- syncSendFlags |= IPC::SpinRunLoopWhileWaitingForReply;
-
- m_page->sendSync(Messages::WebPageProxy::PrintFrame(webFrame->frameID()), Messages::WebPageProxy::PrintFrame::Reply(), std::chrono::milliseconds::max(), syncSendFlags);
+ m_page->sendSync(Messages::WebPageProxy::PrintFrame(webFrame->frameID()), Messages::WebPageProxy::PrintFrame::Reply(), std::chrono::milliseconds::max(), IPC::InformPlatformProcessWillSuspend);
}
void WebChromeClient::exceededDatabaseQuota(Frame* frame, const String& databaseName, DatabaseDetails details)
@@ -666,13 +648,9 @@
newQuota = m_page->injectedBundleUIClient().didExceedDatabaseQuota(m_page, securityOrigin.get(), databaseName, details.displayName(), currentQuota, currentOriginUsage, details.currentUsage(), details.expectedUsage());
if (!newQuota) {
- unsigned syncSendFlags = IPC::InformPlatformProcessWillSuspend;
- if (WebPage::synchronousMessagesShouldSpinRunLoop())
- syncSendFlags |= IPC::SpinRunLoopWhileWaitingForReply;
-
WebProcess::singleton().parentProcessConnection()->sendSync(
Messages::WebPageProxy::ExceededDatabaseQuota(webFrame->frameID(), origin->databaseIdentifier(), databaseName, details.displayName(), currentQuota, currentOriginUsage, details.currentUsage(), details.expectedUsage()),
- Messages::WebPageProxy::ExceededDatabaseQuota::Reply(newQuota), m_page->pageID(), std::chrono::milliseconds::max(), syncSendFlags);
+ Messages::WebPageProxy::ExceededDatabaseQuota::Reply(newQuota), m_page->pageID(), std::chrono::milliseconds::max(), IPC::InformPlatformProcessWillSuspend);
}
dbManager.setQuota(origin, newQuota);
@@ -689,10 +667,6 @@
if (m_page->injectedBundleUIClient().didReachApplicationCacheOriginQuota(m_page, securityOrigin.get(), totalBytesNeeded))
return;
- unsigned syncSendFlags = IPC::InformPlatformProcessWillSuspend;
- if (WebPage::synchronousMessagesShouldSpinRunLoop())
- syncSendFlags |= IPC::SpinRunLoopWhileWaitingForReply;
-
auto& cacheStorage = ApplicationCacheStorage::singleton();
int64_t currentQuota = 0;
if (!cacheStorage.calculateQuotaForOrigin(origin, currentQuota))
@@ -701,7 +675,7 @@
uint64_t newQuota = 0;
WebProcess::singleton().parentProcessConnection()->sendSync(
Messages::WebPageProxy::ReachedApplicationCacheOriginQuota(origin->databaseIdentifier(), currentQuota, totalBytesNeeded),
- Messages::WebPageProxy::ReachedApplicationCacheOriginQuota::Reply(newQuota), m_page->pageID(), std::chrono::milliseconds::max(), syncSendFlags);
+ Messages::WebPageProxy::ReachedApplicationCacheOriginQuota::Reply(newQuota), m_page->pageID(), std::chrono::milliseconds::max(), IPC::InformPlatformProcessWillSuspend);
cacheStorage.storeUpdatedQuotaForOrigin(origin, newQuota);
}
Modified: trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp (194329 => 194330)
--- trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp 2015-12-21 15:15:23 UTC (rev 194329)
+++ trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp 2015-12-21 15:16:58 UTC (rev 194330)
@@ -696,12 +696,8 @@
uint64_t policyAction;
DownloadID downloadID;
- unsigned syncSendFlags = IPC::InformPlatformProcessWillSuspend;
- if (WebPage::synchronousMessagesShouldSpinRunLoop())
- syncSendFlags |= IPC::SpinRunLoopWhileWaitingForReply;
-
WebCore::Frame* coreFrame = m_frame ? m_frame->coreFrame() : nullptr;
- if (!webPage->sendSync(Messages::WebPageProxy::DecidePolicyForResponseSync(m_frame->frameID(), SecurityOriginData::fromFrame(coreFrame), response, request, canShowMIMEType, listenerID, UserData(WebProcess::singleton().transformObjectsToHandles(userData.get()).get())), Messages::WebPageProxy::DecidePolicyForResponseSync::Reply(receivedPolicyAction, policyAction, downloadID), std::chrono::milliseconds::max(), syncSendFlags)) {
+ if (!webPage->sendSync(Messages::WebPageProxy::DecidePolicyForResponseSync(m_frame->frameID(), SecurityOriginData::fromFrame(coreFrame), response, request, canShowMIMEType, listenerID, UserData(WebProcess::singleton().transformObjectsToHandles(userData.get()).get())), Messages::WebPageProxy::DecidePolicyForResponseSync::Reply(receivedPolicyAction, policyAction, downloadID), std::chrono::milliseconds::max(), IPC::InformPlatformProcessWillSuspend)) {
m_frame->didReceivePolicyDecision(listenerID, PolicyIgnore, 0, { });
return;
}