mirror of https://github.com/gorhill/uBlock.git
avoid potential double execution of firstRetrieveHandler (because mutations observer)
This commit is contained in:
parent
aca35e4cbc
commit
8562f70144
|
@ -79,6 +79,9 @@ var messager = vAPI.messaging.channel('contentscript-end.js');
|
||||||
},
|
},
|
||||||
retrieveHandler
|
retrieveHandler
|
||||||
);
|
);
|
||||||
|
// https://github.com/gorhill/uBlock/issues/452
|
||||||
|
// There is only one first..
|
||||||
|
retrieveHandler = otherRetrieveHandler;
|
||||||
} else {
|
} else {
|
||||||
otherRetrieveHandler(null);
|
otherRetrieveHandler(null);
|
||||||
}
|
}
|
||||||
|
@ -111,10 +114,6 @@ var messager = vAPI.messaging.channel('contentscript-end.js');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// There is only one first..
|
|
||||||
retrieveHandler = otherRetrieveHandler;
|
|
||||||
|
|
||||||
// Flush dead code from memory (does this work?)
|
// Flush dead code from memory (does this work?)
|
||||||
firstRetrieveHandler = null;
|
firstRetrieveHandler = null;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue