mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 15:52:07 +00:00
Backed out changeset a7a4747bdc4e - wrong number in commit message
This commit is contained in:
parent
8d9c138354
commit
8c9d7aee83
@ -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) {
|
||||
|
@ -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: "",
|
||||
|
Loading…
Reference in New Issue
Block a user