if (info.Length() > 2) {
if (RefPtr<Frame> frame = htmlDocument->frame()) {
// Fetch the global object for the frame.
- v8::Local<v8::Context> context = frame->script().currentWorldContextOrMainWorldContext();
+ v8::Local<v8::Context> context = toV8Context(info.GetIsolate(), frame.get(), DOMWrapperWorld::current(info.GetIsolate()));
// Bail out if we cannot get the context.
if (context.IsEmpty())
return;
}
}
- htmlDocument->open(activeDOMWindow()->document());
+ htmlDocument->open(activeDOMWindow(info.GetIsolate())->document());
v8SetReturnValue(info, info.Holder());
}