Closed Bug 873931 Opened 11 years ago Closed 11 years ago

[System][Statusbar] Statusbar does not show when fullscreen is canceled.

Categories

(Firefox OS Graveyard :: Gaia::System, defect)

ARM
Gonk (Firefox OS)
defect
Not set
critical

Tracking

(blocking-b2g:leo+, b2g18 fixed)

RESOLVED FIXED
blocking-b2g leo+
Tracking Status
b2g18 --- fixed

People

(Reporter: leo.bugzilla.gaia, Assigned: leo.bugzilla.gaia)

References

Details

(Keywords: regression)

Attachments

(2 files, 1 obsolete file)

50.94 KB, image/jpeg
Details
198 bytes, text/html
alive
: review+
Details
1. Title : [System][Statusbar] Statusbar does not show when fullscreen is canceled.
2. Precondition : Run an app that has an option to turn fullscreen mode on/off.
3. Tester's Action : Turn fullscreen mode on and off.
4. Detailed Symptom (ENG.) : Observe the statusbar is not displayed. Instead, you can see through the homescrean background.
5. Expected : The statusbar should be displayed.
6.Reproducibility: Y
           1)Frequency Rate : 100%
7.Gaia Revision: a503d9a1d0a588f3689243c1ddc0f016ede51b9d
8.Personal email id:  hanj.kim25@gmail.com

This is a regression from Bug 834765.
See Also: → 834765
Attached image repro steps
I only see this code in V1 train,

The fix is to change

      case 'appopen':
      case 'mozfullscreenchange':
      case 'unlock':
        if (this.screen.classList.contains('fullscreen-app') ||
            document.mozFullScreen) {
          this.hide();
        }

to

      case 'appopen':
      case 'mozfullscreenchange':
      case 'unlock':
        if (this.screen.classList.contains('fullscreen-app') ||
            document.mozFullScreen) {
          this.hide();
        } else {
          this.show();
        }
That's bad - we need to return to a clean state if we leave fullscreen. Regression from a leo+ blocker too.
blocking-b2g: --- → leo?
Keywords: regression
Attached patch Patch (obsolete) — Splinter Review
Requesting review. Thanks Alive.
Attachment #751563 - Flags: review?(alive)
Comment on attachment 751563 [details] [diff] [review]
Patch

Review of attachment 751563 [details] [diff] [review]:
-----------------------------------------------------------------

r=alive, thanks leo for investigating and patching.
Attachment #751563 - Flags: review?(alive) → review+
blocking-b2g: leo? → leo+
Is there any reason to not land this?
Assignee: nobody → leo.bugzilla.gaia
leo, please create a pull request to merge, thanks.
Flags: needinfo?(leo.bugzilla.gaia)
(In reply to Alive Kuo [:alive] from comment #7)
> leo, please create a pull request to merge, thanks.

The reason why I didn't create a pull request was because I don't see the this.hide(); codes on master, but only on V1-train. 

https://github.com/mozilla-b2g/gaia/blob/master/apps/system/js/statusbar.js
https://github.com/mozilla-b2g/gaia/blob/v1-train/apps/system/js/statusbar.js

I tried to create a pull request against V1-train, but I couldn't. Let me try again now.
Flags: needinfo?(leo.bugzilla.gaia)
Attached file Pull request url
Attachment #751563 - Attachment is obsolete: true
Attachment #757803 - Flags: review?(alive)
Comment on attachment 757803 [details]
Pull request url

r=me, I will merge for you.
Attachment #757803 - Flags: review?(alive) → review+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: