gecko

Is it possible to Embed Gecko or Webkit in a Windows Form just like a WebView?

Hi, I'd love to know if there is such thing as a Gecko.NET ;) I mean, just like we can embed a WebView and that is an "instance" of IE7 inside any Windows Forms application (and tell it to "navigateto (fancy_url);", I'd love to use FireFox or WebKit. Anybody tried this? UPDATE: Please bear in mind that although it is possible to embed...

Accessing Firefox cache from an XPCOM component

Does anybody know how to get local path of file cached by Firefox based on its URL from an XPCOM component? ...

Blocking https url's in a embedded gecko browser

Hi, I have an application in which a gecko browser is embedded. The application is crashing when I try to access any https url's because nss is not properly initialised at this point. The crash is in PK11_TokenExists(). I want to block my browser from rendering https sites. If a user clicks on a https link I can block that load in OnSta...

Is there an embeddable Webkit component for Windows / C# development?

I've seen a few COM controls which wrap the Gecko rendering engine (GeckoFX, as well as the control shipped by Mozilla - mozctlx.dll). Is there a wrapper for Webkit that can be included in a .NET Winform application? ...

How to change the cursor in a embedded browser

Hi, I have an application with an embedded gecko browser. I want to know how to change the cursor from the default cursor to a custom cursor when I am in the embedded browser? There is forms.css file in the res folder of the gecko sdk, I tried changing the cursor in that file with no success. Any suggestions? Thanks jbsp72 ...

How to embed a browser object, other than IE<n>, in a Delphi application

Using the default TWebBrowser makes things easy to embed a web browser. Unfortunately the one that comes in by default is IE<n>. I'm wondering how does one integrate a Gecko or WebKit one. Are there VCL examples somewhere? If not, how would one go about doing it? Where's the best place to find the core for Gecko and/or WebKit in an em...

What is the best HTML Rendering Engine to embed in an application?

At the moment, our application uses the Trident Win32 component, but we want to move away from that for a few reasons, chief among them being our desire to go cross-platform. We're looking at WebKit and Gecko, but I'd love to get some feedback before I make a decision. Here are some of the most important requirements: It should be rel...

What does XPCSafeJSObjectWrapper do?

What does Mozilla's XPCSafeJSObject wrapper actually do? MDC's documentation is as follows: This wrapper was created to address some problems with XPCNativeWrapper. In particular, some extensions want to be able to safely access non-natively-implemented content defined objects (and to access the underlying JavaScript object under an...

Disappearing CSS table cell borders in Gecko-based browsers

I have a very specific html table construct that seems to reveal a Gecko bug. Here's a distilled version of the problem. Observe the following table in a gecko-based browser (FF, for example): (you'll have to copy and paste this into a new file) <style> table.example{ border-collapse:collapse; } table.example td { border:1px ...

How do I embed Gecko using gecko-sharp on Mono/Windows?

Gecko is the rendering engine for Firefox. Using gecko-sharp it is possible to embed it to any Mono/GTK# program. There is a sample application called GladeSharpBrowser for doing this. I could manage to build it using a modified project file, but it is crashing. This sould help you reproduce the problem: I have used SharpDevelop 3.0 and...

Gecko API for DOM

Does Gecko expose an API for working directly with its DOM? I'm looking for a class like HtmlElement that can be used to build/traverse trees of HTML content. I'm trying to host Gecko as a web browser control in a desktop application, and would prefer a direct API rather than going through COM. Thanks! ...

Why doesn't ":active" work properly inside a Gecko frame?

It seems to me that Gecko has a bug involving ":active". To illustrate, put this into a file called test.html: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "hxxp://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en" > <head> <style type="text/css"> .clic...

Writing a Firefox XPCOM plug-in with a native window interface? (like ActiveX control)

I have an ActiveX control that works fine in Internet Explorer and the ActiveX Control Test Container program. The actual behavior of the control is split in two parts, where one part is the ATL gunk that interfaces with the OLE host, and the other part is the real meat, which just receives callbacks for window attach, sizing, drawing an...

WebKit or Gecko - which one is better for embedding in C++ app?

Hi Which one would you choose and why? I'd like to hear opinions from people having experience with embedding a web browser engine in C++ application. I should stress I need all features of web browser engine except rendering i.e. HTTP client, cookie handling, DOM style HTTP parser, JavaScript engine. How can one strip either WebKit or ...

How to add elements to web page from Firefox extension

I'm going to develop a Firefox extension which should put a button in the loaded pages, when the tag: <input type="file" ... > is found and a file has been selected. Likewise, I think the skype toolbar does a similar thing: when a website contains a phone number, the Skype extension automatically converts it into a button that can be cl...

Implementing nsIProtocolHandler with Delphi

I'm trying to build an nsIProtocolHandler implementation in Delphi. (I've done an IInternetProtocol before with success, and want to have in FireFox what I've got in Internet Explorer.) Thanks to the d-gecko project, that somehow links the TInterfacedObject magic to the nsISupports magic, I'm able to make a DLL that provides an nsIModule...

Creating an image from a nsIBinaryInputStream

I create a binary input stream using some js trickery which contains compressed image data like jpeg or gif. I want to decode and display this data either using imgITools::decodeImageData or some other way but couldn't find a way yet. Where should I start? ...

Browser Cache API for non IE browsers

IE has WinInet API, such as GetUrlCacheEntryInfo, to read and manipulate IE browser cache. Is there a similar API for non IE browsers such as Firefox or Chrome? If so where can I get more info? Thanks Update: According to following (http://stackoverflow.com/questions/61453/accessing-firefox-cache-from-an-xpcom-component) the WinInet...

nsIProtocolHandler: trouble loading image for html page

I'm building an nsIProtocolHandler implementation in Delphi. (more here) And it's working already. Data the module builds gets streamed over an nsIInputStream. I've got all the nsIRequest, nsIChannel and nsIHttpChannel methods and properties working. I've started testing and I run into something strange. I have a page "a.html" with this...

How to draw vertical text with CSS cross-browser?

Hi, i want to rotate a single word of text by 90 degrees cross-browser (>= ie6, >= ff2, webkit). ...