Fix installation of widgets with multiple default icons
authorZbigniew Kostrzewa <z.kostrzewa@samsung.com>
Fri, 13 Sep 2013 13:00:33 +0000 (15:00 +0200)
committerSoo-Hyun Choi <sh9.choi@samsung.com>
Mon, 16 Sep 2013 09:10:57 +0000 (18:10 +0900)
commit7c9c742b1b2e815eed50ba51c9b8e36cabc04648
tree86262165c2aee143b725879c07ee0c14094a078f
parent0a64a4420f8aefc7ddb974623a7694cdcfc9c24b
Fix installation of widgets with multiple default icons

[Issue#]   WGL-540
[Problem]  The default Tizen icon is displayed on menu tray
           instead of the one provided with web application.
[Cause]    When more than one default icons are provided with web application
           (e.g. icon.jpg and icon.png) then one of them is installed in the file
           system (icon.png) but the other one is set in manifest file (icon.jpg).
           As a result, web application's icon cannot be found and tizen default
           icon is displayed instead.
[Solution] Make sure that the same icon is installed in the file system
           as is set in manifest file (with respect to the default icon search
           order specified by W3C P&C spec).

[Verification]
  1. Build repository
  2. Install web application attached to WGL-540
     (icon.png should be used as the web application's icon)
  3. Install any web application with a single default icon provided
     inside the web application's package.
  4. Install any web application with an icon specified in the web
     application's configuration file.
  5. Install any web application with an icon specified in the web
     application's configuration file and a default icon available in the
     web application's package (icon explicitly specified in the web
     application's configuration file should be used).

Change-Id: Ia3b05a1c6d926ab8fb9bc70766340d07f469ac8f
src/jobs/widget_install/task_manifest_file.cpp