Open Bug 1950301 Opened 29 days ago Updated 5 days ago

shamir.com - Missing content from the page

Categories

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

Desktop
Windows 11

Tracking

(Webcompat Score:2, Webcompat Priority:P2)

ASSIGNED
Webcompat Score 2
Webcompat Priority P2

People

(Reporter: rbucata, Assigned: twisniewski)

References

()

Details

(4 keywords, Whiteboard: [webcompat-source:web-bugs])

User Story

platform:windows,mac,linux,android
impact:site-broken
configuration:general
affects:all
branch:release
user-impact-score:200
diagnosis-team:webcompat

Attachments

(2 files)

Environment:
Operating system: Windows 11
Firefox version: Firefox 135.0.1 (64-bit)

Steps to reproduce:

  1. Navigate to: https://shamir.com/my/lenses_and_more/shamir-autograph-intelligence/
  2. Observe the section

Expected Behavior:
Sections are populated with text and images

Actual Behavior:
Sections are blank

Notes:

  • Reproduces regardless of the status of ETP
  • Reproduces in firefox-nightly, and firefox-release
  • Does not reproduce in chrome

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

Attached video Chr vs FF

It works if add-ons Chrome Mask is enabled.

Severity: -- → S2
User Story: (updated)
Webcompat Priority: --- → P2
Webcompat Score: --- → 6
Priority: -- → P2
User Story: (updated)

This page behaves rather oddly. It doesn't show me its content on Chrome either after a page-refresh, until I do some sort of user-interaction (click, scroll, press a key). Until then, the content is hidden with opacity:0:

<div class="col-lg-6 text-left" data-aos-duration="800" data-delay="100" data-aos="fade-up" data-aos-anchor-placement="top-bottom">

It seems to be shown only after rocket-DOMContentLoaded is fired, but that event never seems to fire in Firefox for whatever reason:

            o.fn.ready = o.fn.init.prototype.ready = function (e) {
              return t.domReadyFired ? e.bind(document) (o) : document.addEventListener('rocket-DOMContentLoaded', (() => e.bind(document) (o))),
              o([])
            },

Playing around a bit, if I have the string Firefox in the UA string in RDM while Chrome Mask is running, then it breaks again, which lead be to this code in their RocketLazyLoadScripts stuff:

                if (
                  navigator.userAgent.indexOf('Firefox/') > 0 ||
                  '' === navigator.vendor ||
                  this.CSPIssue
                )

And indeed, if I make an intervention which changes Firefox to FireFox in the UA string, and sets navigator.vendor to Mozilla (or any value), it seems to consistently work, so this is likely the code which is causing the issue somehow. But I can't quite grok why, so for now I'll just ship that intervention, and we should probably reach out to them and confirm if this is just a problem with their site specifically, or the Rocket lazy loader itself.

Keywords: leave-open
Assignee: nobody → twisniewski
Status: NEW → ASSIGNED
Pushed by twisniewski@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/9d889bf0cdd4 add a JS UA intervention for shamir.com; r=denschub,webcompat-reviewers
Webcompat Score: 6 → 3
Webcompat Score: 3 → 2

Removing the needs-diagnosis keyword -- it looks like this is already largely diagnosed as being several forms of UA-sniffing, and we've managed to sitepatch it, and we've got it flagged as needs-contact to see if the site can fix/remove their UA-specific codepaths. I don't think there's further diagnosis that'd make sense to do at this point.

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

Attachment

General

Creator:
Created:
Updated:
Size: