Index: Source/bindings/v8/custom/V8DocumentLocationCustom.cpp |
diff --git a/Source/bindings/v8/custom/V8DocumentLocationCustom.cpp b/Source/bindings/v8/custom/V8DocumentLocationCustom.cpp |
index a913ba0d79bdb10d26e35177a44eb9ac0ade4184..c9b98ef13c99b5f3f27bc6612e0f03e616d28880 100644 |
--- a/Source/bindings/v8/custom/V8DocumentLocationCustom.cpp |
+++ b/Source/bindings/v8/custom/V8DocumentLocationCustom.cpp |
@@ -58,8 +58,10 @@ void V8Document::locationAttributeSetterCustom(v8::Local<v8::String> name, v8::L |
return; |
DOMWindow* window = document->domWindow(); |
- if (Location* location = window->location()) |
- location->setHref(active, first, toWebCoreString(value)); |
+ if (Location* location = window->location()) { |
+ V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, stringValue, value); |
+ location->setHref(active, first, stringValue); |
+ } |
} |
} // namespace WebCore |