Open Bug 1997292 Opened 1 year ago Updated 19 days ago

homebrewery.naturalcrit.com - Some elements get overlapped and rendering warning is displayed

Categories

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

Firefox 146
Desktop
Windows 10

Tracking

(Webcompat Priority:P3, Webcompat Score:1, firefox144 affected, firefox145 affected, firefox146 affected)

ASSIGNED
Webcompat Priority P3
Webcompat Score 1
Tracking Status
firefox144 --- affected
firefox145 --- affected
firefox146 --- affected

People

(Reporter: ctanase, Assigned: twisniewski)

References

(Depends on 1 open bug, )

Details

(4 keywords, Whiteboard: [webcompat-source:web-bugs][autowebcompat:repro-success][autowebcompat:processed])

User Story

user-impact-score:0
platform:windows,mac,linux,android
impact:unsupported-warning
configuration:general
affects:all
branch:release
diagnosis-team:layout
autowebcompat-repro-status:success
autowebcompat-repro-chrome-mask-fixed:true
autowebcompat-repro-channels:nightly,stable,esr
autowebcompat-repro-report-os:all
autowebcompat-diagnosis-status:success
autowebcompat-intervention-status:success

Attachments

(3 files, 1 external file)

Environment:
Operating system: Linux/Windows 10
Firefox version: Firefox 144.0/146

Steps to reproduce:

  1. Go to https://homebrewery.naturalcrit.com/
  2. Check the bottom of the first page (on the right split)
  3. Content is overlapped.

Expected Behavior:
Content is rendered correctly.

Actual Behavior:
Elements are overlapped. (Render warning also displayed)

Notes:

Created from https://github.com/webcompat/web-bugs/issues/185455

Attached image image.png —
Version: unspecified → Firefox 146

Since nightly and release are affected, beta will likely be affected too.
For more information, please visit BugBot documentation.

User Story: (updated)
Webcompat Score: --- → 1

Possible intervention, maybe? https://github.com/webcompat/web-bugs/issues/81930#issuecomment-919649097

But let's treat this as a layout issue for now, check why there are rendering differences. If we can fix those, we can approach the site and ask them to remove the warning since it would then work. :)

Severity: -- → S3
User Story: (updated)
Webcompat Priority: --- → P3
Webcompat Score: 1 → 3
Priority: -- → P3
Whiteboard: [webcompat-source:web-bugs] → [webcompat-source:web-bugs][autowebcompat:processed]
User Story: (updated)
Whiteboard: [webcompat-source:web-bugs][autowebcompat:processed] → [webcompat-source:web-bugs][autowebcompat:processed][autowebcompat:repro-success]

In Firefox the site shows a "Render Warnings — Built for Chrome" popup that overlays the top-right of the rendered brew preview, telling users other browsers are untested. Chrome never gets this popup. The element-overlap part of the report no longer reproduces: on the current site version (V3.22.0) the \column break is honoured and page 1 lays out identically in both browsers.

User Story: (updated)
Whiteboard: [webcompat-source:web-bugs][autowebcompat:processed][autowebcompat:repro-success] → [webcompat-source:web-bugs][autowebcompat:repro-success][autowebcompat:diagnose]
Whiteboard: [webcompat-source:web-bugs][autowebcompat:repro-success][autowebcompat:diagnose] → [webcompat-source:web-bugs][autowebcompat:repro-success][autowebcompat:diagnosis-in-progress]

Root cause analysis generated by autowebcompat bot:

The site checks the browser by name. The Homebrewery RenderWarnings React component (in /main/main-wGRLnuvI.js) has a warnings.chrome check that runs if (!(/Chrome/.test(navigator.userAgent) && /Google Inc/.test(navigator.vendor))). When that test fails, it renders a .renderWarnings popup reading "Built for Chrome — Other browsers have not been tested for compatibility…". Firefox's UA string doesn't contain "Chrome" and its navigator.vendor is "", so the popup always shows in Firefox and covers the top-right of the brew preview. Chrome passes the check, so it never sees the popup.

This is not a difference in how the browser engines work. The page layout matches in both browsers: there is no overlap, and the \column break is honoured. The overlap in the original report is not reproducible on the current site version.

Evidence:

In the site bundle: warnings:{chrome:function(){if(!(/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor)))return ... 'Built for Chrome ' ... 'Other browsers have not been tested for compatibility...'

Reproduction script, 3 runs per browser. Firefox: unsupportedWarning:true, warningOverlapsPreview:true, 0/3 working. Chrome: unsupportedWarning:false, 3/3 working.

Page 1 layout matched in both browsers: pageWidth:816, headingColumnX:425 (the #v3-vs-legacy heading is in the right column), columnBreakHonoured:true. No engine layout difference was seen, so there is no reduced testcase.


If you'd like to provide feedback on diagnosis, please use the 👍 or 👎 reaction.

User Story: (updated)
Whiteboard: [webcompat-source:web-bugs][autowebcompat:repro-success][autowebcompat:diagnosis-in-progress] → [webcompat-source:web-bugs][autowebcompat:repro-success]

Let's try to make a hide_messages or CSS-only intervention here to remove the banner, and try to avoid a UA override.

User Story: (updated)
Whiteboard: [webcompat-source:web-bugs][autowebcompat:repro-success] → [webcompat-source:web-bugs][autowebcompat:repro-success][autowebcompat:processed]
Whiteboard: [webcompat-source:web-bugs][autowebcompat:repro-success][autowebcompat:processed] → [webcompat-source:web-bugs][autowebcompat:repro-success][autowebcompat:processed][autowebcompat:intervention]
Whiteboard: [webcompat-source:web-bugs][autowebcompat:repro-success][autowebcompat:processed][autowebcompat:intervention] → [webcompat-source:web-bugs][autowebcompat:repro-success][autowebcompat:processed][autowebcompat:intervention-in-progress]

Homebrewery's RenderWarnings component shows a "Built for Chrome" popup over the brew preview to any browser whose UA doesn't contain "Chrome" and whose navigator.vendor isn't "Google Inc". This uses hide_messages to remove the .renderWarnings popup when it contains "Built for Chrome", avoiding a UA override.

User Story: (updated)
Whiteboard: [webcompat-source:web-bugs][autowebcompat:repro-success][autowebcompat:processed][autowebcompat:intervention-in-progress] → [webcompat-source:web-bugs][autowebcompat:repro-success][autowebcompat:processed]
Assignee: nobody → twisniewski
Status: NEW → ASSIGNED
Attachment #9670381 - Attachment description: Bug 1997292 - Add webcompat intervention for homebrewery.naturalcrit.com → Bug 1997292 - Add webcompat intervention for homebrewery.naturalcrit.com; r?ksenia
User Story: (updated)
Keywords: leave-open
Pushed by twisniewski@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/39161fbd8013 https://hg.mozilla.org/integration/autoland/rev/45d893c8a83e Add webcompat intervention for homebrewery.naturalcrit.com; r=ksenia,webcompat-reviewers
User Story: (updated)
Webcompat Score: 3 → 1
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: