Sorry for the cross-post, but I think this problem may not
be exclusive to webkit. In my application, I’m trying to load a WebView
in the background and grab a screenshot of it. To do this, I create a webview,
load it into an off-screen window, lock focus on it, call drawRect, then create
an NSBitmapImageRep from it. This works great for 99% of pages, however
occasionally I’ll hit a page where it overloads the stack and crashes my
app (the stack has 10,000+ calls on it). This takes place somewhere in the
khtml renderer under WebKit, and I’m pretty sure it has to do with WebKit
trying to display an animated GIF offscreen. Has anyone ever encountered an
issue like this with WebView or any other NSView doing off-screen drawing?