framework/web/wrt.git
10 years ago[Release] wrt_0.8.293
sung-su.kim [Tue, 29 Oct 2013 02:17:41 +0000 (11:17 +0900)]
[Release] wrt_0.8.293

Change-Id: Ice0c17ea1b109e151bd54e216f59a09ce8906f89

10 years agoWrt patch for plugin process labeling to assign a separate label from UI process.
Tae-Jeong Lee [Mon, 23 Sep 2013 13:17:02 +0000 (22:17 +0900)]
Wrt patch for plugin process labeling to assign a separate label from UI process.

 - This patch includes 'EXECUTE_ON_WHOLE_THREAD()' utility which can be used
   when tring to execute same routine on whole thread a each.

[Issue#]   N/A
[Problem]  Wrt should assign a separated smack label from UI process to Plugin Process.
[Cause]    Because a child process inherits parent's smack label in linux system,
           We needed a special processing for smack labeling.
[Solution] Using inheritable bit of capability, UI process makes the Plugins process
           be available to have 'CAP_MAC_ADMIN' capabiltity.

[SCMRequest] Depends on https://review.tizendev.org/gerrit/#/c/90502/

Change-Id: I86176b74ad72d749a487e3fab5f705291e464084

10 years ago[Release] wrt_0.8.292
sung-su.kim [Mon, 28 Oct 2013 05:21:01 +0000 (14:21 +0900)]
[Release] wrt_0.8.292

Change-Id: I03356239d600e77a83c6a3d3ace1a13f1a3a674d

10 years agoRevert "Checking installator lock on launch"
sung-su.kim [Mon, 28 Oct 2013 04:43:03 +0000 (13:43 +0900)]
Revert "Checking installator lock on launch"

Launch is blocked by reinstallation or deinstallation
For this reason, the app is not launched.
Please check again it and make a commit.

This reverts commit 3f7f4b09a4d3767babc169611355ae4ffbafcb34.

Change-Id: Ib29d482c135844e381b2566943dc48a289678545

10 years ago[Release] wrt_0.8.291
sung-su.kim [Sun, 27 Oct 2013 23:47:08 +0000 (08:47 +0900)]
[Release] wrt_0.8.291

Change-Id: Ida8d3ae222f73519eabcb2b6a9828dd98b90eaee

10 years agoChecking installator lock on launch
Tomasz Iwanek [Thu, 24 Oct 2013 14:27:41 +0000 (16:27 +0200)]
Checking installator lock on launch

[Issue#]   N_SE-55833
[Problem]  No checkign if widget can be launched when installation si in progress.
[Cause]    N/A
[Solution] Checking if reinstallation is in progress.
           If yes quit wrt-client.
           This is quick fix some popup shoudl be probably displayed.

[Verification]
    - werify with wrt-installer change: ID:315796

Change-Id: Icaadc1284132fda91450628b92a00efc783b50d6

10 years agoClean-up "ViewLogic::resetWidget()"
Jihoon Chung [Thu, 24 Oct 2013 08:35:20 +0000 (17:35 +0900)]
Clean-up "ViewLogic::resetWidget()"

[Issue#]   LINUXWRT-1064
[Problem]  With the newly introduced "Reset" behavior
           (as in https://review.tizendev.org/gerrit/#/c/94207/),
           some code in "ViewLogic::resetWidget()" is duplicated.
[Cause]    N/A
[Solution] Clean-up and remove duplicated code.

[Verification] Build repo and test LINUXWRT-1055 verifications.
               Also checking normal launching and web-provider.
[SCMRequest] N/A

Change-Id: I030696cd2fe4d747c4b2d3aaddcbd86414f6c1ff

10 years agoChange "Reset" behavior to change uri on current Webview
Jihoon Chung [Wed, 23 Oct 2013 03:05:21 +0000 (12:05 +0900)]
Change "Reset" behavior to change uri on current Webview

* "Reset" event occurs in the following two cases:
  - On launching Wgt
  - On Receiving "app-control" while wgt is running

[Issue#]   LINUXWRT-1055
[Problem]  When web application receives "app-control" event, page is destroyed w/o user notice.
           If a user is middle of writing a message or email, there is no chance to store them
           before destroying Webview.
[Cause]    The current WRT simply removes and re-creates webview upon receiving "app-control".
[Solution] Change "Reset" behavior to dispatch "onbeforeunload"
             - Change remove all webview code to re-use current webview and only replace uri.

[Remarks] Further explanations:
    - There is "onunload" event which is dispatched before page is destroyed.
      However long term callback doesn't guarantee to finish.
      Usually, "onbeforeunload" event is used to do this kind of job.
      Webkit, however, only dispatch "onbeforeunload" event only if uri is changed.
    - This is main cause that Tizen platform doesn't dispatch "onbeforeunload".

[Verification] Install attached application.
    Write some text to editor area and select "LanuchAppcontrol to me after 5 seconds".
    Select "Home key" to move back-ground.
    After receive reset event, popup should show.
    "Leave" & "Stay" should work to below.
    "Leave" : written text should reset to initialize value.
    "Stay"  : written text should be kept.
[SCMRequest] N/A

Change-Id: Ie08d2f400ecede33e2d727cfb23692d03e9ec18c

10 years agoFix Mismatched free (iri_t)
Jihoon Chung [Fri, 25 Oct 2013 00:04:12 +0000 (09:04 +0900)]
Fix Mismatched free (iri_t)

[Issue#]   P131022-02660
[Problem]  As result of valgrind, memory mismatched free is occurred.
[Cause]    Iri data structure, "iri_t", should be alloc by iri_parse and released by iri_destory.
           Some part doesn't use "iri_destory" when release "iri_t".
[Solution] Change use case from DPL::ScropedPtr to unique_ptr with deleter(iri_destory).

[Remarks] Error log
  ==9281== Mismatched free() / delete / delete []
  ==9281== at 0x48334E4: operator delete(void*) (vg_replace_malloc.c:502)
  ==9281== by 0xA6B4CBF: InjectedBundleURIHandling::processURIForPlugin(char co nst*) (in /usr/lib/libwrt-injected-bundle.so.0.8.286)
  ==9281== Address 0xe25f8a8 is 0 bytes inside a block of size 60 alloc'd
  ==9281== at 0x48329F4: calloc (vg_replace_malloc.c:618)
  ==9281== by 0x6D909A5: iri_parse (in /usr/lib/libiri.so)

[Verification] Retest valgrind.
[SCMRequest] N/A

Change-Id: I31b34902bccb8f1740f3413e0dc6ab8723945c83

10 years agoAdd help popup to show path of menu remove "default setting"
Jihoon Chung [Sat, 5 Oct 2013 08:00:56 +0000 (17:00 +0900)]
Add help popup to show path of menu remove "default setting"

[Issue#]     H0100217240
[Problem]    If user decides request for W3C permission in web application,
             then it is hard to find how to reset that selection.
[Cause]      "Website settings", menu for reset of delete user permission, menu tree requires to find many depth.
[Solution]   Show help popup after user decides request on a popup.
             - Help popup only shows when user decides request with checked "Remember preference".
[Verification] Install attached application "Permission.wgt" (LINUXWRT-967)
               Launch application and select "Web Notification" or other W3C feature.
               Checked "Remember preference" and select "Yes"/"No"
[SCMRequest] N/A

Change-Id: I741ace0b9dfc941d14bee76c02f3e86744eefdcd

10 years ago[Release] wrt_0.8.290
sung-su.kim [Wed, 23 Oct 2013 00:09:26 +0000 (09:09 +0900)]
[Release] wrt_0.8.290

Change-Id: I83011fb975a342d2dab16c1b98f7e72e24f61ab8

10 years ago[CodeCovarage] Tests for wrt-launcher binary output
Tomasz Iwanek [Wed, 17 Jul 2013 09:18:26 +0000 (11:18 +0200)]
[CodeCovarage] Tests for wrt-launcher binary output

[Issue#]   LINUXWRT-639
[Problem]  Tests for program output to increase code covarage result (CC for ~100 lines)
[Cause]    There is no tests to cover some parts of code of and wrt-launcher
[Solution] There was some basic tests prepared for output of and wrt-launcher.

[SCMRequest] Depends on https://review.tizendev.org/#/c/81938/
[Verification] Build with tests.
    - Pre-condition:
      working installer
    - Run:
      $> wrt-tests-general --output=text --regexp='CommandLineParameters_'

Change-Id: Ia2188d9dc0f832c310df5879bb313367493496ec

10 years agoImplement new authentication popup
Jihoon Chung [Sun, 6 Oct 2013 08:24:10 +0000 (17:24 +0900)]
Implement new authentication popup

[Issue#]   LINUXWRT-975
[Problem]  "authentication popup" shows broken popup layout.
[Cause]    Current implementation uses old API and UX concept.
[Solution] Re-factor authentication popup
           - Replace "entry" usage to use "ea_editfield"
            : "ea_editfield" supports more features than "entry"
           - Set padding area to each sides(modify edc)
            : "elementary" doesn't add padding area by default.
           - Replace text to use STMS

[Verification]
    - Install attached test widget in LINUXWRT-975
    - Select "Authentication" button
[SCMRequest] N/A

Change-Id: I4a630f64becf36ceff3b0ac6ac2efb1f16d17060

10 years agoClean-up GlobalDAO
Jihoon Chung [Mon, 21 Oct 2013 13:31:17 +0000 (22:31 +0900)]
Clean-up GlobalDAO

[Issue#]   LINUXWRT-1056
[Problem]  GlobalDAO has unnecessary API.
[Cause]    N/A
[Solution] Remove unnecessary header include
           - "global_dao_read_only.h" and "global_dao.h" are used
              even there is no use case of GlobalDAO or GlobalDAOReadOnly.

[Verification] build repo
[SCMRequest] N/A

Change-Id: I2c4551a2e102ebb967698a66ba69d24c2bc568a2

10 years agoClean-up GlobalDAO (RoamingDataUsage)
Jihoon Chung [Mon, 21 Oct 2013 12:54:07 +0000 (21:54 +0900)]
Clean-up GlobalDAO (RoamingDataUsage)

[Issue#]   LINUXWRT-1032
[Problem]  GlobalDAO has unnecessary API.
[Cause]    N/A
[Solution] Remove "RoamingDataUsage" API
           - Current use cases are unnecessary.
           - This kind of setting should directly use platform setting.

[Verification] build repo
[SCMRequest] N/A

Change-Id: I44c0407cf1d7be74afcb3d6689ffaa8f38469ba4

10 years ago[Release] wrt_0.8.289
sung-su.kim [Mon, 21 Oct 2013 23:37:04 +0000 (08:37 +0900)]
[Release] wrt_0.8.289

Change-Id: I119f4ba49324064f5119aba2f102ab20cc6246ed

10 years agoFix prevent issue
sung-su.kim [Fri, 18 Oct 2013 08:19:39 +0000 (17:19 +0900)]
Fix prevent issue

[Issue#]   CID:20852
[Problem]  Untrusted value as argument
[Cause]    Casting unexpected value
[Solution] Check the passed value before use

[Verification] Build repository

Change-Id: I99659509b8995e1a8f77da83ea5eafe463128035

10 years ago[Release] wrt_0.8.288
sung-su.kim [Sun, 20 Oct 2013 23:31:43 +0000 (08:31 +0900)]
[Release] wrt_0.8.288

Change-Id: I7db97925244264ce8412007fa9e22737f352a999

10 years agoClean-up GlobalDAO (HomeNetworkDataUsage)
Jihoon Chung [Thu, 17 Oct 2013 06:26:35 +0000 (15:26 +0900)]
Clean-up GlobalDAO (HomeNetworkDataUsage)

[Issue#]   LINUXWRT-1031
[Problem]  GlobalDAO has unnecessary API.
[Cause]    N/A
[Solution] Remove "HomeNetworkDataUsage" API
           - This kind of setting should directly use platform setting.
[Verification] build repo
[SCMRequest] N/A

Change-Id: I841faafed3fcc6ac7b7c4c45296006bb49a601f1

10 years agoClean-up GlobalDAO (WhiteURIList)
Jihoon Chung [Thu, 17 Oct 2013 04:45:47 +0000 (13:45 +0900)]
Clean-up GlobalDAO (WhiteURIList)

[Issue#]   LINUXWRT-1029
[Problem]  GlobalDAO has unnecessary API.
[Cause]    N/A
[Solution] Remove "WhiteURIList" API
           - "WhiteURIList" stores uri to allow using plugin even uri is external uri.(http, https)
           - Moreover, tizen plugin doesn't have plan to support tizen web api to external uri.
           - Current usage case is checking "WhiteURIList" before load plugin object to JS engine.
[Verification] Checking plugin object is available in external page
[SCMRequest] N/A

Change-Id: Ib35ec9a13babb31a50a9a8b8835d8ee8eebaee85

10 years agoAdd back-key exception during fullscreen by default video tag
Jihoon Chung [Wed, 16 Oct 2013 05:48:09 +0000 (14:48 +0900)]
Add back-key exception during fullscreen by default video tag

[Issue#]     LINUXWRT-1035
[Problem]    In case of fullscreen is enabled by default video tag, back-key works to exit fullscreen.
             However, "tizenhwkey" event also dispatch to application.
[Cause]      Missed to consider.
[Solution]   Move current implementation from wrt-client to view_logic for early return before dispatch "tizenhwkey" event.
[Verification] Install test application attached LINUXWRT-1035.
               Launch application -> change video to fullscreen.
               Select back-key -> Application not terminate
[SCMRequest] N/A

Change-Id: I4c8f510281216d95ca170db047f07aeb61b022ab

10 years agoReduce unnecessary resize
Jihoon Chung [Fri, 18 Oct 2013 00:43:54 +0000 (09:43 +0900)]
Reduce unnecessary resize

[Issue#]     N_SE-54888
[Problem]    Wrong touch position is passed to webkit.
             : Approximately 20~30 pixel is added to height position.
[Cause]      Webkit set view-port width and height when first resize callback is called.
             In problem case, resize callback is called with wrong width and height.
             As investigate, WRT too early set webkit to contents area of elementary before elementary finished resize.
[Solution]   Remove unnecessary resize behavior
             : Set default naviframe item style to "empty".
               As result of style set, one resize is removed (720, 1154 -> 720, 1780)
[Verification] Launch application and checking first resize callbak result.
[SCMRequest] N/A

Change-Id: I3e6399b6a238e76d23b508ef8384cedc4bf0fabd

10 years agoReduce unnecessary resize
Jihoon Chung [Fri, 18 Oct 2013 01:35:29 +0000 (10:35 +0900)]
Reduce unnecessary resize

[Issue#]     N_SE-54888
[Problem]    Wrong touch position is passed to webkit.
             : Approximately 20~30 pixel is added to height position.
[Cause]      Webkit set view-port width and height when first resize callback is called.
             In problem case, resize callback is called with wrong width and height.
             As investigate, WRT too early set webkit to contents area of elementary before elementary finished resize.
[Solution]   Remove unnecessary resize behavior
             : Remove unnecessary evas_object_show API call
               After call API, resize is occurred one more time.
[Verification] Launch application and checking first resize callbak result.
[SCMRequest] N/A

Change-Id: I2559db6337ce7feff376d7614b90b54c10a7fdf3

10 years agoFix prevent issue
sung-su.kim [Thu, 17 Oct 2013 12:33:43 +0000 (21:33 +0900)]
Fix prevent issue

[Issue#]   CID:21193
[Problem]  Use of untrusted string value
[Cause]    Return null value in getenv function
[Solution] If getenv return null value, set empty string

[Verification] Build repository

Change-Id: I91d797c15d49a331c8fa9baaf43fce798ae057ef

10 years ago[Release] wrt_0.8.287
sung-su.kim [Thu, 17 Oct 2013 08:24:17 +0000 (17:24 +0900)]
[Release] wrt_0.8.287

Change-Id: I61a004f582fd418f7f98561120c3349f18f4436b

10 years agofixed checking condition of decyprtion for preload and download.
Soyoung Kim [Tue, 15 Oct 2013 06:56:00 +0000 (15:56 +0900)]
fixed checking condition of decyprtion for preload and download.

[Issue#] N/A
[Problem] can't decrypt resource when launch encypted prealod app.
[Cause] there was wrong condition about checking preload or download.
[Solution]
Change checking condition to using package manager api.
(pkgmgrinfo_pkginfo_is_preload and pkgmgrinfo_pkginfo_is_update)
[SCMRequest] N/A

Change-Id: Icf4037160795c1ae5a69bf01f6313e3170b3b263

10 years agoClean-up duplicated SMACK rule files
Jihoon Chung [Mon, 14 Oct 2013 04:15:54 +0000 (13:15 +0900)]
Clean-up duplicated SMACK rule files

[Issue#]    LINUXWRT-950
[Problem]   "wrt_launchpad_daemon.rule" is existed two files in the repo.
            1. accesses.d/wrt_launchpad_daemon.rule -> /opt/etc/smack/accesses.d/
            2./wrt_launchpad_daemon.rule -> /etc/smack/accesses2.d/
[Cause]     Tizen RSA policy is install rule file to "accesses.d"
[Solution]  Remove unnecessary installing a rule file to "/etc/smack/accesses2.d/"
[Verification] Launch web application
[SCMRequest] Only applicable to Tizen RSA repository.

Change-Id: I66bba62cfd200783c1a60b50bc6db79803c648ae

10 years agoMerge "[Release] wrt_0.8.286"
HOSEON LEE [Tue, 15 Oct 2013 01:21:19 +0000 (01:21 +0000)]
Merge "[Release] wrt_0.8.286"

10 years ago[Release] wrt_0.8.286
sung-su.kim [Mon, 14 Oct 2013 23:18:57 +0000 (08:18 +0900)]
[Release] wrt_0.8.286

Change-Id: I089b8b7c1ac5b30eb81b01650e72597f4ffb289e

10 years agoReplace "dpl/unused.h" to "dpl/availability.h"
Jihoon Chung [Mon, 14 Oct 2013 01:14:01 +0000 (10:14 +0900)]
Replace "dpl/unused.h" to "dpl/availability.h"

[Issue#]     LINUXWRT-1015
[Problem]    To create common header for various macro, "dpl/availability.h" is added.
             Old macro usage case should replace to use new header.
[Cause]      N/A
[Solution]   DPL_UNUSED and DPL_UNUSED_PARAM macro move to "dpl/availability.h"
[Verification] Build package.
[SCMRequest] N/A

Change-Id: I7a59c0d72981ee46efcfac779d35802a84f5f356

10 years ago[Release] wrt_0.8.284
sung-su.kim [Wed, 9 Oct 2013 23:29:42 +0000 (08:29 +0900)]
[Release] wrt_0.8.284

Change-Id: I83f1dba7f838b40b29e0b139df13b96e04176fc8

10 years agoRevert "Revert "Add specific condition for back-key handle""
Jihoon Chung [Tue, 8 Oct 2013 11:52:36 +0000 (11:52 +0000)]
Revert "Revert "Add specific condition for back-key handle""

  * Note: ewk_view_text_selection_clear() API is now available in RSA webkit.

[Issue#]   P130829-05787
[Problem]  Long press on the text to enter text-selection mode.
           Back-key is working to history back or send tizenhwkey event to Application even current mode is text-selection mode.
[Cause]    Elementary is called back-key callback both webkit and wrt.
[Solution] WRT calls "ewk_view_text_selection_clear" before handle back-key.
           If return value is "EINA_TRUE", back-key is handled by webkit.
           As back-key event is handled by webkit, WRT doens't need to handle back-key.
           In case of return value is "EINA_FALSE", WRT should handle back-key.
           History back or dispatch tizenhwkey event to application.

[SCMRequest] N/A

Change-Id: I7d96d3b2ea38a42e4e8d2746f27137cfcf1bbc94

10 years agoFix Prevent issue
Tae-Jeong Lee [Tue, 8 Oct 2013 09:17:05 +0000 (18:17 +0900)]
Fix Prevent issue

[Issue#]   CID: 17523
[Problem]  Resource leak.
[Cause]    There was allocated memory resources that we intentionally keep it
           not to be released until its process terminates.
[Solution] Use atexit() to release resources properly.

Change-Id: I05658e633d9c7537731368a5e0ec27a76355bebe

10 years agoFix Prevent issue
Zbigniew Kostrzewa [Mon, 7 Oct 2013 12:15:03 +0000 (14:15 +0200)]
Fix Prevent issue

[Issue#]   CID: 33146
[Problem]  Unchecked return value
[Cause]    Return value from function is not checked
[Solution] Check return value

[Verification] Build repository

Change-Id: Id3c6c49239ed0d42a1762ae18e2bc07cb24678a9

10 years ago[Release] wrt_0.8.283
sung-su.kim [Tue, 8 Oct 2013 00:24:30 +0000 (09:24 +0900)]
[Release] wrt_0.8.283

Change-Id: I5e92464877fe8f54dcc9856ea2da3bdc41274abb

10 years agoAdd "Restart" systemd option
Jihoon Chung [Fri, 4 Oct 2013 01:52:47 +0000 (10:52 +0900)]
Add "Restart" systemd option

[Issue#]   LINUXWRT-1001
[Problem]  wrt_launchpad_daemon does not restart when daemon is killed.
[Cause]    Missing "Restart" option in the service file, while systemd supports automatic restart.
[Solution] Add "Restart" option to service file.

[Remarks] Reference - https://fedoraproject.org/wiki/User:Johannbg/QA/Systemd/Systemd.service
          - Restart=always
           : Configures whether the main service process shall be restarted when it exits.
             Takes one of "once", "restart-on-success" or "restart-always".
             If set to once (the default), the service will not be restarted when it exits.
             If set to restart-on-success, it will be restarted only when it exited cleanly
             (i.e. terminated with an exit code of 0).
             If set to restart-always, the service will be restarted regardless whether it exited
             cleanly or not, or got terminated abnormally by a signal.
          - RestartSec=0
           : Configures the time to sleep before restarting a service (as configured with Restart=).
             Takes a unit-less value in seconds, or a time span value such as "5min 20s".
             Defaults to 100ms.

[SCMRequest] Only applicable to Tizen RSA repository.

Change-Id: I1af7b34a63e7845f3fc575d5f0660a2e250327c8

10 years agoRemove "app2sd" build dependency
Jihoon Chung [Sat, 5 Oct 2013 06:36:32 +0000 (15:36 +0900)]
Remove "app2sd" build dependency

* app2sd library supports APIs to handle external storage

[Issue#]   LINUXWRT-998
[Problem]  "app2sd" package dependency is no longer necessary.
[Cause]    symlink'ing to external storage is managed by platform level now.
           For this reason, WRT does not need to use "app2sd" package.
[Solution] Deprecate "app2sd" usage
           - Remove "app2sd" dependency.
           - Remove "src/domain/prepare_external_storage.cpp/h" and usage

[Remarks]
- To launch apps installed in external storage, symlink'ing to external storage is mandatory.
- WRT used to create symlink during web app installation time to external storage feature,
  but this is no longer necessary.

[SCMRequest] N/A

Change-Id: Iab51f9cb7a6ab58b5bf0cb7ee2378cfaaac5ddb3

10 years ago[Release] wrt_0.8.282
sung-su.kim [Fri, 4 Oct 2013 00:34:50 +0000 (09:34 +0900)]
[Release] wrt_0.8.282

Change-Id: I4395414a9da0379208cf4e42207d9631a629975a

10 years agoFix app Id format in for all wrt test cases
Tomasz Iwanek [Thu, 3 Oct 2013 09:08:21 +0000 (11:08 +0200)]
Fix app Id format in for all wrt test cases

[Issue#]   LINUXWRT-912
[Problem]  Test cases missing Tizen app Id
[Cause]    N/A
[Solution] Run the script attached to Jira to fix app Id.
http://cam.sprc.samsung.pl/secure/attachment/44397/fix_application.py

[Verification] Build repository.

Change-Id: Ib3ef9a27c2bdbdc9ae31a62ed8164761f64d03a0

10 years agoAutomatically restart wrt_launchpad_daemon after install package
Jihoon Chung [Thu, 3 Oct 2013 02:42:40 +0000 (11:42 +0900)]
Automatically restart wrt_launchpad_daemon after install package

  * wrt_launchpad_daemon maintains three services:
    1. wrt_launchpad_daemon@app.service
    2. wrt_launchpad_daemon_1.socket
    3. wrt_launchpad_daemon_2.socket

[Issue#]   N/A
[Problem]  Fail to restart wrt_launchpad_daemon after install a new package,
           even though "wrt.spec" has restart command.
               - systemctl restart wrt_launchpad_daemon@app.service
[Cause]    Below preconditions are missed before restarting services.
           - "stop service" with dependency service
             (wrt_launchpad_daemon_1.socket wrt_launchpad_daemon_2.socket)
           - "daemon-reload" after installing a new service config file
           - "if" condition used wrong value.
               %post
               install ($1 == 1)
               upgrade ($1 == 2)
               uninstall (N/A) --> Only available %postun
[Solution] Fixed missed preconditions
       - "stop service" with dependency service
         (wrt_launchpad_daemon_1.socket wrt_launchpad_daemon_2.socket)
        : Add command to stop all services during running "%pre".
          Moreover, restart should do when wrt_launchpad_daemon is existed case.
          To verify condition, add condition to check "upgrade package" case.
          This change also applies to "%preun"
       - "daemon-reload" after install new service config file
        : The command for "daemon-reload" is existed in the "post". Keep current state.
          However next command is "restart service".
          As all services are stopped during running "%pre",
          it changes to "start" service only for daemon.(wrt_launchpad_daemon@app.service)
          Also add condition to run only "upgrade package" case.

[SCMRequest] Tizen RSA only

[Remarks] rpm reference http://fedoraproject.org/wiki/Packaging:ScriptletSnippets

Change-Id: I1559e6e94772e308e75cd41823998f5bec847892

10 years agoFix Prevent issue
Zbigniew Kostrzewa [Thu, 3 Oct 2013 05:20:42 +0000 (07:20 +0200)]
Fix Prevent issue

[Issue#]   CID: 33265
[Problem]  Resource leak.
[Cause]    Allocated memory is not released.
[Solution] Fix the code so that allocated memory is assigned to pointer
           from outer scope which is passed to the EVAS_CALLBACK_DEL callback
           (in which the memory is released).

[Verification]
    1. Build repository
    2. Run a test that will display pop-up from security origin.

Change-Id: Ic03284cb9b696e4d5aa8329d081700d2bd086381

10 years agoRegister a key callback to handle back key event with untrusted certificate confirm...
Jihoon Chung [Tue, 1 Oct 2013 14:40:38 +0000 (23:40 +0900)]
Register a key callback to handle back key event with untrusted certificate confirm popup

    - This applies to the permission request popup for untrusted certificate confirm

[Issue#]   N/A
[Problem]  A web page underneath pop-up moves to the previous page when user expects the pop-up closed.
[Cause]    The permission request pop-up did not handle the back-key callback.
[Solution] Register the key callback.

[SCMRequest] N/A

Change-Id: Iddee71ee6414a24326eeedd083601571e5726cc7

10 years agoEnhance createPopup() API to support key callback
Jihoon Chung [Wed, 2 Oct 2013 02:57:14 +0000 (11:57 +0900)]
Enhance createPopup() API to support key callback

[Issue#]   N/A
[Problem]  A web page underneath pop-up moves to the previous page when user expects the pop-up closed.
           This happens when a user select back-key when the permission request pop-up is on the screen.
[Cause]    Permission request pop-up does not handle the key callback.
           Moreover, the key event (which is not consumed) is passed onto the webview evas_object.
           As a result, the default behavior (i.e. dispatch tizenhwkey event) happens.
[Solution] Add key callback handler to popup evas_object.
           Destory popup and pass "deny" to webkit that waits permission request result,
           when Back-key event callback is called.

[SCMRequest] Needed by https://review.tizendev.org/gerrit/#/c/88381/

[Remarks] Implementation details
    * CertificateSupportUtil::createPopup extend an argument to receive key callback.
      (Evas_Smart_Cb keyCallback)
    * Add "EVAS_CALLBACK_DEL" callback to remove before popup is removed.
      This behavior will prevent crash.
      Sometimes ecore dispatch event which is in the queue even callback data is already released.

Change-Id: I48b09e85db36da9f9ca27a38e7a08ed27b29cbbc

10 years agoRegister a key callback to handle back key event with W3C permission popup
Jihoon Chung [Tue, 1 Oct 2013 13:47:43 +0000 (22:47 +0900)]
Register a key callback to handle back key event with W3C permission popup

    - This applies to the permission request popup for W3C Web Notification.

[Issue#]   N/A
[Problem]  A web page underneath pop-up moves to the previous page when user expects the pop-up closed.
[Cause]    The permission request pop-up did not handle the back-key callback.
[Solution] Register the key callback.

[SCMRequest] N/A

Change-Id: I9489658ebafe750a2d157d15c4d573ae7b51a147

10 years agoRegister a key callback to handle back key event with W3C permission popup
Jihoon Chung [Tue, 1 Oct 2013 14:14:34 +0000 (23:14 +0900)]
Register a key callback to handle back key event with W3C permission popup

    - This applies to the permission request popup for W3C Web Storage.

[Issue#]   N/A
[Problem]  A web page underneath pop-up moves to the previous page when user expects the pop-up closed.
[Cause]    The permission request pop-up did not handle the back-key callback.
[Solution] Register the key callback.

[SCMRequest] N/A

Change-Id: I0d14b6092678724f1462e8153754a7efe3ec5819

10 years agoFixed wrong argument usage for geolocation permission popup
Jihoon Chung [Tue, 1 Oct 2013 08:18:08 +0000 (17:18 +0900)]
Fixed wrong argument usage for geolocation permission popup

[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

10 years agoProblem with encoding in WRT
Adam Banasiak [Tue, 17 Sep 2013 13:27:47 +0000 (15:27 +0200)]
Problem with encoding in WRT

[Issue#] WGL-427
[Problem] No validation of default encoding in WRT
[Cause] N/A
[Solution] Add encoding validation to WRT. Set default encoding to UTF-8
[Verification]
1. Build repository
2. Download (http://cam.sprc.samsung.pl/secure/attachment/42428/e7.wgt) and install e7.wgt
3. Launch the widget

Change-Id: I317ebec5bc37d62b41b778166469f6d153d045df

10 years ago[Release] wrt_0.8.281
sung-su.kim [Tue, 1 Oct 2013 23:37:30 +0000 (08:37 +0900)]
[Release] wrt_0.8.281

Change-Id: I6316278b896d9a274345634146c42febc61639ca

10 years agoFix build break in Profiling build type.
Zbigniew Kostrzewa [Tue, 1 Oct 2013 07:42:15 +0000 (09:42 +0200)]
Fix build break in Profiling build type.

[Issue#]   N/A
[Problem]  Build break in Profiling build type.
[Cause]    Profiling API not adjusted to C language (e.g. bool type).
[Solution] Fix build break.

[Verification] Build repository with following command:
    $ gbs build -A armv7l --define 'build_type Profiling'

Change-Id: I5a0338353607250a757ff45bd42d44c5dd363b66

10 years agoImplement flexible popup depend on text length
Jihoon Chung [Sat, 28 Sep 2013 05:19:01 +0000 (14:19 +0900)]
Implement flexible popup depend on text length

[Issue#]   P130927-03499
[Problem]  Layout of permission popup is broken
[Cause]    Current WRT doesn't set padding area to popup layout.
           Before it is working fine with default padding supported by elementary,
           the latest version has no padding area is supported.
[Solution] Change popup layout to use padding area.
           - Add padding(SPACER type) between contents and four sides of a popup.
           - Contents area(body text) removes minimum size. (Automatically set by elementary)
           Add scroller if text is overflown screen height.
           - Register "resize" callback to popup.
           - When callback is called, calculate screen height and popup height.
           - In case of popup height is over screen height, add scroller to popup.

[SCMRequest] N/A

Change-Id: Ic07a3209ebeebad0ac35bbab92aea1d5250b31f4

10 years ago[Release] wrt_0.8.280
sung-su.kim [Mon, 30 Sep 2013 08:59:52 +0000 (17:59 +0900)]
[Release] wrt_0.8.280

Change-Id: I64848e9ea7147bc468fda6f6cf1f0ca8d282be77

10 years agoUX change of check box usage in permission request popup
Jihoon Chung [Sat, 28 Sep 2013 04:26:21 +0000 (13:26 +0900)]
UX change of check box usage in permission request popup

[Issue#]   N/A
[Problem]  New UX concept is applied to check box in the permission request popup
[Cause]    N/A
[Solution] The relevant implementation is already done in the elementary library layer.
           - To use elemetary implementation, remove "elm,text" in the WRT.
           - After clean-up "elm,text", text will be attached to check box evas_object.

[Remarks]
    * Previous concept: toggle when user click check box area only.
    * New concept: toggle check box even though user selects text area beside check box.

[SCMRequest] N/A

Change-Id: I725a258375f2d937cee342fbaa0784711caad0c2

10 years agoFixed wrong part name usage
Jihoon Chung [Sat, 28 Sep 2013 07:31:17 +0000 (16:31 +0900)]
Fixed wrong part name usage

[Issue#]   N/A
[Problem]  Certificate confirm popup check wrong part name.
           It will be caused get wrong check box status.
[Cause]    Miss-typo.
[Solution] Change part name:
           "elm.swallow.end" -> "elm.swallow.checkbox"

[SCMRequest] N/A

Change-Id: I28cefd8df0655a1c4768e9c7cb9ff742fc2f29ce

10 years ago[Release] wrt_0.8.279
sung-su.kim [Mon, 30 Sep 2013 02:45:30 +0000 (11:45 +0900)]
[Release] wrt_0.8.279

Change-Id: I3cbae8668493f4369d3647ac30540bbb57c8320d

10 years agoUpdate package spec file for license
Zbigniew Kostrzewa [Fri, 27 Sep 2013 11:45:07 +0000 (13:45 +0200)]
Update package spec file for license

[Issue#]   LINUXWRT-927
[Problem]  Invalid/missing license file
[Cause]    N/A
[Solution] Update license file

[Verification]
    1. Build repository
    2. Install package on DUT
    3. Check whether license for this repository exists in
       /usr/share/license

Change-Id: If29463cb4b560e24f06a7b3cade7b02e31e67385

10 years agoRegister a key callback to handle back key event with W3C permisison popup
Jihoon Chung [Fri, 27 Sep 2013 13:57:25 +0000 (22:57 +0900)]
Register a key callback to handle back key event with W3C permisison popup

    - This applies to the permission request popup for W3C Geolocation API.

[Issue#]   P130927-03479
[Problem]  A web page underneath pop-up moves to the previous page when user expects the pop-up closed.
[Cause]    The permission request pop-up did not handle the back-key callback.
[Solution] Register the key callback.

[SCMRequest] Depends on https://review.tizendev.org/gerrit/#/c/91228/

Change-Id: Ib987a8b4e5795a434771d1e7ffe26eb0f8149c38

10 years agoRevert "Add specific condition for back-key handle"
Soo-Hyun Choi [Sat, 28 Sep 2013 06:13:19 +0000 (15:13 +0900)]
Revert "Add specific condition for back-key handle"

This reverts commit 7654c550d2d4636c2e0fe968bcd16af0c7951119.

[Remarks] Fix build break!
ewk_view_text_selection_clear() is not ready in RSA WebKit yet.

Change-Id: Ibb546f5e4e495a48a41f0d122d3fbeee044921b5

10 years agoEnhance createPopup() API to support key callback
Jihoon Chung [Fri, 27 Sep 2013 10:37:36 +0000 (19:37 +0900)]
Enhance createPopup() API to support key callback

[Issue#]   P130927-03479
[Problem]  A web page underneath pop-up moves to the previous page when user expects the pop-up closed.
           This happens when a user select back-key when the permission request pop-up is on the screen.
[Cause]    Permission request pop-up does not handle the key callback.
           Moreover, the key event (which is not consumed) is passed onto the webview evas_object.
           As a result, the default behavior (i.e. dispatch tizenhwkey event) happens.
[Solution] Add key callback handler to popup evas_object.
           Destory popup and pass "deny" to webkit that waits permission request result,
           when Back-key event callback is called.

[SCMRequest] Needed by https://tizendev.org/gerrit/#/c/91230/

[Remarks] Implementation details
    * SecurityOriginSupportUtil::createPopup extend an argument to receive key callback.
      (Evas_Smart_Cb keyCallback)
    * Add "EVAS_CALLBACK_DEL" callback to remove before popup is removed.
      This behavior will prevent crash.
      Sometimes ecore dispatch event which is in the queue even callback data is already released.

Change-Id: I4aeaf6ee4e2a9219ec3fd27c886673a2ba88a452

10 years agoDrop root permission when launching apps in command line
Jihoon Chung [Thu, 26 Sep 2013 04:57:32 +0000 (13:57 +0900)]
Drop root permission when launching apps in command line

- Launching apps in command line is useful to investigate issue with printf or other tools.

[Issue#]   N/A
[Problem]  Indicator does not show correctly when launched via command line.
[Cause]    Caused by various reasons - e.g., DAC and SMACK.
           * When applications are run with "root" permission,
             some of the platform feature (DAC, SMACK, etc) will fail to initialize.
           * Indicator issue is one of the issues which will occurr
             when web application is running on the "root" permission.
[Solution] Drop root permission
           * To support normal operations when launched by command line,
             web app needs to drop "root" permission before doing something.

[Remarks] Implementation details
    * Drop "root" permission should be done before touching  platform resource.
    * Current implementation point is too early, before attaching database, to access widget dao.
    * To resolve this, using ail to get various information to use privilege API.

Change-Id: I4c3014277da924cff590a80cb01c411655418a05

10 years ago[Release] wrt_0.8.278
sung-su.kim [Fri, 27 Sep 2013 02:36:18 +0000 (11:36 +0900)]
[Release] wrt_0.8.278

Change-Id: Id2f82312ac1fb2612829fc8ee5cf10760be901ef

10 years agoAdd specific condition for back-key handle
Jihoon Chung [Thu, 26 Sep 2013 10:35:30 +0000 (19:35 +0900)]
Add specific condition for back-key handle

[Issue#]     P130829-05787
[Problem]    Long press on the text to enter text-selection mode.
             Back-key is working to history back or send tizenhwkey event to Application even current mode is text-selection mode.
[Cause]      Elementary is called back-key callback both webkit and wrt.
[Solution]   WRT calls "ewk_view_text_selection_clear" before handle back-key.
             If return value is "EINA_TRUE", back-key is handled by webkit.
             As back-key event is handled by webkit, WRT doens't need to handle back-key.
             In case of return value is "EINA_FALSE", WRT should handle back-key.
             History back or dispatch tizenhwkey event to application.
[SCMRequest] N/A

Change-Id: I3ecea8ae5c3aaec71fdd07b86b6df49e70dae500

10 years ago[Release] wrt_0.8.277
sung-su.kim [Mon, 23 Sep 2013 11:44:07 +0000 (20:44 +0900)]
[Release] wrt_0.8.277

Change-Id: I9d14358e169a825c67b8f26bcd57fa7e39844485

10 years agoApp-control sub-mode disable
Tae-Jeong Lee [Mon, 16 Sep 2013 08:49:10 +0000 (17:49 +0900)]
App-control sub-mode disable

[Issue#]   P130905-02637
[Problem]  App-control sub-mode operation on webapp is unstable.
[Cause]    App-control webapi was not ready to support sum-mode.
[Solution] So, we have decided to disable sub-mode support til the architecture is arranged for sub-mode.

Change-Id: I0bc8184cdb3e72b2b2b5a5783b30454ba71e62ca

10 years agoFix Prevent issue
Karol Pawlowski [Mon, 23 Sep 2013 07:01:08 +0000 (09:01 +0200)]
Fix Prevent issue

[Issue#]   CID: 15851
[Problem]  Static analysis fails
[Cause]    N/A
[Solution] Refactored proces_pool_fd_handler method

[Verification] Build wrt repository.
Launch widget with wrt-client -l and wrt-launcher -s

Change-Id: Ib354c50a6734ef90fe6c0e0c40dad1a8c2b6b352

10 years agoFix Prevent issue
Karol Pawlowski [Mon, 23 Sep 2013 06:14:35 +0000 (08:14 +0200)]
Fix Prevent issue

[Issue#]   CID: 13633
[Problem]  Static analysis fails
[Cause]    N/A
[Solution] Refactored error__refuse_dummy_process method

[Verification] Build wrt repository.
Launch widget with wrt-client -l and wrt-launcher -s

Change-Id: I13445890810f98c372488aae0e62b97920f3d94b

10 years ago[Release] wrt_0.8.276
sung-su.kim [Mon, 23 Sep 2013 00:00:04 +0000 (09:00 +0900)]
[Release] wrt_0.8.276

Change-Id: I242ed6a685abd539187cdabc31827b0810e291ec

10 years agoFix build warning
Soo-Hyun Choi [Sat, 21 Sep 2013 07:57:22 +0000 (16:57 +0900)]
Fix build warning

* warning: unused parameter

[Issue#]   N/A
[Problem]  Build warning
[Cause]    Unused parameter
[Solution] Make use of DPL_UNUSED_PARAM()

Change-Id: I9269bf5f182b2cd0d42024b3f2e3d29f68976e17

10 years agoFix building the package with GCC-4.8
Grzegorz Rynkowski [Fri, 20 Sep 2013 08:56:28 +0000 (10:56 +0200)]
Fix building the package with GCC-4.8

[Problem]      The package cannot be built with gcc-4.8.
[Cause]        Missing #include statements.
[Solution]     Add the missing #include statements.
[Verification] Build package both with current (GCC-4.5) and (GCC-4.8)
               version of compiler.
[SCMRequest]   N/A

Change-Id: Ie6c62621ab29fabd5ededfde2d3b658f17622953

10 years agoReplace a deprecated libprivilege-control API
Soo-Hyun Choi [Tue, 17 Sep 2013 06:54:34 +0000 (15:54 +0900)]
Replace a deprecated libprivilege-control API

    set_app_privilege() -> perm_app_set_privilege()

[Issue#]   N/A
[Problem]  set_app_privilege() will be deprecated.
[Cause]    API updates on libprivilege-control.
[Solution] Replaced the deprecated API.

10 years agoFix for certification support popup.
Tae-Jeong Lee [Tue, 17 Sep 2013 07:17:53 +0000 (16:17 +0900)]
Fix for certification support popup.

[Issue#] N/A
[Problem] A crash occurs when drawing certificate support check popup.
[Cause] The ui popup has been created base on 'ewk_view' obejct.
[Solution] Fixed to creating popup based on window object by getParentWindow() api.

Change-Id: I917ecf5d735fc71c269695b5bb43c3998fc8d039

10 years agoFix Prevent issue
Zbigniew Kostrzewa [Mon, 16 Sep 2013 07:56:26 +0000 (09:56 +0200)]
Fix Prevent issue

[Issue#]   CID: 31582
[Problem]  Resource leak
[Cause]    Invalid condition
[Solution] Fix condition

[Verification] Build repository

Change-Id: I4d22559cc127a3e2380f072fb773c8830812cc48

10 years agoPrevent issue fix
Zbigniew Kostrzewa [Mon, 16 Sep 2013 06:05:01 +0000 (08:05 +0200)]
Prevent issue fix

[Issue#]   CID: 32418
[Problem]  Unused variable
[Cause]    Variable defined but not used
[Solution] Remove unused variable

[Verification] Build repository

Change-Id: I04df3df3cefa76b6798be37ed85bfc411e5b2acc

10 years ago[Release] wrt_0.8.275
Hoseon LEE [Sat, 14 Sep 2013 08:02:20 +0000 (17:02 +0900)]
[Release] wrt_0.8.275

Change-Id: Iea4ed4ce9f415cceebdb4f69538315017483bd98

10 years agoThe unnecessary condition is removed in VibrationSupport
Hoseon LEE [Sat, 14 Sep 2013 06:52:34 +0000 (15:52 +0900)]
The unnecessary condition is removed in VibrationSupport

[Issue#] P130911-02986
[Problem] web-provider crash by assert code
[Cause] The destructor of VibrationSupport has unnecessary condition
        Sometimes m_initialized is set to false. But the destructor always check that it is true
[Solution] The unnecessary condition is removed

Change-Id: I149be5073efa750810bd08cc3aa7c72b534f1963

10 years ago[Release] wrt_0.8.274
Hoseon LEE [Sat, 14 Sep 2013 06:25:35 +0000 (15:25 +0900)]
[Release] wrt_0.8.274

Change-Id: I0ffcc72a4803409a74e1c56d6441255ba4dc2ba7

10 years agoCatch DatabaseError while getting widget list in wrt-launcher
Karol Pawlowski [Fri, 13 Sep 2013 12:13:21 +0000 (14:13 +0200)]
Catch DatabaseError while getting widget list in wrt-launcher

[Issue#]   N_SE-51978
[Problem]  wrt-launcher has closed unexpectedly
[Cause]    The reason may be some uncaught exception
[Solution] Try Catch block added

Change-Id: Id8855b4637c2c5f507b3928ccab4686d7c955504

10 years ago[Release] wrt_0.8.273
sung-su.kim [Fri, 13 Sep 2013 07:27:25 +0000 (16:27 +0900)]
[Release] wrt_0.8.273

Change-Id: I71fe5aca5a740131de0e6276a5c94ca4fd5d2024

10 years agoTemporary fix for asking geolocation permission popup crash.
Tae-Jeong Lee [Fri, 13 Sep 2013 05:22:01 +0000 (14:22 +0900)]
Temporary fix for asking geolocation permission popup crash.

[Issue#] N/A
[Problem] A crash occurs when webkit ask geolocation permission to wrt.
[Cause] The ui popup has been created base on 'ewk_view' obejct.
[Solution] Fixed to creating popup based on window object by getParentWindow() api.

Change-Id: I62fa67da6de5d07cba52f6162290e3ff9af9dcd0

10 years ago[Release] wrt_0.8.271
Tae-Jeong Lee [Mon, 9 Sep 2013 02:50:55 +0000 (11:50 +0900)]
[Release] wrt_0.8.271

Change-Id: I258999cad6edf209d4f50974fa24376a3a91c523

10 years agoRevert about inserting application info to user agent.
Tae-Jeong Lee [Mon, 9 Sep 2013 02:21:11 +0000 (11:21 +0900)]
Revert about inserting application info to user agent.

[Issue#] N/A
[Problem] New concept of user agent causes some unexpected problem.
[Cause] N/A
[Solution] So, it reverted to original type.

Change-Id: I0c3dd12c2372b0c50129dcb427fa806d5e0dc6d8

10 years ago[Release] wrt_0.8.270
Tae-Jeong Lee [Fri, 6 Sep 2013 15:23:13 +0000 (00:23 +0900)]
[Release] wrt_0.8.270

Change-Id: Ia970093eb6b5c2fef4c5f35740767652ad084a60

10 years ago[Release] wrt_0.8.269
Tae-Jeong Lee [Fri, 6 Sep 2013 05:41:38 +0000 (14:41 +0900)]
[Release] wrt_0.8.269

Change-Id: I1c529910590c0f34ebc77866faf473116913522c

10 years agoURI processing bug fix About "about:blank"/"about:srcdoc".
Tae-Jeong Lee [Wed, 4 Sep 2013 07:49:58 +0000 (16:49 +0900)]
URI processing bug fix About "about:blank"/"about:srcdoc".

[Issue#] N/A
[Problem] That URI doesn't need URI processing.
[Cause] N/A
[Solution] About that doesn't perform additory URI processing.

Change-Id: I97f62f618525a4ffc53dd822c39a34f97e8d2763

10 years agoWebapp Freezing Problem Fix.
Tae-Jeong Lee [Thu, 5 Sep 2013 08:32:53 +0000 (17:32 +0900)]
Webapp Freezing Problem Fix.

[Issue#] P130830-02056
[Problem] Webapp freezing problem after USB mouse right button click.
[Cause] EFL naviframe removed a item which is showing currently when mouse right button is clicked.
        So, webview graphic context was destroyed abnormally.
[Solution] Changed to not be able to remove a navi item by mouse click event.

Change-Id: I799064ba2f4210c7d2c5983f4210f9893454f00d

10 years ago[Release] wrt_0.8.268
sung-su.kim [Tue, 3 Sep 2013 23:38:30 +0000 (08:38 +0900)]
[Release] wrt_0.8.268

Change-Id: I50333663da014508dd25bd118e3ec87ceb3deb5a

10 years agoChange string of certificate permission popup button
leerang song [Thu, 29 Aug 2013 05:52:14 +0000 (14:52 +0900)]
Change string of certificate permission popup button

[Issue#]     N/A
[Problem]    Information text of Certificate permission popup and button text is not matched
[Cause]      Certification permission popup shows a security certification problem message
             'There are problems with the security certificate for this site origin'.
             User have to select whether app access a site or not.
[Solution]   Popup text changes 'Yes' to 'Allow' and 'NO' to 'Cancel'
[SCMRequest] N/A

Change-Id: I3078d75cd6f973dbb30fb522c02ac6146083ed8c

10 years ago[Release] wrt_0.8.267
sung-su.kim [Mon, 2 Sep 2013 00:04:24 +0000 (09:04 +0900)]
[Release] wrt_0.8.267

Change-Id: I4f10fbe4ede9fe8b368c29e159ab9977a25f55c5

10 years agoReplace Log to secure_log
Jihoon Chung [Fri, 30 Aug 2013 12:45:33 +0000 (21:45 +0900)]
Replace Log to secure_log

[Issue#]   N/A
[Problem]  As Tizen platform policy, all log should use secure_log.
           Also, c style log has better performance than C++.
[Cause]    N/A
[Solution] Replace Log to secure_log
           - src/view/webkit/view_logic_scheme_support.cpp
[SCMRequest] this patch has dependency with https://review.tizendev.org/gerrit/#/c/87428/

Change-Id: Id6d4c8dc8490b6061a505f98d0bf5f547e7b6af0

10 years agoRemove source difference between RSA and Private
Jihoon Chung [Sat, 31 Aug 2013 04:30:52 +0000 (13:30 +0900)]
Remove source difference between RSA and Private

[Issue#]   N/A
[Problem]  Some code has difference between RSA and Private even
           that code isn't related with feature difference.
           It will be burden to manage two source code.
[Cause]    Unexcpected difference is occurred.
[Solution] Make sync between RSA and Prvate
           - Remove meaningless newline
           - Change getpid usage
[SCMRequest] N/A

Change-Id: I5fc3b98ba4a21449e5fdb650dae1c34c52a937ab

10 years agoClean-up CMakeLists.txt (build edc and install files)
Jihoon Chung [Sat, 31 Aug 2013 06:34:19 +0000 (15:34 +0900)]
Clean-up CMakeLists.txt (build edc and install files)

[Issue#]    N/A
[Problem]   CMakeLists.txt has mesh code
[Cause]     It looks that CMakeLists.txt aren't managed.
[Solution]  Clean-up CMakeLists.txt
            - Re-arrange line to gather files meaningful
            - Remove install files of "popup edj" to "share/edje/wrt/"
              Before that file is used for modal popup.
              However current web application doesn't use modal popup.
[SCMRequest] N/A

Change-Id: I20ea49af7a7d4b0bd5a3378f435bf654f65917cb

10 years agoClean-up deprecated IPC ("title,changed" callback)
Jihoon Chung [Fri, 23 Aug 2013 11:29:22 +0000 (20:29 +0900)]
Clean-up deprecated IPC ("title,changed" callback)

[Issue#]    N/A
[Problem]   "title,changed" callback is no more used.
[Cause]     "title,changed" callback is used for IPC between tizen plugin and UI process before.
            Current architecture has new IPC mechanism to replace "title,changed" callback.
            (IPCMessageSupport:: AsyncConnectionManager)
            Moreover "title,changed" callback isn't working in the iframe.
            Because webkit only calls "title,changed" callback in case of title is changed in the main frame.
[Solution]  Clean-up "title,changed" callback.
[SCMRequest] This patch should be imported after merged below commit
             https://review.tizendev.org/gerrit/#/c/87428/2

Change-Id: Ie21bb339582dcf0b215e4310a2ecc5366232f587

10 years agoClean-up view_logic_scheme_support
Jihoon Chung [Fri, 23 Aug 2013 07:26:28 +0000 (16:26 +0900)]
Clean-up view_logic_scheme_support

[Issue#]    N/A
[Problem]   As appType is deprecated, SchemeSupport isn't necessary to
            be handled by instance.
[Cause]     N/A
[Solution]  To change instance to API, removed SchemeSupport instance in the viewLogic instance.
            Also clean-up unused argument from API.
            - WidgetModel : Before used to get WrtDB::AppType
            - WrtDB::AppType : This value is used to separate handle between Tizen and WAC
              As current WRT doesn't support WAC, clean-up code.
            Moreover, unnecessary dependency header also clean-up
            - dpl/wrt-dao-ro/common_dao_types.h, common/evas_object.h, appcore-common.h, widget_model.h
[SCMRequest] N/A

Change-Id: I8b0575e3ee32f79a193d840138298a263dd8f34a

10 years agoAdd a scroller in certificate problem popup
leerang song [Thu, 29 Aug 2013 06:38:22 +0000 (15:38 +0900)]
Add a scroller in certificate problem popup

[Issue#]     P130827-07138
[Problem]    Text of certificate problem popup is displayed outside the popup when browsing app
[Cause]      Text of popup was not scrolled when text is longer than popup height.
[Solution]   Add a scroller in text

[SCMRequest] N/A

Change-Id: Ifbe14824b1342758d36e22301489714a5d8c5edd

10 years agoRemove deprecated file (edc)
Jihoon Chung [Sat, 31 Aug 2013 05:48:23 +0000 (14:48 +0900)]
Remove deprecated file (edc)

[Issue#]    N/A
[Problem]   Unnecessary files are existed.
[Cause]     This file, "communicationBox.edc", is used to support combo box.
            After webkit is upgraded webkit2, combo box is implemented in the EFL port.
[Solution]  Clean-up file
            - communicationBox.edc : Combo box draws edc.
[SCMRequest] N/A

Change-Id: I5077d90cac4302a73138d416b60bec849a515c3f

10 years agoRemove deprecated files (WAC)
Jihoon Chung [Sat, 31 Aug 2013 05:05:15 +0000 (14:05 +0900)]
Remove deprecated files (WAC)

[Issue#]    N/A
[Problem]   Unnecessary files are existed.
[Cause]     Since WRT doesn't support WAC, these files are unused.
[Solution]  Clean-up files
            - WAC2.0TestRootCA.cert : Certificate for testing WAC
            - data/userAgentProfile.xml : UA profile for testing WAC
[SCMRequest] N/A

Change-Id: I17edcf149daf6136b5dd37287403a99d07016bb6

10 years agoIndicator display is broken during rotation
Jihoon Chung [Fri, 30 Aug 2013 05:27:17 +0000 (14:27 +0900)]
Indicator display is broken during rotation

[Issue#]   Orange TV
[Problem]  Indicator bar is showed on the content area in the following scenario.
             1. Launch OrangeTV or any fullscreen toggle application.
             2. Change fullscreen and rotate to landscape. Again change rotation to potrait.
[Cause]    Currently, WRT use elm_win_indicator_mode_set() which is not the API
           used for normal applications (e.g., for mini app).

           In case of normal web applications, it should use below APIs.
             - fullscreen : elm_win_indicator_opacity_set(win, ELM_WIN_INDICATOR_TRANSPARENT)
             - normal : elm_win_indicator_opacity_set(win, ELM_WIN_INDICATOR_OPAQUE)
[Solution] Replace indicator enable/disable APIs
             - fullscreen : elm_win_indicator_opacity_set(win, ELM_WIN_INDICATOR_TRANSPARENT)
             - normal : elm_win_indicator_opacity_set(win, ELM_WIN_INDICATOR_OPAQUE)

           Also, elm_win_indicator_mode_set() API, which is used for making conneciton
           between app itself and indicator, is now moved to the post initialization step.
           Note that it has to be called with app permission as it fails to make
           connection with root permission (e.g., process poll candidate process).

[SCMRequest] N/A

Change-Id: Id00b5e15bbbc06e5920b94f2f62d20b97addeb59

10 years ago[Release] wrt_0.8.266
sung-su.kim [Thu, 22 Aug 2013 22:32:44 +0000 (07:32 +0900)]
[Release] wrt_0.8.266

Change-Id: I77cac1f39a8a6fa1ba047f8a8b09d779f34475bc

10 years agoImplement enhanced W3C web notificaion
Jihoon Chung [Sun, 18 Aug 2013 05:09:01 +0000 (14:09 +0900)]
Implement enhanced W3C web notificaion

- W3C Web Notificaions (http://www.w3.org/TR/notifications/)

[Issue#]   N/A
[Problem]  WRT only support show Notificaion. As official TCT has imported web notification,
           WRT is needed to refactoring for supporting web notificaion specification.
[Cause]    Refactoring and implement to enhance web notification support.
[Solution] Old WRT web notification support
           - There is only simple API to show notificaion. Also permission popup code and
             data structure for notificaion is declare one source file. It is difficult to
             maintain.

           New WRT web notificaion support
           - Separate three parts
             WebNotificationData : Data structure. This structure stored notificaion information
             and mandatory argument data, "Ewk_Notificaion", which is used in ewk API.
             WebNotificationPermissionSupport : Handle permission request. Support permission popup
             and handle permission result to store security_origin_dao.
             WebNotificationSupport : Instance to manage notificaion data. Also support show and
             hide notificaion.

           - Every View_logic initialize "WebNotificationSupport" instance with package ID. PackageID
             is required to generate download icon directory.
           - When webkit callback for notificaion is called, View_logic creates "WebNotificationData"
             and passed to "WebNotificationSupport" instance.
           - Show
             "WebNotificationSupport" instance shows notificaion and store "WebNotificationData" with
             notificaion private id(This id is used when Hide is called).
             After finished show notificaion, WRT calls ewk API to dispatch "onshow" event.
             EAPI void ewk_notification_showed(Ewk_Context *context, uint64_t notification_id);
           - Replace
             "WebNotificationSupport" instance checks stored data to find whether request "WebNotificationData"
             is already showed or not. In case of already showed, close showed notificaion and shows
             new "WebNotificationData"
           - Close
             "WebNotificationSupport" instance gets notificaion private id to close required "WebNotificationData"
             After finished close notificaion, WRT calls ewk API to dispatch "onclose" event.
             EAPI Eina_Bool ewk_view_notification_closed(Evas_Object* o, Eina_List* notification_list);
[SCMRequest] N/A

Change-Id: I012515a1723e9a0bca8716c5a44d7fe88af87b29

10 years ago[Release] wrt_0.8.264
sung-su.kim [Wed, 21 Aug 2013 01:40:11 +0000 (10:40 +0900)]
[Release] wrt_0.8.264

Change-Id: I0e09ad4796dc76cc30c78fff30c73c584b769a78

10 years agoLocalization of certificate permission popup
leerang song [Mon, 19 Aug 2013 10:22:41 +0000 (19:22 +0900)]
Localization of certificate permission popup

[Issue#] P130814-03974
[Problem] Certificate permission popup is not localized
[Cause] N/A
[Solution] Add the string of certification-popup in po files.
[SCMRequest] N/A

Change-Id: I1de247eeff3f9d108bddf4fcf4e01b2f30172b5b