Closed
Bug 527615
Opened 16 years ago
Closed 16 years ago
nsIWidget::MakeFullScreen() fails when called before Show()
Categories
(Core :: Widget: Gtk, defect, P1)
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)
2.78 KB,
patch
|
roc
:
review+
pavlov
:
approval1.9.2+
|
Details | Diff | Splinter Review |
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.)
Assignee | ||
Comment 1•16 years ago
|
||
Fennec wants this for starting in fullscreen mode.
Assignee: nobody → mozbugz
Status: NEW → ASSIGNED
Flags: blocking1.9.2?
Assignee | ||
Comment 2•16 years ago
|
||
There was also an unnecessary gdk_window_resize(mGdkWindow, aWidth, aHeight) in only one of the NativeResize methods.
Attachment #411352 -
Flags: review?(roc)
Attachment #411352 -
Flags: review?(roc) → review+
Assignee | ||
Comment 3•16 years ago
|
||
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?
Comment 4•16 years ago
|
||
This is a pretty simple fix, and quite important to have on mobile. -> should block
Whiteboard: [should block]
Assignee | ||
Comment 5•16 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9.3a1
Updated•16 years ago
|
Attachment #411352 -
Flags: approval1.9.2?
Comment 6•16 years ago
|
||
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
Comment 8•16 years ago
|
||
Surprised to see that this doesn't have a blocking-fennec flag set ...
Flags: blocking1.9.2? → blocking1.9.2+
Priority: -- → P1
Updated•16 years ago
|
Attachment #411352 -
Flags: approval1.9.2? → approval1.9.2+
Assignee | ||
Comment 9•16 years ago
|
||
status1.9.2:
--- → final-fixed
Assignee | ||
Comment 10•16 years ago
|
||
(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.
Comment 11•16 years ago
|
||
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.
You need to log in
before you can comment on or make changes to this bug.
Description
•