Bug 461810 - Video content menu should operate on .currentSrc, not .src. r=gavin

This commit is contained in:
Justin Dolske 2008-10-28 11:52:04 -07:00
parent b9fbf2e7c2
commit f6a9437320

View File

@ -463,11 +463,11 @@ nsContextMenu.prototype = {
}
else if (this.target instanceof HTMLVideoElement) {
this.onVideo = true;
this.mediaURL = this.target.src;
this.mediaURL = this.target.currentSrc;
}
else if (this.target instanceof HTMLAudioElement) {
this.onAudio = true;
this.mediaURL = this.target.src;
this.mediaURL = this.target.currentSrc;
}
else if (this.target instanceof HTMLInputElement ) {
this.onTextInput = this.isTargetATextBox(this.target);