[Webkit-unassigned] [Bug 16829] New: NPAPI: NPN_SetException() appears broken
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Jan 10 15:52:15 PST 2008
http://bugs.webkit.org/show_bug.cgi?id=16829
Summary: NPAPI: NPN_SetException() appears broken
Product: WebKit
Version: 525+ (Nightly build)
Platform: Macintosh
OS/Version: Mac OS X 10.4
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: Plug-ins
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: playmobil at google.com
CC: eric at webkit.org
Calling NPN_SetException from an NPAPI plugin doesn't work correctly (exception
not visible in calling Javascript).
If you pass in the plug-in object as the first parameter to NPN_SetException(),
then the test in NP_jsobject.cpp#369 - _NPN_SetException() [o->_class ==
NPScriptObjectClass] fails and the function does nothing.
If I retrieve the Window object via a call to NPN_GetValue() using
NPNVWindowNPObject and pass that into NPN_SetException(), then the
aforementioned test succeeds, however...
_NPN_SetException() sets the exception on what appears to be the global
Execstate:
ExecState* exec = rootObject->globalObject()->globalExec();
But this has no effect, as the local ExecState is the one checked for an
exception- see nodes.cpp#3645 ExprStatementNode::execute().
So the exception is never propagated.
--
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