Closed Bug 721626 Opened 12 years ago Closed 12 years ago

Video controls' fullscreen button exits fullscreen when in a fullscreen document

Categories

(Toolkit :: Video/Audio Controls, defect)

11 Branch
x86_64
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla12

People

(Reporter: cpearce, Assigned: jaws)

Details

Attachments

(1 file)

STR:
1. Load http://pearce.org.nz/full-screen/
2. Press 'f' key. A <div> which contains the video will be set as the fullscreen element.
3. Click the fullscreen button on the video element's controls. Fullscreen mode exits.

Expected result:
* The video should become the fullscreen element (the controls should call video.mozRequestFullScreen()).

I imagine the video controls are showing the exit button if document.mozFullScreen, whereas it should really only show the exit button if document.mozFullScreenElement==video.
The patch is a simple one-line fix for this bug. It'd be great to get this landed in time for Fx12.
Assignee: nobody → jwein
Status: NEW → ASSIGNED
Attachment #592215 - Flags: review?(gavin.sharp)
Attachment #592215 - Flags: review?(dolske)
Comment on attachment 592215 [details] [diff] [review]
Patch for bug 721626

are there tests for this stuff?
Attachment #592215 - Flags: review?(gavin.sharp) → review+
(In reply to Gavin Sharp (use gavin@gavinsharp.com for email) from comment #2)
> Comment on attachment 592215 [details] [diff] [review]
> Patch for bug 721626
> 
> are there tests for this stuff?

There is a bug on file to add tests for it (bug 704924). Some of the confusion related to adding tests has recently been figured out (bug 718107) so we might  have a workaround that we can use for writing those tests.
Attachment #592215 - Flags: review?(dolske)
https://hg.mozilla.org/mozilla-central/rev/a6e8ef1ef926
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → mozilla12
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: