Skip to content

[Feature]: Requesting support for overriding/intercepting WebView2 PDF Viewer toolbar actions #5635

Description

@adrianlfns

Describe the feature/enhancement you need

Hi Support Team,

We are currently developing a Windows Forms desktop application that utilizes the Microsoft WebView2 control to display internal PDF documents.

We need to implement a security requirement (or custom workflow) that intercepts the "Save As" button click on the built-in Chromium PDF viewer toolbar to trigger our own custom application dialog/logic instead of the standard Windows save dialog.

Because the built-in PDF viewer operates within an isolated chrome-extension:// origin, standard JavaScript DOM manipulation and event listeners are blocked by cross-origin security sandboxing. We are seeking your guidance on the recommended architectural approach for this.

Image

Thank you in advance

Adrian

The scenario/use case where you would use this feature

When rendering a page what displays a PDF, I would like to overwrite the default functionality of the save button with my own functionality.

How important is this request to you?

Impactful. My app's user experience would be significantly compromised without it.

Suggested implementation

No response

What does your app do? Is there a pending deadline for this request?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions