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

Unified Diff: lib/dom/templates/html/dart2js/factoryprovider_XMLHttpRequest.darttemplate

Issue 10831314: Don't auto-send credentials on XHR.get (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix test status for dart2js Created 8 years, 4 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
Index: lib/dom/templates/html/dart2js/factoryprovider_XMLHttpRequest.darttemplate
diff --git a/lib/dom/templates/html/dart2js/factoryprovider_XMLHttpRequest.darttemplate b/lib/dom/templates/html/dart2js/factoryprovider_XMLHttpRequest.darttemplate
index a434d189ec20a882ae82a9b4cc586c8f19bb4875..5772ad76136ca2c77d5f7f92ea358a7af1c1bdad 100644
--- a/lib/dom/templates/html/dart2js/factoryprovider_XMLHttpRequest.darttemplate
+++ b/lib/dom/templates/html/dart2js/factoryprovider_XMLHttpRequest.darttemplate
@@ -7,5 +7,9 @@ class $FACTORYPROVIDER {
factory XMLHttpRequest.get(String url,
onSuccess(XMLHttpRequest request)) =>
- _XMLHttpRequestUtils.get(url, onSuccess);
+ _XMLHttpRequestUtils.get(url, onSuccess, false);
+
+ factory XMLHttpRequest.getWithCredentials(String url,
+ onSuccess(XMLHttpRequest request)) =>
+ _XMLHttpRequestUtils.get(url, onSuccess, true);
}

Powered by Google App Engine
This is Rietveld 408576698