geckofx

How to add fullscreen support to a GeckoFx browser?

好久不见. 提交于 2021-01-05 11:58:46
问题 I'm building a web browser in a C# .NET Windows Form Application and wanted to add support for fullscreen usage (mainly on HTML5 videos). So that when users press the fullscreen button on a video like a youtube video, the video would take up the full screen. The browser uses a GeckoFx control to view the interweb. How would I go about doing this? 回答1: Set the Browser Control Dock property to Dock.Fill . You can get the Screen size where you program is currently displayed and use its Bounds to

GeckoFX 22 by pass self sign cert

让人想犯罪 __ 提交于 2020-12-16 06:10:30
问题 i am implementing a GeckoFX Browser using c#. i need to navigate to a secure self sign cert. but GeckoFX throw me this error. The certificate is not trusted because the issuer certificate is not trusted. The certificate is only valid for FG200B3913601572 (Error code: sec_error_untrusted_issuer) How do i bypass the Check? 回答1: You could try this code, but it requires the latest version of Geckofx (build from source): browser.NSSError += (s,e) => { CertOverrideService.RememberRecentBadCert(e

GeckoFX 22 by pass self sign cert

自古美人都是妖i 提交于 2020-12-16 06:09:30
问题 i am implementing a GeckoFX Browser using c#. i need to navigate to a secure self sign cert. but GeckoFX throw me this error. The certificate is not trusted because the issuer certificate is not trusted. The certificate is only valid for FG200B3913601572 (Error code: sec_error_untrusted_issuer) How do i bypass the Check? 回答1: You could try this code, but it requires the latest version of Geckofx (build from source): browser.NSSError += (s,e) => { CertOverrideService.RememberRecentBadCert(e

Disable Alert boxes when site not found Gecko Fx VB

混江龙づ霸主 提交于 2020-12-13 04:55:10
问题 I been searching around and cant seem to find anything relating to this. Basically i made a windowless app which uses the gecko webbrowser. Thing is, if i try browse to a site that does not exist. Example: www.gets.commmss, it will show me an alert box saying www.gets.commmss could not be found. Please check the name and try again. I dont want this to show as i handle these errors myself using the navigated & NavigationError handlers. Thing is, i cant seem to disable this annoying alert box!

Error in 'AddMessageEventListener' on GeckoFX

元气小坏坏 提交于 2020-02-03 01:53:22
问题 I want that my browser (GeckoFX) executes a .NET function when clicking on a button in my webpage. I have the following code: public Form1() { InitializeComponent(); AddMessageEventListener("myFunction", ((string s) => this.showMessage(s))); browser.LoadHtml ( @"<!DOCTYPE html> <html><head> <meta http-equiv=""Content-Type"" content=""text/html; charset=UTF-8""> <script type=""text/javascript""> function fireEvent(name, data) { event = document.createEvent('MessageEvent'); event

About:config - always_print_silent in geckofx [closed]

喜你入骨 提交于 2020-01-17 14:43:11
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 6 years ago . Is print.always_print_silent not show in about:config and not show the context menu for add, how add this config in geckofx 18 web browser c#? 回答1: After the Gecko.Xpcom.Initialize add this code GeckoPreferences

How Can Execute Javascript Commands via GeckoFX

大城市里の小女人 提交于 2020-01-10 04:33:05
问题 I try to execute a javascript command like alert('test message') via GeckoFX and C# but I can not. I try without results with Navigate and with ExecuteCommand My code is int i=0; GeckoWebBrowser webBrowser webBrowser.Navigate("alert('"+i.ToString()+"');"); webBrowser.ExecuteCommand("alert('" + i.ToString() + "');"); Can anyone help me? 回答1: You can use AutoJSContext to run javascript with geckofx. Something like: GeckoWebBrowser browser = ....; using (AutoJSContext context = new AutoJSContext

Install Flash Player plugin on xulrunner 22.0

允我心安 提交于 2020-01-04 02:43:31
问题 I am using GeckoFX running on xulrunner 22.0, and it works fine. But when it comes to load a website with Flash, then it does not load the Flash content. I have been trying to install the Flash Player plugin to the xulrunner but I've failed miserably. The installation I followed was to copy the NPSWF32_11_7_700_224.dll file to the /plugins/ directory in the xulrunner directory. and the FlashPlayerApp.exe to the xulrunner directory itself. And still nothing. Anybody knows how to get this thing