From c113903cf2c61084ca7135585118db37aa4843df Mon Sep 17 00:00:00 2001 From: Jiyun Yang Date: Thu, 10 Jun 2021 11:12:12 +0900 Subject: [PATCH] Fix svace issues on WebView Change-Id: Ied8a96564f4ef0c51c14cbb994abe876a1dae15d Signed-off-by: Jiyun Yang --- dali-extension/web-engine-chromium/tizen-web-engine-chromium.cpp | 8 ++++++-- dali-extension/web-engine-chromium/tizen-web-engine-context.cpp | 7 ++++++- .../web-engine-chromium/tizen-web-engine-cookie-manager.cpp | 1 + 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/dali-extension/web-engine-chromium/tizen-web-engine-chromium.cpp b/dali-extension/web-engine-chromium/tizen-web-engine-chromium.cpp index a3b3a74..49df009 100755 --- a/dali-extension/web-engine-chromium/tizen-web-engine-chromium.cpp +++ b/dali-extension/web-engine-chromium/tizen-web-engine-chromium.cpp @@ -155,9 +155,11 @@ class WebViewContainerForDali { public: WebViewContainerForDali(WebViewContainerClient& client, uint32_t width, uint32_t height) - : mClient(client) + : mWebView(nullptr) + , mClient(client) , mWidth(width) , mHeight(height) + , mUserAgent() , mWebEngineSettings(0) , mWebEngineContext(0) , mWebEngineCookieManager(0) @@ -169,9 +171,11 @@ public: } WebViewContainerForDali(WebViewContainerClient& client, uint32_t width, uint32_t height, uint32_t argc, char** argv) - : mClient(client) + : mWebView(nullptr) + , mClient(client) , mWidth(width) , mHeight(height) + , mUserAgent() , mWebEngineSettings(0) , mWebEngineContext(0) , mWebEngineCookieManager(0) diff --git a/dali-extension/web-engine-chromium/tizen-web-engine-context.cpp b/dali-extension/web-engine-chromium/tizen-web-engine-context.cpp index 9f74a15..66fcf60 100755 --- a/dali-extension/web-engine-chromium/tizen-web-engine-context.cpp +++ b/dali-extension/web-engine-chromium/tizen-web-engine-context.cpp @@ -28,7 +28,12 @@ namespace Plugin { TizenWebEngineContext::TizenWebEngineContext(Ewk_Context* context) - : ewkContext(context) + : webSecurityOriginAcquiredCallback(nullptr) + , webStorageUsageAcquiredCallback(nullptr) + , webFormPasswordAcquiredCallback(nullptr) + , webDownloadStartedCallback(nullptr) + , webMimeOverriddenCallback(nullptr) + , ewkContext(context) { } diff --git a/dali-extension/web-engine-chromium/tizen-web-engine-cookie-manager.cpp b/dali-extension/web-engine-chromium/tizen-web-engine-cookie-manager.cpp index 6bcaed0..165d5a5 100755 --- a/dali-extension/web-engine-chromium/tizen-web-engine-cookie-manager.cpp +++ b/dali-extension/web-engine-chromium/tizen-web-engine-cookie-manager.cpp @@ -26,6 +26,7 @@ namespace Plugin TizenWebEngineCookieManager::TizenWebEngineCookieManager(Ewk_Cookie_Manager* manager) : mEwkCookieManager(manager) , mCookieAcceptancePolicy(EWK_COOKIE_ACCEPT_POLICY_NO_THIRD_PARTY) + , mWebChangesWatchCallback(nullptr) { } -- 2.7.4