Closed
Bug 127013
Opened 23 years ago
Closed 18 years ago
fullScreen property operates inconsistently for frames
Categories
(Core :: XUL, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: neil, Assigned: ventnor.bugzilla)
References
Details
Attachments
(2 files, 3 obsolete files)
2.05 KB,
patch
|
jst
:
review+
jst
:
superreview+
|
Details | Diff | Splinter Review |
2.38 KB,
patch
|
jst
:
review+
|
Details | Diff | Splinter Review |
Using Build ID: 2002022003
Steps to reproduce problem:
1. Open the JavaScript console
2. Evaluate "fullScreen = true"
3. Evaluate "fullScreen = false"
4. Evaluate "top.fullScreen = false"
Expected results: step 3 restores the window
Actual results: step 4 restores the window
Comment 1•23 years ago
|
||
*** Bug 127440 has been marked as a duplicate of this bug. ***
Neil: since bug 127405 was fixed, we can't do fullScreen = true/false outside
mozilla now. should we close this bug?
Reporter | ||
Comment 3•23 years ago
|
||
Not necessarily. At least, if you browse to about:config and then
javascript:fullScreen=true then the window will go full screen.
http://lxr.mozilla.org/seamonkey/source/dom/src/base/nsGlobalWindow.cpp#1884
We shouldn't do that before we are the root window.
Assignee: hewitt → kyle.yuan
Reporter | ||
Comment 6•23 years ago
|
||
Comment on attachment 92368 [details] [diff] [review]
checks (aFullScreen == mFullScreen) after we were the root window
Nice work but can you fix GetFullScreen as well?
Attachment #92368 -
Flags: needs-work+
Attachment #92368 -
Attachment is obsolete: true
Comment on attachment 92506 [details] [diff] [review]
changed GetFullScreen as well (per Neil's suggestion)
this patch doesn't solve the problem.
Attachment #92506 -
Attachment is obsolete: true
Reporter | ||
Comment 10•21 years ago
|
||
*** Bug 227553 has been marked as a duplicate of this bug. ***
Reporter | ||
Comment 11•21 years ago
|
||
So just to be clear here, there are three code paths:
1. setting full screen forwards to top
2. unsetting full screen early returns when it shouldn't (except for top)
3. getting full screen always reads the local member (wrong except for top)
Would it be better to store the full screen state somewhere else?
Summary: fullScreen = false doesn't turn full screen mode off → fullScreen property operates inconsistently for frames
Assignee | ||
Comment 12•18 years ago
|
||
Even better: we read the full screen flag using the same approach as setting it, and then just re-use it in setFullScreen.
Not only does this fix Neil's problem, but this fixes the broken readonly window.fullScreen for content (which I'm sure the many upcoming web-based Powerpoint killers can use ;) )
Assignee: jag → ventnor.bugzilla
Status: NEW → ASSIGNED
Attachment #264942 -
Flags: superreview?(jst)
Attachment #264942 -
Flags: review?(jst)
Comment 13•18 years ago
|
||
Comment on attachment 264942 [details] [diff] [review]
New patch
Looks good. r+sr=jst
Attachment #264942 -
Flags: superreview?(jst)
Attachment #264942 -
Flags: superreview+
Attachment #264942 -
Flags: review?(jst)
Attachment #264942 -
Flags: review+
Comment 14•18 years ago
|
||
Michael, you need someone to check the patch in for you?
Also, I guess this needs some Mochikit tests, eventually: http://developer.mozilla.org/en/docs/Mochitest
Comment 15•18 years ago
|
||
Comment on attachment 264942 [details] [diff] [review]
New patch
Looks good. r+sr=jst
Assignee | ||
Comment 16•18 years ago
|
||
(In reply to comment #14)
> Michael, you need someone to check the patch in for you?
Yes please.
> Also, I guess this needs some Mochikit tests, eventually:
> http://developer.mozilla.org/en/docs/Mochitest
I'll see what I can do.
Whiteboard: [checkin needed]
Assignee | ||
Comment 17•18 years ago
|
||
![]() |
||
Updated•18 years ago
|
Flags: in-testsuite?
Assignee | ||
Comment 18•18 years ago
|
||
Now that the tree has reopened, can someone with CVS rights please check-in this patch?
Comment 19•18 years ago
|
||
Checking in nsGlobalWindow.cpp;
/cvsroot/mozilla/dom/src/base/nsGlobalWindow.cpp,v <-- nsGlobalWindow.cpp
new revision: 1.936; previous revision: 1.935
done
Checked into trunk.
Thanks for the patch Michael! Also thank you for the Mochitest! I'll review that one.
Updated•18 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Whiteboard: [checkin needed]
Assignee | ||
Comment 20•18 years ago
|
||
Comment on attachment 266033 [details] [diff] [review]
Mochitest
Thanks!
Attachment #266033 -
Flags: review?(martijn.martijn)
Comment 21•18 years ago
|
||
I noticed you didn't reset the window back after the test, so I added it. I also added a test whether the resize event is fired. I hope you don't mind I did this.
I added some very limited documentation here:
http://developer.mozilla.org/en/docs/DOM:window.fullScreen
Attachment #266033 -
Attachment is obsolete: true
Attachment #267220 -
Flags: review?(jst)
Attachment #266033 -
Flags: review?(martijn.martijn)
Updated•18 years ago
|
Attachment #267220 -
Attachment is patch: true
Attachment #267220 -
Attachment mime type: application/octet-stream → text/plain
Assignee | ||
Comment 22•18 years ago
|
||
(In reply to comment #21)
> Created an attachment (id=267220) [details]
> Mochitest v2
>
> I noticed you didn't reset the window back after the test, so I added it. I
> also added a test whether the resize event is fired. I hope you don't mind I
> did this.
That's fine. In fact I thought about that just after I hit submit, but never got around to fixing it.
Updated•18 years ago
|
Attachment #267220 -
Flags: review?(jst) → review+
You need to log in
before you can comment on or make changes to this bug.
Description
•