SummerOfCode/2012/LinuxNativeWebApps: Difference between revisions

Jump to navigation Jump to search
Line 64: Line 64:
== Weekly status reports ==
== Weekly status reports ==


I'll write here weekly reports about my work, starting from May 21.
I'll write here weekly reports about my work, starting from May 21. (The date format is DAY/MONTH).


=== 21/05 - 28/05 ===
=== 21/05 - 28/05 ===
Line 137: Line 137:




=== 18/06 - 01/07 ===
=== 18/06 - 02/07 ===


Sorry, I forgot to write a report for the last week. I'll now write a report for the last two weeks :)
Sorry, I forgot to write a report for the last week. I'll now write a report for the last two weeks :)
Line 151: Line 151:


During the last week, I've also studied for an exam: "Theory of Signals" (that I did on the 3rd of July).
During the last week, I've also studied for an exam: "Theory of Signals" (that I did on the 3rd of July).
=== 02/07 - 06/08 ===
I've worked to enable mochitests for the webapp runtime on Linux and Windows (with this work I've also seen how the mochitest works internally). It wasn't hard as the Mac OS X part was already implemented.
I've finished the work to support webapps uninstallation. I've split the work in several parts to ease the backport to Aurora (I'd like to backport the feature, that has landed in Firefox 17, to Firefox 16). Now there's support to uninstall the application by using a command-line argument (“-remove”) or through a specific page (about:apps or a web dashboard, like myapps.mozillalabs.com). Actually there's a function in the mozApps API (https://developer.mozilla.org/en-US/docs/Apps/Apps_JavaScript_API/navigator.mozApps.mgmt.uninstall) that removes the application (on Linux it removes the application from your computer, on the other platforms it currently removes the application only from your profile), and the dashboards use this function.
I've also finished the work to support categorization of web applications. Now the install function of the mozApps API (https://developer.mozilla.org/en-US/docs/DOM/Apps.install) accepts a JSON object, and in this JSON object you can pass the category (or the categories) of the application. We support the categories of the Mozilla Marketplace, you can see this patch (https://hg.mozilla.org/mozilla-central/rev/b8b948b3565a#l1.31) to see how we translate the Marketplace categories to standard freedesktop.org categories (I hope the translation was better, I'd like to have some user feedback about it).
The category isn't stored in the Application object (that you can retrieve using the getSelf mozApps API function), but you will be able to get it through install_data (that will be in the Application object in the future: https://bugzilla.mozilla.org/show_bug.cgi?id=760339).
I'm now working to move the installation to $XDG_CONFIG_HOME, but this isn't a high priority work. I've encountered many problems, but I've finally figured out what's their cause. I can change the profile directory through the “-profile” command-line argument (or through an environment variable, XRE_PROFILE_PATH), but even after that the “AppRegD” directory (that is the Application Registry Directory) and other  “special” directories still use the normal directory format (/home/user/.appname/). The “AppRegD” directory is used by the Crash Reporter.
During these weeks I've studied for other exams and I've been on vacation in Ponza (an Italian isle) and in Scotland.
63

edits

Navigation menu