MicrosoftEdge / WebView2Feedback

Feedback and discussions about Microsoft Edge WebView2
https://aka.ms/webview2
449 stars 55 forks source link

Enable support for browser extensions #featurerequest #81

Closed paj777 closed 4 years ago

paj777 commented 4 years ago

We have the need for using different zoom levels in different browser instances pointing at the same domain. Will there be browser extension support so that it would be possible to implement this?

david-risney commented 4 years ago

Hi @paj777, thanks for your feedback! This sounds like two different feature requests:

  1. Control the zoom of a WebView independent of the origin
  2. Host may provide browser extensions

For (2) host provided browser extensions, do you have other use cases for browser extensions or if we implemented a mechanism to control the zoom of a webview and didn't implement host browser extensions would that solve your problem?

Host provided browser extensions would certainly open up a lot of possibilities although it may end up being a lot more work than enabling origin independent zoom.

paj777 commented 4 years ago

Hi @david-risney thank you for your response.

Yes, breaking this up into two separate feature requests makes sense. The reason my suggestion included extensions is because this is the only solution that Chrome provides for this zoom issue. If the independent zoom can be tackled without the need for browser extensions then that would be great.

As you said, providing browser extensions would open up possibilities but may not be necessary for this issue.

douglas-jordan commented 4 years ago

+1 for extensions

douglas-jordan commented 4 years ago

I just ran into this problem today, zoom is not independent of origin. I have more than one WebView2 showing different pages on the same domain and any zoom change sets all the views to the same.

I verified the same behavior in the browser with multiple tabs.

Would like to have independent zoom on each render.

douglas-jordan commented 4 years ago

I have tested Canary 82.0.435.0 and zoom is independent of origin. Does not appear to be in the release notes for the updated SDK.

priprii commented 4 years ago

I would also like to see support for extensions for element blocking with uBlock Origin which makes use of webRequest.

The WebResourceRequested event in Webview2 does not seem to fire for resources being loaded in iframes so I'm unable to block those specific resources from loading by sending 403 response.

In other browsers like Chrome & Firefox, resources in iframes can be blocked with uBlock Origin extension.

So I'm either looking for support for extensions to make use of webRequest, or to have WebResourceRequested support resources in iframes.

Adjective-Object commented 4 years ago

I'm working on a react app hosted in an edge webview and not having access to React Devtools is pretty painful. I unfortunately can't develop in a full-fledged browser, since we're passing messages to the host process for some required native integrations.

champnic commented 4 years ago

Closing this as it's an amalgamation of issues tracked elsewhere or fixed.

CoastalData commented 3 years ago

I have another use-case scenario for extension in webview2... I'm making some Line of Business desktop applications that use webview embedded to show a couple of websites that require login, and so I'd like to have access to 1Password in the app to store and fill passwords by the user.

Like others, this is something that would be baked into the app, we're not looking to let users add extensions.

EnigmaV8 commented 2 years ago

I have another use-case scenario for extension in webview2... I'm making some Line of Business desktop applications that use webview embedded to show a couple of websites that require login, and so I'd like to have access to 1Password in the app to store and fill passwords by the user.

Like others, this is something that would be baked into the app, we're not looking to let users add extensions.

We have the exact same enterprise scenario except LastPass is our password filler. We have some older internal web apps running on WebView2 that still use Basic Auth. Sure would be nice if our LastPass extension could be utilized instead of requiring wasted time of additional authentication. (use to work when run under Internet Explorer because they could simply save the credential natively)

jle-pass commented 3 days ago

+1000

champnic commented 1 day ago

Please see here for how to install and use an extension in your WebView2: https://learn.microsoft.com/en-us/dotnet/api/microsoft.web.webview2.core.corewebview2profile.addbrowserextensionasync?view=webview2-dotnet-1.0.2895-prerelease

jle-pass commented 12 hours ago

Hi and thank you, but how do this in an existing app (like Microsoft Office365 app), as requested in #4873 ?