-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove internal permissions types and most of SecurityHelper #969
Conversation
src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/Permissions/InternalPermissions.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/SecurityHelper.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/SecurityHelper.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/SecurityHelper.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/SecurityHelper.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.DotNet.Wpf/src/Shared/MS/Internal/SecurityHelper.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Permissions/CompoundFileIOPermission.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Permissions/RightsManagementPermission.cs
Outdated
Show resolved
Hide resolved
...oft.DotNet.Wpf/src/WindowsBase/MS/Internal/Permissions/UserInitiatedRoutedEventPermission.cs
Outdated
Show resolved
Hide resolved
General observation: I realize that this suggestion doesn't directly overlap with the core purpose of this PR (which is to remove types that directly inherit from S.S.Permission types), and that you are planning on putting out a separate PR that excises code containing asserts/demands etc. That said, some overlap in purpose is unavoidable , I think. For e..g., not following the logical thread to remove The rest of |
In my eyes it makes sense, time permitting, to remove as much as possible of the CAS specific code as early as possible. We're digging around right now, let's do this before other items take precedence. |
501fb41
to
51986c8
Compare
Removed most of the Opened an internal PR as well which should be merged first in order to avoid errors. |
src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BitmapDecoder.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Ink/ClipboardProcessor.cs
Outdated
Show resolved
Hide resolved
...icrosoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Interop/BrowserInteropHelper.cs
Show resolved
Hide resolved
src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/ImageSourceTypeConverter.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/BevelBitmapEffect.cs
Show resolved
Hide resolved
src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Effects/BitmapEffect.cs
Show resolved
Hide resolved
src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/GlyphTypeface.cs
Show resolved
Hide resolved
src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BitmapDecoder.cs
Show resolved
Hide resolved
src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Imaging/BitmapDecoder.cs
Outdated
Show resolved
Hide resolved
...tNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextTreeDeleteContentUndoUnit.cs
Outdated
Show resolved
Hide resolved
...tNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextTreeDeleteContentUndoUnit.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlTypeMapper.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlTypeMapper.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/VisualSerializer.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/XpsFontSubsetter.cs
Outdated
Show resolved
Hide resolved
Pretty straightforward to fix this. You can cherry pick my change from 49f8134 |
Consider cherry-picking 49f8134 into this before merging. |
Note: This PR also fixes #722 |
30cbe44 has what you need to remove |
Co-Authored-By: Steven Kirbach <steven.kirbach@gmail.com>
Co-Authored-By: Steven Kirbach <steven.kirbach@gmail.com>
2e045ba
to
e5fd477
Compare
...crosoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextEditorCopyPaste.cs
Outdated
Show resolved
Hide resolved
e5fd477
to
0a1b4b5
Compare
When `MediaElement.Source` is set to a HTTPS-Uri - .NET 4.8 Project throws `NullReferenceException` at System.Windows.Media.MediaPlayerState.OpenMedia(Uri source) at System.Windows.Media.MediaPlayerState.SetSource(Uri source) at System.Windows.Media.MediaPlayerState.Open(Uri source) - .NET Core 5.0 Application sucessfully plays the Source. Plain HTTP works in both runtimes. See https://stackoverflow.com/questions/30702505/playing-media-from-https-site-in-media-element-throwing-null-reference-exception dotnet/wpf#722 fixed and merged with dotnet/wpf#969 into .NET Core.
When `MediaElement.Source` is set to a HTTPS-Uri - .NET 4.8 Project throws `NullReferenceException` at System.Windows.Media.MediaPlayerState.OpenMedia(Uri source) at System.Windows.Media.MediaPlayerState.SetSource(Uri source) at System.Windows.Media.MediaPlayerState.Open(Uri source) - .NET Core 5.0 Application sucessfully plays the Source. Plain HTTP works in both runtimes. See https://stackoverflow.com/questions/30702505/playing-media-from-https-site-in-media-element-throwing-null-reference-exception dotnet/wpf#722 fixed and merged with dotnet/wpf#969 into .NET Core.
Opened an internal PR which should be merged first in order to avoid build errors.
Part if issue #241
SecurityHelper