Skip to content

Commit

Permalink
Final cleanup in AppSecurityManager
Browse files Browse the repository at this point in the history
  • Loading branch information
h3xds1nz committed Oct 11, 2024
1 parent a39f937 commit 4337790
Showing 1 changed file with 1 addition and 34 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,10 @@
//

using System;
using System.Collections;
using System.Diagnostics;
using System.Globalization;
using System.Security;
using Microsoft.Win32;
using System.IO.Packaging;
using MS.Win32;
using System.Windows;
using System.Windows.Interop;
using MS.Internal.Utility;
using MS.Win32;
using System.Runtime.InteropServices;
using MS.Internal.Documents.Application;

namespace MS.Internal.AppModel
{
Expand All @@ -38,9 +30,6 @@ enum LaunchResult

internal static class AppSecurityManager
{
#region Internal Methods


///<summary>
/// Safely launch the browser if you can.
/// If you can't demand unmanaged code permisison.
Expand Down Expand Up @@ -149,27 +138,5 @@ the key used is (supposedly) HKCR\htmlfile\shell\opennew\ddeexec, and its value
throw new InvalidOperationException(SR.FailToLaunchDefaultBrowser,
new System.ComponentModel.Win32Exception(/*uses the last Win32 error*/));
}

#endregion Internal Methods

#region Private Methods

[ComImport, ComVisible(false), Guid("7b8a2d94-0ac9-11d1-896c-00c04Fb6bfc4")]
internal class InternetSecurityManager { }


#endregion Private Methods

#region Private Fields

private const string RefererHeader = "Referer: ";

private const string BrowserOpenCommandLookupKey = "htmlfile\\shell\\open\\command";

// Object to be used for locking. Using typeof(Util) causes an FxCop
// violation DoNotLockOnObjectsWithWeakIdentity
private static readonly object _lockObj = new object();

#endregion Private Fields
}
}

0 comments on commit 4337790

Please sign in to comment.