According to mozilla, the second parameter for canvas.toDataURL(1,2) is:
If the requested type is image/jpeg or image/webp, then the second argument, if it is between 0.0 and 1.0, is treated as indicating image quality; if the second argument is anything else, the default value for image quality is used. Other arguments are ignored.
But I can't find anywhere that tells me what the default value actually is.