Fix Tizen device API access in window.onunload callback
authorLongXiang <xiang.long@intel.com>
Thu, 24 Jan 2013 08:30:47 +0000 (16:30 +0800)
committerGerrit Code Review <gerrit2@kim11>
Wed, 13 Feb 2013 04:39:09 +0000 (13:39 +0900)
commit0dd74625018e8e0cdefb3b35429eefca04e84952
treebb17adc20f1e6dbe9cd56fb12e70540fe70ef5db
parentffbaaf20a076c6dd421717d99eb16bfa299344c6
Fix Tizen device API access in window.onunload callback

[Issue#] N/A
[Problem] Can't access Tizen device APIs in window.onunload callback if current window is
replaced by another, like "window.open('new.html', '_self', '', true)".
[Cause] Plugin modules are unloaded in didStartProvisionalLoadForFrameCallback, however
unload event is sent out after that.
[Solution] Save frame context and handle it later in didCommitLoadForFrameCallback.
src/view/webkit/bundles/wrt-wk2-bundle.cpp
src/view/webkit/bundles/wrt-wk2-bundle.h