Bug 1489302 - Follow-up from Bug 1488084. Restore accidentally removed sourceDoc. r=IanN
This commit is contained in:
Родитель
6d944478eb
Коммит
550fd4bd6d
|
@ -67,9 +67,13 @@ function OnMailWindowUnload()
|
|||
*/
|
||||
function onCopyOrDragStart(e) {
|
||||
let browser = getBrowser();
|
||||
if (!browser || e.target.ownerDocument != browser.contentDocument) {
|
||||
if (!browser) {
|
||||
return;
|
||||
}
|
||||
let sourceDoc = browser.contentDocument;
|
||||
if (e.target.ownerDocument != sourceDoc) {
|
||||
// We're only interested if this is in the message content.
|
||||
return;
|
||||
return;
|
||||
}
|
||||
|
||||
let imgMap = new Map(); // Mapping img.src -> dataURL.
|
||||
|
|
Загрузка…
Ссылка в новой задаче