I have created a plugin using firebreath its been installed in firefox but i wanted to know is it possible to load the plugin automatically when i open a file with
.XXX
extension ? example: you can right click on a PDF and open with browser and it opens the PDF in npapi plugin. How it is possible? and how PDF maintains same UI for all browsers and they dont expose their code its embedded. Do they use HTML 5 canvas? as far as i searched there are very less information about it.