Closed Bug 574778 Opened 14 years ago Closed 14 years ago

Enabling Full Screen Video is broken

Categories

(Core :: DOM: Core & HTML, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Tracking Status
blocking2.0 --- final+

People

(Reporter: xtc4uall, Assigned: jimm)

References

()

Details

(Keywords: regression)

Attachments

(2 files)

STR: * open URL * hit the Play Button * right click in the Video + "Full Screen" Expected: Watching the Video in Full Screen Mode. Actual: * You get hit by Bug 574690. * the Video is played in a small Content Area at the top left. Using: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.3a6pre) Gecko/20100625 Minefield/3.7a6pre Range: http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=522df66198cf&tochange=51bd519736c4 AFIK, this isn't yet covered by other filed Regression Reports, no?
Did you test with turning off OOPP, It maybe helpful to see if there any connected code path there.
(In reply to comment #1) > Did you test with turning off OOPP, It maybe helpful to see if there any > connected code path there. This video is playing in mozilla. no oopp!
(In reply to comment #2) > (In reply to comment #1) > > Did you test with turning off OOPP, It maybe helpful to see if there any > > connected code path there. > > This video is playing in mozilla. no oopp! Oh, duh, I missed that link to the video.. good thing I didn't ask where was either, thanks.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
If i understand correctly, Bug 574690 got (partially?) backed-out and thus this Issue regressed again. Will this get fixed by Bug 579421 again?
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
(In reply to comment #5) > If i understand correctly, Bug 574690 got (partially?) backed-out and thus this > Issue regressed again. Will this get fixed by Bug 579421 again? Confirming I see it regressed with 7-16 nightly pointing to the backout; 7-15 was fine even after Retain Layers landed.
Attached patch fix v.1Splinter Review
Assignee: nobody → jmathies
Comment on attachment 458413 [details] [diff] [review] fix v.1 Now that we have base windows that are chromed os windows, we need to touch up things like this. nsXULWindow will resize the window after it loads unless intrinsic resizing is disabled. Since we create the video dialog, then set it to fullscreen before it finishes loading, we need to disable this.
Attachment #458413 - Flags: review?(Olli.Pettay)
Component: Widget: Win32 → DOM
QA Contact: win32 → general
Comment on attachment 458413 [details] [diff] [review] fix v.1 >+ // Prevent chrome documents which are still loading from resizing >+ // the window after we set fullscreen mode. >+ nsCOMPtr<nsIBaseWindow> treeOwnerAsWin; >+ GetTreeOwner(getter_AddRefs(treeOwnerAsWin)); >+ nsCOMPtr<nsIXULWindow> xulWin(do_GetInterface(treeOwnerAsWin)); >+ if (xulWin) { >+ xulWin->SetIntrinsicallySized(PR_FALSE); >+ } >+ Should this happen only if aFullScreen is PR_TRUE?
(In reply to comment #9) > Comment on attachment 458413 [details] [diff] [review] > fix v.1 > > >+ // Prevent chrome documents which are still loading from resizing > >+ // the window after we set fullscreen mode. > >+ nsCOMPtr<nsIBaseWindow> treeOwnerAsWin; > >+ GetTreeOwner(getter_AddRefs(treeOwnerAsWin)); > >+ nsCOMPtr<nsIXULWindow> xulWin(do_GetInterface(treeOwnerAsWin)); > >+ if (xulWin) { > >+ xulWin->SetIntrinsicallySized(PR_FALSE); > >+ } > >+ > Should this happen only if aFullScreen is PR_TRUE? Sure, I'll add: if (aFullScreen && xulWin) { I doubt the reverse situation ever happens, but better safe than sorry.
Attachment #458413 - Flags: review?(Olli.Pettay) → review+
http://hg.mozilla.org/mozilla-central/rev/4291098c5736 Thanks for the quick turn around on reviews smaug!
Status: REOPENED → RESOLVED
Closed: 14 years ago14 years ago
Resolution: --- → FIXED
Jim, looks like we didn't quite make it into full screen.. it looks maximized instead.. my windows taskbar is still there and there is not a close X in the upper right, I don't get a context menu, or what have you.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
ConstrainPosition in widget has a bug where we constrain full screen windows to the work area. This updates that. (ConstrainPosition is really only called from a couple places in nsXULWindow, for centering and for initial positioning.)
Attachment #458550 - Flags: review?(tellrob)
Comment on attachment 458550 [details] [diff] [review] ConstrainPosition fix v.1 Well this looks right to me. Can't help but feel like the last chunk is dead code.
Attachment #458550 - Flags: review?(tellrob) → review+
Status: REOPENED → RESOLVED
Closed: 14 years ago14 years ago
Resolution: --- → FIXED
blocking2.0: ? → final+
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: