This part of code should be unnecessary since Bug 893755 (or actually [Bug 931746](https://bugzilla.mozilla.org/show_bug.cgi?id=931746)) has been fixed.