New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Firefox opened in private mode or with new instance (or both) does not execute url #275
Comments
The command line below, generated by
While this command line can
see also https://wiki.mozilla.org/Firefox/CommandLineOptions#-private-window_URL So before the issue gets fixed, use let apps = [
{
"name": "chrome",
"arguments": ["--incognito"]
},
{
"name": "edge",
"arguments": ["--inprivate"]
},
{
name: 'firefox',
arguments: ['-private-window']
}
];
function openUrl(url, app){
let pos;
if (app.name === 'firefox' && Array.isArray(app.arguments) && (pos = app.arguments.indexOf('-private-window')) > -1) {
let args = app.arguments.slice();
args.splice(pos + 1, 0, url);
return open.openApp(open.apps.firefox, {arguments: args});
}
return open(url, {app: app});
}
openUrl('https://github.com', apps[2]); |
Firefox launched with any combination of private / new instance arguments just opens an empty window in a correct mode, but without any url in the address bar.
MacOs Big Sur.
The text was updated successfully, but these errors were encountered: