Bug 1169632 - Loop conversation name vanishes if the window is detached by dragging. Don't try to set the title in the wrong place - let the detachChatbox code set the title. r=mixedpuppy

This commit is contained in:
Mark Banner 2015-09-11 17:14:39 +01:00
parent 26720b0afc
commit 8e9367c0cf

View File

@ -805,12 +805,7 @@
let top = Math.min(Math.max(eY, sY.value),
sY.value + sHeight.value - winHeight);
let title = draggedChat.content.getAttribute("title");
this.detachChatbox(draggedChat, { screenX: left, screenY: top }).then(
chatbox => {
chatbox.contentWindow.document.title = title;
}
);
this.detachChatbox(draggedChat, { screenX: left, screenY: top });
event.stopPropagation();
]]></handler>
</handlers>