https://bug1077808.bugzilla.mozilla.org/attachment.cgi?id=8499998