mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-16 23:05:42 +00:00
31ddf22a6f
Given that this is just the phony compilation global we're dealing with, the only thing relevant about this script context is that it defaults to the right compartment. But we can do that manually with the SafeJSContext. The CanExecuteScripts check was something I added to address review comments in bug 901162 comment 8. I now realize that it's effectively a no-op, because the nsIScriptContext here corresponds to the compilation scope, not the document, so it will never have script disabled. |
||
---|---|---|
.. | ||
content | ||
document | ||
templates | ||
moz.build |