[Webkit-unassigned] [Bug 137425] Plugin process crashes in NPN_InvokeDefault

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Oct 29 01:27:15 PDT 2016


https://bugs.webkit.org/show_bug.cgi?id=137425

--- Comment #17 from Carlos Garcia Campos <cgarcia at igalia.com> ---
(In reply to comment #11)
> Regressions: Unexpected timeouts (1)
>   plugins/npruntime/npruntime-calls-with-null-npp.html [ Timeout ]

Ok, this is timing out because my patch changed the behavior. In current code we handle null npp in browser funcs, but in a slightly different way. NetscapePlugin::fromNPP() returns nullptr if the given instance is nullptr, and then PluginDestructionProtector does nothing if the instance is nullptr. So we end up actually calling the browser function on the given npobject even when the plugin instance is nullptr. With the new patch, we return early if npp is nullptr and the function returns false, which is not expected by npruntime-calls-with-null-npp.html. When fixing this I noticed that firefox always returns early from all the browser funcs when npp is nullptr, and I planned to check this also in WebKit in a follow up patch. I will update the test to make it work after this patch, and then I'll do the same for all other methods to keep consistency.
I also noticed that I should probably move browser-funcs-invalid-args.html to the npruntime subdir as well.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20161029/5e98904c/attachment-0001.html>


More information about the webkit-unassigned mailing list