Closed
Bug 714071
Opened 13 years ago
Closed 12 years ago
The Show Statistics setting is not preserved when toggling the full screen mode
Categories
(Toolkit :: Video/Audio Controls, defect)
Toolkit
Video/Audio Controls
Tracking
()
VERIFIED
FIXED
mozilla13
People
(Reporter: ehsan.akhgari, Assigned: diogogmt)
References
Details
(Whiteboard: [good first bug][mentor=jwein][lang=js])
Attachments
(1 file, 3 obsolete files)
1.51 KB,
patch
|
neil
:
review+
|
Details | Diff | Splinter Review |
STR: 1. Play a video and right click on it and hit Show Statistics. 2. Click the full-screen button. The statistics disappear. 3. Right click on the video. The Hide Statistics menu item is displayed. Clicking on it doesn't do anything. The same thing can also be observed when going back to normal mode from full-screen mode.
Updated•13 years ago
|
Component: Video/Audio → Video/Audio Controls
Product: Core → Toolkit
QA Contact: video.audio → video.audio
Comment 1•13 years ago
|
||
Jared, is this something you could mentor?
Comment 2•13 years ago
|
||
I'm not sure exactly why this is happening. It could either be due to the styling changes that are introduced when an element goes full screen (position:fixed, maybe a z-index change), or it is caused by the code that changes the controls based on the size of the video. The files in question are located at: /toolkit/content/widgets/videocontrols.xml /toolkit/content/widgets/videocontrols.css
Whiteboard: [good first bug][mentor=jwein][lang=css][lang=js]
Updated•13 years ago
|
OS: Mac OS X → All
Hardware: x86 → All
Version: unspecified → Trunk
Assignee | ||
Comment 4•12 years ago
|
||
If nobody is currently working on this bug I would like to give it a try.
Updated•12 years ago
|
Assignee: nobody → diogo.gmt
Comment 5•12 years ago
|
||
Thanks Diogo for taking this. I have narrowed down the cause of this. The bindings for the video controls are detached and reattached when the video enters and exits fullscreen (bug 718107). This is causing part of the state of the controls to be lost. To fix this bug, we'll need to workaround bug 718107 and add a call to the |this.showStatistics()| function, passing |this.video.mozMediaStatisticsShowing| as the argument. This function will need to be called within either |init()| or |setupInitialState()|. Only JS changes are necessary, I don't think any changes to CSS are required here.
Status: NEW → ASSIGNED
Updated•12 years ago
|
Whiteboard: [good first bug][mentor=jwein][lang=css][lang=js] → [good first bug][mentor=jwein][lang=js]
Assignee | ||
Comment 6•12 years ago
|
||
Added a check to preserve the state of the video statistics when toggling fullscreen.
Attachment #594067 -
Flags: feedback?
Assignee | ||
Comment 7•12 years ago
|
||
Attached wrong patch before. This one does the check.
Attachment #594067 -
Attachment is obsolete: true
Attachment #594067 -
Flags: feedback?
Attachment #594069 -
Flags: feedback?
Updated•12 years ago
|
Attachment #594069 -
Flags: feedback? → feedback?(jwein)
Comment 8•12 years ago
|
||
Comment on attachment 594069 [details] [diff] [review] V2 Review of attachment 594069 [details] [diff] [review]: ----------------------------------------------------------------- This looks good and works great. Just fix the two nits below and then request review from neil@parkwaycc.co.uk. ::: toolkit/content/widgets/videocontrols.xml @@ +448,5 @@ > this.controlBar.hidden = true; > this.adjustControlSize(); > + > + // Preserve Statistics when toggling fullscreen mode > + // Bug 714071 nit: Please change this to one line and add a period, such as |// Preserve statistics when toggling fullscreen mode due to bug 714071.| @@ +451,5 @@ > + // Preserve Statistics when toggling fullscreen mode > + // Bug 714071 > + if (this.video.mozMediaStatisticsShowing) { > + this.showStatistics(true); > + } nit: Can you remove this trailing whitespace?
Attachment #594069 -
Flags: feedback?(jwein) → feedback+
Assignee | ||
Comment 9•12 years ago
|
||
Fixed format issues.
Attachment #594069 -
Attachment is obsolete: true
Attachment #594143 -
Flags: review?(neil)
Comment 10•12 years ago
|
||
Comment on attachment 594143 [details] [diff] [review] V3 >+ if (this.video.mozMediaStatisticsShowing) { >+ this.showStatistics(true); >+ } Two nits: 1. File style is not to brace single statements 2. File style is to have 4-space indent for some reason r=me with those fixed.
Attachment #594143 -
Flags: review?(neil) → review+
Assignee | ||
Comment 11•12 years ago
|
||
Attachment #594143 -
Attachment is obsolete: true
Attachment #596491 -
Flags: review?(neil)
Updated•12 years ago
|
Attachment #596491 -
Flags: review?(neil) → review+
Comment 12•12 years ago
|
||
Pushed to fx-team: https://hg.mozilla.org/integration/fx-team/rev/2ec69945ec11
Whiteboard: [good first bug][mentor=jwein][lang=js] → [good first bug][mentor=jwein][lang=js][fixed-in-fx-team]
Comment 13•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/2ec69945ec11
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Whiteboard: [good first bug][mentor=jwein][lang=js][fixed-in-fx-team] → [good first bug][mentor=jwein][lang=js]
Target Milestone: --- → mozilla13
Comment 14•12 years ago
|
||
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:13.0) Gecko/20120423 Firefox/13.0a2 Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120424 Firefox/13.0a2 Mozilla/5.0 (Windows NT 6.1; rv:13.0) Gecko/20120423 Firefox/13.0a2 Verified the fix on latest aurora13 builds: Statistics overlay is preserved when toggling the full screen mode.
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•