| Index: Source/bindings/v8/custom/V8XMLHttpRequestCustom.cpp
|
| diff --git a/Source/bindings/v8/custom/V8XMLHttpRequestCustom.cpp b/Source/bindings/v8/custom/V8XMLHttpRequestCustom.cpp
|
| index c0a2d307054c27a4bf7542297253f15a84a012e2..177533df4c983f93514a76ff27cbe5bd0ab403f4 100644
|
| --- a/Source/bindings/v8/custom/V8XMLHttpRequestCustom.cpp
|
| +++ b/Source/bindings/v8/custom/V8XMLHttpRequestCustom.cpp
|
| @@ -183,11 +183,11 @@ void V8XMLHttpRequest::openMethodCustom(const v8::FunctionCallbackInfo<v8::Value
|
| bool async = info[2]->BooleanValue();
|
|
|
| if (info.Length() >= 4 && !info[3]->IsUndefined()) {
|
| - String user = toWebCoreStringWithNullCheck(info[3]);
|
| + V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithNullCheck>, user, info[3]);
|
|
|
| if (info.Length() >= 5 && !info[4]->IsUndefined()) {
|
| - String passwd = toWebCoreStringWithNullCheck(info[4]);
|
| - xmlHttpRequest->open(method, url, async, user, passwd, exceptionState);
|
| + V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithNullCheck>, password, info[4]);
|
| + xmlHttpRequest->open(method, url, async, user, password, exceptionState);
|
| } else {
|
| xmlHttpRequest->open(method, url, async, user, exceptionState);
|
| }
|
| @@ -247,7 +247,8 @@ void V8XMLHttpRequest::sendMethodCustom(const v8::FunctionCallbackInfo<v8::Value
|
| ASSERT(arrayBufferView);
|
| xmlHttpRequest->send(arrayBufferView, exceptionState);
|
| } else {
|
| - xmlHttpRequest->send(toWebCoreStringWithNullCheck(arg), exceptionState);
|
| + V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithNullCheck>, argString, arg);
|
| + xmlHttpRequest->send(argString, exceptionState);
|
| }
|
| }
|
|
|
|
|