Closed Bug 527615 Opened 16 years ago Closed 16 years ago

nsIWidget::MakeFullScreen() fails when called before Show()

Categories

(Core :: Widget: Gtk, defect, P1)

x86
Linux
defect

Tracking

()

RESOLVED FIXED
mozilla1.9.3a1
Tracking Status
status1.9.2 --- beta3-fixed

People

(Reporter: karlt, Assigned: karlt)

References

Details

(Whiteboard: [should block])

Attachments

(1 file)

The problem is that only the GdkWindow and not the GtkWindow is made fullscreen. When the GtkWindow is shown it does not know that it should be fullscreen and unfullscreens the GdkWindow. (This used to work sometimes before the fix for bug 509278 when Show() was called twice because the second call would again fullscreen the GdkWindow. Since bug 509278, the second call to Show with the same state does nothing.)
Fennec wants this for starting in fullscreen mode.
Assignee: nobody → mozbugz
Status: NEW → ASSIGNED
Flags: blocking1.9.2?
There was also an unnecessary gdk_window_resize(mGdkWindow, aWidth, aHeight) in only one of the NativeResize methods.
Attachment #411352 - Flags: review?(roc)
This was probably meant to be tested by http://mxr.mozilla.org/mozilla-central/source/dom/tests/mochitest/chrome/test_fullscreen.xul but that might get a fullscreen event but not the unfullscreen. With bug 517379, I don't know how it even got the fullscreen event. A test might wait for focus and then check the fullScreen property. I think we'll need bug 517379 fixed to pick up the unfullscreen notification.
Depends on: 517379
Flags: in-testsuite?
This is a pretty simple fix, and quite important to have on mobile. -> should block
Whiteboard: [should block]
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9.3a1
Attachment #411352 - Flags: approval1.9.2?
Comment on attachment 411352 [details] [diff] [review] use gtk (instead of gdk) funcs This patch fixes the fullscreen _and_ tearing-while-scrolling problems we had experienced on N900/N810
Surprised to see that this doesn't have a blocking-fennec flag set ...
Flags: blocking1.9.2? → blocking1.9.2+
Priority: -- → P1
Attachment #411352 - Flags: approval1.9.2? → approval1.9.2+
(In reply to comment #3) > A test might wait for focus and then check the fullScreen property. > I think we'll need bug 517379 fixed to pick up the unfullscreen notification. Bug 517379 wasn't quite what I thought. Bug 512529 is probably what is needed.
Depends on: 512529
No longer depends on: 517379
Not sure why that code was removed. I thought we had to call MakeFullScreen() on Show() because of persistent window properties. Maybe gtk does more than gdk does.
Depends on: 636699
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: