資源簡介
C# .NET下WebBrowser的一個BUG以及其替代品——geckofx。需要高版本VS和.Net

代碼片段和文件信息
#region?*****?BEGIN?LICENSE?BLOCK?*****
/*?Version:?MPL?1.1/GPL?2.0/LGPL?2.1
?*
?*?The?contents?of?this?file?are?subject?to?the?Mozilla?Public?License?Version
?*?1.1?(the?“License“);?you?may?not?use?this?file?except?in?compliance?with
?*?the?License.?You?may?obtain?a?copy?of?the?License?at
?*?http://www.mozilla.org/MPL/
?*
?*?Software?distributed?under?the?License?is?distributed?on?an?“AS?IS“?basis
?*?WITHOUT?WARRANTY?OF?ANY?KIND?either?express?or?implied.?See?the?License
?*?for?the?specific?language?governing?rights?and?limitations?under?the
?*?License.
?*
?*?The?Original?Code?is?Skybound?Software?code.
?*
?*?The?Initial?Developer?of?the?Original?Code?is?Skybound?Software.
?*?Portions?created?by?the?Initial?Developer?are?Copyright?(C)?2008-2009
?*?the?Initial?Developer.?All?Rights?Reserved.
?*
?*?Contributor(s):
?*
?*?Alternatively?the?contents?of?this?file?may?be?used?under?the?terms?of
?*?either?the?GNU?General?Public?License?Version?2?or?later?(the?“GPL“)?or
?*?the?GNU?Lesser?General?Public?License?Version?2.1?or?later?(the?“LGPL“)
?*?in?which?case?the?provisions?of?the?GPL?or?the?LGPL?are?applicable?instead
?*?of?those?above.?If?you?wish?to?allow?use?of?your?version?of?this?file?only
?*?under?the?terms?of?either?the?GPL?or?the?LGPL?and?not?to?allow?others?to
?*?use?your?version?of?this?file?under?the?terms?of?the?MPL?indicate?your
?*?decision?by?deleting?the?provisions?above?and?replace?them?with?the?notice
?*?and?other?provisions?required?by?the?GPL?or?the?LGPL.?If?you?do?not?delete
?*?the?provisions?above?a?recipient?may?use?your?version?of?this?file?under
?*?the?terms?of?any?one?of?the?MPL?the?GPL?or?the?LGPL.
?*/
#endregion?END?LICENSE?BLOCK
using?System;
using?System.Collections;
using?System.Runtime.InteropServices;
using?Gecko.Interop;
using?System.Collections.Generic;
using?System.Linq;
using?System.Text;
namespace?Gecko
{
????///?
????///?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.
????///?
????public?class?AutoJSContext?:?IDisposable
????{
????????#region?fields
????????private?readonly?IntPtr?_cx;
????????private?readonly?nsIDOMWindow?_window;
????????private?JSAutoCompartment?_defaultCompartment;
????????private?Stack?_compartmentStack?=?new?Stack();
????????private?nsIXPCComponents?_nsIXPCComponents;
????????private?IntPtr?_globalJSobject;
????????///?
????????///?These?static?fields?allow?AutoJSContext(IntPtr?context)?to?work.
????????///?
????????private?static?Dictionary?_contextToGlobalDictionary?=?new?Dictionary();
????????private?static?IntPtr?_safeContext;
????????#endregion
????????#region?Properties
????????public?IntPtr?ContextPointer
????????{
????????????get?
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件?????????178??2017-11-17?17:25??geckofx-geckofx-45.0-761d21ec6ed3\.hg_archival.txt
?????文件??????675328??2017-11-17?17:25??geckofx-geckofx-45.0-761d21ec6ed3\.build\MSBuild.Community.Tasks.dll
?????文件???????13183??2017-11-17?17:25??geckofx-geckofx-45.0-761d21ec6ed3\.build\MSBuild.Community.Tasks.targets
?????文件?????????434??2017-11-17?17:25??geckofx-geckofx-45.0-761d21ec6ed3\.hgignore
?????文件????????7529??2017-11-17?17:25??geckofx-geckofx-45.0-761d21ec6ed3\.hgtags
?????文件????????2198??2017-11-17?17:25??geckofx-geckofx-45.0-761d21ec6ed3\Build.proj
?????文件?????????977??2017-11-17?17:25??geckofx-geckofx-45.0-761d21ec6ed3\GeckoFxTest\AssemblyInfo.cs
?????文件????????5544??2017-11-17?17:25??geckofx-geckofx-45.0-761d21ec6ed3\GeckoFxTest\GeckoFxTest.csproj
?????文件????????1341??2017-11-17?17:25??geckofx-geckofx-45.0-761d21ec6ed3\GeckoFxTest\GeckoFxTest.sh
?????文件???????15246??2017-11-17?17:25??geckofx-geckofx-45.0-761d21ec6ed3\GeckoFxTest\MSBuild.Community.Tasks.ReadMe.md
?????文件???????13482??2017-11-17?17:25??geckofx-geckofx-45.0-761d21ec6ed3\GeckoFxTest\Main.cs
?????文件????????2515??2017-11-17?17:25??geckofx-geckofx-45.0-761d21ec6ed3\GeckoFxTest\app.manifest
?????文件?????????143??2017-11-17?17:25??geckofx-geckofx-45.0-761d21ec6ed3\GeckoFxTest\packages.config
?????文件?????????325??2017-11-17?17:25??geckofx-geckofx-45.0-761d21ec6ed3\GeckoFxWpfTest\App.xaml
?????文件?????????543??2017-11-17?17:25??geckofx-geckofx-45.0-761d21ec6ed3\GeckoFxWpfTest\App.xaml.cs
?????文件????????5029??2017-11-17?17:25??geckofx-geckofx-45.0-761d21ec6ed3\GeckoFxWpfTest\GeckoFxWpfTest.csproj
?????文件?????????913??2017-11-17?17:25??geckofx-geckofx-45.0-761d21ec6ed3\GeckoFxWpfTest\MainWindow.xaml
?????文件?????????740??2017-11-17?17:25??geckofx-geckofx-45.0-761d21ec6ed3\GeckoFxWpfTest\MainWindow.xaml.cs
?????文件????????2274??2017-11-17?17:25??geckofx-geckofx-45.0-761d21ec6ed3\GeckoFxWpfTest\Properties\AssemblyInfo.cs
?????文件????????2510??2017-11-17?17:25??geckofx-geckofx-45.0-761d21ec6ed3\GeckoFxWpfTest\Properties\Resources.Designer.cs
?????文件????????5612??2017-11-17?17:25??geckofx-geckofx-45.0-761d21ec6ed3\GeckoFxWpfTest\Properties\Resources.resx
?????文件????????1023??2017-11-17?17:25??geckofx-geckofx-45.0-761d21ec6ed3\GeckoFxWpfTest\Properties\Settings.Designer.cs
?????文件?????????201??2017-11-17?17:25??geckofx-geckofx-45.0-761d21ec6ed3\GeckoFxWpfTest\Properties\Settings.settings
?????文件??????????69??2017-11-17?17:25??geckofx-geckofx-45.0-761d21ec6ed3\GeckoFxWpfTest\readme.txt
?????文件?????????187??2017-11-17?17:25??geckofx-geckofx-45.0-761d21ec6ed3\GeckoFxWpfWinFormsTest\App.config
?????文件?????????333??2017-11-17?17:25??geckofx-geckofx-45.0-761d21ec6ed3\GeckoFxWpfWinFormsTest\App.xaml
?????文件?????????584??2017-11-17?17:25??geckofx-geckofx-45.0-761d21ec6ed3\GeckoFxWpfWinFormsTest\App.xaml.cs
?????文件????????5284??2017-11-17?17:25??geckofx-geckofx-45.0-761d21ec6ed3\GeckoFxWpfWinFormsTest\GeckoFxWpfWinFormsTest.csproj
?????文件?????????968??2017-11-17?17:25??geckofx-geckofx-45.0-761d21ec6ed3\GeckoFxWpfWinFormsTest\MainWindow.xaml
?????文件?????????772??2017-11-17?17:25??geckofx-geckofx-45.0-761d21ec6ed3\GeckoFxWpfWinFormsTest\MainWindow.xaml.cs
?????文件????????2290??2017-11-17?17:25??geckofx-geckofx-45.0-761d21ec6ed3\GeckoFxWpfWinFormsTest\Properties\AssemblyInfo.cs
............此處省略2641個文件信息
評論
共有 條評論