[Issue#] N/A
[Problem] Fail to set "allow"/"deny" even though user selects button
on the permision request popup
[Cause] Wrong argument passed to "SecurityOriginSupportUtil::getResult" API.
- Wrong Usage : popup evas_object
- Right Usage : button evas_object
[Solution] Change argument to correct evas_object for "button".
[SCMRequest] N/A
Change-Id: I6b02599837d5680747a9a2337cf3d6f29ef41c12
void popupCallback(void* data, Evas_Object* obj, void* eventInfo)
{
_D("called");
- DPL_UNUSED_PARAM(eventInfo);
- Assert(data);
Assert(obj);
+ Assert(data);
- PermissionData* permData = static_cast<PermissionData*>(data);
- Evas_Object* popup = getPopup(obj);
- setPermissionResult(permData, getResult(popup));
+ DPL_UNUSED_PARAM(eventInfo);
+ PermissionData* permData = static_cast<PermissionData*>(data);
+ setPermissionResult(permData, getResult(obj));
delete permData;
+
+ Evas_Object* popup = getPopup(obj);
evas_object_hide(popup);
evas_object_del(popup);
}