-
Notifications
You must be signed in to change notification settings - Fork 58
Open
Labels
bugSomething isn't workingSomething isn't workingpriority-lowWe have considered this issue and decided that we will not be able to address it in the near future.We have considered this issue and decided that we will not be able to address it in the near future.trackedWe are tracking this work internally.We are tracking this work internally.
Description
Description
CapturePreview returns S_OK but never calls the CapturePreviewCompletedHandler if:
a) put_IsVisible( FALSE ) has been called on the controller; or
b) WS_VISIBLE wasn't specified on the parent hWnd passed to CreateCoreWebViewController
This causes problems in headless use cases. Workaround is moving window offscreen but this can cause issues with accessibility tools like screen readers.
Version
SDK: 1.0.622.22
Runtime: Release runtime 86.0.622.51
Framework: Win32
OS: Win10 version 1909
Repro Steps
- Run WebView2APISample
- Choose Toggle Visibility from View menu to hide web view
- Choose Save Screenshot from File menu - the Save As dialog appears but the Preview Captured message box doesn't appear
- Wait a couple of minutes then choose Toggle Visibility from View menu to show the web view
- The CapturePreviewCompletedHandler now fires and the Preview Captured message box appears
Viir
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingpriority-lowWe have considered this issue and decided that we will not be able to address it in the near future.We have considered this issue and decided that we will not be able to address it in the near future.trackedWe are tracking this work internally.We are tracking this work internally.