this needs a test. If you absolutely totally can't find a way to test it, then at least put a comment in referencing the mozilla bug so someone knows later why this code is in there.