Keon and Peak: Two Firefox OS smartphones tested
Not Quite Local
As a result, the software feels like a local program, but appearances can be deceptive. Under certain circumstances, the browser continues to load the entire application code every time you start a server from the Internet. Apps installed in this way are not necessarily packaged apps that Firefox OS has unpacked on the local filesystem. Purely on the basis of the starter icon, the user cannot currently distinguish local apps from Internet services.
The browser run time in which the application runs remains an Internet browser: It opens links to HTML pages without any notification that it is leaving the local filesystem. Only time will tell whether users feel comfortable with this blurring of the boundaries between online and offline content, and this approach could potentially create new security problems.
Web developers need to learn very few new tricks to develop an app for Firefox OS: The same basic techniques are used as for normal web applications. Developers can implement programs in JavaScript on both the server and client sides.
The first specific challenge is the small screen. At this point, the apps do not greatly differ from the long-established mobile versions of larger websites. The only requirement for the installation of an app is the manifest [9], a simple JSON file. Of course, the user will prefer client-side apps, which can also be used offline thanks to cache management or local installation.
JavaScript Is Mature
The art of client-side programming in JavaScript has long reached a certain level of maturity: JavaScript is now as powerful as many of the classic scripting languages. The browsers come with a debugger, and IDEs [13] [14] support the language well. A wide selection of libraries and frameworks are present that often follow the model-view-controller paradigm (Table 3).
Table 3
Frameworks and Libraries
Frameworks | URL |
---|---|
High-level frameworks |
|
Marionette.js |
|
Thorax |
|
Low-level frameworks |
|
Backbone.js |
|
jQuery (DOM abstraction) |
|
User interface |
|
jQuery UI |
|
Sencha Touch |
|
SproutCore |
Light and Shadow
Many animation effects, but also functional features of a user-friendly GUI, are definitely easier to implement in HTML5 and CSS3 than in native graphical toolkits. One advantage of Firefox OS, however, is that there are more potential programmers around than for Android or iOS: Virtually any web developer can get started, with no major barriers to entry, although there are some undeniable drawbacks: JavaScript as a scripting language is inevitably slower than Java or C++, which has an effect on battery life.
In terms of security, browsers do not have good reputations. Although JavaScript is better than many C++ or Java developers might think, it still has inherent defects, such as the 64-bit limitation for floating point numbers. Additionally, whether users will be comfortable with the blurring of the online-offline boundary is not yet known.
Infos
- Boot to Gecko wiki: https://wiki.mozilla.org/B2G
- Firefox OS simulator as a plugin: https://addons.mozilla.org/de/firefox/addon/firefox-os-simulator/
- Geeksphone:http://www.geeksphone.com
- Ubuntu Touch: https://wiki.ubuntu.com/Touch/
- Palm (HP) WebOS: http://en.wikipedia.org/wiki/WebOS
- B2G on GitHub: https://github.com/mozilla-b2g/
- Geolocation API: https://developer.mozilla.org/en-US/docs/WebAPI/Using_geolocation
- WebAPI: http://wiki.mozilla.org/WebAPI
- App manifest: https://developer.mozilla.org/en-US/docs/Web/Apps/Manifest
- Permissions: https://developer.mozilla.org/en-US/docs/Web/Apps/App_permissions
- Open Web Apps: https://developer.mozilla.org/en-US/docs/Web/Apps
- App installation: https://developer.mozilla.org/en-US/docs/Web/Apps/JavaScript_API
- NetBeans for HTML5: https://netbeans.org/features/html5/
- Eclipse for JavaScript: http://www.eclipse.org/downloads/packages/eclipse-ide-javascript-web-developers/heliosrc2
« Previous 1 2 3 4 5
Buy this article as PDF
(incl. VAT)
Buy Linux Magazine
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Support Our Work
Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.
News
-
Linux Servers Targeted by Akira Ransomware
A group of bad actors who have already extorted $42 million have their sights set on the Linux platform.
-
TUXEDO Computers Unveils Linux Laptop Featuring AMD Ryzen CPU
This latest release is the first laptop to include the new CPU from Ryzen and Linux preinstalled.
-
XZ Gets the All-Clear
The back door xz vulnerability has been officially reverted for Fedora 40 and versions 38 and 39 were never affected.
-
Canonical Collaborates with Qualcomm on New Venture
This new joint effort is geared toward bringing Ubuntu and Ubuntu Core to Qualcomm-powered devices.
-
Kodi 21.0 Open-Source Entertainment Hub Released
After a year of development, the award-winning Kodi cross-platform, media center software is now available with many new additions and improvements.
-
Linux Usage Increases in Two Key Areas
If market share is your thing, you'll be happy to know that Linux is on the rise in two areas that, if they keep climbing, could have serious meaning for Linux's future.
-
Vulnerability Discovered in xz Libraries
An urgent alert for Fedora 40 has been posted and users should pay attention.
-
Canonical Bumps LTS Support to 12 years
If you're worried that your Ubuntu LTS release won't be supported long enough to last, Canonical has a surprise for you in the form of 12 years of security coverage.
-
Fedora 40 Beta Released Soon
With the official release of Fedora 40 coming in April, it's almost time to download the beta and see what's new.
-
New Pentesting Distribution to Compete with Kali Linux
SnoopGod is now available for your testing needs