Closed
Bug 1168028
Opened 10 years ago
Closed 9 years ago
Revert fullscreen state after window finish changing if it causes that
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla41
Tracking | Status | |
---|---|---|
firefox41 | --- | fixed |
People
(Reporter: xidorn, Assigned: xidorn)
References
Details
Attachments
(2 files, 1 obsolete file)
(deleted),
patch
|
smaug
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
smaug
:
review+
|
Details | Diff | Splinter Review |
This is the second half of delaying fullscreen state change when the window needs to resize. The first half is bug 1161802 which is for delaying the state change for entering.
Assignee | ||
Comment 1•9 years ago
|
||
Assignee: nobody → quanxunzhen
Assignee | ||
Updated•9 years ago
|
Attachment #8612683 -
Flags: review?(dao)
Attachment #8612683 -
Flags: review?(bugs)
Comment 2•9 years ago
|
||
Comment on attachment 8612683 [details] [diff] [review]
patch
>+ if (exitingFullscreen) {
>+ // If we are fully exiting fullscreen, don't touch anything here,
>+ // just wait for the window to get out from fullscreen first.
>+ if (XRE_GetProcessType() == GeckoProcessType_Content) {
>+ (new AsyncEventDispatcher(
>+ this, NS_LITERAL_STRING("MozDOMFullscreen:Exit"),
>+ /* Bubbles */ true, /* ChromeOnly */ true))->PostDOMEvent();
>+ } else {
>+ SetWindowFullScreen(this, false);
>+ }
(I still wish we'd find some way to handle this without explicit process type checks)
Attachment #8612683 -
Flags: review?(bugs) → review+
Assignee | ||
Comment 3•9 years ago
|
||
A potential solution would be to copy the code in nsGlobalWindow::SetFullScreenInternal() which checks whether the top level window is a chrome window.
Updated•9 years ago
|
Attachment #8612683 -
Flags: review?(dao) → review+
Backed out for browser_domFullscreen_fullscreenMode.js failures:
https://treeherder.mozilla.org/logviewer.html#?job_id=10624164&repo=mozilla-inbound
https://hg.mozilla.org/integration/mozilla-inbound/rev/bc2394237fe5
Flags: needinfo?(quanxunzhen)
Assignee | ||
Comment 6•9 years ago
|
||
I thought this change should be trivial and shouldn't break anything, but it proves I was wrong. I should have pushed a try build before pushing to m-i.
Anyway, this is the prerequisite patch which ensures even if we are exiting to fullscreen mode, we still exit DOM fullscreen properly.
Sorry for new review request, smaug.
Flags: needinfo?(quanxunzhen)
Attachment #8620806 -
Flags: review?(bugs)
Assignee | ||
Comment 7•9 years ago
|
||
The only change to this patch is that three ok() in file_fullscreen-api.html are removed, since they are no longer true.
This change is for fixing M2 failure in this try build:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=e2f5e2633e47
Attachment #8612683 -
Attachment is obsolete: true
Attachment #8620809 -
Flags: review?(bugs)
Updated•9 years ago
|
Attachment #8620806 -
Flags: review?(bugs) → review+
Comment 8•9 years ago
|
||
Comment on attachment 8620809 [details] [diff] [review]
patch 2 - exit fullscreen state after window changed, r=dao
Hmm, so mozFullScreen reflects the actual value. Fine, but this may break pages, though apparently mozFullScreen is a gecko-ism which we should get rid of at some point.
Attachment #8620809 -
Flags: review?(bugs) → review+
Assignee | ||
Comment 9•9 years ago
|
||
(In reply to Olli Pettay [:smaug] (for generic DOM reviews, you may want to look for other reviewers too ;)) from comment #8)
> Comment on attachment 8620809 [details] [diff] [review]
> patch 2 - exit fullscreen state after window changed, r=dao
>
> Hmm, so mozFullScreen reflects the actual value. Fine, but this may break
> pages, though apparently mozFullScreen is a gecko-ism which we should get
> rid of at some point.
It may, but I think that meets what the spec says, and pages should generally listen to fullscreenchange event instead of check the property synchronously.
Anyway, I don't have any data, but if bug 1161802 doesn't break pages, I believe this bug shouldn't either.
Comment 10•9 years ago
|
||
Blocks: 1174323
Assignee | ||
Updated•9 years ago
|
Assignee | ||
Comment 11•9 years ago
|
||
May I close this bug with fixed?
I really have no idea about that intermittent, but that shouldn't affect the fact that this bug has been fixed, should it?
Flags: needinfo?(wkocher)
Yes. Not entirely sure why this didn't automatically get marked fixed when those commits got merged to m-c...
Status: NEW → RESOLVED
Closed: 9 years ago
Flags: needinfo?(wkocher)
Resolution: --- → FIXED
Assignee | ||
Updated•9 years ago
|
Target Milestone: --- → mozilla41
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•