Note to self: come back here to solve https://bugzilla.mozilla.org/show_bug.cgi?id=937710.