Hi,I made 2 small changes so it compiles on Linux 64-bit. Is yours code checked-in somewhere in a version system so I cancreate some diffs or how do I communicate changes ? I think that this component is so important that it should actually be distributed with Lazarus; It may be a good idea to ask if it can becommitted in their components directory. If you get write permission onthis directory, you can do the maintenance yourself.If that's not possible/allowed, I suggest trying lazarus-ccr.
procedure TGeckoBrowser.LoadHTML(htmlcode: String);var wbchrome: nsIWebBrowserChrome; wb: nsIWebBrowser; domwindow: nsIDOMWindow; domdoc: nsIDOMDocument; domhtmldoc: nsIDOMHTMLDocument; nsstr: IInterfacedString;begin wbchrome := Self as nsIWebBrowserChrome; wbchrome.GetWebBrowser(wb); wb.GetContentDOMWindow(domwindow); domwindow.GetDocument(domdoc); domhtmldoc:= domdoc as nsIDOMHTMLDocument; nsstr:= NewString; nsstr.Assign(htmlcode); domhtmldoc.Write(nsstr.AString);end;
procedure TCustomGeckoBrowser.LoadHTML(htmlcode: string);var domwindow: nsIDOMWindow; domdoc: nsIDOMDocument; domhtmldoc: nsIDOMHTMLDocument; nsstr: IInterfacedString;begin domwindow:=GetContentWindow; domdoc:=GetContentDocument; domhtmldoc:=domdoc as nsIDOMHTMLDocument; nsstr:= NewString; nsstr.Assign(htmlcode); domhtmldoc.Write(nsstr.AString);end;