10.1.9.2rc3 message handling race condition

Bug reports and enhancement requests
Post Reply
skriptimaahinen
Master Bug Buster
Posts: 244
Joined: Wed Jan 10, 2018 7:37 am

10.1.9.2rc3 message handling race condition

Post 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.
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0
Post Reply