Search code examples
javascriptgoogle-chromerestrictionmhtml

Enabling scripts for .mht-files?


Everytime I load a MHT in Google Chrome, I get following error:

Blocked script execution in 'file:///C:/...' because the document's frame is sandboxed and the 'allow-scripts' permission is not set.

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://?

I also tried to uncheck Disable JavaScript in the settings of the Development Tools, but this checkbox was greyed out.


Solution

  • This seems to be a known bug: https://code.google.com/p/chromium/issues/detail?id=439832