Стартовый пул

This commit is contained in:
2024-04-02 08:46:59 +03:00
parent fd57fffd3a
commit 3bb34d000b
5591 changed files with 3291734 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
program ChromeWin;
uses
{$IFDEF LCL}
Interfaces,
{$IFDEF MSWINDOWS}
Math,
{$ENDIF}
{$ENDIF}
Forms,
nsXRE,
BrowserSupports,
GeckoChromeWindow in 'GeckoChromeWindow.pas' {GeckoChromeForm};
//{$IFDEF MSWINDOWS}
//{$R *.res}
//{$ENDIF}
var
navigation: nsIWebNavigation;
begin
{$IFDEF FPC}
{$IFDEF MSWINDOWS}
//For now - disable all floating point exceptions or XULRUNNER will crash.
SetExceptionMask([exInvalidOp,exDenormalized,exZeroDivide,exOverflow,exUnderflow,exPrecision]);
{$ENDIF}
{$ENDIF}
Application.Initialize;
XRE_Startup('1.9', True, '2.0', False);
// GeckoChromeForm := TGeckoChromeForm.CreateWithChromeFlags(Application, 0);
Application.CreateForm(TGeckoChromeForm, GeckoChromeForm);
navigation := GeckoChromeForm.WebBrowser as nsIWebNavigation;
navigation.LoadURI('http://www.lazarus.freepascal.org', 0, nil, nil, nil);
Application.Run;
end.