为.mht文件启用脚本? [英] Enabling scripts for .mht-files?
问题描述
在'file:/// C中阻止执行脚本
Everytime I load a MHT in Google Chrome, I get following error:
每次我在Google Chrome中加载MHT时, :/ ...',因为该文档的框架已经过沙盒处理,并且没有设置'allow-scripts'的权限。
Blocked script execution in 'file:///C:/...' because the document's frame is sandboxed and the 'allow-scripts' permission is not set.
我知道 allow-scripts
是 iframe的值的
sandbox
属性,所以我不能将它的值设置为 allow-scripts
,因为顶部框架似乎是一个内部框架。当使用 file:///
加载文件时,此内部框架仅添加 sandbox
属性。 是否有方法允许脚本在不使用 http://
?
I know that allow-scripts
is a value for the iframe
's sandbox
attribute, so I can't set its value to allow-scripts
, because the top frame seems to be an internal frame. And this internal frame only adds the sandbox
attribute, when loading files with file:///
. Is there a way to allow scripts to run without using http://
?
我也尝试在开发工具的设置中取消选中禁用JavaScript ,但此复选框变灰。
I also tried to uncheck Disable JavaScript in the settings of the Development Tools, but this checkbox was greyed out.
推荐答案
这似乎是一个已知的错误: https://code.google.com/p/chromium/issues/detail?id=439832
This seems to be a known bug: https://code.google.com/p/chromium/issues/detail?id=439832
这篇关于为.mht文件启用脚本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!