Commit 21e6fbd5 authored by Alex Catarineu's avatar Alex Catarineu Committed by Georg Koppen
Browse files

Bug 34250: Only listen to 'started' in noscript-control.js

This fixes a race condition which can be hit in some cases,
such as running some marionette tests. The race condition
results in noscript not being initialized properly due to
the 'pageshow' event being received before 'started'.
parent 605e9d39
......@@ -146,7 +146,7 @@ var initialize = () => {
let messageListener = (a, b, c) => {
try {
log(3, `Message received from NoScript: ${JSON.stringify([a, b, c])}`);
if (!["started", "pageshow"].includes( {
if ( !== "started") {
}"MessageChannel:Messages", listener);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment