rem: messenger.SetWindow(null, null); messenger.SetWindow(window, msgWindow); 
add: messenger.setWindow(null, null); messenger.setWindow(window, msgWindow); 
context: function UpdateMailPaneConfig() {  const dynamicIds = ["messagesBox", "mailContent", "threadPaneBox"]  var desiredId = dynamicIds[pref.getIntPref("mail.pane_config.dynamic")];  var messagePane = GetMessagePane();  if (messagePane.parentNode.id != desiredId) {    ClearAttachmentList();    var messagePaneSplitter = GetThreadAndMessagePaneSplitter();    var desiredParent = document.getElementById(desiredId);    desiredParent.appendChild(messagePaneSplitter);    desiredParent.appendChild(messagePane);    messagePaneSplitter.orient = desiredParent.orient;    messenger.SetWindow(null, null);    messenger.SetWindow(window, msgWindow);    if (gDBView && GetNumSelectedMessages() == 1)      gDBView.reloadMessage();  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/9421/0d4059c32bb899b0b564e88da3b2dd8cd4e4a21e/msgMail3PaneWindow.js/buggy/mailnews/base/resources/content/msgMail3PaneWindow.js