Closed Bug 1721738 Opened 3 years ago Closed 3 years ago

[Bug]: Flip rotation on fullscreen from landscape-primary to secondary takes no effect on screen.orientation

Categories

(Core :: DOM: Events, defect, P3)

Unspecified
Android
defect

Tracking

()

RESOLVED DUPLICATE of bug 1697647

People

(Reporter: kbrosnan, Unassigned)

Details

Attachments

(1 file)

From github: https://github.com/mozilla-mobile/fenix/issues/20405.

Steps to reproduce

  1. Open this page on your FF mobile:
    <!DOCTYPE html>
    <html>
    <body style="height: 100vh; font-size: 8vw">
      <p id="debug"></p>
      <script>
        document.body.addEventListener('click', ()=> {
          debug.style.background = '#FF0'
          document.body.requestFullscreen()
        })
        setInterval(()=> {
          debug.innerText = `
          ${screen.orientation.type}
          ${screen.orientation.angle}deg
          `
        }, 200)
      </script>
    </body>
    </html>
    
  2. Touch the screen to call requestFullscreen().
  3. Rotate from portrait to landscape-primary or secondary.
  4. Flip you phone, like a coin, to the oposite landscape.
  5. See the screen to flip, but no change on the screen.orientation data.

Expected behaviour

The screen.orientation data should represent actual mobile position.

Actual behaviour

It do not updates screen.orientation data if you do not turn to portrait between the rotation from one landscape to another.

https://user-images.githubusercontent.com/30254/126021134-96d673cf-0173-4171-89ad-3c44f26af9db.mp4

Device name

Redmi MIUI 12.0.13

Android version

Android 10

Firefox release type

Firefox

Firefox version

90.1.1

Device logs

No response

Additional information

No response

Change performed by the Move to Bugzilla add-on.

Attached file gh-20405.html (deleted) —

Testcase from the reporter

I can reproduce this on my Galaxy Note 8 and it seems it doesn't need to be fullscreen. But I don't have a good way to debug this as I have no Android dev setup and this is not supported at all on Windows. I wonder some non-Windows people can, maybe Edgar?

Flags: needinfo?(echen)
Severity: -- → S3
Priority: -- → P3
Status: NEW → RESOLVED
Closed: 3 years ago
Flags: needinfo?(echen)
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: