Inconsistency of browser configuration across OS variants
Categories
(Core :: DOM: Core & HTML, enhancement)
Tracking
()
People
(Reporter: vanja.vidovic, Unassigned)
Details
Attachments
(1 file)
|
59.94 KB,
image/png
|
Details |
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:99.0) Gecko/20100101 Firefox/99.0
Steps to reproduce:
There is a basic difference between browsers on Windows and Linux( Ubuntu 22.04 ) operating systems.
Default behavior on Windows (clean installation) is that files are automatically downloaded in Download folder.
Default behavior on Linux ( clean installation ) is that Save As dialog is raised.
Is there a way to programmatically raise the Save As dialog. For instance this is a snippet that generates a link with few of the options tested:
There is a basic difference between browsers on Windows and Linux( Ubuntu 22.04 ) operating systems.
Default behavior on Windows (clean installation) is that files are automatically downloaded in Download folder.
Default behavior on Linux ( clean installation ) is that Save As dialog is raised. Default Ubuntu 22.04 Save As Chrome
Yes I'm aware that you can configure your browser and enable the feature on Windows operating system. But from UX perspective that is one step too many.
Is there a way to programmatically raise the Save As dialog. For instance this is a snippet that generates a link with few of the options tested:
download(url, downloadName) {
const a = document.createElement('a');
a.href = url;
a.style.display = 'none';
// a.download = '';
a.download = downloadName;
a.target = '_blank';
a.type = 'application/unknown';
document.body.appendChild(a);
a.click();
document.body.removeChild(a);
window.URL.revokeObjectURL(url);
}
Actual results:
Browser works as expected, the issues is that it is not possible to ensure same UX across OS versions.
Comment 1•3 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::DOM: Core & HTML' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Description
•