11.17.11 - 09:39pm
My blog has moved to http://blog.lassey.us
11.17.11 - 09:39pm
My blog has moved to http://blog.lassey.us
02.18.10 - 05:54pm
I’m really happy to announce the fourth alpha release of Fennec for Windows Mobile. It has been some time since we released the third alpha and things have come quite far since then. Please have a look at this video walk through to get a sense of how things are shaping up.
We’ve made some pretty big improvements with overall performance since the last release, particularly with panning. Also, the fuzzy zooming that was featured in the 1.0 release for maemo makes an even bigger difference on windows mobile in terms of responsiveness. Finally, we really fixed up our interactions with the soft keyboard.
To install this release, you can grab the cab from here. We’re also experimenting with an alternative exe installer, but only recommend it for users with unlocked devices due to the way Windows Mobile handles signing. It can be found here . For more detailed information on this release, check out the release notes.
Please try this release out and keep the feedback by coming filing bugs, commenting here or dropping in on the #mobile channel on irc.mozilla.org.
10.14.09 - 04:34pm
A recent series of regressions for Windows Mobile (and Windows CE presumably) really drove home the need for consistent, automated testing to every one on the mobile team. As part of a new push to get testing going for these devices we reexamined out strategy of running python on the devices themselves. For various reasons that approach began to look like a lot of work with an uncertain probability of success.
The new approach is to have a very light-weight daemon running on the device which a host machine can interact with to run commands. Most likely the host machine will be running a python scripts very similar to those our current test machines do, with the exception of issuing the commands over an ip connection rather than locally.
Joel Maher went about modifying the existing test scripts (see bug 493748 and maemkit for an example) to issue their commands over ip for windows mobile and I took the task of writing the light-weight daemon, which I called test-agent (code can be found here). Its a very basic telnet shell with a few built in commands.
Everything is pretty strait forward with the exception of the exec command which attaches a debugger process to the executed command to capture stdout, since Windows Mobile ostensibly doesn’t have stdout. If anyone knows of a better way to capture output from a process, I’m all ears.
Today this set-up ran through all 437 xpcshell tests for the first time on a Samsung Omnia II. This is a major step forward and everyone is pretty excited (Yay team!).
10.01.09 - 12:45pm
Every now and then I find myself in Visual Studio and I’m tempted to edit some source code (usually this happens in the middle of debugging something). Then alarm bells go off and I’m reminded of the pain of cleaning up my patches after visual studio has littered them with tabs and CRLF’s.
Turns out you can tell Visual Studio to stop doing that. Go to tool->options and expand the “Text editor” node and the “All Languages” node under that. Then select tabs under that. I set my indenting to “smart”, tab and indent size to 2 and (this is the key) enabled “Insert spaces”. Its the “Insert Spaces” option that tells VS to use spaces instead of tabs.
09.04.09 - 11:11am
We’re very happy to announce the availability of Fennec Alpha 3 for Windows Mobile. There are lots of great features and fixes included in this release. You can find the release notes here and a cab installer here. Personally, I’m turning off my iPhone to switch to a Windows Mobile device with Fennec.
The first thing you’ll notice is the improved start up time. Brian Crowder took Vladimir Vukicevic’s original dabblings for Firefox on Windows CE and produced a cross platform fast start daemon for Mozilla. Stay tuned to his blog for a post I’m going going to nag him to write about it. One caveat is that this faster start up time doesn’t take effect until after you reboot your phone (hey, this is Windows after all).
The next thing you’ll probably notice is the much improved panning. We’ve implemented a tile cache rendering system (much like you see on google maps) that allows us to cache previously rendered content and avoid duplicating the work. This has also allowed us to switch over to native scrolling surfaces which has greatly improved panning performance. Roy Frostig goes into much greater detail on this in his blog post on the tile cache.
Also helping out panning performance has been Robert O’Callahan’s compositor work, which reduces the amount of native widgets we have to deal with when rendering or scrolling and a change to keep track of the invalidated regions ourselves rather than rely on the system do it.
But wait, there’s more! If you’re running a phone other than the HTC Touch Pro, you’ll notice we now support a wider range of screen resolutions through the use of CSS media queries, which really show’s the power of our XUL based front end. And if you are running on the Touch Pro, go a head and run your finger around the edge of the directional pad. That zooming you see is the result of Alexandru Cristei’s work to support the touch sensitive directional pad on HTC’s Touch phones.
There is plenty more work to do (after all this is an Alpha release), but in writing this blog post I realize just how much progress we’ve made since Alpha 2. I hope you’ll give it a try, put it through its paces and enjoy. Oh, and file bug reports.
Update: There is now a shortened url for the cab installer bit.ly/wma3cab
06.27.09 - 09:17pm
Yesterday we announced the first multi-platform release of Fennec. They are versioned Beta 2 for Maemo and Alpha 2 for Windows Mobile. Both are based on the same front end and back end code. The Beta and Alpha labels reflect the difference in maturity and stability of the underlying platform.
There are lots of great front end changes for both platforms, which Stuart touched on with his post announcing the release. Mark posted more details about the new embedded error console. I’m really hoping he writes another post about some of the other front end improvements that made it into this release.
For Windows Mobile the most significant improvement in my mind is the great strides we made in painting and panning performance. This has been a true team effort. First we had some outside contributions of DirectDraw optimizations for cairo (bug 484864). Vlad worked to get them into the tree and finally Doug made the final push to get them working for Windows Mobile (bug 495298). Jeff Muizelaar can take credit as well for his work on pixman optimizations.
One caveat to these optimizations is that each Windows Mobile device has different hardware and different performance characteristics. We know that these optimizations will have no effect on several devices, even though they make a huge difference on the HTC Touch Pro and others. The
plan is to eventual switch the optimizations we use at runtime based on the hardware we are running on. The runtime switches have already landed (bug 488911), but the tests to determine the most effective optimizations for the hardware have yet to be written (bug 488547).
05.15.09 - 09:34am
We are pleased to announce that Fennec Alpha 1 for Windows Mobile 6 is available for download by developers and testers. This is an early developer release intended for testing purposes only. We would like to invite interested Windows Mobile developers and users to join with Mozilla’s developer and user community to help develop, test and refine the product.
Since we started getting Fennec compiling on Windows Mobile a few months ago, we’ve made good progress:
This release has been targeted and tested on the HTC Touch Pro. We will be adding support for more devices in future releases. To install on your device, you can either navigate to this cab installer from your phone’s current browser or download it to your desktop and copy it to your device via ActiveSync. Once on your device simply click on the cab and it will install to your device. For more detailed installation instructions, look here and of course, please read the release notes.
Again, please note that some carriers filter web traffic to prevent their users from downloading cab files. If downloading the cab simply hangs or you get a message reading “This page contains erros and cannot be displayed,” this is probably what’s happening. In this case you will either need to be connected via WiFi or use the ActiveSync method.
The first time you run Fennec it will spend some time creating your profile. This may take a minute or two, please be patient.
It is not yet recommended to use this release for daily browsing tasks. Certain performance problems will become immediately apparent to the user. Panning has a noticeable delay between the user first touching the page and the page moving. We are certain that other less obvious bugs exist and we invite you to help bring them to light. You can find detailed information on how to file a good bug in bugzilla , our bug tracking system, here .
Now that we have gotten to this point, the fun really begins. If you would like to help us by testing or developing the product, please visit the Mobile Firefox wiki . There you will find some information that we hope is useful in helping you find where to “plug in” to the effort. As always, you can find us on irc in the #mobile channel .
03.23.09 - 10:51pm
The pre-alpha build we released in February got a lot of criticism (and rightfully so) for what became known as the “checkerboard” issue. Mark Finkle blogged about the problem and the solution before. Tonight I pushed the fix to mozilla-central, here are some details.
Simply put, we were running out of memory. The frustrating part though, was that we weren’t running out of real memory. We were being constrained by an artificial limit of 32Mb (including the binary) that Windows CE places on each process. That is why otherwise extremely capable phones like the HTC Touch Pro with 288Mb of RAM were showing a beautiful checkerboard pattern. I’m still not entirely sure why this didn’t show up on our development devices before the release. I suspect it has something to do with the fact that we’re using unlocked HTC Touch Pros for development, while most of the testers seeing the problem were using handsets from Sprint, Verzion or AT&T.
Digging further, the reason people saw a checkerboard pattern, but otherwise usable UI is due in part to the way Fennec works. In Fennec, the user actually interacts with an html canvas element. We render the page off screen and then paint the image onto the canvas. In this particular case, it seems as though we were successfully rendering pages but failing to allocate enough memory to do the final paint onto Fennec’s canvas. We were handling this low memory “gracefully” and continuing to run.
At first Doug Turner took a crack at cooling down this memory hot spot by improving on how we allocate memory during paints. Essentially, allocating a single buffer and reusing it every time he needed a surface to write to. This didn’t actually decrease the amount of memory we were using, but instead significantly reduced the amount of memory “thrashing,” (repeatedly allocating and freeing chunks of memory).
With that change we were able to run for much longer without running into memory problems, but it became clear that there are plenty of other places in our code that we thrash.
The solution was to use jemalloc, originally written by Jason Evans. Stuart and Vlad used jemalloc to greatly improve the memory performance of Firefox over a year ago, so it was already in the Mozilla bag of tricks.
Fearful of counting my chicks before they were hatched, I didn’t want to blog about this until it landed, and tonight it did. With jemalloc enabled on our windows ce build of Fennec I am able to start up without any worries of seeing a checkerboard.
…and I can browse to the two most memory intensive websites that I encounter on a regular basis (both of these have crashed my iPhone on occasion), the first being Planet Mozilla
…and the second being the Firefox tinderbox waterfall
I can even look at both at the same time!
With these bugs closed, we’re down to 5 blockers for our next release on Windows Mobile. Stay tuned.
02.23.09 - 04:48pm
Jono just blogged about one of the more unique (and down right awesome) features we’re planning for Fennec, tab syncing. Its part of our overall syncing effort called Weave.
Several use cases have been thrown around, but the one that rings the loudest for me goes something like this: You’re looking for a new restaurant to try from your laptop at home, find one and head out. Once you get to the neighborhood, you realize you have no idea where this hole in the wall place is. With tab syncing you can pull out your mobile device, launch Fennec and see a list of tabs open on your laptop (and all your other computers). You select the tab you need, and instantly are looking at the same content you had on your laptop.
Go checkout his write up, which includes screenshots of it working, at his blog. Great work Jono!
*Image taken directly from Jono’s blog