stephanmahieu / formhistorycontrol-2

A browser Add-On to View and Manage form history entries (adaptation of v1 for web-extension and e10s)
https://stephanmahieu.github.io/fhc-home
MIT License
51 stars 14 forks source link

Automatically save text fields from pdf forms displayed by the pdf viewer #163

Closed thx1111 closed 1 year ago

thx1111 commented 1 year ago

Currently, formhistorycontrol-2 fails to automatically save text fields from pdf forms displayed by the Firefox default pdf viewer.

Of course, automatically saving text fields from pdf forms would be very desirable.

It is possible to manually save a pdf form, including its text field entries, but this manual process does not provide for disaster recovery.

stephanmahieu commented 1 year ago

Yes that would be nice, however the content script provided by the extension is not loaded when viewing a pdf. So it looks like there is no way for any extension to access the DOM and extract data or attach event handlers. I believe Mozilla restricts access to the pdf/DOM when using the built-in pdf viewer. Tested with http://foersom.com/net/HowTo/data/OoPdfFormExample.pdf

As a side note: the DOM is loaded by the browser and can be viewed and manipulated with the developer tools..