This article is a mirror article of machine translation, please click here to jump to the original article.

View: 18393|Reply: 2

[WinForm] GeckoFx Firefox kernel replacement, disable system pop-up warning

[Copy link]
Posted on 1/6/2018 10:52:04 AM | | | |

As shown in the picture above, I accessed this site when the network was disconnected, and GeckoFx would pop up a pop-up prompt: www_itsvse_com could not be found. Please check the name and try again, of course, when the domain name is entered incorrectly, or the proxy IP does not support https,

An error warning will also pop up, how to block the default prompt window that pops up when the domain name entered is an invalid domain name or the network is disconnected???

The solution is as follows:

Use the PromptFactory.PromptServiceCreator property to replace the default push service class

The official source code is as follows:

We define our own push service class FilteredPromptService, the source code is as follows:

How do we use our own defined push message classes? The code is as follows:



If true, the default prompt box will pop up, and if false returns, the default prompt box will not pop up.

Finally, a screenshot of the Internet access is attached!







Previous:Summary of the autofac creation instance methodology
Next:Use adb devices to report error:device offline
Posted on 1/9/2018 10:14:25 PM |
Learn to support it
Posted on 2/24/2023 9:46:14 AM |
Support it, refer to the code
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com