开发者

How to hook the download dialog in a Firefox extension?

开发者 https://www.devze.com 2023-01-13 02:15 出处:网络
I\'m writing a Firefox extension and I need to hook the download dialog that comes up when the user tries to download a file.

I'm writing a Firefox extension and I need to hook the download dialog that comes up when the user tries to download a file.

In other words, I need a script-defined function to be notified instead of the dialog appearing as normal.

Where do I begin? I tried reading thr开发者_JAVA技巧ough the XPCOM API Reference... but this is the closest thing I could find.


You need to override nsIDownloadManagerUI (by implementing it).

0

精彩评论

暂无评论...
验证码 换一张
取 消