Skip to content

Commit

Permalink
merge mozilla-inbound to mozilla-central a=merge
Browse files Browse the repository at this point in the history
  • Loading branch information
BavarianTomcat committed Oct 17, 2016
2 parents b7d6ef8 + a391785 commit d6850a3
Show file tree
Hide file tree
Showing 707 changed files with 14,733 additions and 5,766 deletions.
2 changes: 1 addition & 1 deletion CLOBBER
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@
# changes to stick? As of bug 928195, this shouldn't be necessary! Please
# don't change CLOBBER for WebIDL changes any more.

Bug 1261019 - Clobber on OS X to fix bustage caused by removed files
Bug 1306438 and bug 1304815 - Rust update and related changes require clobber
2 changes: 0 additions & 2 deletions addon-sdk/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -480,8 +480,6 @@ EXTRA_JS_MODULES.commonjs.sdk.system += [

EXTRA_JS_MODULES.commonjs.sdk.system.child_process += [
'source/lib/sdk/system/child_process/subprocess.js',
'source/lib/sdk/system/child_process/subprocess_worker_unix.js',
'source/lib/sdk/system/child_process/subprocess_worker_win.js',
]

EXTRA_JS_MODULES.commonjs.sdk.tab += [
Expand Down
8 changes: 6 additions & 2 deletions addon-sdk/source/app-extension/bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -298,8 +298,11 @@ function loadSandbox(uri) {
}

function unloadSandbox(sandbox) {
if ("nukeSandbox" in Cu)
Cu.nukeSandbox(sandbox);
if ("nukeSandbox" in Cu) {
try {
Cu.nukeSandbox(sandbox);
} catch (e) {}
}
}

function setTimeout(callback, delay) {
Expand Down Expand Up @@ -346,6 +349,7 @@ function nukeModules() {
// Bug 775067: From FF17 we can kill all CCW from a given sandbox
unloadSandbox(sandbox);
}
unloadSandbox(loader.sharedGlobalSandbox);
loader = null;

// both `toolkit/loader` and `system/xul-app` are loaded as JSM's via
Expand Down
12 changes: 11 additions & 1 deletion addon-sdk/source/lib/sdk/addon/bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,11 +157,21 @@ Bootstrap.prototype = {

setTimeout(() => {
for (let uri of Object.keys(loader.sandboxes)) {
Cu.nukeSandbox(loader.sandboxes[uri]);
try {
Cu.nukeSandbox(loader.sandboxes[uri]);
} catch (e) {
// This will throw for shared sandboxes.
}
delete loader.sandboxes[uri];
delete loader.modules[uri];
}

try {
Cu.nukeSandbox(loader.sharedGlobalSandbox);
} catch (e) {
Cu.reportError(e);
}

resolve();
}, 1000);
}
Expand Down
7 changes: 5 additions & 2 deletions addon-sdk/source/lib/sdk/system/child_process.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,10 @@ var Child = Class({
stream.write(data);
}
},
done: function (result) {
done: function (result, error) {
if (error)
return handleError(error);

// Only emit if child is not killed; otherwise,
// the `kill` method will handle this
if (!child.killed) {
Expand Down Expand Up @@ -170,7 +173,7 @@ function exec (cmd, ...args) {

if (isWindows) {
file = 'C:\\Windows\\System32\\cmd.exe';
cmdArgs = ['/s', '/c', (cmd || '').split(' ')];
cmdArgs = ['/S/C', cmd || ''];
}
else {
file = '/bin/sh';
Expand Down
36 changes: 0 additions & 36 deletions addon-sdk/source/lib/sdk/system/child_process/LICENSE

This file was deleted.

129 changes: 0 additions & 129 deletions addon-sdk/source/lib/sdk/system/child_process/README.md

This file was deleted.

Loading

0 comments on commit d6850a3

Please sign in to comment.