Open Bug 1963270 Opened 11 months ago Updated 18 days ago

app.kosmi.io - Missing "Local file" option from the "Select media" pop-up

Categories

(Web Compatibility :: Interventions, defect, P2)

Desktop
Windows 10

Tracking

(Webcompat Priority:P3, Webcompat Score:2, firefox138 affected, firefox139 affected)

ASSIGNED
Webcompat Priority P3
Webcompat Score 2
Tracking Status
firefox138 --- affected
firefox139 --- affected

People

(Reporter: rbucata, Assigned: twisniewski)

References

(Depends on 2 open bugs, )

Details

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

User Story

platform:windows,mac,linux,android
impact:workflow-broken
configuration:general
affects:all
branch:release
diagnosis-team:media
user-impact-score:16

Attachments

(3 files)

Environment:
Operating system: Windows 10
Firefox version: Firefox 139.0

Steps to reproduce:

  1. Navigate to: https://app.kosmi.io/
  2. Perform account login via Google
  3. Create a room
  4. From the room options, select the "Select media" option
  5. Observe the upper left side of the "Select media" pop-up

Expected Behavior:
3 options are present, including the "Local file" option

Actual Behavior:
2 options are present, the "Local file" option is missing

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/154252

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

Not sure, but as a guess: this might depend on the file system access DOM API (bug 1905871) where we have a negative standards-position on, per https://github.com/mozilla/standards-positions/issues/154

--> Reclassifying to diagnosis-team:dom on the basis of that guess to help clear the webcompat team's triage queue, since I think that's the team closest to that API and related features.

User Story: (updated)

The site has code like this

          b = (0, x.useRef) (document.createElement('video'));
          return {
            isMobile: y,
            isIOS: u,
            isAndroid: S,
            isMobileOS: u ||
            S,
            isLandscape: p,
            isBeingEmbedded: I,
            hasScreenshareWithAudio: g,
            canCaptureVideoElement: !!b.current.captureStream,
            supportsRestrictionTarget: !!((d = window.RestrictionTarget) != null && d.fromElement)
          }

It's caused by the canCaptureVideoElement: !!b.current.captureStream. Firefox only supports mozCaptureStream, overriding the script to change it to mozCaptureStream fixes it.

This goes to media team's queue.

User Story: (updated)

Thanks, Sean!

Given comment 3, it looks like we can consider this diagnosed as a form of bug 1541471 (on shipping the captureStream feature). Let's just mark it as-such.

I think there's a chance we could sitepatch this with some hacky JS that does foo.captureStream = foo.mozCaptureStream for some foo (I'm hand-waving a bit, but you get the idea.)

Not sure if our prefixed implementation works or not with this particular site; comment 3 suggests that maybe it does, so it'd probably worth attempting an intervention if someone has the time (given that the underlying bug 1541471 is currently webcompat:blocked-resources).

Keywords: leave-open
Assignee: nobody → twisniewski
Status: NEW → ASSIGNED
Pushed by twisniewski@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/674d600b690d add a JS webcompat intervention for app.kosmi.io so their select-local-media-file option is available; r=denschub,webcompat-reviewers
Webcompat Score: 5 → 2
Regressions: 1967703
User Story: (updated)
Webcompat Priority: P2 → P3

We've shipped captureStream for a while now (bug 1541471), so I'll adjust the intervention to only apply when media.captureStream.enabled is false and on older Firefox versions.

Pushed by twisniewski@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/e693efc4f59f https://hg.mozilla.org/integration/autoland/rev/d350fbdde49b only apply our webcompat intervention for app.kosmi.io when needed; r=webcompat-reviewers,denschub

Reverted this because it was causing mochitests failures in browser_ua_helpers.js.

  • Revert link
  • Push with failures
  • Failure Log
  • Failure line: TEST-UNEXPECTED-FAIL | browser/extensions/webcompat/tests/browser/browser_ua_helpers.js | test_ua_helpers - getDeviceAppropriateChromeUA({"ua":"Linux","config":{"OS":"windows","noFxQuantum":true},"expected":"Mozilla/5.0 (Windows NT 11.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36"}) - Got "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36",
Pushed by twisniewski@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/4ad0b4954e31 https://hg.mozilla.org/integration/autoland/rev/1e809ccca198 only apply our webcompat intervention for app.kosmi.io when needed; r=webcompat-reviewers,denschub
Depends on: 2023672
User Story: (updated)
Component: Site Reports → Interventions
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: