Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Master
-
None
Description
It's possible from tests I did with my proof of concept based on this header: http://opensource.apple.com/source/WebKit/WebKit-6531.9/mac/WebView/WebScriptDebugDelegate.h
You would then set the delegate on a UIWebView subclass that overrode this selector:
- (void)webView:(id)sender didClearWindowObject:(id)windowObject forFrame:(WebFrame*)frame
{
[sender setScriptDebugDelegate:myWebScriptDebugDelegate]; // e.g
}
webView:didClearWindowObject:forFrame: https://developer.apple.com/library/mac/#documentation/Cocoa/Reference/WebKit/Protocols/WebFrameLoadDelegate_Protocol/Reference/Reference.html
Of course this will involve private methods (not kosher by Apple), and might not be baked in (but included in the source that is installed), and we could provide instructions on how to explicitly include and enable it and output warnings if it is used.