Bug 904075 - Remove un-necessary check finding media links. r=margaret

This commit is contained in:
Wes Johnston 2013-08-13 08:50:37 -07:00
parent 0d13244285
commit 8f3dce7f8b

View File

@ -7632,7 +7632,7 @@ var ExternalApps = {
_getMediaLink: function(aElement) {
let uri = NativeWindow.contextmenus._getLink(aElement);
if (uri == null) {
if (aElement.nodeType == Ci.nsIDOMNode.ELEMENT_NODE && (aElement instanceof Ci.nsIDOMHTMLMediaElement && mediaSrc)) {
if (aElement.nodeType == Ci.nsIDOMNode.ELEMENT_NODE && (aElement instanceof Ci.nsIDOMHTMLMediaElement)) {
try {
let mediaSrc = aElement.currentSrc || aElement.src;
uri = ContentAreaUtils.makeURI(mediaSrc, null, null);