Ignore webView:didFinishLoadForFrame: messages about any frame that isn't the main frame. This should enable styles to use frames (e.g., iframes).
authorPeter Hosey <hg@boredzo.org>
Mon Feb 08 03:28:31 2010 -0800 (2010-02-08)
changeset 45816fb5820ed75e
parent 4580 636cf942efe9
child 4582 5fa091ae672c
Ignore webView:didFinishLoadForFrame: messages about any frame that isn't the main frame. This should enable styles to use frames (e.g., iframes).
Plugins/Displays/WebKit/GrowlWebKitWindowController.m
     1.1 --- a/Plugins/Displays/WebKit/GrowlWebKitWindowController.m	Sun Feb 07 08:12:09 2010 -0800
     1.2 +++ b/Plugins/Displays/WebKit/GrowlWebKitWindowController.m	Mon Feb 08 03:28:31 2010 -0800
     1.3 @@ -251,7 +251,8 @@
     1.4   * @brief Invoked once the webview has loaded and is ready to accept content
     1.5   */
     1.6  - (void) webView:(WebView *)sender didFinishLoadForFrame:(WebFrame *)frame {
     1.7 -#pragma unused(frame)
     1.8 +	if (frame != [sender mainFrame]) return;
     1.9 +
    1.10  	NSWindow *myWindow = [self window];
    1.11  	if ([myWindow isFlushWindowDisabled])
    1.12  		[myWindow enableFlushWindow];