• Following no one
  • Nothing Unseen
  • Someone Random
  • Everyone
  • Events
 

Gavin Sharp   -   Follow Person   Add Another Site   Edit
mozilla:gavin    freenode:gavin   
Flickr photos


Twitter
didn't get to see Canada's OT goal live (was omw to airport). saw a replay in the YYZ lounge and flight was upgraded though. can't complain! 12 days ago
finally made it to mountain view. I watched (most of) the game at @beltzner's place while he grilled up some super-awesome chicken wings. a+ 12 days ago
RT @madhava: more progress on Fennec for android: http://www.flickr.com/photos/madhava_work/4389974241/ #firefox #mobile #android 14 days ago
Gavin's blog
Services.jsm   15 days ago

I just landed the patch for bug 512784 on mozilla-central. It adds a new module to the toolkit whose sole purpose is to expose memoized getters for common XPCOM services on a simple “Services” JS object. The first pass involved adding getters for the prefs service, observer service, window mediator, permission manager, IO Service, prompt service, and search service. This patch also updates Firefox’s browser.js to make use of the module, which means that trunk-based extensions that run code in Firefox chrome windows can start making use of it if they’d like.

Here’s an example of one of the changes:

+// Services = object with smart getters for common XPCOM services +Components.utils.import("resource://gre/modules/Services.jsm");

function getTopWin() { - var windowManager = Components.classes['@mozilla.org/appshell/window-mediator;1'] - .getService(Components.interfaces.nsIWindowMediator); - return windowManager.getMostRecentWindow("navigator:browser"); + return Services.wm.getMostRecentWindow("navigator:browser"); }

reviews, crashing plugins, and tab matches   35 days ago

I’m going to give weekly blog status updates a shot. I suspect planet already gets inundated with them near the end of the week, so maybe I’ll try adjusting my schedule by a few days. Or maybe I’ll end up just posting them on wikimo instead. Either way I’ll try to keep them interesting!

I didn’t think I was going to end up doing this, so I didn’t take detailed notes of everything I’ve done this week. I’m going to try to get better at that.

Accomplished this week:

Transition   66 days ago

Learn about this site | Contact
API | Source Code
© 2008 Christopher Blizzard