mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 904075 - Remove un-necessary check finding media links. r=margaret
This commit is contained in:
parent
0d13244285
commit
8f3dce7f8b
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user