Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Send
metadatachange
message to parent frame in PDF viewer
When visiting `http://<VIA_DOMAIN>/<PDF_URL>` then the PDF viewer is displayed inside an iframe. In order for the top frame rendered by the `proxy` view to reflect the document title and PDF URL the PDF viewer iframe needs to send the same `metadatachange` message that ViaHTML sends. The "real" PDF title is not available until the document has loaded, and is often incorrect anyway. Therefore we send the filename of the PDF extracted from the URL if available, or the domain from which the PDF was loaded otherwise.
- Loading branch information