On 2011/06/02 18:32:51, ihab.awad wrote:
On Thu, Jun 2, 2011 at 11:30 AM,
<https://mail.google.com/mail?view=cm&tf=0&ui=1&[email protected]> wrote:
> Well, we already have the plugin_id parameter and a lookup table.
The
> problem is that each instance of domita creates its own lookup
table.
> Whatever solution we come up with needs to define a single lookup
table
> for the hostpage.
So maybe if we ensure that plugin_id is unique in the entire host
page, then
we can dispatch correctly? I guess that just requires some table in
caja.js
that the host-page plugin_dispatch* would close over and use to figure
out
which guest frame to talk to? Doesn't sound too bad.... Am I missing
some
complication?
So rather than expose plugin_* from the taming frame directly, there'll be two layers of dispatch: the hostpage looks up the taming frame from the plugin id and then invokes the plugin_dispatchToHandler___ from that taming frame. That sounds rather slow, but straightforward to implement. http://codereview.appspot.com/4530099/
