Open Bug 1766973 Opened 3 years ago Updated 3 years ago

Inconsistency of browser configuration across OS variants

Categories

(Core :: DOM: Core & HTML, enhancement)

Firefox 99
enhancement

Tracking

()

UNCONFIRMED

People

(Reporter: vanja.vidovic, Unassigned)

Details

Attachments

(1 file)

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.

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.

Component: Untriaged → DOM: Core & HTML
Product: Firefox → Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: