Re: [b2g] devices for 1.2

2013-09-03 Thread Jan Jongboom
On Monday, September 2, 2013 4:33:28 PM UTC+2, Gervase Markham wrote:
 On 30/08/13 12:11, Alexandre Lissy wrote:
 
  Le 30/08/2013 11:37, Gervase Markham a écrit :
 
  To expand, I am told that by next Thursday, ZTE will provide docs to
 
  allow Fastboot in all eBay-sold phones, so developers can reflash them.
 
  
 
  Do you have public link for this ?
 
 
 
 No. I was told it by someone in Mozilla bizdev, and that it was OK to
 
 say it publicly. We'll have to wait and see if it happens :-)
 
 
 
 Gerv

Also this was mentioned in this mailing list (bricked ZTE open thread)
___
dev-b2g mailing list
dev-b2g@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-b2g


[b2g] b2g source code

2013-09-03 Thread fgg . tut
Hello,

I'm a developer who is trying to get the whole b2g source code and I'm not sure 
if I got the right file. Could anybody please tell me where to download it from?

Thank you.

Kind regards
___
dev-b2g mailing list
dev-b2g@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-b2g


Re: [b2g] Low device storage (notifying the user)

2013-09-03 Thread Gervase Markham
On 02/09/13 19:31, Fernando Jiménez Moreno wrote:
 I think that we need to show a system notification (I'll let UX
 decide how the notification should look like) every time an user
 attempts to perform an action associated with a write in the data
 partition during a low storage situation (that is a write in
 indexedDB, localStorage and offlineCache). That means that we will
 probably need to trigger this notifications from each API
 implementation.

That sounds like a bit of a dangerous plan to me, without some sort of
throttling. If an app (perhaps because it's sub-optimally coded) makes
100 writes to IndexedDB in quick succession, and they all fail, you
don't want 100 notifications.

Gerv
___
dev-b2g mailing list
dev-b2g@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-b2g


Re: [b2g] b2g source code

2013-09-03 Thread fgg . tut
El martes, 3 de septiembre de 2013 10:57:07 UTC+2, Adán Sánchez de Pedro Crespo 
 escribió:
 Hi Fgg,
 
 
 
 You can get the source code for B2G right away from Github:
 
 https://github.com/mozilla-B2G/B2G/
 
 
 
 If your not very much into git and all the lovely software version 
 
 control magic, here you have a simple .zip archive:
 
 https://github.com/mozilla-b2g/B2G/archive/master.zip
 
 
 
 Regards!

Thanks Adán!

So if I need to get all the low level files I guess I should build the system 
first with the link that you gave me?
___
dev-b2g mailing list
dev-b2g@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-b2g


Re: [b2g] b2g source code

2013-09-03 Thread Fu-Hung Yen
Hi Fgg,

And I suggest you can try to build an emulator first.
It is easier than other real devices.

Regards,
Askeing

- 原始郵件 -
寄件者: Julien Wajsberg jwajsb...@mozilla.com
收件者: fgg tut fgg@gmail.com
副本: dev-b2g@lists.mozilla.org
寄件備份: 2013 9 月 3 星期二 下午 5:46:07
主旨: Re: [b2g] b2g source code

Le 03/09/2013 10:33, fgg@gmail.com a écrit :
 Hello,

 I'm a developer who is trying to get the whole b2g source code and I'm not 
 sure if I got the right file. Could anybody please tell me where to download 
 it from?


Hey,

you have a lot of informations about this in
https://developer.mozilla.org/en-US/docs/Mozilla/Firefox_OS/Building_and_installing_Firefox_OS
:)

Regards
-- 
Julien


___
dev-b2g mailing list
dev-b2g@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-b2g
___
dev-b2g mailing list
dev-b2g@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-b2g


[b2g] Version mismatch

2013-09-03 Thread Sanat Sujata
Hi,

I am porting firefox on one of the qcom chipset. It runs on Android 4.1.2

I need to port Firefox OS on that.

Initially, I synced the firefox port for nexus-s, which has android 4.0.4 and 
firefox V.1.0.1.

I copied gecko, gaia, rilproxy and gonk-misc from nexus-s repo to my android 
4.1.2 repo. With some compilation issues, I was able to build the complete 
source code and flash the images. My devices booted with no issues.

Following are the areas where the things are not working.

1. Auto mounting internal memory: Internal memory is not mounting
2. Audio / Video is not working. Not even in ringtone section while selecting 
the ring tone audio is not played.
3. Browser doesn't play Youtube videos.
4. Gallery, Camera, Music and Video applications are not working.


Later I replaced the gecko code with Version 1.1.0, same are the results. Can 
someone throw pointers to fix these issues

Regards,
Sanat

___
dev-b2g mailing list
dev-b2g@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-b2g


Re: [b2g] Low device storage (notifying the user)

2013-09-03 Thread Fernando Jiménez Moreno

On 03/09/2013, at 11:01, Gervase Markham wrote:

 On 02/09/13 19:31, Fernando Jiménez Moreno wrote:
 I think that we need to show a system notification (I'll let UX
 decide how the notification should look like) every time an user
 attempts to perform an action associated with a write in the data
 partition during a low storage situation (that is a write in
 indexedDB, localStorage and offlineCache). That means that we will
 probably need to trigger this notifications from each API
 implementation.
 
 That sounds like a bit of a dangerous plan to me, without some sort of
 throttling. If an app (perhaps because it's sub-optimally coded) makes
 100 writes to IndexedDB in quick succession, and they all fail, you
 don't want 100 notifications.
 

Good point. That sounds more like an implementation detail though :). We'll 
have to take that into account when working on the Gaia side of this.

Thanks Gerv!

/ Fernando
___
dev-b2g mailing list
dev-b2g@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-b2g


Re: [b2g] Wake-up phone

2013-09-03 Thread an
Any news on this issue?

On Monday, August 5, 2013 10:18:20 PM UTC+3, an wrote:
 On Monday, August 5, 2013 5:25:17 AM UTC+3, Marco Chen wrote:
 
  Hi,
 
  
 
  
 
  
 
  We are trying to look this bug on Helix project now.
 
  
 
  And the initial idea is that FxOS didn't have sufficient time for changing 
  the power state from 3 to 0 within 0.5 seconds.
 
  
 
  
 
  
 
  The suspect flow is
 
  
 
  
 
  
 
a. Apps processor got a RPC message for power key event.
 
  
 
b. Linux kernel is woken up and processed the early resuming process. 
 
  
 
c. During step b kernel hold a wake lock for 0.5 seconds and expect any 
  one to decide whether system should be woken up from power state 3 to 0.
 
  
 
d. Gecko's input widget received a power key event from input device then 
  throw a runnable event to main thread for following works.
 
  
 
e. Before main thread got this power key event ( then sending to shell.js 
  - chrome event - system app - power Web API - Gecko - Changing power 
  state ),
 
  
 
 the 0.5 seconds is time out and system go into suspend again.
 
  
 
  
 
  
 
  So what we saw will be
 
  
 
1. pressing power key multi-times then device can be woken up.
 
  
 
2. Pluggin USB then device can be woken up.
 
  
 
  
 
  
 
  We tried to prove this and figure out the solution.
 
 
 
 That's the behavior I'm seeing and that's what I imagined it might happen as 
 you describe it. Not being a developer the whole chain of events was a more 
 abstract one ;) to me but when I press the power key the soft buttons light 
 up for a second as if the phone wants to wake up but it somehow looses steam.
 
 Please keep me posted with your findings and eventual solutions.
 
 
 
  
 
  
 
  
 
  Sincerely yours.

___
dev-b2g mailing list
dev-b2g@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-b2g


Re: [b2g] Low device storage (notifying the user)

2013-09-03 Thread Fernando Jiménez Moreno
On 02/09/2013, at 20:41, Dale Harvey wrote:

 My first thought on this is testing, I am guessing we dont have any current 
 mechanism in which to simulate low / ran out of storage capacity for 
 integration tests, but we likely should

Good point. AFAIK there is no current mechanism to simulate low storage. 
However we can certainly test the dependent functionality (i.e. indexedDB, 
localStorage, offlineCache access or deviceStorage onchange event 
consumption) creating the appropriate mocks for it. Check [1]

 
 indexedDB and deviceStorage (and as far as I remember appcache) fail in 
 predictable ways when there is no space left on the device, and some apps 
 attempt to fallback gracefully (I know we did some work in the camera for 
 that) however these cases are very rarely exercised and have seen them to 
 have obvious bugs go unnoticed for a long time due to them being edge cases.
 
 I dont particularly understand why we would introduce another low storage 
 notification api for apps when the existing storage mechanisms already have 
 well defined error handling mechanisms (localstorage being the exception, I 
 dont really know what happens there, but if it doesnt already have one it 
 seems like we would just want it added to localstorage, and use existing ones 
 for the rest)

I didn't mean to suggest introducing another low storage notification API for 
apps, but using the currently existing ones :). As I mentioned before, IMHO at 
least Gaia apps should fallback gracefully when an error of this kind is catch. 
Apps can listen to both, (A) the deviceStorage onchange event notifying about 
the detection of a low storage situation (and its recovery) so they can switch 
to a low storage mode and (B) errors associated to write attempts in the 
affected APIs. (A) should allow apps to change its UI to avoid that the user is 
allowed to request any action associated with a write in disk via any of the 
already mentioned APIs. (B) should allow apps to fallback gracefully when an 
attempt to write (if it is allowed by the app for any reason, because it didn't 
handled A or whatever) throws an error. Right now, Gaia apps are not working 
this way and that's an unfortunate UX issue. (Another example of bug report 
related to this for the camera app [2])

FYI localStorage also fails in a predictable way throwing a DOM_QUOTA_REACHED 
exception [3].

 The system wide notification makes sense though

Great!

Thanks for your feedback Dale!

/ Fernando

[1] 
https://mxr.mozilla.org/gaia/source/apps/system/test/unit/storage_watcher_test.js
[2] https://bugzilla.mozilla.org/show_bug.cgi?id=907601
[3] 
https://mxr.mozilla.org/mozilla-central/source/dom/src/storage/DOMStorageCache.cpp#491
___
dev-b2g mailing list
dev-b2g@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-b2g


Re: [b2g] Low device storage (notifying the user)

2013-09-03 Thread Fabrice Desre
On 09/03/2013 08:56 AM, Fernando Jiménez Moreno wrote:


 That sounds like a bit of a dangerous plan to me, without some sort of
 throttling. If an app (perhaps because it's sub-optimally coded) makes
 100 writes to IndexedDB in quick succession, and they all fail, you
 don't want 100 notifications.

 
 Good point. That sounds more like an implementation detail though :). We'll 
 have to take that into account when working on the Gaia side of this.

Yes, we should throttle and/or coalesce by app these notifications. So
you could know easily that AppXXX is trying to write while we have no
space left.

Fbairce
-- 
Fabrice Desré
b2g team
Mozilla Corporation
___
dev-b2g mailing list
dev-b2g@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-b2g


[b2g] Mozilla RIL 09/03/2013 Buri 1.2 Smoketest Results - 34/47 tests passed, 3 new blockers

2013-09-03 Thread Marcia Knous
34 out of 47 tests passed for the 2013-09-03 Buri v1.2.0 Mozilla RIL 
Build. Here are the major issues that prevented the smoketests from passing.


Mozilla RIL Build Smoketest Results:
Daily Smoke Test Logs: 
https://docs.google.com/a/qanalydocs.com/spreadsheet/ccc?key=0AjRc6aVFoOW9dGZLdVdiWGZLbVdORlFpUGt5XzZ3Znc

Moztrap link: https://moztrap.mozilla.org/runtests/run/2165/env/347/

Tests Were Performed With:
Builds ID: 20130903040204
Gecko: d54e0cce6c17
Gaia: c6d58088f207829d96e7bb33ddacf990e90752fb
Base Image: 20130823
0 reboots
1 crash

Build Updated From:
- No OTA performed.

New Bugs Breaking the Smoketests:
-[New] [B2G][Email]User is unable to log in to email account 
https://bugzilla.mozilla.org/show_bug.cgi?id=912147
-[New] [B2G] [Buri] [1.2] [Contacts]  Blank contact import page is seen 
after logging in to Facebook 
https://bugzilla.mozilla.org/show_bug.cgi?id=912100
-[New] [B2G][Buri][1.2][Homescreen] Packaged app 'Terra' doesn't display 
correct content when launched from homescreen 
https://bugzilla.mozilla.org/show_bug.cgi?id=912149


Existing Bugs Breaking the Smoketests:
-[Existing] [Contacts] [Gallery] Segfault when picking a picture for MMS 
or Contacts https://bugzilla.mozilla.org/show_bug.cgi?id=901559
-[Existing] [Buri] OTA updates fails on 
master/mhttps://bugzilla.mozilla.org/show_bug.cgi?id=907444
-[Existing] [B2G] [Buri] [1.2] [YouTube] Videos stutter almost to the 
point of unplayability https://bugzilla.mozilla.org/show_bug.cgi?id=909564
-[Existing] crash in 
mozilla::layers::GrallocBufferActor::ActorDestroy(mozilla::ipc::IProtocolManagermozilla::ipc::RPCChannel::RPCListener::ActorDestroyReason) 
https://bugzilla.mozilla.org/show_bug.cgi?id=900012


New Issues Not Breaking the Smoketests:
--[New] [B2G] [Buri] [1.2] [Camera] Camera viewfinder freezes after 
changing orientation and taking a picture 
https://bugzilla.mozilla.org/show_bug.cgi?id=912138


Sincerely

Mozilla QA Team

___
dev-b2g mailing list
dev-b2g@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-b2g


[b2g] Updating Gaia on ZTE Open

2013-09-03 Thread Cristi Burca
Hello,

Just bought a ZTE Open from the UK Ebay site and I want to update to Gaia 1.1.

I have managed to root the device.

But I noticed that the `make reset-gaia` script ends up calling something like 
this:

adb shell cd /data/local  find . -type f | xargs sha1sum

But there's no `find` command on the device.

So, my question is: do I have to upgrade B2G first?
___
dev-b2g mailing list
dev-b2g@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-b2g


Re: [b2g] Wake-up phone

2013-09-03 Thread an
If it's of any help, I just figured out that the phone wakes every time if I 
press the volume button immediately after the power button.

On Wednesday, September 4, 2013 5:21:57 AM UTC+3, Marco Chen wrote:
 - 原始郵件 -
 

 
 Any news on this issue?
 
 
 
 On Monday, August 5, 2013 10:18:20 PM UTC+3, an wrote:
 
  On Monday, August 5, 2013 5:25:17 AM UTC+3, Marco Chen wrote:
 
  
 
   Hi,
 
  
 
   
 
  
 
   
 
  
 
   
 
  
 
   We are trying to look this bug on Helix project now.
 
  
 
   
 
  
 
   And the initial idea is that FxOS didn't have sufficient time for 
   changing the power state from 3 to 0 within 0.5 seconds.
 
  
 
   
 
  
 
   
 
  
 
   
 
  
 
   The suspect flow is
 
  
 
   
 
  
 
   
 
  
 
   
 
  
 
 a. Apps processor got a RPC message for power key event.
 
  
 
   
 
  
 
 b. Linux kernel is woken up and processed the early resuming process. 
 
  
 
   
 
  
 
 c. During step b kernel hold a wake lock for 0.5 seconds and expect any 
   one to decide whether system should be woken up from power state 3 to 0.
 
  
 
   
 
  
 
 d. Gecko's input widget received a power key event from input device 
   then throw a runnable event to main thread for following works.
 
  
 
   
 
  
 
 e. Before main thread got this power key event ( then sending to 
   shell.js - chrome event - system app - power Web API - Gecko - 
   Changing power state ),
 
  
 
   
 
  
 
  the 0.5 seconds is time out and system go into suspend again.
 
  
 
   
 
  
 
   
 
  
 
   
 
  
 
   So what we saw will be
 
  
 
   
 
  
 
 1. pressing power key multi-times then device can be woken up.
 
  
 
   
 
  
 
 2. Pluggin USB then device can be woken up.
 
  
 
   
 
  
 
   
 
  
 
   
 
  
 
   We tried to prove this and figure out the solution.
 
  
 
  
 
  
 
  That's the behavior I'm seeing and that's what I imagined it might happen 
  as you describe it. Not being a developer the whole chain of events was a 
  more abstract one ;) to me but when I press the power key the soft buttons 
  light up for a second as if the phone wants to wake up but it somehow 
  looses steam.
 
  
 
  Please keep me posted with your findings and eventual solutions.
 
  
 
  
 
  
 
   
 
  
 
   
 
  
 
   
 
  
 
   Sincerely yours.
 
 
 
___
dev-b2g mailing list
dev-b2g@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-b2g


[b2g] Call for help: dispatch hardware button events to user app

2013-09-03 Thread Alive
Hi folks,

Story: 
we had caught hardware key events in shell.js and prevent it to be sent to user 
app(mozbrowser iframe) but only send alternative mozChromeEvent to system app 
only.[1]

But we'd like the user app is able to catch the events! [2]

This is an old issue from long time ago,
and yesterday I tried to make a quick workaround patch to broadcast those 
events via system message (and tells systems app do not launch the app acquires 
hardware button events), but @:fabrice thinks this is a hack ;)

So if we're going to use DOM3 KeyboardEvents [3], we have some problems needs 
to resolve:
* Gonk is mapping volumeup key/volumedown key to pageup/pagedown now.
  With this we couldn't tell user app to use |evt.key = 
KeyboardEvent.DOM_VK_PAGE_UP| instead of DOM_VK_VOLUME_UP.
@:mwu, any idea about this? This issue shall fall under gonk if I'm not wrong.

* What if the user app do |preventDefault()| ?
  Shall we allow this usage for volumeup/volumedown, even for home and sleep 
button?
  Could we 'prevent' the preventDefault() call in this case?
@:smaug, could you please offer some opinion?

* Gecko has a whitelist of events could pass the mozbrowser iframe. [3] But now 
if there's a non-mozbrowser iframe falls under a mozbrowser iframe, the events 
couldn't pass to the parent frame. This needs some fix.

Any help is appreciated, thanks!!
--
[1] See https://bugzilla.mozilla.org/show_bug.cgi?id=762362.
[2] See https://bugzilla.mozilla.org/show_bug.cgi?id=820706.
[3] See https://bugzilla.mozilla.org/show_bug.cgi?id=842927.
[4] See https://bugzilla.mozilla.org/show_bug.cgi?id=757486. 
--
Alive C. Kuo, Front-end Engineer, FirefoxOS, MoCo. Taiwan, Taipei office.
al...@mozilla.com




___
dev-b2g mailing list
dev-b2g@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-b2g


[b2g] starttls email

2013-09-03 Thread an
Anyone knows if the email app supports starttls? I use a mail server which uses 
starttls for all of its services and I get an error when the app tries to 
connect to it.
___
dev-b2g mailing list
dev-b2g@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-b2g


Re: [b2g] starttls email

2013-09-03 Thread James Burke
On Tue, Sep 3, 2013 at 9:48 PM, an novac.a...@gmail.com wrote:
 Anyone knows if the email app supports starttls? I use a mail server which 
 uses starttls for all of its services and I get an error when the app tries 
 to connect to it.

Not in a release yet, but the work is in progress. You can follow this
bug to know when it finishes landing:

https://bugzilla.mozilla.org/show_bug.cgi?id=847032

James
___
dev-b2g mailing list
dev-b2g@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-b2g


Re: [b2g] starttls email

2013-09-03 Thread an
Thanks, good to know.

On Wednesday, September 4, 2013 8:39:53 AM UTC+3, James Burke wrote:
 On Tue, Sep 3, 2013 at 9:48 PM, an  wrote:
 
  Anyone knows if the email app supports starttls? I use a mail server which 
  uses starttls for all of its services and I get an error when the app tries 
  to connect to it.
 
 
 
 Not in a release yet, but the work is in progress. You can follow this
 
 bug to know when it finishes landing:
 
 
 
 https://bugzilla.mozilla.org/show_bug.cgi?id=847032
 
 
 
 James

___
dev-b2g mailing list
dev-b2g@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-b2g