Page 1 of 1

10.1.9.2rc3 message handling race condition

Posted: Thu Sep 06, 2018 1:03 am
by skriptimaahinen
content.js:

Code: Select all

if (!childPolicy) {
  debug(`No answer to fetchChildPolicy message. Still initializing?`);
  setTimeout(notifyPage, 300);
  return;
}
That's just going to cause a loop. The real problem is that Message.js:dispatch still does not prevent wrong onMessage listener from answering first.

I still think my previous suggestion (https://forums.informaction.com/viewtop ... 125#p98358) is the right way to go.