-
Notifications
You must be signed in to change notification settings - Fork 54
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Locked down browser #3103
Comments
Hello @brussell90, Thanks for your inquiry! I've assigned this to a dev that might best answer your question. |
Hi @brussell90 could you please check if suggestions from this thread are useful for your scenario? |
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. |
What are the triggers for file dialog menu? You should be able to overwrite context menu - doc is here |
Hi @brussell90, could you please check also this approach if it will work. |
@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. |
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. |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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?
The text was updated successfully, but these errors were encountered: