From 5685ca1cdd86b81c6f2eade4b38b799f7ae04a15 Mon Sep 17 00:00:00 2001 From: Jihye Kang Date: Fri, 4 Oct 2013 15:33:23 +0900 Subject: [PATCH] Use Sync message for syncLocalStorage [Title] User Sync message for syncLocalStorage [Issue#] N_SE-53752 [Problem] Tasks are not deleted after having empty box in Date-picker when reopen TaskManager without time-delay [Cause] sync request was not send synchronously. [Solution] use sync message for syncLocalStorage. But the issue is not perfectly resolved on Emulator with this patch. So TaskManager application should be changed also. Change-Id: I86ae84aa418315f8d9db2988386f56c7dd92434e --- Source/WebKit2/UIProcess/WebKeyValueStorageManagerProxy.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/WebKit2/UIProcess/WebKeyValueStorageManagerProxy.cpp b/Source/WebKit2/UIProcess/WebKeyValueStorageManagerProxy.cpp index 933e3d6..88391ca 100644 --- a/Source/WebKit2/UIProcess/WebKeyValueStorageManagerProxy.cpp +++ b/Source/WebKit2/UIProcess/WebKeyValueStorageManagerProxy.cpp @@ -145,7 +145,8 @@ void WebKeyValueStorageManagerProxy::didGetKeyValueStorageUsageForOrigin(int64_t void WebKeyValueStorageManagerProxy::syncLocalStorage() { - m_webContext->sendToAllProcessesRelaunchingThemIfNecessary(Messages::WebKeyValueStorageManager::SyncLocalStorage()); + if (m_webContext && m_webContext->process()) + m_webContext->process()->sendSync(Messages::WebKeyValueStorageManager::SyncLocalStorage(), Messages::WebKeyValueStorageManager::SyncLocalStorage::Reply(), 0); } #endif } // namespace WebKit -- 2.7.4