

We need a way of giving HttpClient access to the same cookies as WebView despite the fact they're running in different processes.
ACTIVATE DEFAULT CHROME PDF READER DOWNLOAD
Our app subscribes to WebView.UnviewableContentIdentified and then uses (or ) to download the PDF file, but the website denies it because of the missing cookie. When our app does a HTTP download of a PDF, it uses but HttpClient doesn't see the temporary cookies in the WebView process, thus the website refuses to provide the PDF file. We are required to download + display PDF files from websites that only authorize the PDF downloads if the correct temporary/session cookie is available, but when WebView 1 runs in a separate process, the temporary cookies in the separate web process are unavailable to the app using WebView. Inability to download PDF files because of cookie access failureĮspecially when WebView2 is run in a separate-process mode, it is very important to support cookie retrieval, otherwise it becomes impossible for an external PDF viewer to download + display PDFs in all cases. How can you improve this situation in WebView2? This issue depends on whether or not WebView2 will include a built-in PDF viewer. WebView 1 triggers its UnviewableContentIdentified event regardless of whether the PDF content was encountered via or a simple URI/link to a PDF file, and this works just fine for a simple link to a PDF file, but is somewhat problematic in the case of because it doesn't report whether the origin is or not, and it doesn't support an external PDF viewer displayed inline within a page. Could you please provide this info in WebView2? Here is an example of a HTML snippet that displays a PDF in an element:Īre you able to make WebView2 support an external PDF viewer that also supports the element meaning an external PDF viewer that is displayed inline/WITHIN a HTML webpage? In WebView 1, this issue is handled in a non-ideal manner. In WebView 1, the UnviewableContentIdentified event doesn't say whether it was triggered via an element or not. When supporting external PDF viewers, please provide info about whether the PDF is simply a URI to a PDF file versus a HTML element. PDF's via "embed" element versus simple link to PDF For example, one user of a kiosk computer should not be able to read the notes created by a previous user.


Option to enable or disable the built-in PDF viewer.If WebView2 will include a built-in PDF viewer, could you please provide these options that are essential for kiosk modes: Option to hide and show individual buttons in PDF toolbar, etc. Will WebView2 include a built-in PDF viewer? In comparison, WebView 1 does not display PDF's - it triggers the event UnviewableContentIdentified whenever PDF is encountered.
