View jpinstall.sh
1 2 3 4 5 6 7 8 9
#!/bin/bash
 
JPM=/usr/local/bin/jpm
 
if [ -z "$1" ]; then
URL="http://127.0.0.1:8888/"
else
URL="http://127.0.0.1:$1/"
fi
View test_error.sh
1 2 3 4
Date: Fri Aug 15 2014 16:00:27 GMT-0700 (PDT)
Full Message:
Module `./undefinedtest/test-async-storage` is not found at resource://async-storage/undefinedtest/test-async-storage.js"
{file: "resource://gre/modules/commonjs/sdk/deprecated/unit-test-finder.js" line: 143 column: 0 source: "143"}]
View resources.js
1 2 3 4 5 6
var resources = require('resources');
 
var bundle_helper = resources('bundle');
 
console.log('some asset file', bundle_helper.url('css/myfile.css'));
// "resource://$someId/node_modules/bundle/css/myfile.css"
View phale.sh
1 2 3 4 5 6
Date: Thu Aug 14 2014 15:55:34 GMT-0700 (PDT)
Full Message: Error: The sidebar is already hidden" {file: "resource://gre/modules/addons/XPIProvider.jsm ->
jar:file:///var/folders/xw/dlflj93n4z33pxpd0k_hlss80000gq/T/tmp_jaaUM.mozrunner/extensions/56ce2c9c-d8b7-4c17-965c-5b838dabc285@jetpack.xpi!/bootstrap.js
-> resource://extensions.modules.56ce2c9c-d8b7-4c17-965c-5b838dabc285-at-jetpack.commonjs.path/toolkit/loader.js
-> resource://extensions.modules.56ce2c9c-d8b7-4c17-965c-5b838dabc285-at-jetpack.commonjs.path/sdk/ui/sidebar/view.js"
line: 171 column: 0 source: "171"}]
View url.txt
1 2 3 4 5 6 7 8 9 10
https://bugzilla.mozilla.org/buglist.cgi?
list_id=10874883
&classification=Client%20Software
&query_format=advanced
&bug_status=UNCONFIRMED
&bug_status=NEW
&bug_status=ASSIGNED
&component=Developer%20Tools%3A%20Framework
&component=Developer%20Tools%3A%20Object%20Inspector
&product=Firefox
View ergh.js
1 2 3 4 5 6 7 8 9 10
const self = require('sdk/self');
 
const data = require('sdk/self').data;
const { Panel } = require("dev/panel");
const { Tool } = require("dev/toolbox");
const { Class } = require("sdk/core/heritage");
 
let { spawn } = require('sdk/system/child_process');
let { ActionButton } = require("sdk/ui/button/action");
let { env } = require('sdk/system/environment');
View error.sh
1 2 3 4 5 6 7 8 9 10
console.error: dump-bugs:
Message: TypeError: window.gBrowser is undefined
Stack:
openTab@resource://gre/modules/commonjs/sdk/tabs/utils.js:144:7
open@resource://gre/modules/commonjs/sdk/windows/tabs-firefox.js:187:17
open@resource://gre/modules/commonjs/sdk/tabs/tabs-firefox.js:35:7
@resource://dump-bugs/index.js:24:3
_.forEach@resource://dump-bugs/node_modules/underscore/underscore.js:79:7
@resource://dump-bugs/index.js:23:1
run@resource://gre/modules/commonjs/sdk/addon/runner.js:172:19
View main.js
1 2 3 4 5 6 7 8 9
var self = require('sdk/self');
 
// a dummy function, to show how tests work.
// to see how to test this function, look at ../test/test-main.js
function dummy(text, callback) {
callback(text);
}
 
exports.dummy = dummy;
View session.sh
1 2 3 4 5 6 7 8 9 10
jeff@aer ~/code/jetpack/projects/examples/jpm-test> jpm init
cannot find 'package.json' in the current directory or any parent.
jeff@aer ~/code/jetpack/projects/examples/jpm-test> la
total 0
drwxr-xr-x+ 2 jeff staff 68B 24 Jun 12:48 .
drwxr-xr-x+ 27 jeff staff 918B 24 Jun 12:48 ..
jeff@aer ~/code/jetpack/projects/examples/jpm-test> touch package.json
jeff@aer ~/code/jetpack/projects/examples/jpm-test> jpm init
Traceback (most recent call last):
File "/Users/jeff/profile/bin/cfx", line 33, in <module>
View main.js
1 2 3 4 5 6 7 8 9 10
let { Page } = require('sdk/page-worker');
let self = require('sdk/self');
let { ActionButton } = require("sdk/ui/button/action");
 
let worker = Page({
contentScriptFile: [self.data.url('worker.js'),
self.data.url('jquery.js')]
});
 
worker.on('fetched', function(data) {
Something went wrong with that request. Please try again.