Bug 1072980 - Don't pass document CPOW to context menu (r=ally)

This commit is contained in:
Bill McCloskey 2014-12-18 17:34:24 -08:00
parent 85e73d3dc5
commit 9a33dcc272

View File

@ -1067,7 +1067,7 @@ nsContextMenu.prototype = {
mm.removeMessageListener("ContextMenu:SaveVideoFrameAsImage:Result", onMessage);
let dataURL = message.data.dataURL;
saveImageURL(dataURL, name, "SaveImageTitle", true, false,
document.documentURIObject, this.target.ownerDocument);
document.documentURIObject, document);
};
mm.addMessageListener("ContextMenu:SaveVideoFrameAsImage:Result", onMessage);
},