| Index: Source/bindings/core/v8/custom/V8XMLHttpRequestCustom.cpp
|
| diff --git a/Source/bindings/core/v8/custom/V8XMLHttpRequestCustom.cpp b/Source/bindings/core/v8/custom/V8XMLHttpRequestCustom.cpp
|
| index 1a67cac2e6f6631ecb2daee10964f924842d5f62..3d97655a205c542487f6fd7eabb7a1614028e698 100644
|
| --- a/Source/bindings/core/v8/custom/V8XMLHttpRequestCustom.cpp
|
| +++ b/Source/bindings/core/v8/custom/V8XMLHttpRequestCustom.cpp
|
| @@ -155,50 +155,4 @@ void V8XMLHttpRequest::responseAttributeGetterCustom(const v8::PropertyCallbackI
|
| }
|
| }
|
|
|
| -void V8XMLHttpRequest::openMethodCustom(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| -{
|
| - // Four cases:
|
| - // open(method, url)
|
| - // open(method, url, async)
|
| - // open(method, url, async, user)
|
| - // open(method, url, async, user, passwd)
|
| -
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "open", "XMLHttpRequest", info.Holder(), info.GetIsolate());
|
| -
|
| - if (info.Length() < 2) {
|
| - exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(2, info.Length()));
|
| - exceptionState.throwIfNeeded();
|
| - return;
|
| - }
|
| -
|
| - XMLHttpRequest* xmlHttpRequest = V8XMLHttpRequest::toImpl(info.Holder());
|
| -
|
| - TOSTRING_VOID(V8StringResource<>, method, info[0]);
|
| - TOSTRING_VOID(V8StringResource<>, urlstring, info[1]);
|
| -
|
| - ExecutionContext* context = currentExecutionContext(info.GetIsolate());
|
| - KURL url = context->completeURL(urlstring);
|
| -
|
| - if (info.Length() >= 3) {
|
| - bool async = info[2]->BooleanValue();
|
| -
|
| - if (info.Length() >= 4 && !info[3]->IsUndefined()) {
|
| - TOSTRING_VOID(V8StringResource<TreatNullAsNullString>, user, info[3]);
|
| -
|
| - if (info.Length() >= 5 && !info[4]->IsUndefined()) {
|
| - TOSTRING_VOID(V8StringResource<TreatNullAsNullString>, password, info[4]);
|
| - xmlHttpRequest->open(method, url, async, user, password, exceptionState);
|
| - } else {
|
| - xmlHttpRequest->open(method, url, async, user, exceptionState);
|
| - }
|
| - } else {
|
| - xmlHttpRequest->open(method, url, async, exceptionState);
|
| - }
|
| - } else {
|
| - xmlHttpRequest->open(method, url, exceptionState);
|
| - }
|
| -
|
| - exceptionState.throwIfNeeded();
|
| -}
|
| -
|
| } // namespace blink
|
|
|