WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED WONTFIX
107641
always NP plugin exception message show "Error calling method on NPObject."
https://bugs.webkit.org/show_bug.cgi?id=107641
Summary
always NP plugin exception message show "Error calling method on NPObject."
lafefish
Reported
2013-01-23 00:24:19 PST
if np plugin throw some error exception message to browser, webkit ignore that and show "Error calling method on NPObject." text only in c_instance.cpp, we can see code like this { JSLock::DropAllLocks dropAllLocks(exec); ASSERT(globalExceptionString().isNull()); retval = _object->_class->invoke(_object, ident, cArgs.data(), count, &resultVariant); moveGlobalExceptionToExecState(exec); } if (!retval) throwError(exec, createError(exec, "Error calling method on NPObject.")); in case throw exception inside np plugin function, np plugin function call is fail, so 'retval' is false and in case of that kind of situation, inside moveGlobalExceptionToExecState function, make error exception, but after moveGlobalExceptionToExecState call, throwError is called, so message made inside np plugin is overwritten so I changed moveGlobalExceptionToExecState function, moveGlobalExceptionToExecState have bool type retun value, if inside moveGlobalExceptionToExecState throwError is called , this function return true, in that case, throwError(exec, createError(exec, "Error calling method on NPObject.")) is not called, like this { JSLock::DropAllLocks dropAllLocks(exec); ASSERT(globalExceptionString().isNull()); retval = _object->_class->invokeDefault(_object, cArgs.data(), count, &resultVariant); bexcretval = moveGlobalExceptionToExecState(exec); } if (!retval && !bexcretval) throwError(exec, createError(exec, "Error calling method on NPObject."));
Attachments
Add attachment
proposed patch, testcase, etc.
Alexey Proskuryakov
Comment 1
2022-07-01 11:35:25 PDT
Mass closing plug-in bugs, as plug-in support has been removed from WebKit. Please comment and/or reopen if this still affects WebKit in some way.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug