[XWalkExtension] Fix dangling issue of GetMetadataValue 31/308931/4 submit/tizen/20240407.160014
authorDongHyun Song <dh81.song@samsung.com>
Wed, 3 Apr 2024 00:54:38 +0000 (09:54 +0900)
committerBot Blink <blinkbot@samsung.com>
Sun, 7 Apr 2024 09:46:14 +0000 (09:46 +0000)
commit3953af1cef55131bb676a8df272fba5b1ee8254d
treed2dfdfca5ff13171ab5034074c4183467a61c384
parentbb345c85101b7e8f78f03c2f39c2d9de79dd60e8
[XWalkExtension] Fix dangling issue of GetMetadataValue

It cannot return local std::string's c_str() value as a return
value. It can be a dangling pointer.

Change-Id: I6e00b594e267433b17f56998886fd9344c9d0a80
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
tizen_src/chromium_impl/components/xwalk_extensions/browser/xwalk_extension.cc
tizen_src/chromium_impl/components/xwalk_extensions/public/XW_Extension_Runtime.h