Skip to content

[wasm] Modify System.Net.Request to throw PNSE on Browser WASM#40274

Merged
5 commits merged into
dotnet:masterfrom
MaximLipnin:wasm_System.Net.Requests
Aug 4, 2020
Merged

[wasm] Modify System.Net.Request to throw PNSE on Browser WASM#40274
5 commits merged into
dotnet:masterfrom
MaximLipnin:wasm_System.Net.Requests

Conversation

@MaximLipnin

Copy link
Copy Markdown
Contributor

This PR adds throwing PlatformNotSupportedException to System.Net.Request at assembly level.
This also enables System.ComponentModel.EventBasedAsync.Tests.BackgroundWorkerTests.TestFinalization test which doesn't fail locally.

@ghost

ghost commented Aug 3, 2020

Copy link
Copy Markdown

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

Comment thread src/libraries/System.Net.Requests/src/System.Net.Requests.csproj Outdated

@safern safern left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Modulo one suggestion.

Comment thread src/libraries/System.Net.Requests/src/System.Net.Requests.csproj Outdated
Comment thread src/libraries/System.Net.Requests/tests/System.Net.Requests.Tests.csproj Outdated
MaximLipnin and others added 2 commits August 3, 2020 22:45
@ghost

ghost commented Aug 4, 2020

Copy link
Copy Markdown

Hello @marek-safar!

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 4c0ebbd into dotnet:master Aug 4, 2020
@MaximLipnin MaximLipnin deleted the wasm_System.Net.Requests branch August 4, 2020 08:16
Jacksondr5 pushed a commit to Jacksondr5/runtime that referenced this pull request Aug 10, 2020
…t#40274)

* [wasm] Modify System.Net.Request to throw PNSE on Browser WASM

* [wasm] Re-enable System.ComponentModel.EventBasedAsync.Tests.BackgroundWorkerTests.TestFinalization test

* Make the CS0809 build warning depend on if PNSE assembly is going to be generated

* Update src/libraries/System.Net.Requests/src/System.Net.Requests.csproj

Co-authored-by: Alexander Köplinger <alex.koeplinger@outlook.com>

* Remove redundant condition

Co-authored-by: Alexander Köplinger <alex.koeplinger@outlook.com>
@karelz karelz added this to the 5.0.0 milestone Aug 18, 2020
@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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants