Skip to content
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

[wasm] Mark System.IO.Compression APIs as unsupported on Browser #41683

Merged
2 commits merged into from
Sep 4, 2020

Conversation

mdh1418
Copy link
Member

@mdh1418 mdh1418 commented Sep 1, 2020

Contributes to #41087

"M:System.IO.Compression.BrotliDecoder.TryDecompress(System.ReadOnlySpan{System.Byte},System.Span{System.Byte},System.Int32@)",System.IO.Compression,BrotliDecoder,"TryDecompress(ReadOnlySpan<Byte>, Span<Byte>, Int32)",0
"M:System.IO.Compression.BrotliDecoder.Decompress(System.ReadOnlySpan{System.Byte},System.Span{System.Byte},System.Int32@,System.Int32@)",System.IO.Compression,BrotliDecoder,"Decompress(ReadOnlySpan<Byte>, Span<Byte>, Int32, Int32)",0
M:System.IO.Compression.BrotliEncoder.GetMaxCompressedLength(System.Int32),System.IO.Compression,BrotliEncoder,GetMaxCompressedLength(Int32),0
"M:System.IO.Compression.BrotliEncoder.Flush(System.Span{System.Byte},System.Int32@)",System.IO.Compression,BrotliEncoder,"Flush(Span<Byte>, Int32)",0
"M:System.IO.Compression.BrotliEncoder.Compress(System.ReadOnlySpan{System.Byte},System.Span{System.Byte},System.Int32@,System.Int32@,System.Boolean)",System.IO.Compression,BrotliEncoder,"Compress(ReadOnlySpan<Byte>, Span<Byte>, Int32, Int32, Boolean)",0
"M:System.IO.Compression.BrotliEncoder.#ctor(System.Int32,System.Int32)",System.IO.Compression,BrotliEncoder,".ctor(Int32, Int32)",0
"M:System.IO.Compression.BrotliEncoder.TryCompress(System.ReadOnlySpan{System.Byte},System.Span{System.Byte},System.Int32@,System.Int32,System.Int32)",System.IO.Compression,BrotliEncoder,"TryCompress(ReadOnlySpan<Byte>, Span<Byte>, Int32, Int32, Int32)",0
"M:System.IO.Compression.BrotliEncoder.TryCompress(System.ReadOnlySpan{System.Byte},System.Span{System.Byte},System.Int32@)",System.IO.Compression,BrotliEncoder,"TryCompress(ReadOnlySpan<Byte>, Span<Byte>, Int32)",0
"M:System.IO.Compression.BrotliStream.Write(System.Byte[],System.Int32,System.Int32)",System.IO.Compression,BrotliStream,"Write(Byte[], Int32, Int32)",0
M:System.IO.Compression.BrotliStream.get_Position,System.IO.Compression,BrotliStream,get_Position(),0
"M:System.IO.Compression.BrotliStream.ReadAsync(System.Byte[],System.Int32,System.Int32,System.Threading.CancellationToken)",System.IO.Compression,BrotliStream,"ReadAsync(Byte[], Int32, Int32, CancellationToken)",0
"M:System.IO.Compression.BrotliStream.Read(System.Byte[],System.Int32,System.Int32)",System.IO.Compression,BrotliStream,"Read(Byte[], Int32, Int32)",0
M:System.IO.Compression.BrotliStream.Flush,System.IO.Compression,BrotliStream,Flush(),0
M:System.IO.Compression.BrotliStream.SetLength(System.Int64),System.IO.Compression,BrotliStream,SetLength(Int64),0
M:System.IO.Compression.BrotliStream.Read(System.Span{System.Byte}),System.IO.Compression,BrotliStream,Read(Span<Byte>),0
M:System.IO.Compression.BrotliStream.Write(System.ReadOnlySpan{System.Byte}),System.IO.Compression,BrotliStream,Write(ReadOnlySpan<Byte>),0
M:System.IO.Compression.BrotliStream.FlushAsync(System.Threading.CancellationToken),System.IO.Compression,BrotliStream,FlushAsync(CancellationToken),0
M:System.IO.Compression.BrotliStream.EndRead(System.IAsyncResult),System.IO.Compression,BrotliStream,EndRead(IAsyncResult),0
"M:System.IO.Compression.BrotliStream.WriteAsync(System.Byte[],System.Int32,System.Int32,System.Threading.CancellationToken)",System.IO.Compression,BrotliStream,"WriteAsync(Byte[], Int32, Int32, CancellationToken)",0
M:System.IO.Compression.BrotliStream.get_CanWrite,System.IO.Compression,BrotliStream,get_CanWrite(),0
"M:System.IO.Compression.BrotliStream.ReadAsync(System.Memory{System.Byte},System.Threading.CancellationToken)",System.IO.Compression,BrotliStream,"ReadAsync(Memory<Byte>, CancellationToken)",0
M:System.IO.Compression.BrotliStream.set_Position(System.Int64),System.IO.Compression,BrotliStream,set_Position(Int64),0
"M:System.IO.Compression.BrotliStream.#ctor(System.IO.Stream,System.IO.Compression.CompressionMode)",System.IO.Compression,BrotliStream,".ctor(Stream, CompressionMode)",0
"M:System.IO.Compression.BrotliStream.BeginRead(System.Byte[],System.Int32,System.Int32,System.AsyncCallback,System.Object)",System.IO.Compression,BrotliStream,"BeginRead(Byte[], Int32, Int32, AsyncCallback, Object)",0
"M:System.IO.Compression.BrotliStream.#ctor(System.IO.Stream,System.IO.Compression.CompressionLevel,System.Boolean)",System.IO.Compression,BrotliStream,".ctor(Stream, CompressionLevel, Boolean)",0
M:System.IO.Compression.BrotliStream.EndWrite(System.IAsyncResult),System.IO.Compression,BrotliStream,EndWrite(IAsyncResult),0
M:System.IO.Compression.BrotliStream.get_CanSeek,System.IO.Compression,BrotliStream,get_CanSeek(),0
"M:System.IO.Compression.BrotliStream.BeginWrite(System.Byte[],System.Int32,System.Int32,System.AsyncCallback,System.Object)",System.IO.Compression,BrotliStream,"BeginWrite(Byte[], Int32, Int32, AsyncCallback, Object)",0
M:System.IO.Compression.BrotliStream.get_CanRead,System.IO.Compression,BrotliStream,get_CanRead(),0
"M:System.IO.Compression.BrotliStream.WriteAsync(System.ReadOnlyMemory{System.Byte},System.Threading.CancellationToken)",System.IO.Compression,BrotliStream,"WriteAsync(ReadOnlyMemory<Byte>, CancellationToken)",0
"M:System.IO.Compression.BrotliStream.#ctor(System.IO.Stream,System.IO.Compression.CompressionMode,System.Boolean)",System.IO.Compression,BrotliStream,".ctor(Stream, CompressionMode, Boolean)",0
M:System.IO.Compression.BrotliStream.DisposeAsync,System.IO.Compression,BrotliStream,DisposeAsync(),0
"M:System.IO.Compression.BrotliStream.#ctor(System.IO.Stream,System.IO.Compression.CompressionLevel)",System.IO.Compression,BrotliStream,".ctor(Stream, CompressionLevel)",0
M:System.IO.Compression.BrotliStream.get_Length,System.IO.Compression,BrotliStream,get_Length(),0
M:System.IO.Compression.BrotliStream.get_BaseStream,System.IO.Compression,BrotliStream,get_BaseStream(),0
"M:System.IO.Compression.BrotliStream.Seek(System.Int64,System.IO.SeekOrigin)",System.IO.Compression,BrotliStream,"Seek(Int64, SeekOrigin)",0

@ghost
Copy link

ghost commented Sep 1, 2020

Tagging subscribers to this area: @safern, @ViktorHofer
See info in area-owners.md if you want to be subscribed.

@@ -10,51 +10,86 @@ public partial struct BrotliDecoder : System.IDisposable
{
private object _dummy;
private int _dummyPrimitive;
[System.Runtime.Versioning.UnsupportedOSPlatformAttribute("browser")]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can move the attribute to the class level since none of these classes will be supported so we don't need to annotate each method.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I moved it to the assembly level, saw that the tests were being skipped as an assembly level https://github.com/dotnet/runtime/blob/master/src/libraries/System.IO.Compression.Brotli/tests/AssemblyInfo.cs

@mdh1418 mdh1418 force-pushed the mdhwang/system_io_compression_unsupported branch from f48508e to 77b0ecf Compare September 4, 2020 14:57
@ghost
Copy link

ghost commented Sep 4, 2020

Hello @safern!

Because this pull request has the auto-merge label, I will be glad to assist with helping to merge this pull request once all check-in policies pass.

p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (@msftbot) and give me an instruction to get started! Learn more here.

@ghost ghost merged commit 3d1f2ef into dotnet:master Sep 4, 2020
@mdh1418 mdh1418 deleted the mdhwang/system_io_compression_unsupported branch September 4, 2020 17:20
mdh1418 added a commit to mdh1418/runtime that referenced this pull request Sep 8, 2020
…net#41683)

* [wasm] System.IO.Compression.Brotli enable platform attributes

* Mark System.IO.Compression.Brotli unsupported at assembly level

Co-authored-by: Mitchell Hwang <[email protected]>
mdh1418 added a commit that referenced this pull request Sep 9, 2020
* [wasm] Mark System.ComponentModel APIs as unsupported on Browser (#41094)

* [wasm] System.ComponentModel enable platform attributes

* [wasm] Mark ExtendedProtectionPolicyTypeConverter.ConvertTo as unsupported

* [wasm] Mark System.ComponentModel.TypeDescriptor.CreateInstance as unsupported

* [wasm] Mark System.ComponentModel.TypeDescriptionProvider.CreateInstance as unsupported

* [wasm] Mark System.ComponentModel.LicenseManager.CreateWithContext as unsupported

* [wasm] Mark System.ComponentModel.MaskedTextProvider.Clone as unsupported

Co-authored-by: Mitchell Hwang <[email protected]>

* [wasm] Mark System.Console APIs as unsupported on Browser (#41184)

* [wasm] Mark System.Console APIs as unsupported on Browser

* System.Console remove unsupported attribute from Console.Clear()

* System.Console mark SetIn as unsupported on Browser

* System.Console move UnsupportedOSPlatform attributes down to the accessor

Co-authored-by: Mitchell Hwang <[email protected]>

* Mark System.Diagnostics.FileVersionInfo as unsupported on Browser (#41271)

Co-authored-by: Mitchell Hwang <[email protected]>

* Mark System.Diagnostics.Process unsupported at assembly level (#41694)

Co-authored-by: Mitchell Hwang <[email protected]>

* [wasm] Mark System.IO.Compression APIs as unsupported on Browser (#41683)

* [wasm] System.IO.Compression.Brotli enable platform attributes

* Mark System.IO.Compression.Brotli unsupported at assembly level

Co-authored-by: Mitchell Hwang <[email protected]>

* [wasm] Mark System.IO.FileSystem.Watcher APIs as unsupported on Browser (#41682)

* [wasm] System.IO.FileSystem.Watcher enable platform attributes

* Mark System.IO.FileSystem.Watcher unsupported at assembly level

Co-authored-by: Mitchell Hwang <[email protected]>

* [wasm] Mark System.IO.IsolatedStorage APIs as unsupported on Browser (#41700)

* [wasm] System.IO.IsolatedStorage enable platform attributes

* Mark System.IO.IsolatedStorage Unsupported at assembly level

Co-authored-by: Mitchell Hwang <[email protected]>

* Mark some System.Net.* APIs as unsupported on Browser WASM (#40924)

* [wasm] Mark System.Threading.ThreadPool unsupported on Browser (#41891)

* System.Threading.ThreadPool enable platform attributes

* Mark System.Threading.ThreadPool APIs unsupported on browser

* System.Threading.ThreadPool Add Unsupported attribute to other ThreadPool files

* Remove Unsupported attributes from BindHandle

* Add windows Supported Attribute to BindHandle

Co-authored-by: Mitchell Hwang <[email protected]>

* Mark System.Net.WebSockets.ClientWebSocketOptions APIs as unsupported on Browser (#41963)

* Mark System.Net.WebSockets.ClientWebSocketOptions APIs as unsupported on Browser

* Add the attributes to non-browser version of ClientWebSocketOptions class to avoid build error

* Add using

* Include platform attributes

* [wasm] Mark System.Net.NameResolution Unsupported at assembly level (#41985)

Co-authored-by: Mitchell Hwang <[email protected]>

Co-authored-by: Mitchell Hwang <[email protected]>
Co-authored-by: Maxim Lipnin <[email protected]>
mdh1418 added a commit to mdh1418/runtime that referenced this pull request Sep 11, 2020
…net#41683)

* [wasm] System.IO.Compression.Brotli enable platform attributes

* Mark System.IO.Compression.Brotli unsupported at assembly level

Co-authored-by: Mitchell Hwang <[email protected]>
@ghost ghost locked as resolved and limited conversation to collaborators Dec 7, 2020
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants