A jsm file is a javascript module file as used by mozilla. The contained code is plain old javascript, but the jsm file extension indicates that the file defines a module.
Questions tagged [jsm]
19 questions
9
votes
5 answers
Caused by: org.springframework.jms.support.converter.MessageConversionException: Could not find type id property [_type] on message
I am trying this spring JMS sample, and it gives error.
https://spring.io/guides/gs/messaging-jms/
Caused by: org.springframework.jms.support.converter.MessageConversionException: Could not find type id property [_type] on message from…

Imran
- 1,732
- 3
- 21
- 46
6
votes
2 answers
How best for a Firefox extension to avoid polluting the global namespace?
I've been reading up on global namespace pollution when developing an extension for Firefox, and I want to avoid it as much as possible in my extension. There are several solutions, but generally, the solutions seem to center around only declaring…

Jez
- 27,951
- 32
- 136
- 233
4
votes
4 answers
Get path from FileDescriptor in Java
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),…

walker
- 55
- 1
- 1
- 7
2
votes
1 answer
Firefox extension JSMs and namespace ettiquite
So in Firefox extensions it's encouraged for your extension's objects to live in sub-objects like com.contoso.myExtension . That way you have not put any objects in the global namespace and extensions generally stay out of each other's hair. (At…

RandomEngy
- 14,931
- 5
- 70
- 113
2
votes
2 answers
Can I load custom jsm modules in bootstrap.js of a restartless add-on?
I'm trying to load a custom module in a restartless add-on, using the following:
chrome/content/modules/Test.jsm:
var EXPORTED_SYMBOLS = [ 'Test' ];
let Test = {};
chrome.manifest:
content test chrome/content/
bootstrap.js:
const Cu =…

Codifier
- 354
- 1
- 14
2
votes
2 answers
Import .jsm file in Firefox Extension (with add-on sdk)
I'm trying to import a .jsm file (from This github) called "WebSocketServer.jsm" in my Firefox extension. The situation in the follow:
The .jsm file is in a directory called modules with this…

hasmet
- 758
- 3
- 13
- 32
2
votes
1 answer
Addon SDK error getting devtools module
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,…

NoBugs
- 9,310
- 13
- 80
- 146
2
votes
1 answer
Javascript code modules mutual import [Firefox addon]
I came across this strange behavior while using javascript code modules for a firefox addon. I'm not sure if this is a bug or a bad design doing mutual imports.
So let's say there are 3 modules a, b and c.
a.js
var EXPORTED_SYMBOLS = ["a"]; …

Alavalathi
- 713
- 2
- 9
- 21
2
votes
1 answer
Updating Firefox addon jsm module code without browser restart
I am developing a Firefox addon that is loaded from a directory instead of an xpi, Firefox extension proxy file. The extension is based on jsm modules.
Is there a way to update those modules to reflect the code changes. The only way to do it now is…

Mircea
- 11,373
- 26
- 64
- 95
1
vote
1 answer
How to pass an argument to a Javascript Module?
I want to use a Javascript Module (JSM) in a single window of my Xul application, so I can load the resource as I need it.
But, I need to pass the window to the JSM, and I don't know how to do it. Follows my attempt:
In my resource.jsm:
var…

The Student
- 27,520
- 68
- 161
- 264
1
vote
1 answer
Use createObjectURL in Firefox javascript code module
I want to use web workers in a javascript code module that load code from a blob. Typically this could be done in a webpage by calling "window.URL.createObjectURL" on the blob and giving the url generated by createObjectURL to the worker. Is this…

Paul
- 849
- 1
- 7
- 18
1
vote
1 answer
ElasticSearch: Configuring a custom analyzer implementation
Currently i am evaluating if and how a legacy lucene-based analyzer component can be moved to elastic search (0.19.18). Since the legacy code is based on lucene i wrapped the analyzer in an es-plugin. The analyzer's configuration looks like the…

GLA
- 953
- 2
- 9
- 14
0
votes
0 answers
How to access fields in Jira?
I am new to Jira Service Management, and I am trying to figure out how to access certain fields when for instance sending automated emails.
I am using the template for HR, request type is Onboarding new employee. I have made a custom field which I…

ClassicMoj
- 33
- 1
- 4
0
votes
1 answer
Working with ts/tsx files directly by using script type="module" in the web app (browser)
Using vite dev server allows me to use tsx/ts files directly (without packing and even transpiling!)
Typescript files are transformed on the fly:
This is really fast and speeds up…

SalientBrain
- 2,431
- 16
- 18
0
votes
0 answers
Problems attempting to import a jsm resource: AddonManager
I have a function in my Greasemonkey Script to access the Firefox AddonManager API. According to my log statements, though, I can never actually import it.
function getScripts() {
console.log("step 1");
…

Oscar Courchaine
- 346
- 3
- 14