| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2006, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2004, 2006, 2008 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2005-2007 Alexey Proskuryakov <ap@webkit.org> | 3 * Copyright (C) 2005-2007 Alexey Proskuryakov <ap@webkit.org> |
| 4 * Copyright (C) 2007, 2008 Julien Chaffraix <jchaffraix@webkit.org> | 4 * Copyright (C) 2007, 2008 Julien Chaffraix <jchaffraix@webkit.org> |
| 5 * Copyright (C) 2008, 2011 Google Inc. All rights reserved. | 5 * Copyright (C) 2008, 2011 Google Inc. All rights reserved. |
| 6 * Copyright (C) 2012 Intel Corporation | 6 * Copyright (C) 2012 Intel Corporation |
| 7 * | 7 * |
| 8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
| 9 * modify it under the terms of the GNU Lesser General Public | 9 * modify it under the terms of the GNU Lesser General Public |
| 10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
| (...skipping 785 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 796 // and they are referenced by the JavaScript wrapper. | 796 // and they are referenced by the JavaScript wrapper. |
| 797 setPendingActivity(this); | 797 setPendingActivity(this); |
| 798 } | 798 } |
| 799 } else { | 799 } else { |
| 800 ThreadableLoader::loadResourceSynchronously(scriptExecutionContext(), re
quest, *this, options); | 800 ThreadableLoader::loadResourceSynchronously(scriptExecutionContext(), re
quest, *this, options); |
| 801 } | 801 } |
| 802 | 802 |
| 803 if (!m_exceptionCode && m_error) | 803 if (!m_exceptionCode && m_error) |
| 804 m_exceptionCode = NetworkError; | 804 m_exceptionCode = NetworkError; |
| 805 if (m_exceptionCode) | 805 if (m_exceptionCode) |
| 806 es.throwDOMException(m_exceptionCode); | 806 es.throwUninformativeAndGenericDOMException(m_exceptionCode); |
| 807 } | 807 } |
| 808 | 808 |
| 809 void XMLHttpRequest::abort() | 809 void XMLHttpRequest::abort() |
| 810 { | 810 { |
| 811 // internalAbort() calls dropProtection(), which may release the last refere
nce. | 811 // internalAbort() calls dropProtection(), which may release the last refere
nce. |
| 812 RefPtr<XMLHttpRequest> protect(this); | 812 RefPtr<XMLHttpRequest> protect(this); |
| 813 | 813 |
| 814 bool sendFlag = m_loader; | 814 bool sendFlag = m_loader; |
| 815 | 815 |
| 816 if (!internalAbort()) | 816 if (!internalAbort()) |
| (...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1314 { | 1314 { |
| 1315 return eventNames().interfaceForXMLHttpRequest; | 1315 return eventNames().interfaceForXMLHttpRequest; |
| 1316 } | 1316 } |
| 1317 | 1317 |
| 1318 ScriptExecutionContext* XMLHttpRequest::scriptExecutionContext() const | 1318 ScriptExecutionContext* XMLHttpRequest::scriptExecutionContext() const |
| 1319 { | 1319 { |
| 1320 return ActiveDOMObject::scriptExecutionContext(); | 1320 return ActiveDOMObject::scriptExecutionContext(); |
| 1321 } | 1321 } |
| 1322 | 1322 |
| 1323 } // namespace WebCore | 1323 } // namespace WebCore |
| OLD | NEW |