Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(481)

Unified Diff: tools/dom/templates/html/impl/impl_XMLHttpRequest.darttemplate

Issue 12827032: Reverting "Adding CORS support to HttpRequest" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/html/xhr_cross_origin_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/templates/html/impl/impl_XMLHttpRequest.darttemplate
diff --git a/tools/dom/templates/html/impl/impl_XMLHttpRequest.darttemplate b/tools/dom/templates/html/impl/impl_XMLHttpRequest.darttemplate
index 7ae7698d7cf50d2180b7cde41b3edf7c8e7103e6..5e0f8b814b04da090af018d4334e7cb6ca019f83 100644
--- a/tools/dom/templates/html/impl/impl_XMLHttpRequest.darttemplate
+++ b/tools/dom/templates/html/impl/impl_XMLHttpRequest.darttemplate
@@ -129,23 +129,7 @@ $(ANNOTATIONS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
static bool get supportsProgressEvent {
$if DART2JS
var xhr = new HttpRequest();
- return JS('bool', '("onprogress" in #)', xhr);
-$else
- return true;
-$endif
- }
-
- /**
- * Checks to see if the current platform supports making cross origin
- * requests.
- *
- * Note that even if cross origin requests are supported, they still may fail
- * if the destination server does not support CORS requests.
- */
- static bool get supportsCrossOrigin {
-$if DART2JS
- var xhr = new HttpRequest();
- return JS('bool', '("withCredentials" in #)', xhr);
+ return JS('bool', '"onprogress" in #', xhr);
$else
return true;
$endif
@@ -157,7 +141,7 @@ $endif
static bool get supportsLoadEndEvent {
$if DART2JS
var xhr = new HttpRequest();
- return JS('bool', '("onloadend" in #)', xhr);
+ return JS('bool', '"onloadend" in #', xhr);
$else
return true;
$endif
« no previous file with comments | « tests/html/xhr_cross_origin_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698