Closed Bug 1826410 Opened 2 years ago Closed 2 months ago

Firefox on Android resizes the viewport when the virtual keyboard appears (when it should instead clip/cover a portion of the viewport), causing e.g. chat history to be hidden at https://bard.google.com/

Categories

(Web Compatibility :: Site Reports, defect, P3)

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: dholbert, Unassigned)

References

(Depends on 1 open bug, )

Details

(Keywords: webcompat:platform-bug, webcompat:site-report)

User Story

platform:android
impact:annoyance
configuration:general
affects:all
branch:release

Attachments

(2 files)

Attached file testcase 1

(This might already be tracked somewhere; please dupe if so)

STR:

  1. Load attached testcase in Firefox for Android.
  2. Focus the textarea.

ACTUAL RESULTS:
The bordered area resizes (indicating that the root viewport i.e. the initial containing block was also resized), and the red bottom-border remains visible.

EXPECTED RESULTS:
The viewport should not be resized. It should instead be partially covered up by the keyboard. (Or it should be pushed offscreen, if the covering-up approach would cover up the textarea.)

Bramus mentioned this behavior in his last paragraph at https://github.com/mozilla-mobile/firefox-ios/issues/11574#issuecomment-1443853113 :

Related: Firefox (both on iOS and Android) resize the ICB when the Virtual Keyboard gets shown.

Here's an example with the textarea at the bottom. Here, the keyboard is expected to push the viewport upwards (so that the textarea remains visible, and the red top-border gets pushed offscreen).

Chrome matches that expectation; but in Firefox, we simply reduce the size of the viewport, so the red border stays onscreen.

This is an extremely simplified version of https://bard.google.com/ which is affected by this issue. The chat history there is in the middle of the screen, with a textbox at the bottom. When you focus the textbox, Firefox compresses the viewport and cuts off the bottom (the most-recent-content) in the chat history, which is annoying if you're trying to respond to something that Bard just said.

Summary: Firefox on Android resizes the viewport when the virtual keyboard appears → Firefox on Android resizes the viewport when the virtual keyboard appears (when it should instead clip/cover a portion of the viewport), causing e.g. chat history to be hidden at https://bard.google.com/
Status: NEW → RESOLVED
Closed: 2 years ago
Depends on: 1730568
Duplicate of bug: 1007286
Resolution: --- → DUPLICATE
See Also: → 1862140
Status: RESOLVED → REOPENED
Depends on: 1884807
No longer duplicate of bug: 1007286
Resolution: DUPLICATE → ---

Reopening to track this as a site issue

Severity: -- → S4
User Story: (updated)
Priority: -- → P3
Depends on: 1916002

Both attached testcases behave as-expected in Nightly now.

https://bard.google.com/ itself no longer exists (it's been rebranded as Gemini and has undoubtedly gone through some redesigns). Retesting at the current site, I'm seeing consistent behavior between Firefox vs. Chrome (where the textbox now actually covers up the most recent answer in both, but interoperably and for reasons unrelated to what was originally happening here).

Status: REOPENED → RESOLVED
Closed: 2 years ago2 months ago
Resolution: --- → WORKSFORME

This was presumably fixed by bug 1884807, I think.

Component: Layout: Scrolling and Overflow → Site Reports
Product: Core → Web Compatibility

(bug 1842574 comment 11 part B might suggest we leave this open, but I'll keep it closed in this case because here the site has changed sufficiently that the issue is no longer testable there, per comment 4. The testcases are still useful for confirming that the bug-with-the-site-as-it-used-to-exist-is-now-fixed, but they're not reflecting an actual in-the-wild webcompat issue at an identified site, and they're essentially just direct testcases for bug 1884807.)

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: