diff options
-rw-r--r-- | webkit/glue/webframe_impl.cc | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/webkit/glue/webframe_impl.cc b/webkit/glue/webframe_impl.cc index 7ec990a..c941f91 100644 --- a/webkit/glue/webframe_impl.cc +++ b/webkit/glue/webframe_impl.cc @@ -1613,11 +1613,10 @@ void WebFrameImpl::ExecuteScriptInNewContext( sources_in[i].startLine)); } - // OOPS! Do not check in. - // if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kIsolatedWorld)) - frame_->script()->evaluateInNewWorld(sources); - // else - // frame_->script()->evaluateInNewContext(sources); + if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kIsolatedWorld)) + frame_->script()->evaluateInNewWorld(sources); + else + frame_->script()->evaluateInNewContext(sources); } std::wstring WebFrameImpl::GetName() { |