Replies: 3 comments
-
Just to note, for my use case — a web extension — there is a special API to allow managing downloads. Though, this requires a special permission with excessive access and as a result a misleading warning that I'll manage downloads, not just download a file. And for a regular website, there is no API what-so-ever, AFAIK |
Beta Was this translation helpful? Give feedback.
-
Thank you for flagging this use case, I think there's an actual issue with the rule. Do you happen to use |
Beta Was this translation helpful? Give feedback.
-
Yes, I put an ObjectURL string in there |
Beta Was this translation helpful? Give feedback.
-
Hi! I've wrote a custom context menu that has a link (I repent, it's stylized as a button) with the purpose of downloading a file — this is done by specifying the
download
attribute. There is also anonClick
handler that hides the context menu after the click — this is caught by theuseValidAnchor
rule, that says I should use abutton
element for such a use case. But then I wont be able to download a file — there is neither an alternative attribute for thebutton
, nor a programmatic way to achieve this. Unless this hackery counts.So, maybe this rule shouldn't be forced onto
a
's with adownload
attribute?Beta Was this translation helpful? Give feedback.
All reactions