@fabi1cazenave I'm working on this but is not working as expected. As soon as I had time I'll fix this.
Since this patch is a key feature for 1.4 and it has a r+, I will create a new bug to fix this.

This is the new bug: https://bugzilla.mozilla.org/show_bug.cgi?id=976985