Re: [b2g] Proposal: Cracking down on arbitrary Javascript exceptions

2014-01-15 Thread James Burke
On Wed, Jan 15, 2014 at 9:24 AM, Fabrice Desré wrote: > That doesn't apply to certified apps that have no chance of running > somewhere else. I cringe everytime I see a "syntax error, rule ignored" > coming from a core app. > So yes, please kill them all. One wrinkle I ran into while removing s

Re: [b2g] Session Restoring of WebApps

2014-03-27 Thread James Burke
On Thu, Mar 27, 2014 at 8:33 AM, Thinker K.F. Li wrote: > The problem is, I know, we are unlikely to encourage people to use > sessionStorage or cookie as a synchronize API. Is there any other > option? I would prefer to use the history/popstate APIs and see apps change URLs for each state, stor

Re: [b2g] Session Restoring of WebApps

2014-03-27 Thread James Burke
On Thu, Mar 27, 2014 at 12:18 PM, Prateek Jadhwani wrote: > I will try popState api this weekend to test out this theory. Well, if we > are using Routers in the app, then it should be fairly easy to drop the > user to the previous state. The question is what should be use to store data > that can

Re: [b2g] Session Restoring of WebApps

2014-03-27 Thread James Burke
On Thu, Mar 27, 2014 at 1:23 PM, Thinker K.F. Li wrote: > I suggest to let webapp itself to decide if saving & restoring states. > For B2G, sysapp decides to restoring a session or not while the user > revisiting an app. For Firefox, it is brower to make a decision. > > So, we need a way (an API)

Re: [b2g] a proposal on one tool to rule them all

2014-04-08 Thread James Burke
On Mon, Apr 7, 2014 at 10:34 AM, Dave Huseby wrote: > Thoughts? I would really like to get some feedback on this. If we > think this is a good idea, it will dominate the perf dev-tools effort > for the foreseeable future as it would be a tool useful for both Mozilla > engineers (e.g. fxos-perf t

Re: [b2g] a proposal on one tool to rule them all

2014-04-21 Thread James Burke
On Mon, Apr 21, 2014 at 10:20 AM, Benoit Girard wrote: > Otherwise we just have to upload the symbols to the symbol server and add > code to query the symbols when profiling. We also need to implement an > versioning system for XUL. That would have no impact to what we ship but > we'd need to mod

Re: [b2g] Session Restoring of WebApps

2014-05-01 Thread James Burke
pp’, but I call this ‘suspending app’ to reflect > it’s suspending. > > I am not familiar with how gecko implements session restore, > but as James Burke said, it’d be easy to keep the state with url in system > app and restore the url in the app resuming process. I was curious to see

Re: [b2g] Gaia is currently closed

2014-06-25 Thread James Burke
Judging from the commit log in Gaia, Gaia appears to be open now. Someone who has topic mod abilities for #gaia may want to change the IRC room topic. On Tue, Jun 24, 2014 at 1:49 PM, Ryan VanderMeulen < rvandermeu...@mozilla.com> wrote: > Due to high test job backlog caused by problems with to

Re: [b2g] Sensor events when the screen is off via wakelock. Good idea or?

2014-08-05 Thread James Burke
On Tue, Aug 5, 2014 at 12:59 AM, Jan Jongboom wrote: > On Sunday, August 3, 2014 3:48:52 AM UTC+2, Jonas Sicking wrote: > > * Add the ability to specify a vibration pattern to the Notification > > > > API. I.e. when creating a notification, enable passing not just the > > > > text content of the

Re: [b2g] Application scopes

2014-08-05 Thread James Burke
On Mon, Aug 4, 2014 at 7:20 PM, Jonas Sicking wrote: > > High-level overview of proposed solution: > > Add two fields to the application manifest: > { > "name": "AwesomeGame", > ... > "scope": ["http://awesomegame.com/*";], > "open-in-app": ["http://awesomegamehelper.com/*";] > } > 1) W

Re: [b2g] Application scopes

2014-08-06 Thread James Burke
On Tue, Aug 5, 2014 at 11:27 PM, Jonas Sicking wrote: > On Tue, Aug 5, 2014 at 7:51 PM, James Burke wrote: > > The use case is a site that has app-like functionality for offline, but > has > > product pages that are not tied to that app, and the app does not know > how &g

Re: [b2g] Settings API queries fail after inner-window-destroyed

2014-09-25 Thread James Burke
On Thu, Sep 25, 2014 at 6:08 PM, Kyle Machulis wrote: > > Return fake DOMRequest-like objects that instantly fail? I favor this, although not sure what is meant by fake vs. just a real DOMRequest that doesn’t do anything special/will not call onsuccess, just onerror. Expressing the failure via a

[b2g] For v2.2: distributable certified apps

2014-10-22 Thread James Burke
For 2.2, I would like to see an exploration into allowing Gaia apps, and apps that can use certified APIs, to be distributed via marketplace channels, and updated outside full OS updates. That could take a few forms, including just pushing more/all certified APIs to "privileged" status. However, I

[b2g] Visibility plan for document.registerElement (custom elements)

2015-01-28 Thread James Burke
Is there a place where I can follow the plan for enabling document.registerElement to wider web usage? Right now is is only available behind an about:config setting or if an app is a certified app. I am just interested in the machinery for document.registerElement/custom elements to be available,

Re: [b2g] Visibility plan for document.registerElement (custom elements)

2015-01-28 Thread James Burke
On Wed, Jan 28, 2015 at 11:24 AM, Soledad Penadés wrote: > Can you use a polyfill in the meantime? There is a polyfill for enabling > only the custom element registration part > http://webcomponents.org/polyfills/custom-elements/ I would prefer to not add that layer if possible. Our custom elemen

Re: [b2g] Can we deprecate packaged apps?

2015-01-30 Thread James Burke
On Fri, Jan 30, 2015 at 6:48 AM, Benjamin Francis wrote: > There have been several proposals of how to provide privileged hosted apps, > including work around hosted packages [3] and discussions around a security > model. Link [3] (bug 1036275) seems mostly about how to reference resources inside

Re: [b2g] RequestSyncAPI

2015-02-11 Thread James Burke
On Mon, Jan 5, 2015 at 5:52 AM, Andrea Marchesini wrote: > I just landed RequestSync API, an API for b2g only that allows apps to > schedule tasks. I have been working on the email bug to switch to the navigator.sync API from using mozAlarms (bug 1098289). In the process, I made two smaller apps

Re: [b2g] Granting Permissions to the Web

2015-02-17 Thread James Burke
On Tue, Feb 17, 2015 at 11:12 AM, David Ascher wrote: > I don't see any data saying that devs aren't making webapps because hosting > is prohibitive. Is anyone? (I think it's too _hard_ for people who don't > have the skills, but that's a whole different ball of wax). Echoing the sentiment about

Re: [b2g] Granting Permissions to the Web

2015-02-18 Thread James Burke
On Wed, Feb 18, 2015 at 3:51 AM, Anne van Kesteren wrote: > Trying to figure out how to get sockets and "systemXHR" into the > browser has been going on for a very long time now, I think we should > start embracing that it's unlikely to happen and look elsewhere. The "look elsewhere" will be nati

Re: [b2g] Granting Permissions to the Web

2015-02-19 Thread James Burke
On Thu, Feb 19, 2015 at 12:18 AM, Anne van Kesteren wrote: > On Wed, Feb 18, 2015 at 7:16 PM, James Burke wrote: >> Mobile use is really large. Native mobile apps do not have >> restrictions from these APIs. > > As indicated most don't need them either. For email, a

Re: [b2g] Is navigator.syncManager used at all?

2015-06-12 Thread James Burke
On Wed, Jun 10, 2015 at 6:53 PM, Yoshi Huang wrote: > I also found a test app written by James Burke in > https://github.com/jrburke/requestsyncmanager > but it looks to me it's more like a test app. Just confirming that is a test app, not shipped with gaia. However, I would li

[b2g] Scroll bar fade out interfering with CSS animation?

2013-01-18 Thread James Burke
I have been working on the email gaia app to make the div animations smooth as the user navigates through the app, and to avoid a "black flash": https://bugzilla.mozilla.org/show_bug.cgi?id=828266 I implemented a workaround for the black flash, but sometimes the slide animation transitioning from

Re: [b2g] Scroll bar fade out interfering with CSS animation?

2013-01-24 Thread James Burke
On Fri, Jan 18, 2013 at 1:23 PM, James Burke wrote: > Any hints or guidance on how to get a smooth animation in this case? I filed the following to track this possible issue, so any feedback should be placed in that ticket: https://bugzilla.mozilla.org/show_bug.cgi?id=834353 Ja

Re: [b2g] Firefox OS Questions

2013-01-31 Thread James Burke
On Thu, Jan 31, 2013 at 8:33 PM, Pedro Nicholas Souza Alves wrote: > Hello guys > > I have a few questions about FirefoxOS development. > > I want to use AMD (with require.js) to modularize my app. But, when i use > the > simulator, it seens to not work at all (but in browser, this works just > fi

[b2g] Startup work delaying event loop?

2013-04-17 Thread James Burke
I am investigating email app cold startup time. If the code puts something in the event loop via a postMessage or a very short setTimeout during the startup of the app, it could be delayed as much as ~130-150ms for the first item, and often a follow-on item after that one can take ~20-50ms. This ca

[b2g] App load signal

2013-04-17 Thread James Burke
This started on dev-gaia: http://groups.google.com/group/mozilla.dev.gaia/browse_thread/thread/a0faa6512f71bc94 Summary: As apps use more async/defer-loaded JS and more async APIs for final construction, the platform cannot accurately detect when the app has finished loading and is in a usable sta

Re: [b2g] App load signal

2013-04-18 Thread James Burke
On Thu, Apr 18, 2013 at 2:51 AM, Justin Lebar wrote: > File a bug and we can see if this is reasonable! Thanks for suggestion. For future reference, filed here: https://bugzilla.mozilla.org/show_bug.cgi?id=863499 James ___ dev-b2g mailing list dev-b2g

Re: [b2g] Startup work delaying event loop?

2013-04-19 Thread James Burke
On Thu, Apr 18, 2013 at 2:48 AM, Justin Lebar wrote: > It's possible that the main process is taking CPU time from the child > process, and that's why it appears that the child process's event loop > is busy at that point in time. But if you want to know the answer for > sure, you'd have to profi

[b2g] v1-train slowness

2013-06-06 Thread James Burke
I have been away for a bit, so just getting back into things, and yesterday did a b2g update via: BRANCH=v1-train VARIANT=eng ./config.sh unagi BRANCH=v1-train VARIANT=eng ./build.sh and then I install gaia master. All actions on the device seem slow, and I do not think it is just my device, judg

Re: [b2g] v1-train slowness

2013-06-06 Thread James Burke
On Thu, Jun 6, 2013 at 3:00 PM, Mike Lee wrote: > James, > Are you seeing sluggish performance with marionette integration enabled or > disabled? I just tried: in build/custom-prefs.js, I set (normally I have it set to true): user_pref("marionette.defaultPrefs.enabled", false); delete the prof

Re: [b2g] mozilla-b2g github avatar

2013-07-02 Thread James Burke
You may want to get a "pencil" version of the image: http://www.mozilla.org/en-US/styleguide/identity/firefoxos/community/ I believe they wanted to reserve the the one with the colors for partner/release branding. James On Tue, Jul 2, 2013 at 2:52 PM, Ben Kelly wrote: > Hi all, > > Now that w

Re: [b2g] Save/restore feature

2013-07-06 Thread James Burke
On Sat, Jul 6, 2013 at 3:58 PM, Fabrice Desre wrote: > On the technical side: This may be going too far, but what about the possibility of implementing WebUSB[1], and using that in some fashion to allow a different firefox phone to back up another phone with a direct USB connection? I could see t

Re: [b2g] Wifi ain't working on latest v1-train hamachi (Alcatel) build

2013-08-20 Thread James Burke
I have run into the same problem, same symptoms described previously on this thread. In addition to a moz-central nightly build, I also tried using a nightly build for b2g18 and 1.0.1, all with same results. I see "ONE TOUCH 4012A" when I remove the battery, not sure if that helps. Unfortunately I

[b2g] unagi transition plan

2013-08-27 Thread James Burke
There have been rumblings of the unagi devices no longer being supported in the near future for 1.2 work. There are a few people within and without Mozilla that only have an unagi devices. What devices are suggested for people that currently have unagi devices? This is my current understanding, b

Re: [b2g] starttls email

2013-09-03 Thread James Burke
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

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

2013-12-18 Thread James Burke
On Wed, Dec 18, 2013 at 8:10 AM, Julien Wajsberg wrote: > The main issue is that using setTimeout or other async tests on Travis > and TBPL will always trigger intermittent from time to time because it > will hit the max timeout for a test. > > So sometimes we can't avoid it, and in that case we s

[b2g] Best way to profile web app startup performance

2015-08-11 Thread James Burke
I want to profile the startup of an app. The goal is to see where things like layout and paint might block startup to see if we need some new APIs to turn off these things while the app JS is generating the starting view, related to this dev-platform thread[1]. How do people do that sort of profil

Re: [b2g] Best way to profile web app startup performance

2015-08-11 Thread James Burke
On Tue, Aug 11, 2015 at 9:34 AM, Fabrice Desré wrote: > You can profile by using the pid of the preallocated app, since this is > the one that will be used once you actually launch your app. > You can get it by running |adb shell b2g-info|. Thanks for the guidance! To be extra literal since it to