firefox-os

What are the system fonts of Firefox OS?

大城市里の小女人 提交于 2019-12-08 08:30:21
问题 Fira Sans seems to be the default font, but I'm wondering what other fonts are on the device that can be used by apps via CSS. 回答1: This file describes the fonts that are installed in Firefox OS: https://github.com/mozilla-b2g/moztt/blob/master/fonts.mk. This is for the master branch. Check the other branches in the git repository to find out about fonts available in a specific Firefox OS version. 回答2: You can check this site for the different typeface supported by firefox os https://www

Facebook app configuration for Firefox os(packaged app)

☆樱花仙子☆ 提交于 2019-12-08 06:31:41
问题 I am developing a firefox os packaged app. For my app what will be the values of red marked portions. Please see the following picture. 回答1: I think you should be able to put the URL of your application if it's a hosted one or the URL of your website for App Domains. As for the platform, choose the website. Let me know if it's working. 来源: https://stackoverflow.com/questions/22781623/facebook-app-configuration-for-firefox-ospackaged-app

AngularJS $LogProvider throws Illegal access error

血红的双手。 提交于 2019-12-08 02:45:26
问题 I have a mobile app that uses cordova + AngularJS 1.2.4 It works perfect on every platform I tested except some Android 2.3.X devices throw a mysterious illegal access exception. Below is the portion of code that raises the error. Precisely speaking, the line return logFn.apply(console, args); seems to be the culprit. If I remove the parameter args code works fine. It seems odd since variable args is defined at the top of the function. I don't understand what is really causing this illegal

Send email from FirefoxOS app with content

天大地大妈咪最大 提交于 2019-12-07 13:55:55
问题 I'm trying to send an email from a FirefoxOS App to share content generated by it. Currently I'm using: var createEmail = new MozActivity({ name: "new", data: { type : "mail", } }); But I haven't been able to find any way of appending or attaching content to this email 回答1: Thanks to @sebasmagri answer I learnt that the "mailto" URI accepts many more fields than I knew about. Specially interesting is the body and subject: mailto:someone@example.com? cc=someone_else@example.com &subject=This

CSP Violation Detected in Firefox OS validator

与世无争的帅哥 提交于 2019-12-06 15:48:04
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 App</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <link href="js/jquery

firefox OS app,CORS in Firefox os app

扶醉桌前 提交于 2019-12-06 13:42:23
I have been developing web-app(not hosted app) in firefox OS . I want to access the websites xml/JSON data using XMLHttp request. but it gives error as CORS not allowed to access the data . I know about to add 'Access-Control-Allow-Origin' header in website and enabling CORS may cause security issues. But is their any alternate way to access the data feed via XMLHttp request? First change your manifest to have the following fields (the type one gets forgotten by people): "type": "privileged", "permissions": { "systemXHR" : {} } Second, move all your JavaScript code to a separate JS file.

AngularJS $LogProvider throws Illegal access error

人盡茶涼 提交于 2019-12-06 12:27:48
I have a mobile app that uses cordova + AngularJS 1.2.4 It works perfect on every platform I tested except some Android 2.3.X devices throw a mysterious illegal access exception. Below is the portion of code that raises the error. Precisely speaking, the line return logFn.apply(console, args); seems to be the culprit. If I remove the parameter args code works fine. It seems odd since variable args is defined at the top of the function. I don't understand what is really causing this illegal access error? Any one had a similar problem? Any ideas how to fix it? ps: Please check out inline

Send email from FirefoxOS app with content

会有一股神秘感。 提交于 2019-12-06 01:49:49
I'm trying to send an email from a FirefoxOS App to share content generated by it. Currently I'm using: var createEmail = new MozActivity({ name: "new", data: { type : "mail", } }); But I haven't been able to find any way of appending or attaching content to this email Thanks to @sebasmagri answer I learnt that the "mailto" URI accepts many more fields than I knew about. Specially interesting is the body and subject: mailto:someone@example.com? cc=someone_else@example.com &subject=This%20is%20the%20subject &body=This%20is%20the%20body This allows me to set the different parts of the email as I

Firefox OS Background services

僤鯓⒐⒋嵵緔 提交于 2019-12-05 07:45:00
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 service on FIrefox OS platform? Can anyone also explain how to communicate between the background

Porting Firefox OS to Android device

℡╲_俬逩灬. 提交于 2019-12-05 07:12:15
I would like to port Firefox OS to my device (that is not supported by Mozilla but it has Android 4.2). I've read from net that some of the drivers haven't been developed yet, but if FFOS uses the kernel from Android, then it can load the drivers from my Android ROM, right? From this point, my real question is: if I build my FFOS ROM correctly, would I still have some bugs from hardware/drivers? Thank you! Leakspin, I'll try to give you some context on whether it's doable, and what has been done yet. if FFOS uses the kernel from Android, then it can load the drivers from my Android ROM, right?