本文介绍了HTA的;使用其他浏览器来承载?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果微软对使用IE作为本地主机HTA当时的方法,我可以用其它浏览器呢?

If Microsoft's method for using IE as a local host for HTA's then, can I use any other browser instead?

推荐答案

您不能。

有一个类似的Mozilla项目命名为,但只HTA在Internet Explorer中的工作 - 这两种技术都没有兼容。

There is a similar Mozilla project named XULRunner, but HTA only works in Internet Explorer - the two technologies aren't compatible.

要明确这一点:HTA的可能不会在任何非IE浏览器即可。是的,HTA是在一个窗口中浏览器的控制,但它也有正常的aplication权限(即访问文件系统,注册表,arbirary code执行等)。当在浏览器中运行,这些特权被剥夺(有很好的理由 - 你不想只是任何网页阅读您的文件)。

To make this clear: HTA will probably not work in anything that's not IE. Yes, HTA is a browser control in a window, but it also has normal aplication privileges (i.e. filesystem access, registry, arbirary code execution etc.). When running in a browser, these privileges are denied (for good reasons - you don't want just any webpage to read your files).

因此​​,在浏览器中启动HTA的工作,但与本地系统的互动将失败,这否定了这个念头。在启动一个XULRunner的HTA也会失败,因为XULRunner的使用完全不同的API。

So, launching the HTA in a browser will work, but any interaction with the local system will fail, which negates the whole idea. Launching a HTA in XULRunner will also fail, because XULRunner uses a completely different API.

这可能可能的工作是这个问题的唯一方案:web应用程序不使用任何HTA特定的或XULRunner的特定的API(即行为就像一个普通的浏览器应用程序)。在这种情况下,你的应用程序可能会与HTA,XULRunner的工作,以及在任何浏览器。顺便说一句,这将带走任何优势利用HTA和介绍,因为更高的特权masive安全漏洞;你会使用谷歌浏览器或Mozilla棱镜对于更好。

The only scenario that could possibly work is this: a webapp which doesn't use any of the HTA-specific or XULRunner-specific API (i.e. behaves like a normal browser app). In such case, your app might work with HTA, XULRunner, as well as in any browser. Incidentally, this would take away any advantage of using HTA and introduce masive security holes because of the higher privileges; you'd be better off with using Google Chrome or Mozilla Prism for that.

(我们一直在试图寻找了一段时间的跨浏览器解决方案,并HTA绝对不是吧)

(We've been trying to find a cross-browser solution for some time, and HTA is definitely not it)

这篇关于HTA的;使用其他浏览器来承载?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

11-02 21:18