-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
hide download button for public preview of audio files #27674
hide download button for public preview of audio files #27674
Conversation
cc @nextcloud/server please review |
The |
|
Yes, it was more about adding code that doesn't follow standards, even if it doesn't break anything that bothered me. It means support for it can be changed/removed at any time. Opera & Edge use the same rendering engine as Chrome, so their support will always be the same than Chrome (except for feature flags activated at different times). |
Is there maybe another flag that could be added that follows standards? |
The "download" button is only implemented by Chrome (or Chromium based browsers), correct? Additional discussion on this topic in the "HTML Standard" repository |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just tested the patch successfully and it works on Chromium based browsers. 👍
The download option doesnt get shown in firefox either way so it doesnt need to work in firefox.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me :) @skjnldsv @blizz @artonge @juliushaertl @ChristophWurst @eneiluj @ArtificialOwl @icewind1991 thoughts?
Please address correctly @blizzz
Sent from Yahoo Mail on Android
On Fri, Jun 25, 2021 at 5:44 PM, ***@***.***> wrote:
@Pytal approved this pull request.
Looks good to me :) @skjnldsv @blizz @artonge @juliushaertl @ChristophWurst @eneiluj @ArtificialOwl @icewind1991 thoughts?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Not sure about how useful this is.
But, if this comes with a comment pointing to this PR or other relevant info that adds context, then I won't oppose :). |
I'd be ok getting this in as it would fit the "hide download" feature which is kind of controversial anyways, as it always was ment to just affect UI elements since there is no real way we can be sure that downloading is not possible anymore (right click, network console, screenshotting, ...) The PR properly hides the element where it is shown, which is chromium only anyways. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So basically IIRC, @fstorz please add a comment that points to the discussion here in the code and everybody should be fine :)
FWIW: This is what Gmail "Confidential Emails" does. One can still bypass this with the developer console, but it is about making it harder :) |
@fstorz any update here? :) |
@szaimen is there any best practice in the nextcloud repo to add such a comment? Sample 1
Sample 2
|
Maybe @LukasReschke or @juliushaertl can comment on this one ⬆️? Thanks! :) |
Both methods would be ok to me. I'd probably tend more to 1. |
This comment has been minimized.
This comment has been minimized.
When the option to hide downloads was selected at public link creation, the download button can be hidden by the audio html attribute controlsList="nodownload" Signed-off-by: Florian Storz <[email protected]>
PR contains discussion about the implementation with pros and cons Signed-off-by: Florian Storz <[email protected]>
Signed-off-by: Florian Storz <[email protected]>
/backport to stable22 |
/backport to stable21 |
/backport to stable20 |
Thanks for your first pull request and welcome to the community! Feel free to keep them coming! If you are looking for issues to tackle then have a look at this selection: https://github.com/nextcloud/server/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22 |
/backport to stable21 |
/backport to stable20 |
When the option to hide downloads was selected at public link creation, the download button can be hidden by the audio html attribute controlsList="nodownload"
closes #26086
closes #27872
code was not tested, due to lack of local php setup