Sketchup use of WebKit
-
I've been hacking away trying to get Sketchup to use the nightly build of WebKit so that I can use the WebInspector.
Maybe I was wrong but I thought under the covers Sketchup on the Mac used WebKit. However, it seems that the WebDialog.framework that is built into Sketchup is independent from the WebKit instance pointed to by the DYLD_FRAMEWORK_PATH.
Any thoughts?
-
Likely Sketchup calls a Safari instance (which uses WebKit.) Can you get Safari to use a particular WebKit build (other than what was released with the last Safari version) ??
There is also an extra parameter mac_only_use_nswindow, to the WebDialog.new constructor for the Mac ONLY. (I don't know what it's supposed to be about, not having a Mac, other than nswindow is a base window class in Carbon or Cocoa. [Can't remember which.])
-
When Sketchup is run there is no instance of Safari that shows up in the process list. Actually, nothing shows up in the process list other than Sketchup. This indicates that all of the processing is managed within Sketchup itself. Therefore, the sketchup application is linking to frameworks to get its services - rather than launching separate applications. The web framework that Sketchup uses is WebKit.
Within the Sketchup bundle there is a WebDialog.framework
The WebDialog.framework has the WebKit.h file so I'm assuming it links to the WebKit.framework within the OS
I have loaded the nightly build for WebKit and redirected the load path to use the new build.
If Sketchup is calling WebKit.framework it should be the one I'm referencing.
Its possible that Sketchup is using some kind of "statically linked" instance of webkit but that isn't likely (I hope)
The nightly build has a built in Javascript Debugger within the WebInspector but now I need to figure out how to activate it since the Sketchup WebDialogs don't respond to a context click (a right click) like normal Safari windows.I hope I'm on the right track since a JavaScript debugger would be a great help to WebDialog development!
Advertisement