Backed out changeset a7a4747bdc4e - wrong number in commit message

This commit is contained in:
Paul Rouget 2015-05-15 06:35:38 +02:00
parent 8d9c138354
commit 8c9d7aee83
2 changed files with 1 additions and 23 deletions

View File

@ -636,25 +636,7 @@ var shell = {
}
delete shell.pendingChromeEvents;
});
shell.handleCmdLine();
},
handleCmdLine: function shell_handleCmdLine() {
let b2gcmds = Cc["@mozilla.org/commandlinehandler/general-startup;1?type=b2gcmds"]
.getService(Ci.nsISupports);
let args = b2gcmds.wrappedJSObject.cmdLine;
try {
// Returns null if -url is not present
let url = args.handleFlagWithParam("url", false);
if (url) {
this.sendChromeEvent({type: "mozbrowseropenwindow", url});
args.preventDefault = true;
}
} catch(e) {
// Throws if -url is present with no params
}
},
}
};
Services.obs.addObserver(function onFullscreenOriginChange(subject, topic, data) {

View File

@ -15,10 +15,6 @@ function CommandlineHandler() {
CommandlineHandler.prototype = {
handle: function(cmdLine) {
this.cmdLine = cmdLine;
let win = Services.wm.getMostRecentWindow("navigator:browser");
if (win && win.shell) {
win.shell.handleCmdLine();
}
},
helpInfo: "",