geckofx 45.0 C# FireFox


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.buildMSBuild.Community.Tasks.dll
     文件       13183  2017-11-17 17:25  geckofx-geckofx-45.0-761d21ec6ed3.buildMSBuild.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-761d21ec6ed3Build.proj
     文件         977  2017-11-17 17:25  geckofx-geckofx-45.0-761d21ec6ed3GeckoFxTestAssemblyInfo.cs
     文件        5544  2017-11-17 17:25  geckofx-geckofx-45.0-761d21ec6ed3GeckoFxTestGeckoFxTest.csproj
     文件        1341  2017-11-17 17:25  geckofx-geckofx-45.0-761d21ec6ed3GeckoFxTestGeckoFxTest.sh
     文件       15246  2017-11-17 17:25  geckofx-geckofx-45.0-761d21ec6ed3GeckoFxTestMSBuild.Community.Tasks.ReadMe.md
     文件       13482  2017-11-17 17:25  geckofx-geckofx-45.0-761d21ec6ed3GeckoFxTestMain.cs
     文件        2515  2017-11-17 17:25  geckofx-geckofx-45.0-761d21ec6ed3GeckoFxTestapp.manifest
     文件         143  2017-11-17 17:25  geckofx-geckofx-45.0-761d21ec6ed3GeckoFxTestpackages.config
     文件         325  2017-11-17 17:25  geckofx-geckofx-45.0-761d21ec6ed3GeckoFxWpfTestApp.xaml
     文件         543  2017-11-17 17:25  geckofx-geckofx-45.0-761d21ec6ed3GeckoFxWpfTestApp.xaml.cs
     文件        5029  2017-11-17 17:25  geckofx-geckofx-45.0-761d21ec6ed3GeckoFxWpfTestGeckoFxWpfTest.csproj
     文件         913  2017-11-17 17:25  geckofx-geckofx-45.0-761d21ec6ed3GeckoFxWpfTestMainWindow.xaml
     文件         740  2017-11-17 17:25  geckofx-geckofx-45.0-761d21ec6ed3GeckoFxWpfTestMainWindow.xaml.cs
     文件        2274  2017-11-17 17:25  geckofx-geckofx-45.0-761d21ec6ed3GeckoFxWpfTestPropertiesAssemblyInfo.cs
     文件        2510  2017-11-17 17:25  geckofx-geckofx-45.0-761d21ec6ed3GeckoFxWpfTestPropertiesResources.Designer.cs
     文件        5612  2017-11-17 17:25  geckofx-geckofx-45.0-761d21ec6ed3GeckoFxWpfTestPropertiesResources.resx
     文件        1023  2017-11-17 17:25  geckofx-geckofx-45.0-761d21ec6ed3GeckoFxWpfTestPropertiesSettings.Designer.cs
     文件         201  2017-11-17 17:25  geckofx-geckofx-45.0-761d21ec6ed3GeckoFxWpfTestPropertiesSettings.settings
     文件          69  2017-11-17 17:25  geckofx-geckofx-45.0-761d21ec6ed3GeckoFxWpfTest
eadme.txt
     文件         187  2017-11-17 17:25  geckofx-geckofx-45.0-761d21ec6ed3GeckoFxWpfWinFormsTestApp.config
     文件         333  2017-11-17 17:25  geckofx-geckofx-45.0-761d21ec6ed3GeckoFxWpfWinFormsTestApp.xaml
     文件         584  2017-11-17 17:25  geckofx-geckofx-45.0-761d21ec6ed3GeckoFxWpfWinFormsTestApp.xaml.cs
     文件        5284  2017-11-17 17:25  geckofx-geckofx-45.0-761d21ec6ed3GeckoFxWpfWinFormsTestGeckoFxWpfWinFormsTest.csproj
     文件         968  2017-11-17 17:25  geckofx-geckofx-45.0-761d21ec6ed3GeckoFxWpfWinFormsTestMainWindow.xaml
     文件         772  2017-11-17 17:25  geckofx-geckofx-45.0-761d21ec6ed3GeckoFxWpfWinFormsTestMainWindow.xaml.cs
     文件        2290  2017-11-17 17:25  geckofx-geckofx-45.0-761d21ec6ed3GeckoFxWpfWinFormsTestPropertiesAssemblyInfo.cs
............此处省略2641个文件信息

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)