Closed Bug 1682599 Opened 5 years ago Closed 4 years ago

[Bug] Selection Action Menu doesn't work on some videos

Categories

(GeckoView :: Media, defect, P2)

Unspecified
Android
defect

Tracking

(firefox96 fixed)

RESOLVED FIXED
96 Branch
Tracking Status
firefox96 --- fixed

People

(Reporter: petru, Assigned: olivia)

References

Details

(Keywords: good-first-bug, Whiteboard: [geckoview:m93?])

Attachments

(1 file)

From github: https://github.com/mozilla-mobile/fenix/issues/16077.

Steps to reproduce

  • Open a video on ted.com
  • Long press on the video to trigger the Selection Action Menu (also didn't know this existed :) )

Expected behavior

  • User would expect that tapping on SAVE FILE TO DEVICE would save the video.
  • User would expect that tapping on OPEN LINK IN EXTERNAL APP would do something.

Actual behavior

  • Download fails
  • Open link in external app does nothing

Device information

  • Android device: Pixel 4
  • Fenix version: Nightly 201020 and Beta 82.0.0-beta 6

Change performed by the Move to Bugzilla add-on.

This is likely because we don't check that the blob URL is a "valid" one like Firefox Desktop does here: https://searchfox.org/mozilla-central/source/browser/actors/ContextMenuChild.jsm#452

All we have to do is check for URL.isValidURL here: https://searchfox.org/mozilla-central/rev/8883276967d39918e2ce64e873afdd432fb406ca/mobile/android/actors/ContentDelegateChild.jsm#72-75

This https://searchfox.org/mozilla-central/source/browser/actors/ContextMenuChild.jsm#450-456 seems to come down to BlobURLProtocolHandler::HasDataEntry(url)

Priority: -- → P2
Whiteboard: [geckoview:m87]
Severity: -- → S3
Priority: P2 → P1
Priority: P1 → P2
Whiteboard: [geckoview:m87] → [geckoview:m88]
Whiteboard: [geckoview:m88] → [geckoview:m89]
Whiteboard: [geckoview:m89] → [geckoview:m90]
Whiteboard: [geckoview:m90] → [geckoview:m90?]
Whiteboard: [geckoview:m90?] → [geckoview:m91?]
Whiteboard: [geckoview:m91?] → [geckoview:m92?]
Whiteboard: [geckoview:m92?] → [geckoview:m93?]
Assignee: nobody → ohall
Status: NEW → ASSIGNED
Attachment #9248308 - Attachment description: WIP: Bug 1682599 → Bug 1682599
Attachment #9248308 - Attachment description: Bug 1682599 → WIP: Bug 1682599 - Check if media URL is valid before returning it to onContextMenu.
Attachment #9248308 - Attachment description: WIP: Bug 1682599 - Check if media URL is valid before returning it to onContextMenu. → Bug 1682599 - Check if media URL is valid before returning it to onContextMenu.
Pushed by ohall@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/cc36386fed69 Check if media URL is valid before returning it to onContextMenu. r=geckoview-reviewers,agi

Backed out for causing gv-junit failures on requestContextMenuOnVideo.

Push with failures

Failure log for gv-junit
Failure log for gv-junit-e10s-single

Backout link

The fails appeared only on Android 7.0 x86-64 WebRender debug-isolated-process.

Flags: needinfo?(ohall)
Pushed by ohall@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/495da031932f Check if media URL is valid before returning it to onContextMenu. r=geckoview-reviewers,agi
Flags: needinfo?(ohall)
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 96 Branch

Moving some media bugs to the new GeckoView::Media component.

Component: General → Media
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: