[Feature]: Add sessionId
support to DevToolsProtocolHelper
#5258
Labels
feature request
feature request
sessionId
support to DevToolsProtocolHelper
#5258
Describe the feature/enhancement you need
I started using the
DevToolsProtocolHelper
and it's incredibly useful, its only problem is that it doesn't provide any way of callingCoreWebView2.CallDevToolsProtocolMethodForSessionAsync()
so I can never use it when I need to execute the method on a specific sessionThe scenario/use case where you would use this feature
I want to execute
DevToolsProtocolHelper.Page.PrintToPDFAsync()
on a new session created withDevToolsProtocolHelper.Target.CreateTargetAsync()
andDevToolsProtocolHelper.Target.AttachToTargetAsync()
How important is this request to you?
Nice to have. There are other ways to tackle this, but having official API support would be beneficial.
Suggested implementation
Instead of passing the
CoreWebView2
toDevToolsProtocolHelper
and its domains, it would be wise to pass an interface with one of two implementationsWhat does your app do? Is there a pending deadline for this request?
My app shows some documents that I would like to print, but I need to do so in a new document because in the main page there are some menus that shouldn't be printed.
As a requirement I mustn't show the default print UI, so I can't just put all in an iframe and then call the
Window.print()
on that.I have a deadline but I can call
CoreWebView2.CallDevToolsProtocolMethodForSessionAsync()
for the time beingThe text was updated successfully, but these errors were encountered: