Bug 16149

Summary: [GTK] Implement the window-object-cleared signal
Product: WebKit Reporter: Alp Toker <alp>
Component: WebKit GtkAssignee: Nobody <webkit-unassigned>
Severity: Normal Keywords: Gtk
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Bug Depends on:    
Bug Blocks: 15687    
Description Flags
Add support for this signal aroben: review+

Description Alp Toker 2007-11-26 16:02:26 PST
This is an important hook to give applications access to the JS engine.
Comment 1 Alp Toker 2007-11-26 16:21:33 PST
Created attachment 17540 [details]
Add support for this signal
Comment 2 Adam Roben (:aroben) 2007-11-26 17:40:03 PST
Comment on attachment 17540 [details]
Add support for this signal

+    void (*window_object_cleared) (WebKitPage* page, WebKitFrame* frame, JSContextRef context, JSObjectRef window_object);

window_object should be a JSGlobalContextRef (it's a mistake in the Windows port that this is not the case).

+    // TODO: Re-attach debug clients if present.
+    // The Win port has an example of how we might do this.
+    //detachScriptDebugger();
+    //attachScriptDebugger();

We generally don't like to leave commented-out code in the source tree.

Comment 3 Alp Toker 2007-11-26 18:08:25 PST
Landed in r28065.