Use Sync message for syncLocalStorage
authorJihye Kang <jye.kang@samsung.com>
Fri, 4 Oct 2013 06:33:23 +0000 (15:33 +0900)
committerGerrit Code Review <gerrit@gerrit.vlan144.tizendev.org>
Fri, 4 Oct 2013 07:14:29 +0000 (07:14 +0000)
[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

index 933e3d6..88391ca 100644 (file)
@@ -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