Allow XMLHttpRequest withCredentials to be set prior to a call to open()
[WebKit-https.git] / Source / WebCore / ChangeLog
index e9da4bece4ef885cf99b91350bc43a1ac789f99a..f74859b34fc2aef52980882cba11a7b29e62c78c 100644 (file)
@@ -1,3 +1,19 @@
+2011-12-24  Jarred Nicholls  <jarred@sencha.com>
+
+        Allow XMLHttpRequest withCredentials to be set prior to a call to open()
+        https://bugs.webkit.org/show_bug.cgi?id=75194
+
+        XMLHttpRequest.withCredentials attribute should be modifiable prior to the OPENED state per
+        the W3C spec. See http://dvcs.w3.org/hg/xhr/raw-file/tip/Overview.html#the-withcredentials-attribute
+
+        Reviewed by Alexey Proskuryakov.
+
+        Test: fast/xmlhttprequest/xmlhttprequest-withcredentials-before-open.html
+
+        * xml/XMLHttpRequest.cpp:
+        (WebCore::XMLHttpRequest::setWithCredentials):
+        Prevent setting the value only after the OPENED state.
+
 2011-12-24  Andreas Kling  <awesomekling@apple.com>
 
         Remove empty inline RenderStyle destructor.