Also, shouldn't wpe_view_backend_dispatch_set_device_scale_factor() return an error or something when it receives a 0 factor? Because that's wrecking havoc :)
Probably we should check that the requested scaling factor is between reasonable limits, because I do not expect good things to happen by setting it too big either.
Reported by @philn in https://github.com/Igalia/cog/pull/384#issuecomment-991743007:
Probably we should check that the requested scaling factor is between reasonable limits, because I do not expect good things to happen by setting it too big either.