Le 25/01/2016 04:47, Sammy Patenotte a écrit :
> Hi Henry,
> I just did, and didn't get any more lines of log, but I added some debug
> statements in broadcastMessage(), and found out that the problem is in this
> block:
> // Buffer system messages until the webapps' registration is ready,
> // so that we can know the correct pages registered to be broadcasted.
> if (!this._webappsRegistryReady) {
> this._bufferedSysMsgs.push({ how: "broadcast",
> type: aType,
> msg: aMessage,
> extra: aExtra });
> return Promise.resolve();
> }
You register your message handler from index.html ? And the target is
messageHandler.html ?
If so, I think we do not trigger anything in that case and we except
registration to be done from the same page as handling.
>
> The execution flow apparently goes through that block and returns, without
> having broadcast the message. I don't understand why the webapp is not
> registered though.
> _______________________________________________
> dev-fxos mailing list
> [email protected]
> https://lists.mozilla.org/listinfo/dev-fxos
>
_______________________________________________
dev-fxos mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-fxos