C# Class Skybound.Gecko.AutoJSContext

Creates a scoped, fake "system principal" security context. This class is used primarly to work around bugs in gecko which prevent methods on nsIDOMCSSStyleSheet from working outside of javascript.
Inheritance: IDisposable
显示文件 Open project: tophatmonocle/DirtyGecko Class Usage Examples

Public Methods

Method Description
AutoJSContext ( ) : System
Dispose ( ) : void

Private Methods

Method Description
JS_BeginRequest ( IntPtr cx ) : IntPtr
JS_CompileScriptForPrincipals ( IntPtr aJSContext, IntPtr aJSObject, IntPtr aJSPrincipals, string bytes, int length, string filename, int lineNumber ) : IntPtr
JS_DestroyContextNoGC ( IntPtr cx ) : void
JS_EndRequest ( IntPtr cx ) : IntPtr
JS_GetGlobalObject ( IntPtr aJSContext ) : IntPtr
JS_NewContext ( IntPtr aJSRuntime, int stackchunksize ) : IntPtr

Method Details

AutoJSContext() public method

public AutoJSContext ( ) : System
return System

Dispose() public method

public Dispose ( ) : void
return void