Locked down browser #4010
Replies: 7 comments
-
Hello @brussell90, Thanks for your inquiry! I've assigned this to a dev that might best answer your question. |
Beta Was this translation helpful? Give feedback.
-
Hi @brussell90 could you please check if suggestions from this thread are useful for your scenario? |
Beta Was this translation helpful? Give feedback.
-
Hi @vbryh-msft, thanks for the response. The biggest issue we have is the file dialogs. While we can disable the downloads, the file dialog menu gives the user access to browse folder and machine information. |
Beta Was this translation helpful? Give feedback.
-
What are the triggers for file dialog menu? You should be able to overwrite context menu - doc is here |
Beta Was this translation helpful? Give feedback.
-
Hi @brussell90, could you please check also this approach if it will work. |
Beta Was this translation helpful? Give feedback.
-
@vbryh-msft I've completely disabled the context menus at this point. Here's a snippet of javascript that would generate a save file dialog.
The "Attach files by dragging & dropping, selecting or pasting them" on the comment box is another example of this. We can override the function like the print dialog for this one example but like with the print, we can't do that for Iframes within Iframes so we are looking more for a method to disable the dialogs altogether. |
Beta Was this translation helpful? Give feedback.
-
That actually did work, and opened up an avenue for solving my first problem as well for injecting into Iframes within Iframes. Here's the solution that works for me.
It seems that just adding the intercept file will block file dialogs, I do not have to handle when the dialog is opened. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, we are needing to essentially lock down the browser to extremely basic functions. The user should not be able to access the system through the browser. This means no save file dialogs, no print screen, etc.
I can disable the print screen through javascript but only for the top level document and any top level iframes. I see there's already a ticket for managing iframes within iframes preventing us from injecting javascript within sub iframes. However, ontop of this I can't seem to disable the save file dialogs.
Does anyone know of anyways to accomplish what I'm looking for within webview2?
Beta Was this translation helpful? Give feedback.
All reactions