-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
.NET MAUI Blazory hybrid .AddBlazorWebViewDeveloperTools() Issue #20859
Comments
Hi @DavorBeg. We have added the "s/needs-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time. |
@drasticactions Hmm yes... This is my bad for not reading docs 😐, but still its funny how it was working without any problem last week or even 1 month ago. Because this code that I pasted is inside my app from start of the project and I didn't have ever any problem with opening F12. It just stopped working randomly ( started working ). Update:
And I am pretty sure F12 was working, so like I said maybe Edge was updated and it was security issue. |
Seems we're all good here then yay! Thanks all! |
Description
Last week on date:
(EU date format): 23.02.2024 (Friday)
In my MAUI Blazor application, F12 developer tool was working perfect.
I finished work, left my windows to update and yesterday F12 didnt want to open anymore.
Just to mention what I tried to make it work again:
MauiProgram.cs
#IF DEBUG
AppData/Local/Temp
bin
.vs
andobj
folders inside my projectSteps to Reproduce
MainPage.xaml.cs
fileLink to public reproduction project repository
No response
Version with bug
8.0.6 SR1
Is this a regression from previous behavior?
Yes, this used to work in .NET MAUI
Last version that worked well
8.0.6 SR1
Affected platforms
Windows
Affected platform versions
Windows 10.0.19041.0
Did you find any workaround?
This code is copied from stackoverflow (not 100% sure), and it worked until now.
I am using it to disable zoom in/out webview inside my app and to disable functions like 'CTRL + F'. Check it on: Documentation
Solution:
settings.AreBrowserAcceleratorKeysEnabled = false;
settings.AreBrowserAcceleratorKeysEnabled = false;
inside#IF !DEBUG
I am using 2. solution, because
settings.AreBrowserAcceleratorKeysEnabled = false;
is working, and will disable functions like its written inside docs, but... It will also disableF12
and block you to open dev tools, even if you have.AddBlazorWebViewDeveloperTools()
insideMauiProgram.cs
Relevant log output
No response
The text was updated successfully, but these errors were encountered: