Fixed <rdar://problem/
4758577> REGRESSION: Business and People widgets fails to complete search query
* xml/xmlhttprequest.cpp:
(WebCore::XMLHttpRequest::setRequestHeader):
removed exception set when the request is not open yet
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16794
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2006-10-04 Alice Liu <alice.liu@apple.com>
+
+ Reviewed by Darin.
+
+ Fixed <rdar://problem/4758577> REGRESSION: Business and People widgets fails to complete search query
+
+ * xml/xmlhttprequest.cpp:
+ (WebCore::XMLHttpRequest::setRequestHeader):
+ removed exception set when the request is not open yet
+
2006-10-04 Anders Carlsson <acarlsson@apple.com>
Reviewed by John Sullivan.
void XMLHttpRequest::setRequestHeader(const String& name, const String& value, ExceptionCode& ec)
{
- if (m_state != Open) {
- ec = INVALID_STATE_ERR;
+ if (m_state != Open)
+ // rdar 4758577: XHR spec says an exception should be thrown here. However, doing so breaks the Business and People widgets.
return;
- }
if (m_requestHeaders.length() > 0)
m_requestHeaders += "\r\n";