Skip to content

[Problem/Bug]: Webcapture is not being blocked in webview2 #5251

Closed
@cgits14

Description

@cgits14

What happened?

per the documentation found on
https://learn.microsoft.com/en-us/microsoft-edge/webview2/concepts/browser-features

The following shortcuts are always turned off in WebView2, or are effectively turned off. An asterisk (*) indicates that the shortcut isn't turned off, but the feature that it accesses is turned off, or the feature doesn't apply to WebView2.

Web capture is listed with an asterisk

Web Capture * | Ctrl+Shift+S

but web capture is full functional in the control when you do the hotkey.

I think this should have been on AreAccelortaorKeysEnabled to begin with, but regardless, per the documentation this shouldn't be allowed.

This is a security issue.

Importance

Blocking. My app's basic functions are not working due to this issue.

Runtime Channel

Stable release (WebView2 Runtime)

Runtime Version

136.0.3240.76

SDK Version

1.0.2210.55

Framework

Winforms

Operating System

Windows 11

OS Version

22631.5189

Repro steps

create a winForms app with webview2 control
point to any page
ctrl+shift+s
do a fullscreen shot (it does not save if you do a selection)

per the documentation, the feature it accesses should be turned off, but I am able to download the content.

I strongly feel this should either be always off, not even see the overlay - or at least at a minimum tied to AreAcceloratorKeysEnabled.

I also feel that this is overriding the purpose of set affinity. I get why its different, but it is a workaround that shouldn't be allowed.

Repros in Edge Browser

No, issue does not reproduce in the corresponding Edge version

Regression

in 135.0.3179.98.x64 the save button did not do anything.
In 136.0.3240.76.x64. the save button works

preferably I shouldn't even be seeing the UI though

Last working version (if regression)

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions