Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

Mozilla サポートの検索

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

このスレッドはアーカイブに保管されました。 必要であれば新たに質問してください。

Why do I keep getting asked what to do when downloading a file?

  • 3 件の返信
  • 1 人がこの問題に困っています
  • 3 回表示
  • 最後の返信者: sjd78

more options

When I go to download a virt-viewer connection file from my react app, I keep getting asked when to do even when I have "Do this automatically" checked. When downloading the same kind of file from other webapps, I do not get the dialog box.

How can I avoid the open file dialog box?

The app is using a dynamically generated tag that looks like this:

 <a download="console.vv" href="data:application/x-virt-viewer,___content____"></a>

Any ideas?

When I go to download a virt-viewer connection file from my react app, I keep getting asked when to do even when I have "Do this automatically" checked. When downloading the same kind of file from other webapps, I do not get the dialog box. How can I avoid the open file dialog box? The app is using a dynamically generated tag that looks like this: <a download="console.vv" href="data:application/x-virt-viewer,___content____"></a> Any ideas?
添付されたスクリーンショット

この投稿は sjd78 により に変更されました

すべての返信 (3)

more options

Here is what the dialog looks like

more options

Maybe specify the type also via the type attribute.

  • type="application/x-virt-viewer"
more options

I tried adding the type attribute on the a tag but the behavior is the same.

Although, when I change the default behavior to save the file, the dialog prompt doesn't appear. The prompt only seems to appear when "Do this automatically" is not checked or if it is checked, when the A's href is a dataurl.