  #include <algorithm>
  #include <stdio.h>
  #include <utility>
-@@ -280,6 +283,7 @@ bool V8DOMWindowShell::initContextIfNeeded()
+@@ -283,6 +286,7 @@ bool V8DOMWindowShell::initContextIfNeeded()
  
      // Create a handle scope for all local handles.
      v8::HandleScope handleScope;

 
     // Setup the security handlers and message listener. This only has
     // to be done once.
@@ -341,7 +345,16 @@ bool V8DOMWindowShell::initContextIfNeeded()
 
     updateDocument();
 

 
     if (m_frame->document())
         v8Context->AllowCodeGenerationFromStrings(m_frame->document()->contentSecurityPolicy()->allowEval(0, ContentSecurityPolicy::SuppressReport));
@@ -355,6 +368,25 @@ bool V8DOMWindowShell::initContextIfNeeded()
     // we do isolated worlds the WebCore way.
     m_frame->loader()->dispatchDidClearWindowObjectInWorld(0);
 
