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

Christian Frost cf at cfrost.dk
Wed Nov 6 09:11:05 PST 2013


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?


-- 
Best regards
Christian


More information about the webkit-gtk mailing list