[webkit-gtk] NPAPI style change makes plugin loose context

Sergio Villar Senin svillar at igalia.com
Sun Nov 10 23:44:12 PST 2013

On 06/11/13 18:11, Christian Frost wrote:
> Hi all,
> I have some observations that you might be able to comment on.
> 1) I have a NPAPI video/mp4 object which is instantiated without the "data=".
> 2) Later on from javascript the "data" property is set and handled on
> the plugin.
> 3) Then I change the "className" (again from Javascript) of the object
> to change its size on the page.
> 4) This results in a reattachment of the element inside WebKit and the
> plugin is destroyed and instantiated again.
> My problem is that when destroyed and initialised all context in the
> plugin is lost, and all fields (like "data") needs to be given to the
> plugin again. But this is not the case. Therefore, when having changed
> to the correct stylesheet it's not possible to start the video since
> the "data" field is not known.
> What is the expected behavior of this example?

What the other engines/browsers do?


More information about the webkit-gtk mailing list