Re: How get main browser window HWND under Windows to move and lock focus on NPAPI based plug-in window?
Boris Zbarsky <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.plugins |
|---|---|
| Message-ID | <[email protected]> |
On 4/16/11 2:43 AM, Oleksandr Gavenko wrote:
> Currently NPAPI based plug-in testing with Firefox, Opera, Chrome,
> Safary on MS Windows shown that plug-in share data across
> browser pages
Yes, this is unchanged; lots of plug-ins depend on this.
> Currently syncronization done this shared memory in process:
>
> enum {ADDON_STOPED, ADDON_RUNNING};
> static int addon_running_state = ADDON_STOPED;
>
> But seems must be rewritten with using interprocess synchronization.
No, that should be fine. All instances of your plug-in are run in the
same process. It's just not the same process as the Firefox UI (or in
the future the Firefox renderer).
> As I wrote I can not get situation when plug-in loaded in separate
> process (plug-in itself, I don't know if it share address space with
> browser).
It doesn't do the latter.
> Which browser/version you recommend to test this issue (when 2
> plug-in instances loaded in separate address space)?
That won't happen.
-Boris