Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

developer.salesforce.com - "Type" and "Products" drop-down menus do not work #112756

Open
webcompat-bot opened this issue Oct 22, 2022 · 4 comments
Assignees
Labels
browser-firefox-mobile browser-focus-geckoview depends-blink issue caused by Blink diagnosis-priority-p1 engine-gecko The browser uses the Gecko rendering engine priority-normal severity-critical The site or core functionality is unusable, or you would probably open another browser to use it.
Milestone

Comments

@webcompat-bot
Copy link

webcompat-bot commented Oct 22, 2022

URL: https://developer.salesforce.com/code-samples-and-sdks

Browser / Version: Firefox Mobile 106.0
Operating System: Android 12
Tested Another Browser: Yes Chrome

Problem type: Site is not usable
Description: Buttons or links not working
Steps to Reproduce:
"Type" and "Products" drop-downs do not drop down on click. Disabled all tracking protections in hope an important script was blocked but still no change

View the screenshot Screenshot
Browser Configuration
  • gfx.webrender.all: false
  • gfx.webrender.blob-images: true
  • gfx.webrender.enabled: false
  • image.mem.shared: true
  • buildID: 20221010181815
  • channel: release
  • hasTouchScreen: true
  • mixed active content blocked: false
  • mixed passive content blocked: false
  • tracking content blocked: false

View console log messages

From webcompat.com with ❤️

@webcompat-bot webcompat-bot added the action-needsmoderation The moderation has not yet been completed label Oct 22, 2022
@webcompat-bot webcompat-bot added this to the needstriage milestone Oct 22, 2022
@webcompat-bot webcompat-bot added the browser-fixme This requires manual assignment for the browser name label Oct 22, 2022
@webcompat-bot webcompat-bot changed the title In the moderation queue. developer.salesforce.com - site is not usable Oct 24, 2022
@webcompat-bot webcompat-bot added browser-focus-geckoview engine-gecko The browser uses the Gecko rendering engine priority-important and removed browser-fixme This requires manual assignment for the browser name action-needsmoderation The moderation has not yet been completed labels Oct 24, 2022
@sv-calin
Copy link

sv-calin commented Oct 24, 2022

Thank you for reporting this issue, I was able to reproduce it.

salesforce

Tested on:
• Browser / Version: Firefox Focus 106.0-20221010181815 / Firefox Nightly 108.0a1-20221023100414 / Firefox Release 106.0-20221010181815 / Chrome 106.0.5249.126
• Operating System: OnePlus 6 A6000 (Android 11) - 1080 x 2280 pixels, 19:9 ratio (~402 ppi pixel density) / Samsung Galaxy S8 (Android 9) - 1440 x 2960 pixels, 18.5:9 ratio (~570 ppi density)

Notes:

  1. Reproducible on both Firefox Release and Nightly as well, regardless of the ETP status
  2. Not reproducible on Chrome

Moving to Needsdiagnosis.

[qa_43/2022]

@sv-calin sv-calin added priority-normal severity-critical The site or core functionality is unusable, or you would probably open another browser to use it. browser-firefox-mobile and removed priority-important labels Oct 24, 2022
@sv-calin sv-calin changed the title developer.salesforce.com - site is not usable developer.salesforce.com - "Type" and "Products" drop-down menus do not work Oct 24, 2022
@sv-calin sv-calin modified the milestones: needstriage, needsdiagnosis Oct 24, 2022
@ksy36
Copy link
Contributor

ksy36 commented Oct 25, 2022

The issue also reproducible in Safari. There seems to be a difference with how .offsetParent of a shadow dom element child (<div class="popover-container">) is detected in this function:

function yt(t) {
  return M$2(t) && getComputedStyle(t).position !== 'fixed' ? t.offsetParent : null
}

It is used in calculations to position the box with options.

In Chrome .offsetParent of <div class="popover-container"> is a positioned element inside a different shadow root (<div class="section align-left">):

Screen Shot 2022-10-25 at 3 48 14 PM

And in Firefox it's a positioned ancestor of the normal non shadow tree:

Screen Shot 2022-10-25 at 3 52 56 PM

According to w3c/csswg-drafts#159, .offsetParent shouldn't leak a node inside a shadow tree, so Firefox behaviour appears to be correct.

This is a duplicate https://bugs.chromium.org/p/chromium/issues/detail?id=920069 which is currently being worked on.

Interestingly, there is a bug that requests shadow tree elements be accessible by querying .offsetParent (basically what Chrome is doing now and not the new behaviour). Not sure what the state of it though.

I have tested Chrome with --enable-features=OffsetParentNewSpecBehavior flag from https://bugs.chromium.org/p/chromium/issues/detail?id=1334556#c12 and it matches Firefox and Safari. Let's close this as a duplicate.

@ksy36 ksy36 closed this as completed Oct 25, 2022
@ksy36 ksy36 modified the milestones: needsdiagnosis, duplicate Oct 25, 2022
@ksy36 ksy36 added the depends-blink issue caused by Blink label Oct 25, 2022
@ksy36
Copy link
Contributor

ksy36 commented Oct 25, 2022

FWIW, we could probably contact the site to see if they can change this since it's also broken in Safari

@ksy36 ksy36 modified the milestones: duplicate, needscontact Oct 25, 2022
@webcompat-bot
Copy link
Author

@ksy36 ksy36 reopened this Jan 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
browser-firefox-mobile browser-focus-geckoview depends-blink issue caused by Blink diagnosis-priority-p1 engine-gecko The browser uses the Gecko rendering engine priority-normal severity-critical The site or core functionality is unusable, or you would probably open another browser to use it.
Projects
None yet
Development

No branches or pull requests

3 participants