Skip to content

Instantly share code, notes, and snippets.

@jtackaberry
Last active February 4, 2016 03:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jtackaberry/e43aa187da6b899e1c98 to your computer and use it in GitHub Desktop.
Save jtackaberry/e43aa187da6b899e1c98 to your computer and use it in GitHub Desktop.
e10s experiments (with nightly from 2016.02-03)
dump("*** child context\n");
// This file is loaded under data/
dump("*** child context\n");
const { remoteRequire } = require("sdk/remote/parent");
remoteRequire("./child.js", module);
*** child context
console.error:
Message: Module `resource://nosquint-at-urandom-dot-ca/child.js` is not found at resource://nosquint-at-urandom-dot-ca/child.js
Stack:
@resource://gre/modules/commonjs/sdk/remote/child.js:81:3
emitOnObject@resource://gre/modules/commonjs/sdk/event/core.js:112:9
emit@resource://gre/modules/commonjs/sdk/event/core.js:89:38
messageReceived@resource://gre/modules/commonjs/sdk/remote/child.js:67:37
var pageMod = require("sdk/page-mod");
pageMod.PageMod({
include: "*",
// file is data/content.js
contentScriptFile: "./content.js"
});
console.error: nosquint:
Error opening input stream (invalid filename?): resource://nosquint-at-urandom-dot-ca/data/content.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment