Re: [b2g] Browser API reference: how can we keep it up to date?

2015-09-17 Thread Ehsan Akhgari
On 2015-09-15 10:47 AM, Paul Rouget wrote: Other parts of the web platforms usually have a reference: the specification. So there’s a minimal documentation already available. Which is not the case with the API with no standardization efforts, like the Browser API. And we can’t use

Re: [b2g] Browser API reference: how can we keep it up to date?

2015-09-15 Thread Ehsan Akhgari
On 2015-09-15 7:31 AM, Paul Rouget wrote: I believe the WebIDL files should play this role. But they are missing comments and events. WebIDL files are not a suitable place for documentation to live, since they require review from DOM peers who are typically overloaded individuals, and it

Re: [b2g] Fox Food Builds and backouts

2015-07-27 Thread Ehsan Akhgari
FWIW, I was involved in one of these bugs (bug 1185239). It is completely unbelievable to me that we seem to not have a single test that was broken by a change that would introduce a startup crash with an existing profile. As Kyle mentioned, it would be nice if someone worked on adding

Re: [b2g] Fox Food Builds and backouts

2015-07-27 Thread Ehsan Akhgari
On 2015-07-27 3:03 PM, Naoki Hirata wrote: It appears that Mochitests are disabled for KK and L for b2g : https://bugzilla.mozilla.org/show_bug.cgi?id=1186965#c27 I agree that we do need to get this fixed. If you read my comment more carefully, I am talking about running builds on an existing

Re: [b2g] Opening data-stores to privileged apps

2015-05-20 Thread Ehsan Akhgari
Yeah, the lack of the security UX is one issue. The other is that we are aware of issues in the API (see https://etherpad.mozilla.org/datastore for the notes from the last meeting that we had on this) but so far nobody has had the time to work on those issues. I haven't followed the recent

Re: [b2g] Audio/music apps and lock screen

2015-01-23 Thread Ehsan Akhgari
On 2015-01-23 1:18 PM, Jim Porter wrote: On 01/23/2015 10:26 AM, an wrote: There seems to not be an API for adding controls for music players and such on the lock screen, I just found a player with features not found in the stock app but also no ability to control it from the lock screen

Re: [b2g] Cross origin communication and the navigator.connect API

2014-12-11 Thread Ehsan Akhgari
On 2014-12-11 11:12 AM, David Rajchenbach-Teller wrote: Isn't that the same issue as Web Activities/Web Intents? Not really. The use cases around web activities/intents are mostly around user facing interactions (for example, opening a file in a web application, or using a web application

Re: [b2g] Cross origin communication and the navigator.connect API

2014-12-10 Thread Ehsan Akhgari
On 2014-12-10 12:21 AM, Nikhil Marathe wrote: (cross posted dev.b2g since this seems very relevant to it, but please keep the discussion on dev.platform) Hi All, As part of the ServiceWorker initiative [1], Google is proposing a `navigator.connect` API [2] to allow cross-origin ServiceWorker

Re: [b2g] Cross origin communication and the navigator.connect API

2014-12-10 Thread Ehsan Akhgari
On 2014-12-10 2:46 PM, Jonas Sicking wrote: On Wed, Dec 10, 2014 at 9:46 AM, Ehsan Akhgari ehsan.akhg...@gmail.com wrote: The downside of this approach is of course relying on the service providers to get their SWs registered, which may require the user to navigate to the service provider's

Re: [b2g] Is there any side effect holding a long lived AudioContext?

2014-11-24 Thread Ehsan Akhgari
On 2014-11-24 8:49 AM, Tim Chien wrote: Hi, I didn't find any documentation so that I figured I should ask. So in bug 1103574 I changed the Keyboard app so that it would start using Web Audio API instead of multiple audio to play that clicker sound, but doing so I would hold an AudioContext

Re: [b2g] mozSettings API refinement proposal

2014-09-26 Thread Ehsan Akhgari
On 2014-09-26, 3:18 AM, Alive wrote: Hi folks, During the cleanup work of gaia system app[1], I found that nearly every module inside system app (and so many other apps), is using a shared library called SettingsListener[2] to help it deal with read/write/observe settings. This is nothing

Re: [b2g] mozSettings API refinement proposal

2014-09-26 Thread Ehsan Akhgari
On 2014-09-26, 5:20 PM, Jonas Sicking wrote: Also currently mozSettings.createLock().get()/set() doesn't smell nice. A promise is something developer wants. It'd be nice if we have read/write without creating a lock and maintain on our own.[4] ```js

Re: [b2g] LED API?

2014-09-08 Thread Ehsan Akhgari
On 2014-09-08, 12:28 PM, Josh Hoff wrote: On Mon, Sep 08, 2014 at 10:15:57AM +0200, Frederik Braun wrote: On 08.09.2014 10:05, Jonas Sicking wrote: Or is the idea to turn on the LED to indicate pending notifications? And leave it on (or leave it blinking) until the user interacts with the

Re: [b2g] Settings API OOP and Privileged App Permissions Landing

2014-08-20 Thread Ehsan Akhgari
On 2014-08-20, 12:56 PM, Kyle Machulis wrote: Yeah, we'll want to update docs once things are landed (Currently doing the revert/revertrevert/revertrevertrevert shuffle on b2g-i due to some very weird issues). The new event will definitely need documentation too. Should I file a bug on this?

Re: [b2g] WebAPI for Device Information

2014-08-19 Thread Ehsan Akhgari
On 2014-08-19, 4:50 AM, Aaron Cajes (Mozilla PHL) wrote: Hi there, Just wondering if there is an existing WebAPI to access the Device Info (Ex. Device Model Name, IMEI number, etc) in a Firefox OS based phone. It doesn't matter if the API is for Certified application, i just wondering if an

Re: [b2g] Engineering Mode (aka service menu)

2014-08-07 Thread Ehsan Akhgari
On 2014-08-02, 8:05 PM, Jonas Sicking wrote: Hi All, We have many times debated how to handle engineering mode. Various partners have so far been adding in custom solutions on their own branches, but it would be good to find a better solution. Below is one proposed solution, though I'm

Re: [b2g] Future of packaged apps

2014-06-19 Thread Ehsan Akhgari
On 2014-06-18, 9:36 PM, Jonas Sicking wrote: On Thu, Jun 19, 2014 at 4:28 AM, Ehsan Akhgari ehsan.akhg...@gmail.com wrote: Thanks for writing this up, Jonas! Here are a couple of questions: 1. If we only allow access to privileged APIs to resources that are served from the package source

[b2g] Unified builds enabled on b2g

2014-06-18 Thread Ehsan Akhgari
I finally managed to enable unified builds on b2g. The tl;dr is that they give you faster builds (hopefully around twice as fast) for Gecko the next time that you update gaia and gonk-misc to master. The slightly longer version is that the build system will group C++ source files defined in

Re: [b2g] Unified builds enabled on b2g

2014-06-18 Thread Ehsan Akhgari
I also meant to add that you can opt out of unified builds locally by setting MOZ_NON_UNIFIED in your .userconfig. -- Ehsan http://ehsanakhgari.org/ On Wed, Jun 18, 2014 at 5:16 PM, Ehsan Akhgari ehsan.akhg...@gmail.com wrote: I finally managed to enable unified builds on b2g. The tl;dr

Re: [b2g] Web API’s to access the WiFi state of the device or change the WiFi state (en/disable it)

2014-04-30 Thread Ehsan Akhgari
the idea since I think it could be something very interesting to implement in the future. Congratulations for your work!! Firefox is becoming a great OS!! ;) 2014-04-25 23:58 GMT+02:00 Ehsan Akhgari ehsan.akhg...@gmail.com: The current way of turning wifi on or off is through the settings

Re: [b2g] The build system now honors the number of jobs you give it

2014-04-29 Thread Ehsan Akhgari
On 2014-04-29, 10:10 AM, Gabriele Svelto wrote: On 28/04/2014 16:25, Ehsan Akhgari wrote: I thought that b2g builds do not use unified builds. Has that changed? No they're not, turns out I was wrong. There doesn't seem to have been much action on bug 950676 [1] either. Is this just a matter

Re: [b2g] The build system now honors the number of jobs you give it

2014-04-29 Thread Ehsan Akhgari
On 2014-04-29, 3:40 PM, Gabriele Svelto wrote: On 29/04/2014 20:19, Ehsan Akhgari wrote: See bug 942167 please. I don't really understand all of the intricacies of how the b2g and gecko build systems talk to each other, but there is some information in that bug which might be useful. (FWIW I

Re: [b2g] The build system now honors the number of jobs you give it

2014-04-28 Thread Ehsan Akhgari
I thought that b2g builds do not use unified builds. Has that changed? On 2014-04-28, 9:42 AM, Kartikaya Gupta wrote: Nice, thanks! Can you clarify what effect, if any, exporting the MAKE_FLAGS and/or GECKO_MAKE_FLAGS variables in a .userconfig will have now? kats On 28/4/2014, 2:10,

[b2g] Hardening the review requirements for changing .webidl files

2014-04-24 Thread Ehsan Akhgari
Hi everyone, As many of you are already aware, we have been working hard towards making it possible to express our Web facing Javascript APIs in WebIDL. These .webidl files can be found under dom/webidl in mozilla-central. Over the past few years we have been trying to be more aware and

Re: [b2g] Hardening the review requirements for changing .webidl files

2014-04-24 Thread Ehsan Akhgari
in the commit message. The rest of this proposal remains intact! Cheers, -- Ehsan http://ehsanakhgari.org/ On Thu, Apr 24, 2014 at 5:14 PM, Ehsan Akhgari ehsan.akhg...@gmail.comwrote: Hi everyone, As many of you are already aware, we have been working hard towards making it possible to express

Re: [b2g] Triaging

2014-04-17 Thread Ehsan Akhgari
There is also an *awesome* Thunderbird extension https://addons.mozilla.org/en-us/thunderbird/addon/bugzilla-helper/ that lets you add a Product and Component view to the treeview of your emails to quickly be able to tell which bug is in which component. It also lets you respond to bugs directly

Re: [b2g] Let's fix updates

2014-04-15 Thread Ehsan Akhgari
On 2014-04-15, 3:28 AM, Axel Hecht wrote: On 4/15/14, 7:58 AM, Fabrice Desré wrote: Fortunately that's actually simple: we can just use a web activity that will be provided by the settings or system app, and then do the usual setting - gecko pref mapping. Technical detail, I don't think that

Re: [b2g] GCC 4.4 for B2G

2014-03-16 Thread Ehsan Akhgari
The last time I asked about this, people told me that our partners won't necessarily update the toolchain they use for the ICS builds so we would have to stick with whatever toolchain they're using. Has that changed? Cheers, Ehsan On 2014-03-14, 7:04 PM, Andreas Gal wrote: We should update

[b2g] Ideas for making it easier and less error prone for Firefox OS partners to expose certified only APIs

2014-01-17 Thread Ehsan Akhgari
(Follow-ups to dev.platform please) Our Firefox OS partners occasionally need to expose new APIs to Firefox OS devices for things such as testing and diagnostics purposes. We should try to make doing that easier and less error prone to ensure fewer ways of making mistakes which would lead to the

Re: [b2g] If you use setTimeout in tests, you are gonna have a bad time

2013-12-18 Thread Ehsan Akhgari
On 12/17/2013, 11:57 PM, Chris Peterson wrote: On 12/17/13, 6:49 PM, Ehsan Akhgari wrote: A few years ago I spent quite some time investigating our intermittent oranges in the tests living on mozilla-central, and in the process I ended up fixing a lot of bad patterns in our tests. Using

Re: [b2g] If you use setTimeout in tests, you are gonna have a bad time

2013-12-17 Thread Ehsan Akhgari
A few years ago I spent quite some time investigating our intermittent oranges in the tests living on mozilla-central, and in the process I ended up fixing a lot of bad patterns in our tests. Using setTimeout's like this is definitely one of them. I wrote this article

Re: [b2g] PSA: Shutting down my mozilla git mirror in three weeks

2013-12-13 Thread Ehsan Akhgari
I just finished this work. https://github.com/mozilla/mozilla-central will not be updated any more, and I will replace its content with a short notice explaining the situation on Monday. Cheers, -- Ehsan http://ehsanakhgari.org/ On Wed, Dec 11, 2013 at 2:46 PM, Ehsan Akhgari ehsan.akhg

Re: [b2g] PSA: Shutting down my mozilla git mirror in three weeks

2013-12-11 Thread Ehsan Akhgari
of knowing about this change. If you haven't done already, *please* take a few minutes to do this right now. If you hit problems, please ping me over email or IRC, or hop on #git. Thanks! -- Ehsan http://ehsanakhgari.org/ On Mon, Dec 9, 2013 at 2:12 PM, Ehsan Akhgari ehsan.akhg...@gmail.comwrote

Re: [b2g] PSA: Shutting down my mozilla git mirror in three weeks

2013-12-09 Thread Ehsan Akhgari
, -- Ehsan http://ehsanakhgari.org/ On Mon, Nov 25, 2013 at 7:39 AM, Ehsan Akhgari ehsan.akhg...@gmail.comwrote: Dear all, For the past two and a half years I have been maintaining a git mirror of mozilla-central plus a lot of the other branches that people found useful at https://github.com

Re: [b2g] Enabling CSS will-animate for b2g only

2013-12-09 Thread Ehsan Akhgari
On Mon, Dec 9, 2013 at 9:22 AM, Benoit Girard bgir...@mozilla.com wrote: On Wed, Dec 4, 2013 at 1:46 PM, Ehsan Akhgari ehsan.akhg...@gmail.comwrote: Yes, that's fair. In the world of DOM APIs, we sometimes do this for other reasons though, either because of time pressure to ship, or because

Re: [b2g] Clipboard not loaded on B2G?

2013-12-09 Thread Ehsan Akhgari
patch on bug 946646, we can move @StevenLee's engineer resource to other topic. Best Regards, Shih-Chiang Chien Mozilla Taiwan On Dec 7, 2013, at 1:48 AM, Ehsan Akhgari ehsan.akhg...@gmail.com mailto:ehsan.akhg...@gmail.com wrote: FWIW we briefly discussed adding

Re: [b2g] Clipboard not loaded on B2G?

2013-12-06 Thread Ehsan Akhgari
. Cheers, Ehsan On 12/6/2013, 1:55 AM, janjongb...@gmail.com wrote: Yeah I wrote the gonk part yesterday after I realized that :p On Dec 5, 2013 11:31 PM, Ehsan Akhgari ehsan.akhg...@gmail.com wrote: On 12/4/2013, 3:58 PM, Fabrice Desré wrote: On 12/04/2013 08:50 AM, Jan Jongboom wrote: I'm

Re: [b2g] Proposal: PasswordManager on FxOS

2013-12-06 Thread Ehsan Akhgari
questions to answer, this is something that we are interested in perusing. At this point, due to a significant number of unknowns, there is no target release specified for these features. Thanks, Adam - Original Message - From: Ehsan Akhgari ehsan.akhg...@gmail.com To: Alive al

Re: [b2g] Proposal: PasswordManager on FxOS

2013-12-06 Thread Ehsan Akhgari
On 12/6/2013, 1:28 PM, Adam Rogers wrote: Hi Ehsan, Formal discussions have not started yet, but I have been taking notes on threads like this. I'm happy to include you in the meetings as we move to formalize the ideas into actions. Yeah, I'm somewhat interested in this, so I'd

Re: [b2g] Clipboard not loaded on B2G?

2013-12-05 Thread Ehsan Akhgari
On 12/4/2013, 3:58 PM, Fabrice Desré wrote: On 12/04/2013 08:50 AM, Jan Jongboom wrote: I'm trying to copy some stuff from a frame script, so I do: let clipboard = Components.classes[@mozilla.org/widget/clipboardhelper;1]

Re: [b2g] Proposal: PasswordManager on FxOS

2013-12-05 Thread Ehsan Akhgari
On 12/5/2013, 3:20 AM, Alive wrote: Hi folks, I'd like to have a password manager inside our operating system to store and manage passwords you'd typed in the FxOS. This is an old item in my mind beyond FxOS v1.0 when I sadly found our phone crashed when we visited mozilla phonebook.

Re: [b2g] Enabling CSS will-animate for b2g only

2013-12-04 Thread Ehsan Akhgari
On 12/3/2013, 6:02 PM, Benoit Girard wrote: At this point we're leaning towards exposing it to all of b2g however I don't expect this property to be widely used outside of gaia. We have 3 options, (1) Wait until the spec is ready and miss out on important performance improvements (2) Expose it

Re: [b2g] Enabling CSS will-animate for b2g only

2013-12-04 Thread Ehsan Akhgari
On 12/4/2013, 11:56 AM, Julien Wajsberg wrote: Le 04/12/2013 17:26, Ehsan Akhgari a écrit : On 12/3/2013, 6:02 PM, Benoit Girard wrote: At this point we're leaning towards exposing it to all of b2g however I don't expect this property to be widely used outside of gaia. We have 3 options, (1

Re: [b2g] Enabling CSS will-animate for b2g only

2013-12-03 Thread Ehsan Akhgari
On 12/3/2013, 4:25 PM, Benoit Girard wrote: In bug 940842 I started investigating adding a new CSS property 'will-animate' to let authors give better descriptions of their intents instead of relying on our complicated, and unpredictable, internal heuristics. The better the platform can

Re: [b2g] PSA: Shutting down my mozilla git mirror in three weeks

2013-11-26 Thread Ehsan Akhgari
is also on git.mozilla.org, so should the same thing happen there, we have more options. If you require support to switch, let's take over #git and see if we can figure this out together. On 11/25/13 7:39 AM, Ehsan Akhgari wrote: Dear all, For the past two and a half years I have been maintaining

Re: [b2g] PSA: Shutting down my mozilla git mirror in three weeks

2013-11-26 Thread Ehsan Akhgari
On 11/26/2013, 2:13 PM, Juan Gómez wrote: Well, I have a fork of mozilla/mozilla-central and it is not disabled. I can push commits, browse it via web or clone it. Anyway, What do you suggest? moving to git.mozilla.org http://git.mozilla.org instead of github/gecko-dev? That problem was

[b2g] PSA: Shutting down my mozilla git mirror in three weeks

2013-11-25 Thread Ehsan Akhgari
Dear all, For the past two and a half years I have been maintaining a git mirror of mozilla-central plus a lot of the other branches that people found useful at https://github.com/mozilla/mozilla-central. Over the years this proved to be too much work for me to keep up with, and given the

Re: [b2g] [WebAPI] The Naming of PowerManager.screenEnabled Misleads the Gaia Developers

2013-11-12 Thread Ehsan Akhgari
Is this on ICS or JB? Reading this code, I think the JB code path ends up here http://dxr.mozilla.org/mozilla-central/source/widget/gonk/libdisplay/GonkDisplayJB.cpp#153 which seems like it's turning the screen on and off. However, the ICS version of this function

Re: [b2g] Custom ringtones

2013-10-17 Thread Ehsan Akhgari
On 2013-10-13 11:56 PM, Jonas Sicking wrote: I think the only platform pieces that are really missing is the ability to directly set a ringtone. Especially now that we have WebAudio landed (has it been uploaded to v1.2?) that should make some of the above even easier I think. Yes, Web Auudio

Re: [b2g] UX for cursor/selection for Firefox OS

2013-10-03 Thread Ehsan Akhgari
On 2013-09-28 1:40 AM, potatosculp...@gmail.com wrote: I'm trying to come up with a plan on how we should create a text selection/caret navigation UI for Firefox OS. On desktop platforms, we mimic the text selection/caret appearance and behavior of the underlying OS to a good extent (except on

[b2g] UX for cursor/selection for Firefox OS

2013-09-23 Thread Ehsan Akhgari
Hi everyone, I'm trying to come up with a plan on how we should create a text selection/caret navigation UI for Firefox OS. On desktop platforms, we mimic the text selection/caret appearance and behavior of the underlying OS to a good extent (except on Mac OS X where we don't implement the

Re: [b2g] ./repo sync failing on master

2013-08-15 Thread Ehsan Akhgari
None of this has helped unfortunately. I think I'm going to bite the bullet and reclone after wasting a few days hoping that somebody would know how to get me out of this mess. :/ Ehsan On 2013-08-12 7:52 PM, Jed Davis wrote: On Mon, Aug 12, 2013 at 06:20:44PM -0400, Ehsan Akhgari wrote

Re: [b2g] ./repo sync failing on master

2013-08-15 Thread Ehsan Akhgari
Actually, Sotaro suggested that I should justy rm -rf the bad directories and that made ./repo sync happy again! On 2013-08-15 3:19 PM, Ehsan Akhgari wrote: None of this has helped unfortunately. I think I'm going to bite the bullet and reclone after wasting a few days hoping that somebody

[b2g] ./repo sync failing on master

2013-08-12 Thread Ehsan Akhgari
I tried asking on #b2g but didn't get an answer. I am trying to config my build for the inari device, and I get this error during repo sync (which runs as part of config.sh): ehsan@teenux:~/moz/b2g$ ./repo sync -l Syncing work tree: 100% (96/96), done. frameworks/base/: discarding 1582 commits

Re: [b2g] ./repo sync failing on master

2013-08-12 Thread Ehsan Akhgari
Thanks for the reply! On 2013-08-12 2:40 PM, Dave Hylands wrote: Hi Ehsan, Someone else (jlebar perhaps?) ran into this from switching between devices while in the same tree. I think that this should be a bug. To cleanup, I'd probably abort the git changes, and then cd into the directory

Re: [b2g] LED API?

2013-08-08 Thread Ehsan Akhgari
On Thu, Aug 8, 2013 at 6:41 AM, Mounir Lamouri mou...@lamouri.fr wrote: On 08/08/13 02:08, Ehsan Akhgari wrote: On Wed, Aug 7, 2013 at 9:35 AM, Mounir Lamouri mou...@lamouri.fr wrote: I believe that having this handled by the system would lead to a better user experience because

Re: [b2g] LED API?

2013-08-07 Thread Ehsan Akhgari
On Wed, Aug 7, 2013 at 9:35 AM, Mounir Lamouri mou...@lamouri.fr wrote: I believe that having this handled by the system would lead to a better user experience because as a user I would be able to say that any notification should just vibrate and do a low volume sound for example. We could

Re: [b2g] Running B2G tests on debug builds?

2013-07-30 Thread Ehsan Akhgari
On 2013-07-30 12:35 PM, Jonathan Griffin wrote: More recently, the tests seem to have fallen over due to infrastructure issues. I've filed a bug to fix the infrastructure issues (https://bugzilla.mozilla.org/show_bug.cgi?id=899392); after this is fixed we'll be in a better position to determine

Re: [b2g] v1.0.1 Branching Completed

2013-02-27 Thread Ehsan Akhgari
On 2013-02-13 9:36 PM, Justin Lebar wrote: If you're using hg, here are instructions for cloning b2g18-v1_0_1 quickly, given another existing Gecko clone: http://jlebar.com/2011/5/20/Faster_and_smaller_clones_of_branches.html In other news, I think Ehsan is on vacation this week, so

Re: [b2g] Gecko release for the 1st version of b2g

2012-10-09 Thread Ehsan Akhgari
the above decisions or process. -Alex On Oct 2, 2012, at 10:47 AM, Ehsan Akhgari ehsan.akhg...@gmail.com wrote: Hi all, Has there been a call on which version of Gecko b2g v1 will be based on? We need to know whether we can backout bug 722845 on 18 after the uplift to Aurora until we fix bug

[b2g] Gecko release for the 1st version of b2g

2012-10-02 Thread Ehsan Akhgari
Hi all, Has there been a call on which version of Gecko b2g v1 will be based on? We need to know whether we can backout bug 722845 on 18 after the uplift to Aurora until we fix bug 787743 on trunk, and in order to make that call we need to know whether b2g will be shipping off of Gecko 18