WIP on 866535, currently non working

https://bugzilla.mozilla.org/show_bug.cgi?id=866535

So far this doesn't work, for reasons that aren't clear to me.