Closed Bug 775715 Opened 12 years ago Closed 12 years ago

Video controls incorrectly using videoHeight

Categories

(Toolkit :: Video/Audio Controls, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla17

People

(Reporter: cpearce, Assigned: cpearce)

Details

Attachments

(1 file)

We have the following code in videocontrols.xml:

  // If we have metadata, check if this is a <video> without
  // video data, or a video with no audio track.
  if (this.video.readyState >= this.video.HAVE_METADATA) {
      if (this.video instanceof HTMLVideoElement &&
          (this.video.videoWidth == 0 || this.videoHeight == 0))
          this.isAudioOnly = true;

That second last line should be:

          (this.video.videoWidth == 0 || this.video.videoHeight == 0))

i.e. s/this.videoHeight/this.video.videoHeight/
Attached patch PatchSplinter Review
Attachment #643991 - Flags: review?(jaws)
Comment on attachment 643991 [details] [diff] [review]
Patch

Review of attachment 643991 [details] [diff] [review]:
-----------------------------------------------------------------

D'oh! Thanks for catching this. I ran a search on MXR for any other instances of this.videoHeight (or this.videoWidth) and didn't see any other ones.
Attachment #643991 - Flags: review?(jaws) → review+
https://hg.mozilla.org/mozilla-central/rev/11b96d52903f
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: