Commit b898494e authored by haraken@chromium.org's avatar haraken@chromium.org

Add a missing handle scope to ScriptController::shouldBypassMainWorldCSP

Although I cannot reproduce the crash, as far as I see the crash report,
it seems that we are missing a handle scope in ScriptController::shouldBypassMainWorldCSP.

BUG=411773
TEST=None, I cannot reproduce

Review URL: https://codereview.chromium.org/556713002

git-svn-id: svn://svn.chromium.org/blink/trunk@181647 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 586f7f3d
...@@ -243,6 +243,7 @@ WindowProxy* ScriptController::windowProxy(DOMWrapperWorld& world) ...@@ -243,6 +243,7 @@ WindowProxy* ScriptController::windowProxy(DOMWrapperWorld& world)
bool ScriptController::shouldBypassMainWorldCSP() bool ScriptController::shouldBypassMainWorldCSP()
{ {
v8::HandleScope handleScope(m_isolate);
v8::Handle<v8::Context> context = m_isolate->GetCurrentContext(); v8::Handle<v8::Context> context = m_isolate->GetCurrentContext();
if (context.IsEmpty() || !toDOMWindow(context)) if (context.IsEmpty() || !toDOMWindow(context))
return false; return false;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment