* System.Net.Policy/CrossDomainPolicyManager.cs: Use same socket family
as the endpoint when retrieving the policy. Also do not try to create a
policy out of an empty stream (avoid misleading exceptions in logs)
* System.Net.Policy/CrossDomainPolicyManager.cs: Use InternalHeaders,
instead of Headers, since we always use the browser stack to download
the security policies.
* System.Net/WebClient_2_1.cs: Throw a NotImplementedException from
ResponseHeaders if the response does not support them.
* System.Net/WebResponse_2_1.cs: Make Headers property smart to throw a
NotImplementedException if SupportsHeaders return false. Add a new
InternalHeaders property since the response headers are needed,
internally (e.g. policies), even if not exposed to the outside world.
* CrossDomainPolicyManager.cs: Fix previous change since it
breaks several valid cases (e.g. text/*, text/xml; charset=utf-8)
and does not completely covers the application/xml case.
Avoid possible ArgumentException while adding policies since it
confuse the logs.
svn path=/trunk/mcs/; revision=155309
* CrossDomainPolicyManager.cs: make the contentType detection
look for /xml at the end, it's more reliable
(fixes olympics for moonlight)
svn path=/trunk/mcs/; revision=155283
* ClientAccessPolicyParser.cs: Catch extra attributes that
leads to an invalid (no-access) policy. Fix parts of DRT#666
* CrossDomainPolicyManager.cs: Ignore policies sent with a
Content-Type different than "text/*". Fix DRT#667
* FlashCrossDomainPolicyParser.cs: Catch extra attributes and
the case where a second policy is present (invalid xml). Fix
parts of DRT#666
svn path=/trunk/mcs/; revision=154862
2010-03-10 Sebastien Pouliot <[email protected]>
* SocketAsyncEventArgs.cs: Remove the use of reflection to check
xdomain poilicy on sockets (since the policy code now resides in
System.Net.dll)
In System.Net:
2010-03-10 Sebastien Pouliot <[email protected]>
* net_2_1_raw_System.Net.dll.sources: Add types from (new internal)
System.Net.Policy (moved from System.Windows.Browser.dll)
* Makefile: Add reference to System.Xml.dll to parse policies
In System.Net/System.Net.Policy:
2010-03-10 Sebastien Pouliot <[email protected]>
* BaseDomainPolicy.cs, ClientAccessPolicy[Parser].cs,
CrossDomainPolicyManager.cs, FlashCrossDomainPolicy[Parser].cs,
ICrossDomainPolicy.cs, NoAccessPolicy.cs, PolicyDownloadPolicy.cs,
SiteOfOriginPolicy.cs: Moved from System.Net.dll with namespace
and minor build adjustments.
svn path=/trunk/mcs/; revision=153396