In addition, you can check if navigator.mimeTypes[] contains handler before creating the object.