Open Bug 1884131 Opened 8 months ago Updated 2 months ago

Redirected to a broken login page when searching on taobao.com

Categories

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

Firefox 125
Other
Android

Tracking

(firefox123 wontfix, firefox125 wontfix)

REOPENED
Tracking Status
firefox123 --- wontfix
firefox125 --- wontfix

People

(Reporter: ctanase, Unassigned)

References

()

Details

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

User Story

platform:android
impact:workflow-broken
affects:all
diagnosis-team:webcompat
configuration:general
branch:release

Attachments

(1 file)

Attached video taobao FF vs Chrome.mp4

Environment:
Operating system: OnePlus 6 A6000 (Android 11)
Firefox version: Nightly 125.0a1-20240306095835

Steps to reproduce:

  1. Go to https://main.m.taobao.com
  2. Tap on the search bar.
  3. Tap again on the search bar when redirected.
  4. Search for anything.
  5. Observe the login page.

Expected Behaviour:
The buttons are displayed on the login page.

Actual Behaviour:
The buttons are missing from the login page.

Notes:

  1. Screen rec attached
  2. Reproducible on Firefox Release as well
  3. Reproducible regardless of the ETP status
  4. Not reproducible on Chrome
  5. Workaround: refreshing the page displays it correctly
  6. The search page is also broken until the login page is refreshed (home icon missing from the header)
  7. Issue found during WebCompat team [Top100] websites testing
Component: Mobile → Site Reports
Severity: -- → S2
User Story: (updated)
Priority: -- → P1
User Story: (updated)

So these elements are there, but they're inside a 100%-height-iframe which lives inside of this element in the top-level page:

<div style="
  transform: scale(1) translateZ(0px);
  transform-origin: 0px 0px 0px;
  width: 414px; height: 468px;
  z-index: 2147483647;
  position: fixed; left: 0px; top: 0px;
  background: rgb(255, 255, 255);
  display: block;"
  class="J_MIDDLEWARE_FRAME_WIDGET">

This element has a limited height (note height: 468px;) which the iframe takes on via its 100% height; and that isn't tall enough to show all of the content, so the buttons overflow off the bottom of the iframe and don't end up being visible.

If I reload the login page after hiding the keyboard, then it renders just fine, and this J_MIDDLEWARE_FRAME_WIDGET element has height:788px instead.

I think the issue is that the page is sizing this J_MIDDLEWARE_FRAME_WIDGET element to fit the available screen space, measured via some sort of JS query of the page layout. And at-the-moment-of-pageload, the on-screen-keyboard is taking up half the screen, so the J_MIDDLEWARE_FRAME_WIDGET element ends up using a size that's much smaller than the actual screen.

I haven't debugged their JS to see how they come up with their magic specified-height for this J_MIDDLEWARE_FRAME_WIDGET element (whether 788px or 468px), but given that this is about the keyboard stealing screen real-estate from an element that's meant to be ~full-screen, I'd bet this is a version of bug 1007286. (See e.g. testcases on my dupe bug 1826410.)

Daniel is right. I tried the site on my local built Fenix with the patch series for bug 1831649 and an additional change to make resizes-visual as the default interactive-widget value, it works fine.

Depends on: 1884807
No longer depends on: 1007286

Calin, can you try reproducing on Nightly?

Flags: needinfo?(ctanase)
Depends on: 1916002

No longer reproduces on the latest Nightly.

Environment:
Operating system: OnePlus 6 A6000 (Android 11)
Firefox version: Nightly 132.0a1-20240904095513

Flags: needinfo?(ctanase)
Status: NEW → RESOLVED
Closed: 2 months ago
Resolution: --- → WORKSFORME

Reopening as discussed in bug 1842574 comment 11, to reflect that the release version is still affected until bug 1916002 is fixed.

Status: RESOLVED → REOPENED
Resolution: WORKSFORME → ---
User Story: (updated)
Priority: P1 → P3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: