Nice catch! That seems like a bug in the gecko code, I've filed that as https://bugzilla.mozilla.org/show_bug.cgi?id=981210.