Fix URL query parsing in Firefox.

Closes bug 14686.