Fixed crash issue when launch Daily motion
authorJihoon Chung <jihoon.chung@samsung.com>
Mon, 18 Mar 2013 05:15:33 +0000 (14:15 +0900)
committerGerrit Code Review <gerrit2@kim11>
Mon, 18 Mar 2013 05:59:28 +0000 (14:59 +0900)
[Issue#] P130313-7753
[Problem] Crash is occurred when lauch Daily motion
[Cause] Missed value setting before close window when url is
blocked by WARP
[Solution] Add value setting routine
[SCMRequest] N/A

Change-Id: Ia818fb7130bc6a7db22c91b128afc7f89a7ef65f

src/view/webkit/view_logic.cpp

index 1d22d12..1e4c7ff 100644 (file)
@@ -844,6 +844,7 @@ void ViewLogic::loadFinishedCallback(
             // stop current page
             LogDebug("remove current page");
             ewk_view_stop(This->m_currentEwkView);
+            This->m_closedEwkView = This->m_currentEwkView;
             ecore_idler_add(windowCloseIdlerCallback, This);
         }
         This->m_blockedUri = std::string();
@@ -1065,6 +1066,7 @@ void ViewLogic::policyNavigationDecideCallback(
             } else {
                 // stop current WKPage
                 ewk_view_stop(This->m_currentEwkView);
+                This->m_closedEwkView = This->m_currentEwkView;
                 ecore_idler_add(windowCloseIdlerCallback, This);
             }
         }