[Problem/Bug]: Installing Webview2.tlb along with the application #4434
Unanswered
akguptakgp
asked this question in
Q&A
Replies: 2 comments 3 replies
-
@LiangTheDev could you help take a look at this question? |
Beta Was this translation helpful? Give feedback.
1 reply
-
We never tested what you are doing and WebView2 is not designed to be a real COM object that could be marshaled to different process. We even requires all interaction with the WebView2 happens on the same thread. WebView2 running at full trust is less ideal when the app itself runs in a sandbox. Is it possible to run the app in normal UWP app container sandbox? WebView2 can run in app container. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What happened?
I have chromium sandbox type architecture where my main process runs with reduced rights. To support webview2 in that setup, I am using com pointer sharing across process and creating the webview2 object using the helper process which is running with full rights. The problem is that webview2 com pointer sharing across process requires typelib registered with the system. I also tried using the tlb provided with the nuget package but that was not compatible with my use case as it didn't allow pointer sharing across process, so I use the following approach to generate the new tlb from the webview2 idl file provided with the nuget package.
With these changes, I was able to share the webview com ptr across process. my question is can we follow this approach and register the generated tlb with the system using my installer? OR do you foresee any problem in this approach?
Importance
Blocking. My app's basic functions are not working due to this issue.
Runtime Channel
Stable release (WebView2 Runtime)
Runtime Version
latest
SDK Version
2.1.0.2210.55
Framework
Win32
Operating System
Windows 11
OS Version
22631.3155
Repro steps
NA as the issue is a development query only.
Repros in Edge Browser
No, issue does not reproduce in the corresponding Edge version
Regression
No, this never worked
Last working version (if regression)
No response
Beta Was this translation helpful? Give feedback.
All reactions