"Copy Link" context menu copies title instead of URL for HTML5 Video
Categories
(Firefox for Android :: Browser Engine, defect, P1)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox144 | --- | verified |
People
(Reporter: csadilek, Assigned: avirvara)
References
Details
(Whiteboard: [fxdroid][group1])
Attachments
(1 file)
From github: https://github.com/mozilla-mobile/fenix/issues/18979.
Steps to reproduce
- Find an HTML5 video on the Internet. Sample one on this page
https://www.edcint.co.nz/public/data/firefox/index.shtml- Long press video (context menu appears)
- tap "Copy Link"
- go to a place/app where you can paste, then paste the link you copied
Expected behavior
the URL of the video is pasted (as experienced in the Windows desktop version of Firefox from the "Copy Video Location" context menu)
Actual behavior
the title attribute of the video is pasted
Device information
v87.0.0-rc.1 Build#2015799099
┆Issue is synchronized with this Jira Task
Change performed by the Move to Bugzilla add-on.
Comment 1•3 years ago
|
||
The severity field is not set for this bug.
:cpeterson, could you have a look please?
For more information, please visit auto_nag documentation.
Updated•3 years ago
|
Comment 2•3 years ago
|
||
Ref:
android-components/components/feature/contextmenu/src/main/java/mozilla/components/feature/contextmenu/ContextMenuCandidate.kt
internal fun HitResult.getLink(): String = when (this) {
is HitResult.UNKNOWN -> src
is HitResult.IMAGE_SRC -> uri
is HitResult.IMAGE ->
if (title.isNullOrBlank()) {
src.takeOrReplace(MAX_TITLE_LENGTH, "image")
} else {
title.toString()
}
is HitResult.VIDEO ->
if (title.isNullOrBlank()) src else title.toString()
is HitResult.AUDIO ->
if (title.isNullOrBlank()) src else title.toString()
else -> "about:blank"
}
Currently , so if is VIDEO and title is not null , use title.
We should divide this to "Copy Link" and "Copy Link Text".
Updated•2 years ago
|
Comment 3•2 years ago
|
||
Jeff says this would be easy to fix. We only want to copy the link URL, not the link text.
Comment 4•2 years ago
|
||
Clearing Priority so we can reprioritize these bugs relative to our ux-fun-2024 bugs.
Updated•2 years ago
|
Updated•2 years ago
|
Comment 7•1 year ago
|
||
Redirect a needinfo that is pending on an inactive user to the triage owner.
:boek, since the bug has high priority and recent activity, could you have a look please?
For more information, please visit BugBot documentation.
Updated•1 year ago
|
| Assignee | ||
Updated•1 year ago
|
| Assignee | ||
Comment 8•1 year ago
|
||
Updated•1 year ago
|
Comment 10•1 year ago
|
||
| bugherder | ||
| Assignee | ||
Updated•1 year ago
|
Comment 11•1 year ago
|
||
Verified as fixed on the latest Firefox for Android Nightly 144.0a1 from 9/13 with a Samsung Galaxy S24 (Android 15), and an OnePlus 5T (Android 10).
Description
•