<rdar://problem/
5439953> REGRESSION: Cannot load feeds in widgets in Dashcode due to change in WebKit delegate methods
* WebView/WebFrame.mm:
(-[WebFrame _attachScriptDebugger]): Don't create the debugger object if the frame has not yet
created its script interpreter, to avoid premature dispatch of windowScriptObjectAvailable/Cleared
delegate methods. The script debugger will be created in any case when the window object does appear.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@25320
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2007-08-30 Maciej Stachowiak <mjs@apple.com>
+
+ Reviewed by Tim.
+
+ <rdar://problem/5439953> REGRESSION: Cannot load feeds in widgets in Dashcode due to change in WebKit delegate methods
+
+ * WebView/WebFrame.mm:
+ (-[WebFrame _attachScriptDebugger]): Don't create the debugger object if the frame has not yet
+ created its script interpreter, to avoid premature dispatch of windowScriptObjectAvailable/Cleared
+ delegate methods. The script debugger will be created in any case when the window object does appear.
+
2007-08-29 Darin Adler <darin@apple.com>
Reviewed by Tim Hatcher.
- (void)_attachScriptDebugger
{
- if (!_private->scriptDebugger)
+ if (!_private->scriptDebugger && core(self)->scriptProxy()->haveInterpreter())
_private->scriptDebugger = [[WebScriptDebugger alloc] initWithWebFrame:self];
}