[Release] wrt-plugins-common_0.3.78 submit/tizen_2.1/20130330.121230
authorTaejeong Lee <taejeong.lee@samsung.com>
Sat, 30 Mar 2013 12:12:00 +0000 (21:12 +0900)
committerTaejeong Lee <taejeong.lee@samsung.com>
Sat, 30 Mar 2013 12:12:00 +0000 (21:12 +0900)
Change-Id: I45aeb8121744701a281ef71786c055a7c33d326b

20 files changed:
CMakeLists.txt
debian/DESCRIPTION [deleted file]
debian/README [deleted file]
debian/changelog [deleted file]
debian/compat [deleted file]
debian/control [deleted file]
debian/dirs [deleted file]
debian/docs [deleted file]
debian/rules [deleted file]
debian/wrt-plugins-common-dev.install.in [deleted file]
debian/wrt-plugins-common.install.in [deleted file]
debian/wrt-plugins-common.postinst.in [deleted file]
packaging/wrt-plugins-common.spec
src/js-overlay/js_overlay_addEventListener.cpp
src/js-overlay/js_overlay_addEventListener.h
src/js-overlay/js_overlay_support.cpp
src/plugin-loading/explorer.cpp
wrt-plugins-common.manifest
wrt-popup-ace-runtime.rule [new file with mode: 0644]
wrt-popup-wrt-runtime.rule [new file with mode: 0644]

index 2b454dc..6d2eeb9 100644 (file)
@@ -159,6 +159,11 @@ set(PLATFORM "${PLATFORM}" CACHE STRING "Target platform" FORCE)
 set(CMAKE_CONFIG_FILE_NAME "${CMAKE_CONFIG_FILE_NAME}" CACHE
     STRING "CMake configuration file name." FORCE)
 
+################################################################################
+# SMACK rule
+
+INSTALL(FILES ${CMAKE_SOURCE_DIR}/wrt-popup-ace-runtime.rule DESTINATION /etc/smack/accesses2.d)
+INSTALL(FILES ${CMAKE_SOURCE_DIR}/wrt-popup-wrt-runtime.rule DESTINATION /etc/smack/accesses2.d)
 
 ################################################################################
 # Summary
diff --git a/debian/DESCRIPTION b/debian/DESCRIPTION
deleted file mode 100644 (file)
index 158a449..0000000
+++ /dev/null
@@ -1 +0,0 @@
-Debian folder (rules, control etc.)
diff --git a/debian/README b/debian/README
deleted file mode 100644 (file)
index dcf36c7..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-The Debian Package wrt-plugins-common
-----------------------------
-
diff --git a/debian/changelog b/debian/changelog
deleted file mode 100644 (file)
index e55fa31..0000000
+++ /dev/null
@@ -1,870 +0,0 @@
-wrt-plugins-common (0.3.76) unstable; urgency=low
-
-  * Modification the root plugins register function
-  * Prevent issue fix
-
- -- Jihoon Chung <jihoon.chung@samsung.com>  Tue, 26 Mar 2013 17:40:02 +0900
-
-wrt-plugins-common (0.3.75) unstable; urgency=low
-
-  * Update unmerged source code
-  * Converter::toULong converts values from type double via type long
-  * Fix for GCC 4.7 compatibility
-
- -- Jihoon Chung <jihoon.chung@samsung.com>  Thu, 21 Mar 2013 12:50:31 +0900
-
-wrt-plugins-common (0.3.74) unstable; urgency=low
-
-  * Bug Fix for crash while webapi notification TC is running.
-
- -- Tae-Jeong Lee <taejeong.lee@samsung.com>  Mon, 11 Mar 2013 22:36:32 +0900
-
-wrt-plugins-common (0.3.73) unstable; urgency=low
-
-  * Fix injection of javascript
-  * 'on_frame_unload' plugin's callback is not invoked when webapp is terminated.
-  * Fix issues shown by cppcheck for wrt-plugins-common
-  * Fix warnings in compilation of wrt-plugins-common
-
- -- Tae-Jeong Lee <taejeong.lee@samsung.com>  Fri, 08 Mar 2013 17:21:00 +0900
-
-wrt-plugins-common (0.3.72) unstable; urgency=low
-
-  * Source code formating unification
-  * Prevent issues fixes
-
- -- Tae-Jeong Lee <taejeong.lee@samsung.com>  Wed, 13 Feb 2013 13:58:48 +0900
-
-wrt-plugins-common (0.3.71) unstable; urgency=low
-
-  * Fix script that populates DB for plugins-tests-widgetdb tests.
-  * Fix WrtAccess singleton deinitialize issue
-  * Preloading plugin so file was changed to work only for root object.
-  * Fixed wrong widget private path
-
- -- Soyoung Kim <sy037.kim@samsung.com>  Fri, 01 Feb 2013 17:00:54 +0900
-
-wrt-plugins-common (0.3.70) unstable; urgency=low
-
-  * Add tests - widgetdb
-  * PluginManager change to support tizen privilege policy.
-  * Merge "PluginManager change to support tizen privilege policy.
-
- -- Leerang Song <leerang.song@samsung.com>  Wed, 23 Jan 2013 22:36:46 +0900
-
-wrt-plugins-common (0.3.69) unstable; urgency=low
-
-  * Add initSession step in PluginLogic.
-  * [Prevent] Fixes issues with exceptions thrown out of main scope.
-  * Changed PkgName type from DPL::Optional<DPL::String> to DPL::String. PART 2
-  * [Prevent] Handle unhandled exceptions in wrt-popup.
-
- -- Tae-Jeong Lee <taejeong.lee@samsung.com>  Thu, 10 Jan 2013 11:29:27 +0900
-
-wrt-plugins-common (0.3.68) unstable; urgency=low
-
-  * Remove popup dependency from wrt-commons
-  * Add new popup: Ask YesNo with checkbox
-  * Missing boilerplate added
-  * Support plugin without feature define
-
-  * Git : framework/web/wrt-plugins-common
-  * Tag : wrt-plugins-common_0.3.68
-
- -- Jihoon Chung <jihoon.chung@samsung.com>  Tue, 18 Dec 2012 14:34:58 +0900
-
-wrt-plugins-common (0.3.67) unstable; urgency=low
-
-  * Information popup
-  * [Prevent] Ensure pointer is not NULL before it's referenced.
-  * [Prevent] Delete unreachable code.
-  * Popup cleaning
-
-  * Git : framework/web/wrt-plugins-common
-  * Tag : wrt-plugins-common_0.3.67
-
- -- Tae-Jeong Lee <taejeong.lee@samsung.com>  Thu, 13 Dec 2012 13:41:23 +0900
-
-wrt-plugins-common (0.3.66) unstable; urgency=low
-
-  * Unused code - removed modules CPU, MMPlayer
-  * Remove duplicated code in filesystem manager
-  * Duplicated code in plugins installer
-  * wrt-plugins-installer clean up
-  * Duplicated code in plugin loader
-  * Adjustment for usage of STL pointers - build break fix
-  * Fixed problem with running tests
-
-  * Git : framework/web/wrt-plugins-common
-  * Tag : wrt-plugins-common_0.3.66
-
- -- Jihoon Chung <jihoon.chung@samsung.com>  Mon, 10 Dec 2012 11:28:19 +0900
-
-wrt-plugins-common (0.3.63) unstable; urgency=low
-
-  * Fix for use after free
-  * Removal of factory_widget attribute and related functions
-  * Add Sanity Check for Plugin Logic
-  * Removed error generated by Tizen Robot on gerrit
-
-  * Git : framework/web/wrt-plugins-common
-  * Tag : wrt-plugins-common_0.3.63
-
- -- Jihoon Chung <jihoon.chung@samsung.com>  Fri, 23 Nov 2012 10:14:53 +0900
-
-wrt-plugins-common (0.3.62) unstable; urgency=low
-
-  * Add -ldl to link library libdl.so
-  * Add specific interface for support of custom js event
-  * Removal of factory_widget attribute and related functions 
-  * Fix for use after free 
-
-  * Git : framework/web/wrt-plugins-common
-  * Tag : wrt-plugins-common_0.3.61
-
- -- Yunchan Cho <yunchan.cho@samsung.com>  Thu, 15 Nov 2012 15:30:11 +0900
-
-wrt-plugins-common (0.3.61) unstable; urgency=low
-
-  * Memory leaks in popup runner
-  * Fixing a near buildbreak
-  * Fixes for recursive opendir
-  * Change profiling build
-  * Add thread enums for new plugin modules.
-
-  * Git : framework/web/wrt-plugins-common
-  * Tag : wrt-plugins-common_0.3.61
-
- -- Jihoon Chung <jihoon.chung@samsung.com>  Fri, 02 Nov 2012 11:28:36 +0900
-
-wrt-plugins-common (0.3.60) unstable; urgency=low
-
-  * New Plugin API #2 : Plugins-Installer
-  * Add license installing
-
-  * Git : framework/web/wrt-plugins-common
-  * Tag : wrt-plugins-common_0.3.60
-
- -- Jihoon Chung <jihoon.chung@samsung.com>  Fri, 12 Oct 2012 08:11:28 +0900
-
-wrt-plugins-common (0.3.59) unstable; urgency=low
-
-  * Manifest file fix
-
-  * Git : slp/pkgs/w/wrt-plugins-common
-  * Tag : wrt-plugins-common_0.3.59
-
- -- Tae-Jeong Lee <taejeong.lee@samsung.com>  Tue, 09 Oct 2012 21:00:45 +0900
-
-wrt-plugins-common (0.3.58) unstable; urgency=low
-
-  * [Plugins] Add wrt-popup
-  * [Plugins] New plugin API #1 : API
-  * [Plugins] Change path for "plugin-installation-required"
-
-  * Git : slp/pkgs/w/wrt-plugins-common
-  * Tag : wrt-plugins-common_0.3.58
-
- -- Jihoon Chung <jihoon.chung@samsung.com>  Fri, 05 Oct 2012 07:45:07 +0900
-
-wrt-plugins-common (0.3.57) unstable; urgency=low
-
-  * Add smack manifest
-
-  * Git : framework/web/wrt-plugins-common
-  * Tag : wrt-plugins-common_0.3.57
-
- -- Tae-Jeong Lee <taejeong.lee@samsung.com>  Thu, 20 Sep 2012 20:12:59 +0900
-
-wrt-plugins-common (0.3.56) unstable; urgency=low
-
-  * Read allowed plugins when session start
-  * Converer toLongLong conversion
-
-  * Git : framework/web/wrt-plugins-common
-  * Tag : wrt-plugins-common_0.3.56
-
- -- Tae-Jeong Lee <taejeong.lee@samsung.com>  Wed, 19 Sep 2012 12:14:22 +0900
-
-wrt-plugins-common (0.3.55) unstable; urgency=low
-
-  * [Plugins] Allow to initialize localStorage for many widgets
-  * [Plugins] Upgrade Security dependencies
-
-  * Git : slp/pkgs/w/wrt-plugins-common
-  * Tag : wrt-plugins-common_0.3.55
-
- -- Jihoon Chung <jihoon.chung@samsung.com>  Tue, 11 Sep 2012 15:35:20 +0900
-
-wrt-plugins-common (0.3.54) unstable; urgency=low
-
-  * [Plugins] Code clean up
-  * [Plugins] Multiple INVALID_WIDGET_HANDLE definition
-
-  * Git : slp/pkgs/w/wrt-plugins-common
-  * Tag : wrt-plugins-common_0.3.54
-
- -- Jihoon Chung <jihoon.chung@samsung.com>  Wed, 29 Aug 2012 13:40:06 +0900
-
-wrt-plugins-common (0.3.53) unstable; urgency=low
-
-  * Removed a unnecessary dependency.
-  * Add thread pool enum for new tizen download module.
-  * Added new build type for code coverage
-
-  * Git : slp/pkgs/w/wrt-plugins-common
-  * Tag : wrt-plugins-common_0.3.53
-
- -- Tae-Jeong Lee <taejeong.lee@samsung.com>  Wed, 08 Aug 2012 15:42:43 +0900
-
-wrt-plugins-common (0.3.52) unstable; urgency=low
-
-  * Update tag for adding "SEL Verification"
-
-  * Git : slp/pkgs/w/wrt-plugins-common
-  * Tag : wrt-plugins-common_0.3.52
-
- -- Jihoon Chung <jihoon.chung@samsung.com>  Wed, 01 Aug 2012 17:46:57 +0900
-
-wrt-plugins-common (0.3.51) unstable; urgency=low
-
-  * Support for multiple contexts in plugin logic
-  * Cleaned up loading plugin into iframes
-  * Added support for dispatch event and set properties in JS
-
-  * Git : slp/pkgs/w/wrt-plugins-common
-  * Tag : wrt-plugins-common_0.3.51
-
- -- Jihoon Chung <jihoon.chung@samsung.com>  Wed, 01 Aug 2012 13:28:24 +0900
-
-wrt-plugins-common (0.3.50) unstable; urgency=low
-
-  * Re-upload package
-
-  * Git : slp/pkgs/w/wrt-plugins-common
-  * Tag : wrt-plugins-common_0.3.50
-
- -- Jihoon Chung <jihoon.chung@samsung.com>  Tue, 31 Jul 2012 11:35:52 +0900
-
-wrt-plugins-common (0.3.49) unstable; urgency=low
-
-  * Revert "Update dependency".
-
-  * Git : slp/pkgs/w/wrt-plugins-common
-  * Tag : wrt-plugins-common_0.3.49
-
- -- Bartlomiej Grzelewski <b.grzelewski@samsung.com>  Mon, 30 Jul 2012 15:30:00 +0200
-
-wrt-plugins-common (0.3.48) unstable; urgency=low
-
-  * Re-upload package
-
-  * Git : slp/pkgs/w/wrt-plugins-common
-  * Tag : wrt-plugins-common_0.3.48
-
- -- Jihoon Chung <jihoon.chung@samsung.com>  Mon, 30 Jul 2012 10:09:01 +0900
-
-wrt-plugins-common (0.3.47) unstable; urgency=low
-
-  * Git : slp/pkgs/w/wrt-plugins-common
-  * Tag : wrt-plugins-common_0.3.47
-
- -- Leerang Song <leerang.song@samsung.com>  Fri, 27 Jul 2012 12:16:45 +0900
-
-wrt-plugins-common (0.3.46-1) unstable; urgency=low
-
-  * Fix tag for auto SR
-
-  * Git : slp/pkgs/w/wrt-plugins-common
-  * Tag : wrt-plugins-common_0.3.46-1
-
- -- Zbigniew Kostrzewa <z.kostrzewa@samsung.com>  Wed, 25 Jul 2012 15:44:54 +0200
-
-wrt-plugins-common (0.3.46) unstable; urgency=low
-
-  * Upgrade dependencies to wrt-security and security-server
-
-  * Git : slp/pkgs/w/wrt-plugins-common
-  * Tag : wrt-plugins-common_0.3.46
-
- -- Zbigniew Kostrzewa <z.kostrzewa@samsung.com>  Wed, 25 Jul 2012 15:34:13 +0200
-
-wrt-plugins-common (0.3.45) unstable; urgency=low
-
-  * readFeatures - performance improvement
-  * Upgrade dependencies
-
-  * Git : slp/pkgs/w/wrt-plugins-common
-  * Tag : wrt-plugins-common_0.3.45
-
- -- Jihoon Chung <jihoon.chung@samsung.com>  Wed, 25 Jul 2012 10:02:39 +0900
-
-wrt-plugins-common (0.3.44) natty; urgency=low
-
-  * fix build error in Plugin_property_support
-
-  * Git : slp/pkgs/w/wrt-plugins-common
-  * Tag : wrt-plugins-common_0.3.44
-
- -- Taejeong.lee <taejeong.lee@samsung.com>  Wed, 18 Jul 2012 19:35:41 +0900
-
-wrt-plugins-common (0.3.43) unstable; urgency=low
-
-  * "window.navigator.theme" property support.
-
-  * Git : slp/pkgs/w/wrt-plugins-common
-  * Tag : wrt-plugins-common_0.3.43
-
- -- Taejeong.lee <taejeong.lee@samsung.com>  Wed, 18 Jul 2012 17:45:56 +0900
-
-wrt-plugins-common (0.3.42) unstable; urgency=low
-
-  * Fixed CCR(#65374), jira(#WEB-1201)
-
-  * Git : slp/pkgs/w/wrt-plugins-common
-  * Tag : wrt-plugins-common_0.3.42
-
- -- Jihoon Chung <jihoon.chung@samsung.com>  Mon, 16 Jul 2012 11:06:24 +0900
-
-wrt-plugins-common (0.3.41-1) unstable; urgency=low
-
-  * Add tag for auto SR
-
-  * Git : slp/pkgs/w/wrt-plugins-common
-  * Tag : wrt-plugins-common_0.3.41-1
-
- -- Jihoon Chung <jihoon.chung@samsung.com>  Thu, 12 Jul 2012 15:59:21 +0900
-
-wrt-plugins-common (0.3.41) unstable; urgency=low
-
-  * Filesystem copy and move permission check fix
-  * Fix format of debian changelog entry
-
-  * Git : slp/pkgs/w/wrt-plugins-common
-  * Tag : wrt-plugins-common_0.3.41
-
- -- Jihoon Chung <jihoon.chung@samsung.com>  Thu, 12 Jul 2012 14:20:57 +0900
-
-wrt-plugins-common (0.3.40) unstable; urgency=low
-
-  * Revision to prevent a crash when Web process is terminated by OOM
-
-  * Git : slp/pkgs/w/wrt-plugins-common
-  * Tag : wrt-plugins-common_0.3.40
-
- -- Jihoon Chung <jihoon.chung@samsung.com>  Thu, 05 Jul 2012 09:40:36 +0900
-
-wrt-plugins-common (0.3.39) unstable; urgency=low
-
-  * Add TimeUtils API
-  * Change dependency to webkit2
-
-  * Git : slp/pkgs/w/wrt-plugins-common
-  * Tag : wrt-plugins-common_0.3.39
-
- -- Tae Jeong Lee <taejeong.lee@samsung.com>  Mon, 02 Jul 2012 15:01:03 +0900
-
-wrt-plugins-common (0.3.38) unstable; urgency=low
-
-  * Implementation of InjectedJavascript
-  * Changed ACE client usage to new C-API
-  * Klocwork fixes
-  * Add load and unload event for frame
-
-  * Git : slp/pkgs/w/wrt-plugins-common
-  * Tag : wrt-plugins-common_0.3.38
-
- -- Jihoon Chung <jihoon.chung@samsung.com>  Thu, 28 Jun 2012 16:34:35 +0900
-
-wrt-plugins-common (0.3.37) unstable; urgency=low
-
-  * Seperate js overlay module from widget interface and support new requirment of tizen appservice
-  * clear event listeners for custom event and its JSObject in case of page switch
-  * Fix for w3c-packaging-v9 test
-  * Move classes regarding management of js object to src/Commons
-  * add checking code on event dispatch handler of plugin logic
-
-  * Git : slp/pkgs/w/wrt-plugins-common
-  * Tag : wrt-plugins-common_0.3.37
-
- -- Jihoon Chung <jihoon.chung@samsung.com>  Mon, 11 Jun 2012 15:10:39 +0900
-
-wrt-plugins-common (0.3.36) unstable; urgency=low
-
-  * Removing DSEPARATED_SINGLETON_IMPLEMENTATION flag
-  * Fix generating database for WidgetInterfaceDAO
-  * signalEventByDispatcher() crash fix
-
-  * Git : slp/pkgs/w/wrt-plugins-common
-  * Tag : wrt-plugins-common_0.3.36
-
- -- Jihoon Chung <jihoon.chung@samsung.com>  Thu, 31 May 2012 14:19:20 +0900
-
-wrt-plugins-common (0.3.35) unstable; urgency=low
-
-  * Debianize for wrt-plugins-common_0.3.35
-
-  * Git : slp/pkgs/w/wrt-plugins-common
-  * Tag : wrt-plugins-common_0.3.35
-
- -- Tae-Jeong Lee <taejeong.lee@samsung.com>  Thu, 24 May 2012 18:16:08 +0900
-
-wrt-plugins-common (0.3.34) unstable; urgency=low
-
-  * Debianize for wrt-plugins-common_0.3.34
-  * Include below changes.
-    - [Security] WrtAccess class implementation changed to safe one.
-
-  * Git : slp/pkgs/w/wrt-plugins-common
-  * Tag : wrt-plugins-common_0.3.34
-
- -- Tae-Jeong Lee <taejeong.lee@samsung.com>  Thu, 17 May 2012 18:41:37 +0900
-
-wrt-plugins-common (0.3.33) unstable; urgency=low
-
-  * Fix toLong, toInt, toChar, toSizeT converters
-
-  * Git : slp/pkgs/w/wrt-plugins-common
-  * Tag : wrt-plugins-common_0.3.33
-
- -- Jihoon Chung <jihoon.chung@samsung.com>  Thu, 03 May 2012 10:18:10 +0900
-
-wrt-plugins-common (0.3.32) unstable; urgency=low
-
-  * Debianized for wrt-plugins-common_0.3.32
-
-  * Git : slp/pkgs/w/wrt-plugins-common
-  * Tag : wrt-plugins-common_0.3.32
-
- -- Tae-Jeong Lee <taejeong.lee@samsung.com>  Thu, 19 Apr 2012 15:48:10 +0900
-
-wrt-plugins-common (0.3.31) unstable; urgency=low
-
-  * Debianized for wrt-plugins-common_0.3.31
-
-  * Git : slp/pkgs/w/wrt-plugins-common
-  * Tag : wrt-plugins-common_0.3.31
-
- -- Jihoon Chung <jihoon.chung@samsung.com>  Mon, 09 Apr 2012 11:41:21 +0900
-
-wrt-plugins-common (0.3.30) unstable; urgency=low
-
-  * Debianized for wrt-plugins-common_0.3.30
-
-  * Git : slp/pkgs/w/wrt-plugins-common
-  * Tag : wrt-plugins-common_0.3.30
-
- -- Tae-Jeong Lee <taejeong.lee@samsung.com>  Mon, 09 Apr 2012 10:25:40 +0900
-
-wrt-plugins-common (0.3.29) unstable; urgency=low
-
-  * Debianized for wrt-plugins-common_0.3.29
-
-  * Git : slp/pkgs/w/wrt-plugins-common
-  * Tag : wrt-plugins-common_0.3.29
-
- -- Tae-Jeong Lee <taejeong.lee@samsung.com>  Fri, 23 Mar 2012 10:15:50 +0900
-
-wrt-plugins-common (0.3.28) unstable; urgency=low
-
-  * Debianized for wrt-plugins-common_0.3.28
-
-  * Git : slp/pkgs/w/wrt-plugins-common
-  * Tag : wrt-plugins-common_0.3.28
-
- -- Tae-Jeong Lee <taejeong.lee@samsung.com>  Tue, 20 Mar 2012 20:32:02 +0900
-
-wrt-plugins-common (0.3.27) unstable; urgency=low
-
-  * Filesystem export API is changed.
-
-  * Git : slp/pkgs/w/wrt-plugins-common
-  * Tag : wrt-plugins-common_0.3.27
-
- -- Tae-Jeong Lee <taejeong.lee@samsung.com>  Fri, 16 Mar 2012 15:19:57 +0900
-
-wrt-plugins-common (0.3.26) unstable; urgency=low
-
-  * Invalid attributes fixed for file
-  * Localization data used for widget interface instead of database
-  * Fix closing DBus connection
-  * wrt-plugins-commons test removing
-
-  * Git : slp/pkgs/w/wrt-plugins-common
-  * Tag : wrt-plugins-common_0.3.26
-
- -- Jihoon Chung <jihoon.chung@samsung.com>  Wed, 14 Mar 2012 19:43:54 +0900
-
-wrt-plugins-common (0.3.25) unstable; urgency=low
-
-  * Support OBS, SMACK
-
-  * Git : slp/pkgs/w/wrt-plugins-common
-  * Tag : wrt-plugins-common_0.3.25
-
- -- Yunchan Cho <yunchan.cho@samsung.com>  Tue, 13 Mar 2012 20:04:24 +0900
-
-wrt-plugins-common (0.3.24) unstable; urgency=low
-
-  * Revert 'Loading w3c plugin by default turned off'
-
-  * Git : slp/pkgs/w/wrt-plugins-common
-  * Tag : wrt-plugins-common_0.3.24
-
- -- Hoseon LEE <hoseon46.lee@samsung.com>  Sat, 10 Mar 2012 17:23:16 +0100
-
-wrt-plugins-common (0.3.23) unstable; urgency=low
-
-  * Loading w3c plugin by default turned off
-
-  * Git : slp/pkgs/w/wrt-plugins-common
-  * Tag : wrt-plugins-common_0.3.23
-
- -- Grzegorz Krawczyk <g.krawczyk@samsung.com>  Fri, 09 Feb 2012 17:23:16 +0100
-
-wrt-plugins-common (0.3.22) unstable; urgency=low
-
-  * Fixed problem with package installation
-
-  * Git : slp/pkgs/w/wrt-plugins-common
-  * Tag : wrt-plugins-common_0.3.22
-
- -- Grzegorz Krawczyk <g.krawczyk@samsung.com>  Mon, 05 Feb 2012 16:03:16 +0100
-
-wrt-plugins-common (0.3.21) unstable; urgency=low
-
-  * Debianized for 0.3.21
-
-  * Git : slp/pkgs/w/wrt-plugins-common
-  * Tag : wrt-plugins-common_0.3.21
-
- -- Tae-Jeong Lee <taejeong.lee@samsung.com>  Mon, 05 Mar 2012 10:56:10 +0900
-
-wrt-plugins-common (0.3.20) unstable; urgency=low
-
-  * Adjust to changes in wrt-security
-
-  * Git : slp/pkgs/w/wrt-plugins-common
-  * Tag : wrt-plugins-common_0.3.20
-
- -- Grzegorz Krawczyk <g.krawczyk@samsung.com>  Tue, 28 Feb 2012 17:43:16 +0100
-
-wrt-plugins-common (0.3.19) unstable; urgency=low
-
-  * Adjust to changes in email-service API.
-
-  * Git : slp/pkgs/w/wrt-plugins-common
-  * Tag : wrt-plugins-common_0.3.19
-
- -- Zbigniew Kostrzewa <z.kostrzewa@samsung.com>  Mon, 27 Feb 2012 09:23:46 +0100
-
-wrt-plugins-common (0.3.18-1) unstable; urgency=low
-
-  * Redebinized
-
-  * Git : slp/pkgs/w/wrt-plugins-common
-  * Tag : wrt-plugins-common_0.3.18-1
-
- -- Grzegorz Krawczyk <g.krawczyk@samsung.com>  Sat, 25 Feb 2012 11:06:51 +0100
-
-wrt-plugins-common (0.3.18) unstable; urgency=low
-
-  * Camera module turned on (try)
-  * Fixed package dependency
-
-  * Git : slp/pkgs/w/wrt-plugins-common
-  * Tag : wrt-plugins-common_0.3.18
-
- -- Grzegorz Krawczyk <g.krawczyk@samsung.com>  Sat, 25 Feb 2012 10:16:51 +0100
-
-wrt-plugins-common (0.3.17) unstable; urgency=low
-
-  * Camera module turned off
-
-  * Git : slp/pkgs/w/wrt-plugins-common
-  * Tag : wrt-plugins-common_0.3.17
-
- -- Grzegorz Krawczyk <g.krawczyk@samsung.com>  Fri, 24 Feb 2012 19:36:54 +0100
-
-wrt-plugins-common (0.3.16) unstable; urgency=low
-
-  * Messaging bugfix
-  * Camera: old implementation has been restored
-
-  * Git : slp/pkgs/w/wrt-plugins-common
-  * Tag : wrt-plugins-common_0.3.16
-
- -- Grzegorz Krawczyk <g.krawczyk@samsung.com>  Fri, 24 Feb 2012 18:56:54 +0100
-
-wrt-plugins-common (0.3.15) unstable; urgency=low
-
-  * Messaging module adjusted to API change in msg-service
-
-  * Git : slp/pkgs/w/wrt-plugins-common
-  * Tag : wrt-plugins-common_0.3.15
-
- -- Grzegorz Krawczyk <g.krawczyk@samsung.com>  Tue, 21 Feb 2012 18:26:14 +0100
-
-wrt-plugins-common (0.3.14) unstable; urgency=low
-
-  * WAC 2.0 Compliance - Messaging.
-
-  * Git : slp/pkgs/w/wrt-plugins-common
-  * Tag : wrt-plugins-common_0.3.14
-
- -- Zbigniew Kostrzewa <z.kostrzewa@samsung.com>  Mon, 20 Feb 2012 14:24:09 +0100
-
-wrt-plugins-common (0.3.13) unstable; urgency=low
-
-  * Download agent API Change
-
-  * Git : slp/pkgs/w/wrt-plugins-common
-  * Tag : wrt-plugins-common_0.3.13
-
- -- Grzegorz Krawczyk <g.krawczyk@samsung.com>  Fri, 17 Feb 2012 16:26:14 +0100
-
-wrt-plugins-common (0.3.12) unstable; urgency=low
-
-  * Download agent API Change
-
-  * Git : slp/pkgs/w/wrt-plugins-common
-  * Tag : wrt-plugins-common_0.3.12
-
- -- Hoseon LEE <hoseon46.lee@samsung.com>  Wed, 15 Feb 2012 17:56:14 +0900
-
-wrt-plugins-common (0.3.11) unstable; urgency=low
-
-  * change location of database file for widget interface
-  * Removing SLP, Bada ... strings for Source Open
-  * readAsText() API bug fix
-  * Update Threadpool
-
-  * Git : slp/pkgs/w/wrt-plugins-common
-  * Tag : wrt-plugins-common_0.3.11
-
- -- Jihoon Chung <jihoon.chung@samsung.com>  Tue, 14 Feb 2012 10:23:18 +0900
-
-wrt-plugins-common (0.3.10-1) unstable; urgency=low
-
-  * Debianize for Refactoring Phase2
-
-  * Git : slp/pkgs/w/wrt-plugins-common
-  * Tag : wrt-plugins-common_0.3.10-1
-
- -- Jihoon Chung <jihoon.chung@samsung.com>  Thu, 02 Feb 2012 16:24:20 +0900
-
-wrt-plugins-common (0.3.10) unstable; urgency=low
-
-  * Debianize for Refactoring Phase2
-
-  * Git : slp/pkgs/w/wrt-plugins-common
-  * Tag : wrt-plugins-common_0.3.10
-
- -- Jihoon Chung <jihoon.chung@samsung.com>  Tue, 31 Jan 2012 13:40:17 +0900
-
-wrt-plugins-common (0.3.9-1) unstable; urgency=low
-
-  * Redebianized due to problem with repository
-
-  * Git : slp/pkgs/w/wrt-plugins-common
-  * Tag : wrt-plugins-common_0.3.9-1
-
- -- Grzegorz Krawczyk <g.krawczyk@samsung.com>  Wed, 25 Jan 2012 17:05:05 +0100
-
-wrt-plugins-common (0.3.9) unstable; urgency=low
-
-  * Fix bug with plugin unloading
-
-  * Git : slp/pkgs/w/wrt-plugins-common
-  * Tag : wrt-plugins-common_0.3.9
-
- -- Grzegorz Krawczyk <g.krawczyk@samsung.com>  Wed, 25 Jan 2012 15:38:19 +0100
-
-wrt-plugins-common (0.3.8) unstable; urgency=low
-
-  * Debianize latest source
-
-  * Git : slp/pkgs/w/wrt-plugins-common
-  * Tag : wrt-plugins-common_0.3.8
-
- -- Yunchan Cho <yunchan.cho@samsung.com>  Wed, 25 Jan 2012 10:39:09 +0900
-
-wrt-plugins-common (0.3.7) unstable; urgency=low
-
-  * Repository adopted to new wrt-commons
-
-  * Git : slp/pkgs/w/wrt-plugins-common
-  * Tag : wrt-plugins-common_0.3.7
-
- -- Grzegorz Krawczyk <g.krawczyk@samsung.com>  Fri, 20 Jan 2012 16:34:19 +0100
-
-wrt-plugins-common (0.3.6-1) unstable; urgency=low
-
-  * (Redebianized) Modified usage of Ace Thin Client
-
-  * Git : slp/pkgs/w/wrt-plugins-common
-  * Tag : wrt-plugins-common_0.3.6-1
-
- -- Grzegorz Krawczyk <g.krawczyk@samsung.com>  Thu, 19 Jan 2012 14:44:39 +0100
-
-wrt-plugins-common (0.3.6) unstable; urgency=low
-
-  * Modified usage of Ace Thin Client
-
-  * Git : slp/pkgs/w/wrt-plugins-common
-  * Tag : wrt-plugins-common_0.3.6
-
- -- Grzegorz Krawczyk <g.krawczyk@samsung.com>  Thu, 19 Jan 2012 14:34:29 +0100
-
-wrt-plugins-common (0.3.5) unstable; urgency=low
-
-  * Webkit2(Refactoring) branch merged
-
-  * Git : slp/pkgs/w/wrt-plugins-common
-  * Tag : wrt-plugins-common_0.3.5
-
- -- Jihoon Chung <jihoon.chung@samsung.com>  Mon, 16 Jan 2012 16:21:49 +0900
-
-wrt-plugins-common (0.3.4) unstable; urgency=low
-
-  * Plugin Manager class implemented.
-
-  * Git : slp/pkgs/w/wrt-plugins-commons
-  * Tag : wrt-plugins-common_0.3.4
-
- -- Grzegorz Krawczyk <g.krawczyk@samsung.com>  Wed, 03 Jan 2011 15:27:19 +0100
-
-wrt-plugins-common (0.3.3) unstable; urgency=low
-
-  * Module names cleaned up. Removed old 'deviceapis' and 'commons' names.
-
-  * Git : slp/pkgs/w/wrt-plugins-commons
-  * Tag : wrt-plugins-common_0.3.3
-
- -- Grzegorz Krawczyk <g.krawczyk@samsung.com>  Fri, 23 Dec 2011 13:17:19 +0100
-
-wrt-plugins-common (0.3.2) unstable; urgency=low
-
-  * Access to WidgetDB modified
-
-  * Git : slp/pkgs/w/wrt-plugins-commons
-  * Tag : wrt-plugins-common_0.3.2
-
- -- Grzegorz Krawczyk <g.krawczyk@samsung.com>  Thu, 22 Dec 2011 15:04:17 +0100
-
-wrt-plugins-common (0.3.1) unstable; urgency=low
-
-  * Installation path for commons modules modified to /usr/lib
-
-  * Git : slp/pkgs/w/wrt-plugins-commons
-  * Tag : wrt-plugins-common_0.3.1
-
- -- Grzegorz Krawczyk <g.krawczyk@samsung.com>  Mon, 19 Dec 2011 14:04:17 +0100
-
-wrt-plugins-common (0.3.0) unstable; urgency=low
-
-  * Debianize 0.3.0 for Webkit2 branch
-
-  * Git : 165.213.180.234:slp/pkgs/w/wrt-plugins-commons
-  * Tag : wrt-plugins-common_0.3.0
-
- -- Grzegorz Krawczyk <g.krawczyk@samsung.com>  Thu, 15 Dec 2011 16:28:32 +0100
-
-wrt-plugins-common (0.2.2) unstable; urgency=low
-
-  * Calendar module fixes
-
-  * Git : slp/pkgs/w/wrt-plugins-commons
-  * Tag : wrt-plugins-common_0.2.2
-
- -- Yunchan Cho <yunchan.cho@samsung.com>  Tue, 20 Dec 2011 10:54:23 +0900
-
-wrt-plugins-common (0.2.1) unstable; urgency=low
-
-  * Apply changed notification macros of email-service
-
-  * Git : 165.213.180.234:slp/pkgs/w/wrt-plugins-commons
-  * Tag : wrt-plugins-common_0.2.1
-
- -- Yunchan Cho <yunchan.cho@samsung.com>  Thu, 15 Dec 2011 15:21:51 +0900
-
-wrt-plugins-common (0.2.0) unstable; urgency=low
-
-  * Debianize 0.2.0
-
-  * Git : 165.213.180.234:slp/pkgs/w/wrt-plugins-commons
-  * Tag : wrt-plugins-common_0.2.0
-
- -- Taejeong Lee <taejeong.lee@samsung.com>  Thu, 08 Dec 2011 12:54:32 +0900
-
-wrt-plugins-common (0.1.10) unstable; urgency=low
-
-  * Debianize 0.1.10
-
-  * Git : 165.213.180.234:slp/pkgs/w/wrt-plugins-commons
-  * Tag : wrt-deviceapis-commons_0.1.10
-
- -- Taejeong Lee <taejeong.lee@samsung.com>  Fri, 02 Dec 2011 16:06:35 +0900
-
-wrt-deviceapis-commons (0.1.9) unstable; urgency=low
-
-  * Debianize for connection manager.
-
-  * Git : 165.213.180.234:slp/pkgs/w/wrt-plugins-commons
-  * Tag : wrt-deviceapis-commons_0.1.9
-
- -- Taejeong Lee <taejeong.lee@samsung.com>  Tue, 29 Nov 2011 14:05:32 +0900
-
-wrt-deviceapis-commons (0.1.8) unstable; urgency=low
-
-  * Fixed problem with assignment operator
-
-  * Git : 165.213.180.234:slp/pkgs/w/wrt-plugins-commons
-  * Tag : wrt-deviceapis-commons_0.1.8
-
- -- Grzegorz Krawczyk <g.krawczyk@samsung.com>  Wed, 23 Nov 2011 17:38:22 +0100
-
-wrt-deviceapis-commons (0.1.7) unstable; urgency=low
-
-  * Debianized for SDK release.
-
-  * Git : 165.213.180.234:slp/pkgs/w/wrt-plugins-commons
-  * Tag : wrt-deviceapis-commons_0.1.7
-
- -- taejeong.lee <taejeong.lee@samsung.com>  Wed, 23 Nov 2011 21:27:15 +0900
-
-wrt-deviceapis-commons (0.1.6) unstable; urgency=low
-
-  * change slp.h to tizen.h
-
-  * Git : 165.213.180.234:slp/pkgs/w/wrt-plugins-commons
-  * Tag : wrt-deviceapis-commons_0.1.6
-
- -- Jaehyun Park <jaehyun77.park@samsung.com>  Wed, 23 Nov 2011 19:17:27 +0900
-
-wrt-deviceapis-commons (0.1.5) unstable; urgency=low
-
-  * Fixed emmiters behaviour
-
-  * Git : 165.213.180.234:slp/pkgs/w/wrt-plugins-commons
-  * Tag : wrt-deviceapis-commons_0.1.5
-
- -- Grzegorz Krawczyk <g.krawczyk@samsung.com>  Mon, 21 Nov 2011 14:31:32 +0100
-
-wrt-deviceapis-commons (0.1.4) unstable; urgency=low
-
-  * Fix segmentation fault when msg-service returns NULL body
-
-  * Git : 165.213.180.234:slp/pkgs/w/wrt-plugins-commons
-  * Tag : wrt-deviceapis-commons_0.1.4
-
- -- Grzegorz Krawczyk <g.krawczyk@samsung.com>  Thu, 10 Nov 2011 11:11:17 +0100
-
-wrt-deviceapis-commons (0.1.3) unstable; urgency=low
-
-  * Upload to package repository
-
-  * Git : 165.213.180.234:slp/pkgs/w/wrt-plugins-commons
-  * Tag : wrt-deviceapis-commons_0.1.3
-
- -- Grzegorz Krawczyk <g.krawczyk@samsung.com>  Tue, 08 Nov 2011 10:21:19 +0100
diff --git a/debian/compat b/debian/compat
deleted file mode 100644 (file)
index 7ed6ff8..0000000
+++ /dev/null
@@ -1 +0,0 @@
-5
diff --git a/debian/control b/debian/control
deleted file mode 100644 (file)
index 1b7e1af..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-Source: wrt-plugins-common
-Section: devel
-Priority: extra
-Maintainer: Piotr Fatyga <p.fatyga@samsung.com>, Grzegorz Krawczyk <g.krawczyk@samsung.com>, Zbigniew Kostrzewa <z.kostrzewa@samsung.com>, Taehee Lee <th219.lee@samsung.com>
-Build-Depends: debhelper (>= 5), libwebkit2-efl-dev, wrt-commons-dev (>=0.2.7), libmm-player-dev, libmm-sound-dev, libpcre-dev, libglib2.0-dev, iniparser-dev, wrt-security-dev(>= 0.0.28)
-Uploaders: Hoseon LEE <hoseon46.lee@samsung.com>, Taejeong Lee <taejeong.lee@samsung.com>, Jaehyun Park <jaehyun77.park@samsung.com>
-
-Package: wrt-plugins-common
-Architecture: any
-Section: libs
-Depends: ${shlibs:Depends}, ${misc:Depends}, wrt-security(>= 0.0.28)
-Description: Common modules for creation JavaScript's plugins
-
-Package: wrt-plugins-common-dev
-Architecture: any
-Section: libs
-Depends: wrt-plugins-common (= ${Source-Version}), libwebkit2-efl-dev, wrt-commons-dev (>=0.2.7)
-Description: Common modules for creation JavaScript's plugins -dev
-
-Package: wrt-plugins-common-dbg
-Architecture: any
-Section: debug
-Depends: ${shlibs:Depends}, ${misc:Depends}, wrt-plugins-common (= ${Source-Version})
-Description: Common modules for creation JavaScript's plugins - debug
diff --git a/debian/dirs b/debian/dirs
deleted file mode 100644 (file)
index ca882bb..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-usr/bin
-usr/sbin
diff --git a/debian/docs b/debian/docs
deleted file mode 100644 (file)
index e69de29..0000000
diff --git a/debian/rules b/debian/rules
deleted file mode 100755 (executable)
index 70b9d33..0000000
+++ /dev/null
@@ -1,111 +0,0 @@
-#!/usr/bin/make -f
-# -*- makefile -*-
-# Sample debian/rules that uses debhelper.
-# This file was originally written by Joey Hess and Craig Small.
-# As a special exception, when this file is copied by dh-make into a
-# dh-make output file, you may use that output file without restriction.
-# This special exception was added by Craig Small in version 0.37 of dh-make.
-
-PACKAGE_VERSION ?= $(shell dpkg-parsechangelog | sed -n 's/^Version: // p')
-PREFIX ?= /usr
-CMAKE_BUILD_DIR ?= $(CURDIR)/cmake_build
-LDFLAGS += -Wl,--rpath=$(PREFIX)/lib -Wl,--as-needed -Wl,--hash-style=both -Wl,--version-script=$(CURDIR)/wrt-plugins-common.map
-
-ifeq (,$(findstring no,$(DPL_LOGS)))
-       DPL_LOGS_STATUS = "ON"
-else
-       DPL_LOGS_STATUS = "OFF"
-endif
-
-configure-stamp:
-               dh_testdir
-               # Add here commands to configure the package.
-                       mkdir -p $(CMAKE_BUILD_DIR) && cd $(CMAKE_BUILD_DIR) && \
-               CFLAGS= cmake ${SRCDIR}  \
-                       LDFLAGS="$(LDFLAGS)" \
-                       -DCMAKE_INSTALL_PREFIX="${PREFIX}"      \
-                       -DDPL_LOG=$(DPL_LOGS_STATUS)            \
-                       -DCMAKE_PROJECT_VERSION="$(PACKAGE_VERSION)" ..
-build: build-stamp
-
-build-stamp:  configure-stamp
-       dh_testdir
-
-       # Add here commands to compile the package.
-       cd $(CMAKE_BUILD_DIR) && $(MAKE) -j4
-       #docbook-to-man debian/ncurses.sgml > ncurses.1
-
-       for f in `find $(CURDIR)/debian/ -name "*.in"`; do \
-               cat $$f > $${f%.in}; \
-               sed -i -e "s#@PREFIX@#$(PREFIX)#g" $${f%.in}; \
-       done
-
-       touch $@
-
-clean:
-       dh_testdir
-       dh_testroot
-       rm -f build-stamp configure-stamp
-       rm -rf $(CMAKE_BUILD_DIR)
-#      -$(MAKE) distclean
-       ./clean.sh
-
-ifneq "$(wildcard /usr/share/misc/config.sub)" ""
-       cp -f /usr/share/misc/config.sub config.sub
-endif
-ifneq "$(wildcard /usr/share/misc/config.guess)" ""
-       cp -f /usr/share/misc/config.guess config.guess
-endif
-
-       for f in `find $(CURDIR)/ -name "*.pc"`; do \
-               rm -f $${f%.pc}; \
-       done
-
-       dh_clean
-
-install: build
-       dh_testdir
-       dh_testroot
-       dh_clean -k
-       dh_installdirs
-
-       # Add here commands to install the package into debian/ncurses.
-       cd $(CMAKE_BUILD_DIR) && $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install
-
-# Build architecture-independent files here.
-binary-indep: build install
-# We have nothing to do by default.
-
-# Build architecture-dependent files here.
-binary-arch: build install
-       dh_testdir
-       dh_testroot
-       dh_installchangelogs
-       dh_installdocs
-       dh_installexamples
-       dh_install --sourcedir=debian/tmp
-#      dh_installmenu
-#      dh_installdebconf
-#      dh_installlogrotate
-#      dh_installemacsen
-#      dh_installpam
-#      dh_installmime
-#      dh_python
-#      dh_installinit
-#      dh_installcron
-#      dh_installinfo
-       dh_installman
-       dh_link
-       dh_strip --dbg-package=wrt-plugins-common-dbg
-       dh_compress
-       dh_fixperms
-#      dh_perl
-       dh_makeshlibs
-       dh_installdeb
-       dh_shlibdeps
-       dh_gencontrol
-       dh_md5sums
-       dh_builddeb
-
-binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install
diff --git a/debian/wrt-plugins-common-dev.install.in b/debian/wrt-plugins-common-dev.install.in
deleted file mode 100644 (file)
index 7fea3e5..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-
-@PREFIX@/include/*
-@PREFIX@/lib/pkgconfig/*
-@PREFIX@/lib/*.so
diff --git a/debian/wrt-plugins-common.install.in b/debian/wrt-plugins-common.install.in
deleted file mode 100644 (file)
index 147bd73..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-@PREFIX@/lib/*.so.*
-@PREFIX@/lib/wrt-plugins/*
-@PREFIX@/etc/wrt-plugins/config.dtd
-
-/usr/share/wrt-plugins-common/widget_interface_db.sql
diff --git a/debian/wrt-plugins-common.postinst.in b/debian/wrt-plugins-common.postinst.in
deleted file mode 100644 (file)
index d808af0..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-#!/bin/sh
-
-mkdir -p /usr/lib/wrt-plugins
-mkdir -p /usr/etc/wrt/injected-javascript
-
-touch /opt/apps/widget/plugin-installation-required
\ No newline at end of file
index 473b1a1..438d720 100644 (file)
@@ -1,7 +1,7 @@
-#git:framework/web/wrt-plugins-common wrt-plugins-common_0.3.76
+#git:framework/web/wrt-plugins-common wrt-plugins-common_0.3.78
 Name:       wrt-plugins-common
 Summary:    wrt-plugins common library
-Version:    0.3.76
+Version:    0.3.78
 Release:    1
 Group:      Development/Libraries
 License:    Apache License, Version 2.0
@@ -76,7 +76,8 @@ touch /opt/share/widget/plugin-installation-required
 %attr(755,root,root) %{_bindir}/wrt-popup-wrt-runtime
 %attr(755,root,root) %{_bindir}/wrt-plugins-installer
 %{_datadir}/license/%{name}
-
+/etc/smack/accesses2.d/wrt-popup-ace-runtime.rule
+/etc/smack/accesses2.d/wrt-popup-wrt-runtime.rule
 %if %{with_tests}
     %attr(755,root,root) %{_bindir}/widgetdb_tests_prepare_db.sh
     %attr(755,root,root) %{_bindir}/wrt-plugins-common-tests-widgetdb
index 1caf179..8cb6801 100644 (file)
@@ -32,6 +32,7 @@
 
 namespace WrtPlugins {
 namespace W3C {
+
 const std::string storageEventName = "storage";
 const std::string appServiceEventName = "appservice";
 const std::string softKeyboardChangeEventName = "softkeyboardchange";
@@ -40,42 +41,21 @@ AddEventListenerSupport::IFramesListeners
 AddEventListenerSupport::m_listeners =
     AddEventListenerSupport::IFramesListeners();
 
-JSContextRef AddEventListenerSupport::m_context = NULL;
-
-void AddEventListenerSupport::initialize(JSContextRef context)
-{
-    if (!m_context) {
-        m_context = context;
-    }
-}
-
-void AddEventListenerSupport::deinitialize()
-{
-    if (!m_context) {
-        LogDebug("Not yet initialized");
-    }
-
-    m_listeners.clear();
-    m_context = NULL;
-}
-
-bool AddEventListenerSupport::isInitialized()
-{
-    return m_context != NULL;
-}
-
-JSValueRef AddEventListenerSupport::
-    AddEventListener(JSContextRef context,
-                     JSObjectRef object,
-                     JSObjectRef thisObject,
-                     size_t argumentCount,
-                     const JSValueRef arguments[],
-                     JSValueRef* /*exception*/)
+JSValueRef AddEventListenerSupport::AddEventListener(
+        JSContextRef context,
+        JSObjectRef object,
+        JSObjectRef thisObject,
+        size_t argumentCount,
+        const JSValueRef arguments[],
+        JSValueRef* /*exception*/)
 {
     LogDebug("Add event listener invoked");
     LogDebug("This(iframe?):" << thisObject);
     LogDebug("object:" << object);
 
+    JSContextRef global_context = JSContextGetGlobalContext(context);
+    LogDebug("context:" << context << "(global:" << global_context << ")");
+
     if (argumentCount < 2 || !JSValueIsString(context, arguments[0])) {
         LogError("Wrong arguments");
         return JSValueMakeUndefined(context);
@@ -93,20 +73,18 @@ JSValueRef AddEventListenerSupport::
         return JSValueMakeUndefined(context);
     }
 
-    JSValueProtect(m_context, arguments[1]);
-    JSObjectRef objectCb =
-        JSValueToObject(m_context,
-                        arguments[1],
-                        NULL);
-    if (!JSObjectIsFunction(m_context, objectCb)) {
+    JSObjectRef objectCb = JSValueToObject(context, arguments[1], NULL);
+    if (!JSObjectIsFunction(context, objectCb)) {
         LogError("JS object is not a function");
         return JSValueMakeUndefined(context);
     }
+    JSValueProtect(global_context, arguments[1]);
     //add object to Listeners
     //set event information according to each event type
     CallbackData data;
     data.object = objectCb;
     data.thisObject = thisObject;
+    data.context = global_context;
 
     if (eventName == storageEventName) {
         data.eventType = StorageCustomEvent;
@@ -121,13 +99,27 @@ JSValueRef AddEventListenerSupport::
     return JSValueMakeUndefined(context);
 }
 
-void AddEventListenerSupport::
-    CallStorageListenersFromDifferentIFrames(
-    JSObjectRef iframe,
-    const WrtDeviceApis::StorageEvent::Api::IStorageEventPtr& event)
+void AddEventListenerSupport::RemoveIFrame(JSObjectPtr iframe)
+{
+    auto it = m_listeners.find(iframe->getObject());
+    if (it == m_listeners.end()) {
+        LogWarning("Iframe not registered");
+        return;
+    }
+
+    FOREACH(listener, *it->second)
+    {
+        JSValueUnprotect(listener->context, listener->object);
+    }
+    m_listeners.erase(it);
+    LogDebug("Iframe removed from add event listener object");
+}
+
+void AddEventListenerSupport::CallStorageListenersFromDifferentIFrames(
+        JSObjectRef iframe,
+        const WrtDeviceApis::StorageEvent::Api::IStorageEventPtr& event)
 {
     LogDebug("Invoked callbacks");
-    LogInfo("Context: " << m_context);
 
     FOREACH(it, m_listeners)
     {
@@ -135,44 +127,42 @@ void AddEventListenerSupport::
             continue;
         }
 
-        auto eventPriv = new JSStorageEventPrivateObject(m_context,
-                                                         event);
-
-        JSObjectRef eventObject =
-            JSObjectMake(m_context, JSStorageEvent::getClassRef(), eventPriv);
-        const size_t argc = 1;
-        JSValueRef argv[argc] = { eventObject };
-
-        JSValueProtect(m_context, eventObject);
-
         FOREACH(listener, *it->second)
         {
             LogDebug("Call");
 
-            if (listener->eventType ==
-                StorageCustomEvent)
+            auto eventPriv =
+                new JSStorageEventPrivateObject(listener->context, event);
+
+            JSObjectRef eventObject =
+                JSObjectMake(listener->context, JSStorageEvent::getClassRef(), eventPriv);
+            const size_t argc = 1;
+            JSValueRef argv[argc] = { eventObject };
+
+            JSValueProtect(listener->context, eventObject);
+
+            if (listener->eventType == StorageCustomEvent)
             {
                 JSObjectCallAsFunction(
-                    m_context,
+                    listener->context,
                     listener->object,
                     NULL,
                     argc,
                     argv,
                     NULL);
             }
-        }
 
-        JSValueUnprotect(m_context, eventObject);
+            JSValueUnprotect(listener->context, eventObject);
+        }
     }
 
     LogDebug("Done");
 }
 
-void AddEventListenerSupport::
-    CallCustomEventListenersFromIFrame(
-    JSObjectRef iframe,
-    CustomEventType eventType,
-    JSObjectRef eventObject)
+void AddEventListenerSupport::CallCustomEventListenersFromIFrame(
+        JSObjectRef iframe,
+        CustomEventType eventType,
+        JSObjectRef eventObject)
 {
     LogDebug("Invoked callbacks");
 
@@ -185,13 +175,12 @@ void AddEventListenerSupport::
     const size_t argc = 1;
     JSValueRef argv[argc] = { eventObject };
 
-    JSValueProtect(m_context, eventObject);
     FOREACH(listener, *it->second)
     {
         if (listener->eventType == eventType) {
             LogDebug("Call");
             JSObjectCallAsFunction(
-                m_context,
+                listener->context,
                 listener->object,
                 iframe,
                 argc,
@@ -199,7 +188,6 @@ void AddEventListenerSupport::
                 NULL);
         }
     }
-    JSValueUnprotect(m_context, eventObject);
     LogDebug("Done");
 }
 
index bfbd0b0..0a9717e 100644 (file)
 #include <list>
 #include <memory>
 #include <JavaScriptCore/JavaScript.h>
+#include <JavaScriptCore/JSContextRef.h>
 #include <StorageEvent/IStorageEvent.h>
 #include <TizenServiceEvent/ITizenServiceEvent.h>
 #include <js_overlay_types.h>
+#include <JSObject.h>
+
+// import temporarily from JSContextRefPrivate.h
+extern "C" JSGlobalContextRef JSContextGetGlobalContext(JSContextRef ctx);
 
 namespace WrtPlugins {
 namespace W3C {
 class AddEventListenerSupport
 {
   public:
-    static void initialize(JSContextRef context);
-    static void deinitialize();
-
-    static bool isInitialized();
-
     static JSValueRef AddEventListener(JSContextRef context,
                                        JSObjectRef object,
                                        JSObjectRef thisObject,
@@ -50,6 +50,8 @@ class AddEventListenerSupport
                                        const JSValueRef arguments[],
                                        JSValueRef* exception);
 
+    static void RemoveIFrame(JSObjectPtr iframe);
+
     static void CallStorageListenersFromDifferentIFrames(
         JSObjectRef iframe,
         const WrtDeviceApis::StorageEvent::Api::IStorageEventPtr& event);
@@ -65,6 +67,7 @@ class AddEventListenerSupport
         CustomEventType eventType;
         JSObjectRef object;
         JSObjectRef thisObject;
+        JSContextRef context;
     };
 
     typedef std::list<CallbackData> Listeners;
@@ -73,7 +76,6 @@ class AddEventListenerSupport
     //first-iframe, 2nd - listeners list
     typedef std::map<JSObjectRef, ListenersPtr> IFramesListeners;
 
-    static JSContextRef m_context;
     static IFramesListeners m_listeners;
 
   private:
index 9bd809e..cad75a5 100644 (file)
@@ -158,7 +158,7 @@ JSValueRef JSFunctionDispatcher::callAsFunction(
     if (priv->overlayFunction->getObject()) {
         LogDebug("Overlayed function will be invoked...");
         result = JSObjectCallAsFunction(
-                context,
+                priv->context,
                 static_cast<JSObjectRef>(
                     priv->overlayFunction->getObject()),
                 thisObject,
index fc69a28..3a76b3a 100644 (file)
@@ -63,21 +63,10 @@ Explorer::Explorer(JSGlobalContextRef context) :
     m_iframeSupport.registerIframe(m_globalObject);
 
     m_propertySupport.reset(new WindowPropertySupport(m_context));
-
-    // initialization for use of custom event
-    if (!AddEventListenerSupport::isInitialized()) {
-        LogInfo("initialization for use of custom event");
-        AddEventListenerSupport::initialize(context);
-    }
 }
 
 Explorer::~Explorer()
 {
-    // deinitialization for use of custom event
-    if (AddEventListenerSupport::isInitialized()) {
-        LogInfo("deinitialization for use of custom event");
-        AddEventListenerSupport::deinitialize();
-    }
 }
 
 JSObjectPtr Explorer::getJSObjectProperty(const std::string& propertyName,
@@ -353,6 +342,7 @@ void Explorer::unloadFrame(JSGlobalContextRef context)
     JSObjectPtr frameObject =
         JavaScriptInterfaceSingleton::Instance().getGlobalObject(context);
 
+    AddEventListenerSupport::RemoveIFrame(frameObject);
     m_iframeSupport.unregisterIframe(frameObject);
 }
 
index f717929..32dd898 100644 (file)
@@ -1,11 +1,12 @@
 <manifest>
   <define>
-    <domain name="wrt-plugins-common" />
-    <provide>
-      <label name="wrt-plugins-common::wrt-plugins-installer" />
-    </provide>
+    <domain name="wrt-plugins-common"/>
   </define>
+  <assign>
+    <filesystem path="/usr/bin/wrt-popup-ace-runtime" label="wrt-popup-ace-runtime" exec_label="wrt-popup-ace-runtime"/>
+    <filesystem path="/usr/bin/wrt-popup-wrt-runtime" label="wrt-popup-wrt-runtime" exec_label="wrt-popup-wrt-runtime"/>
+  </assign>
   <request>
-    <domain name="_" />
+    <domain name="_"/>
   </request>
 </manifest>
diff --git a/wrt-popup-ace-runtime.rule b/wrt-popup-ace-runtime.rule
new file mode 100644 (file)
index 0000000..8b27008
--- /dev/null
@@ -0,0 +1,11 @@
+wrt-popup-ace-runtime system::homedir rwx
+wrt-popup-ace-runtime device::app_logging w
+wrt-popup-ace-runtime ail::db rw
+wrt-popup-ace-runtime xorg wx
+wrt-popup-ace-runtime isf rx
+wrt-popup-ace-runtime system::vconf rwx
+wrt-popup-ace-runtime sound_server rw
+e17 wrt-popup-ace-runtime w
+wrt-popup-ace-runtime system::share rwx
+wrt-popup-ace-runtime pulseaudio wx
+
diff --git a/wrt-popup-wrt-runtime.rule b/wrt-popup-wrt-runtime.rule
new file mode 100644 (file)
index 0000000..0667ebe
--- /dev/null
@@ -0,0 +1,11 @@
+wrt-popup-wrt-runtime system::homedir rwx
+wrt-popup-wrt-runtime device::app_logging w
+wrt-popup-wrt-runtime ail::db rw
+wrt-popup-wrt-runtime xorg wx
+wrt-popup-wrt-runtime isf rx
+wrt-popup-wrt-runtime system::vconf rwx
+wrt-popup-wrt-runtime sound_server rw
+e17 wrt-popup-wrt-runtime w
+wrt-popup-wrt-runtime system::share rwx
+wrt-popup-wrt-runtime pulseaudio wx
+