简体   繁体   English

通过iframe下载Internet Explorer 9-11失败

[英]Internet Explorer 9-11 download via iframes started failing

I work on an older website that has been functioning for years and after a recent Internet Explorer update we have a iframe based download stop working in IE9-11 most of the time from external networks. 我在一个已经运行了多年的较旧的网站上工作,并且在最近的Internet Explorer更新之后,我们大部分时间都从外部网络在IE9-11中停止基于iframe的下载。 It always works fine from our internal network. 在我们的内部网络中,它始终可以正常运行。 If we add the site to Trusted Sites it starts working again but that's not going to be a viable solution for our customers. 如果我们将站点添加到“受信任的站点”,它将再次开始工作,但这对于我们的客户而言并不是可行的解决方案。

Would adding a P3P policy to the site correct this issue or is there something else we need to do? 将P3P策略添加到网站是否可以解决此问题,或者我们还需要做其他事情吗?

Now this is weird. 现在这很奇怪。 This is a very old app and apparently sometimes the latter half of the page would take just a little too long to load and IE was firing the domready event before the entire page loaded so the download click handler wasn't able to attach to the bottom controls. 这是一个非常老的应用程序,显然页面的后半部分加载时间可能太长,IE在整个页面加载之前就触发了domready事件,因此下载点击处理程序无法附加到底部控件。

We moved the init from domready to load and added a little more delay and the problem stops happening. 我们将init从domready转移到了load,并增加了一些延迟,并且问题不再发生。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM