Reviewed by Tim.
[WebKit-https.git] / WebKit / WebView / WebFrame.mm
index 432b1a3c64648d10984a5a2f743a5609fe8bec9c..6dcef33f985272f8736819b64f80c7c2cd23acfa 100644 (file)
@@ -365,7 +365,7 @@ WebView *getWebView(WebFrame *webFrame)
 
 - (void)_attachScriptDebugger
 {
-    if (!_private->scriptDebugger)
+    if (!_private->scriptDebugger && core(self)->scriptProxy()->haveInterpreter())
         _private->scriptDebugger = [[WebScriptDebugger alloc] initWithWebFrame:self];
 }