This patch fixes some critical SVACE issues.
Change-Id: I48296ccf49643421f7210d8d8d0502f31f38705a
Signed-off-by: v-saha <v.saha@samsung.com>
return 0;
}
- int32_t id;
+ int32_t id = 0;
browser_->CreateInstance(module->GetName(), &id, &jscode);
instance_map_[id] = module;
return id;
// Identifiers to find the RenderFrameHost that created |this|.
// NOTE: We store these IDs rather than a RenderFrameHost* because we do not
// know when the RenderFrameHost is destroyed.
- int render_process_id_;
- int routing_id_;
+ int render_process_id_ = 0;
+ int routing_id_ = 0;
// Temporary callback used for Initialize().
media::PipelineStatusCallback init_cb_;
SelectionControllerEfl& controller_;
// Handle object
- Evas_Object* handle_;
+ Evas_Object* handle_ = nullptr;
// Is pressed
bool pressed_;
SelectionControllerEfl* controller_;
// Magnifier
- Evas_Object* container_;
+ Evas_Object* container_ = nullptr;
// Image displayed on popup
Evas_Object* content_image_;
// Magnifier Height
- int height_;
+ int height_ = 0;
// Magnifier width
- int width_;
+ int width_ = 0;
// Is magnifier showing
bool shown_;
if (efl_delegate_) {
if (efl_delegate_->WebContentsCreateAsync(std::move(callback))) {
- DCHECK(new_contents);
- return &(
- static_cast<WebContentsImpl*>(new_contents)->GetPrimaryFrameTree());
+ return new_contents ? &(static_cast<WebContentsImpl*>(new_contents)
+ ->GetPrimaryFrameTree())
+ : nullptr;
} else {
return nullptr;
}
CHECK(web_view_);
}
+ virtual ~WebViewBrowserMessageFilterPrivate() = default;
+
void OnReceivedHitTestData(int render_view,
const Hit_Test_Params& params) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
private:
EWebContext(bool incognito, const std::string& injectedBundlePath);
- ~EWebContext();
+ virtual ~EWebContext();
friend class Ewk_Context;
static void LocalStorageUsageForOrigin(
const GURL& origin,