Many firefox windows open

Many firefox windows open

I am running Firefox with -width and -height command line options. The problem I have is that these parameters are ignored if some Firefox window is already open. In that case all following windows are opened with the size of the first (original) window. It does not matter what I type for width and height. These parameters are used only for the first window, when Firefox is actually started.

I mitigated this trouble before with javascript used in web pages to resize the window on document load event. Now I have to upgrade to newer version and resizeTo does not work on windows which are not opened via window.open.

What options do I have to open more Firefox windows with different sizes? They all have to use the same profile.

We are using a very specific, closed and controlled environment with one web-server and no internet access. There was no need to upgrade from Firefox 4. Now we would like to upgrade, but this change in functionality is preventing us from upgrading. Since our client computers are on CentOS 5, we would upgrade to Firefox 17 which is a part of standard CentOS 5 distribution.

Выбранное решение

I have written a bash script that makes a list of windows, starts firefox and makes a list again. Then it finds the differences in lists from before and after opening firefox. At the end the script uses wmctrl to change window’s size that was found as newly opened. There is a small chance that some other window might pop up while opening firefox and it will get resized too. However in our case that probability is very small and it is not worth the effort.

Here’s the script which takes 3 parameters: width, height, URL.

Many firefox windows open

I am running Firefox with -width and -height command line options. The problem I have is that these parameters are ignored if some Firefox window is already open. In that case all following windows are opened with the size of the first (original) window. It does not matter what I type for width and height. These parameters are used only for the first window, when Firefox is actually started.

I mitigated this trouble before with javascript used in web pages to resize the window on document load event. Now I have to upgrade to newer version and resizeTo does not work on windows which are not opened via window.open.

What options do I have to open more Firefox windows with different sizes? They all have to use the same profile.

We are using a very specific, closed and controlled environment with one web-server and no internet access. There was no need to upgrade from Firefox 4. Now we would like to upgrade, but this change in functionality is preventing us from upgrading. Since our client computers are on CentOS 5, we would upgrade to Firefox 17 which is a part of standard CentOS 5 distribution.

Читайте также:  Оперативная память под linux

Chosen solution

I have written a bash script that makes a list of windows, starts firefox and makes a list again. Then it finds the differences in lists from before and after opening firefox. At the end the script uses wmctrl to change window’s size that was found as newly opened. There is a small chance that some other window might pop up while opening firefox and it will get resized too. However in our case that probability is very small and it is not worth the effort.

Here’s the script which takes 3 parameters: width, height, URL.

Profile Manager — Create, remove, or switch Firefox profiles

Firefox saves your personal information such as bookmarks, passwords, and user preferences in a set of files called your profile, which is stored in a separate location from the Firefox program files. You can have multiple Firefox profiles, each containing a separate set of user information. The Profile Manager allows you to create, remove, rename, and switch profiles.

  • If you have (or plan to have) multiple installations of Firefox on one computer, see Dedicated profiles per Firefox installation.
  • If you are troubleshooting a problem with Firefox: The Refresh Firefox feature can fix many issues by restoring Firefox to its default state while saving your essential information. Consider using it before going through a lengthy troubleshooting process.

Table of Contents

Starting the Profile Manager

Manage profiles when Firefox is open

Type about:profiles into the address bar and press the Enter Return key. This will open the About Profiles page.

The following options are available:

  • Create a New Profile Click this and follow the prompts in the Create Profile Wizard (see the Creating a profile section below for details). After you finish creating the new profile, it will be listed in the Profile Manager. The new profile will become the default and will be used the next time you start Firefox.

To manage profiles, find the profile you want to change and choose from these buttons underneath that profile:

  • Rename Click this to change the name of a profile in the Profile Manager. Note: The folder containing the files for the profile is not renamed.
  • Remove Click this to delete a profile. (The profile in use cannot be deleted.) Don’t Delete Files is the preferred option. See the Removing a profile section below for more information.
  • Set as default profile This option allows you to switch profiles. Click this to make Firefox use this profile by default at startup.
  • Launch profile in new browser When you click this, another Firefox window will open using that profile.

Start the Profile Manager when Firefox is closed

  1. If Firefox is open, close Firefox: Click the Firefox menu and select Exit . Click the Firefox menu at the top of the screen and select Quit Firefox . Click the Firefox menu and select Quit .
  2. Press + R on the keyboard. A Run dialog will open.
  3. In the Run dialog box, type in:
    firefox.exe -P
    You can use -P , -p or -ProfileManager (any of them should work).
  4. Click OK . The Firefox Profile Manager (Choose User Profile) window should open.
Читайте также:  Windows 10 экран блокировки значки

Multiple Firefox installations

You can have multiple Firefox programs installed in different locations. To start the Profile Manager for a specific Firefox installation, replace firefox.exe in the above instructions with the full path to the Firefox program, enclose that line in quotes, then add a space followed by -P.

Examples:
Firefox (32-bit) on 64-bit Windows
«C:\Program Files (x86)\Mozilla Firefox\firefox.exe» -P

Firefox (32-bit) on 32-bit Windows (or 64-bit Firefox on 64-bit Windows)
«C:\Program Files\Mozilla Firefox\firefox.exe» -P

  1. If Firefox is open, close Firefox: Click the Firefox menu and select Exit . Click the Firefox menu at the top of the screen and select Quit Firefox . Click the Firefox menu and select Quit .
  2. Using Finder navigate to /Applications/Utilities .
  3. Open the Terminal application.
  4. In the Terminal application, enter the following:
    /Applications/Firefox.app/Contents/MacOS/firefox-bin -P

If Firefox is already included in your Linux distribution or if you have installed Firefox with the package manager of your Linux distribution:

  1. If Firefox is open, close Firefox: Click the Firefox menu and select Exit . Click the Firefox menu at the top of the screen and select Quit Firefox . Click the Firefox menu and select Quit .
  2. In Terminal run:
    firefox -P

The P is capitalized. Alternatively, you can use -ProfileManager instead of -P .
The Firefox Profile Manager (Choose User Profile) window should open.

If the Profile Manager window still does not open, Firefox may have been running in the background, even though it was not visible. Close all instances of Firefox or restart the computer and then try again.

Creating a profile

After starting the Profile Manager as explained above, you can create a new, additional profile as follows:

  1. In the Profile Manager, click Create Profile. to start the Create Profile Wizard.
  2. Click Next and enter the name of the profile. Use a profile name that is descriptive, such as your personal name. This name is not exposed on the Internet.


  3. Disregard the Choose Folder prompt unless you wish to choose where to store the profile on your computer.

You will be taken back to the Profile Manager and the new profile will be listed. When you first start Firefox with the new profile, you will be prompted to sign in to your Firefox Account so that you can sync your data with the new profile (see below).

Removing a profile

After starting the Profile Manager as explained above, you can remove an existing profile as follows:

  1. In the Profile Manager, select the profile to remove, and click Delete Profile. .
  2. Confirm that you wish to delete the profile:

    • Don’t Delete Files removes the profile from the Profile Manager yet retains the profile data files on your computer in the storage folder, so that your information is not lost. «Don’t Delete Files» is the preferred option because it saves the old profile’s folder and allows you to recover the files to a new profile.
    • Delete Files removes the profile and its files (including the profile bookmarks, settings, passwords, etc.). If you use the «Delete Files» option, the profile folder and files will be deleted. This action cannot be undone.
    • Cancel interrupts the profile deletion.

Renaming a profile

After starting the Profile Manager as explained above, you can rename a profile as follows:

  1. In the Profile Manager, select the profile to rename, and then click Rename Profile. .
  2. Enter the new name for the profile. Type in the new profile name, and click on OK .
    • Note: The folder containing the files for the profile is not renamed.

Options

Work Offline

Choosing this option loads the selected profile and starts Firefox without connecting to the Internet. You can view previously viewed web pages and experiment with your profile.

Use the selected profile without asking at startup

When you have multiple profiles, this option tells Firefox what to do at startup:

  • If you check this option, Firefox will automatically load the selected profile at startup. To access other profiles, you must start the Profile Manager first.
  • If you uncheck this option, Firefox will show you the Profile Manager each time you start Firefox, so that you can select a profile to use.

Use Sync with a new profile

When you first open Firefox in a new profile, a Welcome to Firefox page will open, with a space to enter your email address.

Enter your email address and click Continue , to create or sign into a Firefox Account. You can then set up Sync for the new profile so that you can share the same bookmarks, browsing history, passwords and other user data with other Firefox profiles or devices.

  • If you already use Sync in another profile or device, enter the email address and password for your Firefox account so that your new profile can use those settings.
  • If you don’t use Sync, don’t want to sync your data with the new profile, or if you want to decide later, you can still sign into your Firefox Account and choose the Don’t sync this device option (see Disable Firefox Sync for details) or you can skip this step.

Moving a profile

To copy all of your Firefox data and settings to another Firefox installation (e.g. when you get a new computer), you can make a backup of your Firefox profile, then restore it in your new location. For instructions, see Back up and restore information in Firefox profiles.

Recovering information from an old profile

If you have important information from an old Firefox profile, such as bookmarks, passwords, or user preferences, you can transfer that information to a new Firefox profile by copying the associated files. For instructions, see Recovering important data from an old profile. You can also switch to a previous profile to recover old profile data. See Recover user data missing after Firefox update for details.

These fine people helped write this article:

Volunteer

Grow and share your expertise with others. Answer questions and improve our knowledge base.

Читайте также:  Removing windows account from windows 10
Оцените статью