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

Unified Diff: lib/dom/templates/html/dartium/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/dartium/factoryprovider_XMLHttpRequest.darttemplate
diff --git a/lib/dom/templates/html/dartium/factoryprovider_XMLHttpRequest.darttemplate b/lib/dom/templates/html/dartium/factoryprovider_XMLHttpRequest.darttemplate
index 537f20aef1f024a8ec3fa19a1837a428fe3922bb..117f5391c599f99ab7d90a4df425074c887980b2 100644
--- a/lib/dom/templates/html/dartium/factoryprovider_XMLHttpRequest.darttemplate
+++ b/lib/dom/templates/html/dartium/factoryprovider_XMLHttpRequest.darttemplate
@@ -8,5 +8,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