jsm

Addon SDK error getting devtools module

。_饼干妹妹 提交于 2020-01-04 09:29:14
问题 I'm adding this code to a Addon-SDK addon: var {devtools} = Cu.import("resource://gre/modules/devtools/Loader.jsm", {}); var {WebConsoleFrame} = devtools.require("devtools/webconsole/webconsole"); Although this works in a normal (old style) addon, with cfx run I get: ModuleNotFoundError: unable to satisfy: require(devtools/webconsole/webconsole) from (thefilename.js) To clarify, I'm trying to add those 2 lines into here: https://github.com/DavidBruant/usefulStackTrace/blob/master/lib

Get path from FileDescriptor in Java

邮差的信 提交于 2019-12-07 20:08:39
问题 Some quick background on my problem: I'm writing a compiler that converts Domain Type Enforcement specs into Java Security Manager code. In a nutshell, DTE defines "types" (objects), assigns paths to those types; then defines "domains" (subjects), and defines what permissions (rwxdc) domains have to various types. I need to emulate this behavior as closely as possible in the JSM. Currently I'm working on write permissions. I've overridden the JSM's checkWrite(String filename) method