firefox-os

What is the relationship/differences between Google App Engine, and “normal” web apps?

南笙酒味 提交于 2019-12-24 18:11:08
问题 I was trying to start to learn about programming on Firefox OS, and I heard that it is programmed with JavaScript and HTML5, and it uses the same structures of web apps. Said that, I'm doing a course on Udacity ( I'm a beginner) that is about web development, and it talked about how to use the Google App Engine(we just made our own websites online, using python and some structures of the GAE), and I tryied to make some relationship with what I was seeing in the Firefox website, and I just

firefox OS Content Security Policy error XHR based application in Index.html?

有些话、适合烂在心里 提交于 2019-12-24 13:26:15
问题 I got this error in console. Content Security Policy: The page's settings blocked the loading of a resource at self ("script-src app://fa91d835-176d-4fe7-bd06-fe7f57f11b68"). I tried to create a firefox ajax app to retrieve some data from my codeigniter controller. When I check the console it only returns the error. I've only added javascript function outside file. But its saying CSP error. My Index.Html <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Privileged app</title> <meta

Unable to flash my Mozilla Flame with new Firefox OS

半世苍凉 提交于 2019-12-24 11:35:06
问题 I have been following the instructions mentioned in https://developer.mozilla.org/en-US/Firefox_OS/Developer_phone_guide/Flame for getting the task done. The following things have been done and are working: Remote debugging enabled and Screen lock disabled. The adb-tools and fastboot installed. Tried both the Ubuntu as well as the Android official way. The adb devices is displaying my device. The .zip file has been download and extracted. Running the ./flash.sh script reboots my device then

Validation error while submitting app to Firefox Marketplace

谁都会走 提交于 2019-12-24 02:22:52
问题 I was validating my manifest on this page with this manifest URL of my app hosted on GitHub: https://raw.githubusercontent.com/my_username/my_application/master/manifest.webapp This is the error I got: Manifests must be served with the HTTP header " Content-Type: application/x-web-app-manifest+json ". See https://developer.mozilla.org/docs/Web/Apps/Manifest#Serving_manifests for more information. So I checked that link mentioned in the error and it says: If you serve your manifest file from

Firefox OS CSP restrictions on privileged apps

风流意气都作罢 提交于 2019-12-23 22:54:57
问题 To test Firefox OS capabilities, I’m writing a privileged app that can have access to various APIs on the device, but I got stuck in the development. I hope you can help me, I cannot find any useful documentation... I’d like to have access to Google Maps APIs from my app, but this requires a script to be loaded outside of app package ( Something like <script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?....."></script> ). Because of CSP restrictions in privileged apps,

CSP Violation Detected in Firefox OS validator

浪子不回头ぞ 提交于 2019-12-23 03:24:12
问题 I have this message in the firefox os validator : Erreur: It appears that your code may be performing an action which violates the CSP (content security policy) for privileged apps. You can find more information about what is and is not allowed by the CSP on the Mozilla Developers website. https://developer.mozilla.org/en-US/docs/Security/CSP www/index.html 16 17 <script type="text/javascript" src="js/select2.js"></script> <script> Code index.html : <!DOCTYPE html> <html> <head> <title>Chri

Firefox OS Background services

那年仲夏 提交于 2019-12-22 05:36:14
问题 I want to build and application through which an user can input some settings and the application will start a background service to perform some tasks based on those settings. I want to run the application and the background service only in the Simulator (I know that it requires "certified" mode for running a background service, but I am not thinking right now for posting the app on Firefox Marketplace). Can someone provide me with some links or tutorials on how to build and run a background

Store data in FirefoxOS

一个人想着一个人 提交于 2019-12-22 04:43:31
问题 I'm trying to do some FirefoxOS apps, but I have not seen any easy way to store local data. I hear about IndexedDB, but it seems too complex. Is there any other alternative? If not, is there any easy tutorial about it? I have considered to store and recove remote data (doing a croos domain request), but I'm having some issues with the permissions. Is there any tutorial about XHR for FirefoxOS? Thanks. 回答1: I recommend you using asyncStorage over localStorage, is an asynchronous version of

Memory mapped equivalent for FirefoxOS

痴心易碎 提交于 2019-12-22 04:15:08
问题 How would you emulate a memory mapped file in FirefoxOS, Tizen or any other mobile pure-JS solution? The use case is for a mobile browser and you need lots of data which does not fit in the RAM or you don't want to waste RAM for it yet and prefer to lazy load it. The only thing I found is IndexedDB or what can I do about it? Any better tricks or APIs? Hmmh it looks like Web SQL Database could be also a solution on Android, Tizen or iOS. But Firefox does not support it (?) Update : I'm asking

How to install Firefox OS SDK on MacOS?

折月煮酒 提交于 2019-12-21 17:52:22
问题 I'd like to start developing for Firefox OS, but I'm having problem to install.. I' m following the mozilla's wikis, but now I don't know how to continue. I've downloaded XULRunner, but then what should I do? I'm trying to follow the wiki, but without finding a solution. Link: https://developer.mozilla.org/en-US/docs/Getting_started_with_XULRunner 回答1: There is no SDK for Firefox OS. What exactly are you trying to achieve? Apps on Firefox OS are web apps, so you can use whatever tools you