Details
-
Suggestion
-
Resolution: Done
-
P3: Somewhat important
-
None
-
None
-
0f20780db00950f48899b698d05a33c45f3e1d14
Description
It would be great to have some kind of API to manually trigger a download of a given URL, for example to download adblocking lists when implementing an adblocker.
Another use case would be to allow an user to download a link via other means than a context menu.
void WebContentsAdapter::download(const QUrl &url, const QString &suggestedFileName) already exists, so I think all it'd take is to make that some kind of public API, instead of only allowing it to be used via QWebEnginePage::triggerAction and context menu data.
Attachments
For Gerrit Dashboard: QTBUG-55944 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
173894,1 | Add method for triggering downloads | dev | qt/qtwebengine | Status: ABANDONED | -1 | 0 |
198880,7 | Add method for triggering downloads | dev | qt/qtwebengine | Status: MERGED | +2 | 0 |
200565,1 | Add method for triggering downloads | 5.9 | qt/qtwebengine | Status: ABANDONED | 0 | 0 |