Bug 16149

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

Description From 2007-11-26 16:02:26 PST
This is an important hook to give applications access to the JS engine.
------- Comment #1 From 2007-11-26 16:21:33 PST -------
Created an attachment (id=17540) [details]
Add support for this signal
------- Comment #2 From 2007-11-26 17:40:03 PST -------
(From update of attachment 17540 [details])
+    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.

r=me
------- Comment #3 From 2007-11-26 18:08:25 PST -------
Landed in r28065.