gecko

how to know if gecko browser completed loading a webpage?

独自空忆成欢 提交于 2019-12-25 02:48:12
问题 As the title says, how can i know if the gecko browser completed loading a web page? I know there is document_completed event. But it will get triggered for every time a web page loads. Are there any other ways to check if the current webpage is completed loading. 回答1: Do While WebBrowser.IsBusy = True Application.DoEvents() Loop Works for me. After WebBrowser.Navigate you have to wait for some time (I use 1 second) before IsBusy becomes True 回答2: My Solotion in vb.net and GeckoFX v45.0.34.0

Geckofx get loaded page url

此生再无相见时 提交于 2019-12-24 12:38:12
问题 I am using geckofx-22 in my WPF app. I want to check the current url of the page which is loaded in the geckofx control. Can't find any property for the same. 回答1: Try GeckoWebBrowser.Url GeckoFx uses the nsIWebNavigation interface to implement this. 回答2: Use the below code for WPF and place it in Geckofx-WPF GeckoWebBrowser.cs /// <summary> /// Gets the <see cref="Url"/> currently displayed in the web browser. /// Use the <see cref="Navigate(string)"/> method to change the URL. /// </summary

C# How to Navigate with post data using the geckofx browser?

霸气de小男生 提交于 2019-12-24 11:46:07
问题 I'm using C# with Visual Studio 2013, working with the geckofx browser, and I need to Navigate using POST. The Navigate method is telling me I need a MimeInputStream, which is intuitive to use. The problem I'm facing with that is how to initialize it? MimeInputStream doesn't have a constructor. I found that the following code compiles, except the part where it can't cast the GeckoMIMEInputStream into a MimeInputStream like that. My code is: string dataString = string.Format("username={0}&pwd=

Style behavior difference between WebKit and Gecko

走远了吗. 提交于 2019-12-24 10:52:04
问题 I was working on a web application when I noticed some peculiar behavior. I have an element with styles applied via the JavaScript style property. Afterwards, I tried to remove all of the styles applied on the element with removeAttribute("style") . This only works on Gecko. WebKit does nothing. I have discovered a workaround (using setAttribute("style", "") before removing the attribute) but I don't understand why the setAttribute would be needed on WebKit but not Gecko. Why? I have an

How do you programmatically determine to which events an HTML object can listen for?

 ̄綄美尐妖づ 提交于 2019-12-23 07:59:26
问题 I've been looking over the docs at developer.mozilla.org and the Apple dev docs but I'm not able to find documentation that explains whether or not you can programatically determine if a specific HTML tag supports a given eventListener. Like I know that the <script> tag isn't going to support the click listener since there's nothing to click on, but how do I know that? Or barring that, is there an easy reference somewhere of what events each tag supports? 回答1: Outside of a few edge cases, yes

Textarea and div padding differences in Firefox

偶尔善良 提交于 2019-12-22 14:52:16
问题 I made a fiddle here. http://jsfiddle.net/pmVeR/ The textarea and div render identically in both Safari and Chrome. But in Firefox, there is an extra 2px padding on the right of the textarea , which affects the word wrapping. What's also mysterious is that without white-space: pre-wrap; this extra padding seems to vary depending on the width of the element. I can fix this by detecting FireFox and adding padding-right:2px to my div , but I would like to know if this can be fixed without a

Using GeckoWebBrowser (v45.0.34.0) in a VB.NET project

≡放荡痞女 提交于 2019-12-22 11:27:54
问题 I am trying to make GeckoWebBrowser (version 45.0.34.0) control to work into my VB.NET project with no luck!!! Here is the steps I follow... 1. I do right click on my project into Solution Explorer list and then Manage NuGet Packages . 2. I find and install Geckofx45. 3. Then I go into my Project's properties , into Compile tab and I change Target CPU to x86 . 4. I Rebuild my project. 5. Then I add GeckoWebBrowser control into my Toolbox by selecting the Geckofx-Winforms.dll file from ...

How do I scale an SVG background-image without honoring aspect ratio in Firefox?

若如初见. 提交于 2019-12-21 07:16:16
问题 I've got a CSS background-image set on an element of fluid height and width. It's an SVG, and the intended behavior is for it to stretch in whatever directions necessary to cover the entirety of the element's area. In Chrome, Safari, and even bad ol' Internet Explorer 9, the scaling works how I want: But within Firefox (both desktop and mobile), the output is more like this: After some digging around, it appears Firefox tends to be stricter about SVG rendering than other browsers, in that it

How do I scale an SVG background-image without honoring aspect ratio in Firefox?

梦想的初衷 提交于 2019-12-21 07:16:09
问题 I've got a CSS background-image set on an element of fluid height and width. It's an SVG, and the intended behavior is for it to stretch in whatever directions necessary to cover the entirety of the element's area. In Chrome, Safari, and even bad ol' Internet Explorer 9, the scaling works how I want: But within Firefox (both desktop and mobile), the output is more like this: After some digging around, it appears Firefox tends to be stricter about SVG rendering than other browsers, in that it

gecko clear cache history & cookies

别说谁变了你拦得住时间么 提交于 2019-12-21 02:11:27
问题 Help! I use GeckoFx-Windows-10.0-0.6 for browser and xulrunner-10.0.en-US.win32 . ( Visual Studio 2010 c# ) everything works well. But i need to clear all history as at Firefox : Tools >> Options >> Privacy I find how clear cookie over Gecko.CookieManager.RemoveAll(); How clear cache , temp files and history ?! And when i initialize Gecko.Xpcom i can not clean the folder "Gecko.Xpcom.ProfileDirectory" (where cache and cookie) for obvious reasons. Gecko.Xpcom.Shutdown() does not help I found a