Closed eyalroz closed 1 year ago
We are used to adding an event listener for message load events to the "messagepane" DOM element, like so:
document.getElementById("messagepane").addEventListener("load", BiDiMailUI.MessageOverlay.onLoad, true);
... but this no longer works in TB 115. In fact, we can't even obtain the "messagepane" element. After asking around and not getting proper answers, it seems that this kind of works:
window.addEventListener("MsgLoaded", BiDiMailUI.MessageOverlay.onLoad, true);
with the window being the one defined when the chrome injector script runs.
We are used to adding an event listener for message load events to the "messagepane" DOM element, like so:
... but this no longer works in TB 115. In fact, we can't even obtain the "messagepane" element. After asking around and not getting proper answers, it seems that this kind of works:
with the window being the one defined when the chrome injector script runs.