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

[release/5.0-rc2] Backport Additional Browser Unsupported Attribute Changes #42267

Conversation

mdh1418
Copy link
Member

@mdh1418 mdh1418 commented Sep 15, 2020

Fixes Issue
Ongoing analyzer work.

Master PR
#41976 #42074 #42063 #42010

Description

The Platform Compatibility Analyzer can be used to identify APIs that are problematic on other specific platforms or deprecated. With the attribute UnsupportedOSPlatformAttribute("browser"), numerous APIs that are not supported on Browser WASM are marked for the platform compatibility analyzer to pick up.

Customer Impact

Without this fix, customers will not be warned against using certain unsupported APIs on Browser WASM. Importantly some Http request settings and the cryptography APIs that are not supported.

Risk

Low. These attributes only impact the compatibility analyzer for browser-wasm.

@Dotnet-GitSync-Bot
Copy link
Collaborator

I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label.

mdh1418 and others added 4 commits September 15, 2020 14:22
Co-authored-by: Mitchell Hwang <mitchell.hwang@microsoft.com>
…net#42063)

* Mark some System.Net.HttpListener APIs as unsupported on browser

* FIx windows builds

* Fix windows builds

* Remove browser annotations from the properties with windows-specific setters.

* Mark only setter of ExtendedProtectionPolicy

* Remove another redundant annotation
…r WASM (dotnet#42010)

* Mark System.Security.Cryptography.Algorithms as unsupported on Browser WASM

* Address the comment regarding IncrementalHash.CreateHMAC

* Group System.* usings

* Restore the blank lines between the meta-comment and the code for all the HMAC classes

* Fix style issues

* Mark MD5 class as unsupported on Browser; clean up the api exclusion list and proj file.

* Using

* Style fix
@mdh1418 mdh1418 force-pushed the mdhwang/backport_unsupported_browser_attributes_second_round branch from 059e6ea to ea8ab67 Compare September 15, 2020 18:23
@mdh1418 mdh1418 changed the base branch from release/5.0 to release/5.0-rc2 September 15, 2020 18:23
@mdh1418 mdh1418 changed the title WIP [release/5.0-rc2] Backport Additional Browser Unsupported Attribute Changes Sep 15, 2020
@mdh1418 mdh1418 added arch-wasm WebAssembly architecture area-Meta Servicing-consider Issue for next servicing release review labels Sep 15, 2020
@mdh1418 mdh1418 marked this pull request as ready for review September 15, 2020 18:25
@lewing
Copy link
Member

lewing commented Sep 15, 2020

cc @danroth27 @mkArtakMSFT

@marek-safar
Copy link
Contributor

@lewing please send it for approval ASAP

@lewing lewing added Servicing-approved Approved for servicing release and removed Servicing-consider Issue for next servicing release review labels Sep 16, 2020
@lewing lewing merged commit c30d4bb into dotnet:release/5.0-rc2 Sep 16, 2020
@mdh1418 mdh1418 deleted the mdhwang/backport_unsupported_browser_attributes_second_round branch September 17, 2020 16:52
@ghost ghost locked as resolved and limited conversation to collaborators Dec 7, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
arch-wasm WebAssembly architecture area-Meta Servicing-approved Approved for servicing release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants