fix broken device pixel query in Firefox