Closed Bug 1803092 Opened 2 years ago Closed 2 years ago

We should handle error case of requestFullscreen

Categories

(GeckoView :: General, defect)

All
Android
defect

Tracking

(firefox109 fixed)

RESOLVED FIXED
109 Branch
Tracking Status
firefox109 --- fixed

People

(Reporter: m_kato, Assigned: m_kato)

References

Details

Attachments

(1 file)

I found this issue when writing test of bug 1744288.

When full screen mode is entered, we call windowUtils.handleFullscreenRequests(). But we don't check any error, so if this causes error (return false), Gecko's fullscreen state is unexpected.

Desktop handles whether this call is true or false.

Assignee: nobody → m_kato

Actually, we don't check whether handleFullscreenRequests is successful. Then,
when it causes an error, GeckoView cannot enter full screen again since current
document's fullscreen state isn't updated.

If it causes an error, we should clean up the state like Firefox desktop.

Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/37310 for changes under testing/web-platform/tests
Regressions: 1803947
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 109 Branch
Upstream PR merged by moz-wptsync-bot
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: