[Webkit-unassigned] [Bug 13005] WebScriptObject +throwException needs NULL check

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Mar 15 11:20:47 PDT 2007


http://bugs.webkit.org/show_bug.cgi?id=13005





------- Comment #11 from waylonis at mac.com  2007-03-15 11:20 PDT -------
Hi Tim,
The problem arises after all of the JavaScript on the page has executed and
when the current page/interpreter has been released.  There's no way to catch
any exception thrown from JS at this time because there's no JS executing.

The problem is that even though the interpreter has been released, there may
still be ObjC objects that have been allocated by the HTML page.  If these
objects, in their dealloc method, call [WebScriptObject throwException:@""],
the current code will bus error.  My patch checks for the invalid interpreter
and returns without trying to dereference a NULL object.

Thanks, Dan


-- 
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list