How to set up Firefox (ver 60) in Sandboxie

Discussion in 'sandboxing & virtualization' started by Bonancy2, May 23, 2018.

  1. Bonancy2

    Bonancy2 Registered Member

    Joined:
    May 23, 2018
    Posts:
    1
    Location:
    Western New York
    Hi,
    I'm new to using Sandboxie and have read their tutorial, etc. yet I can't find how to set up a desktop shortcut to run FF under SB. I have one shortcut for naked FF.

    I've run a search and looked at 8 pages of results here but cannot find how to do this simple config. There's over 26 pages of results. Could anyone help instruct me how to create a shortcut to run FF under SB? My SB is also the latest, ver 5.24 I believe, and 64b.

    Thank you.

    Bonancy
     
  2. bo elam

    bo elam Registered Member

    Joined:
    Jun 15, 2010
    Posts:
    6,147
    Location:
    Nicaragua
    Hi Bonancy2. The SandboxedWebBrowser icon Sandboxie places in your desktop runs your default browser in the DefaultBox. So, if you make Firefox your default browser, you could run Firefox sandboxed by clicking the icon Sandboxie placed in your Desktop.

    You could also leave your default browser as is and create a sandboxed shortcut for Firefox. I believe this is what you want.

    To create one open Sandboxie control, click Configure>Windows shell integration>Add shortcut icons, Select DefaultBox, Click OK. This opens the Sandboxie Start menu, hover the browser over Desktop and look for Firefox and click it. After you click on Firefox, the sandboxed shortcut will appear in your Desktop.

    The way I wrote it above, Firefox will run in the DefaultBox. Instead, for better isolation you can create a separate sandbox for Firefox (Sandboxie control>Sandbox>Create new sandbox), you can name the new sandbox as Firefox and select this sandbox instead of DefaultBox when you create the shortcut.

    Bo
     
  3. bo elam

    bo elam Registered Member

    Joined:
    Jun 15, 2010
    Posts:
    6,147
    Location:
    Nicaragua
  4. __Nikopol

    __Nikopol Registered Member

    Joined:
    Aug 13, 2008
    Posts:
    630
    Location:
    Germany
    I was wondering. With Chrome people said using Sandboxie can potentially detrimental to security because it could mess with Chromes own sandbox. Does Firefox have an identical system that could be hindered to work correctly?
    Using Process Hacker I found that most firefox processes run with Low and some with Medium integrity. Chrome would run in app-container. Does it mean Firefox doesn't have his own Sandbox?

    Also are there issues with the newest Sandboxie version 5.26 and the newest Firefox version 62.0.3?
     
  5. Beyonder

    Beyonder Registered Member

    Joined:
    Aug 26, 2011
    Posts:
    545
    Nah. Firefox has no disadvantage to running in Sandboxie security-wise. The reason there's a collision between Chrome and Sandboxie is because of AppContainer and Firefox doesn't use that, and most likely won't for years to come.
     
  6. __Nikopol

    __Nikopol Registered Member

    Joined:
    Aug 13, 2008
    Posts:
    630
    Location:
    Germany
    Well I see one diadvantage: The theme is messed up and thus the top-bar/menu-bar and the minimize and close-buttons are white anstead of dark grey. :(
     
    Last edited: Oct 21, 2018
  7. Joxx

    Joxx Registered Member

    Joined:
    Sep 5, 2012
    Posts:
    1,718
    Try disabling these options under settings/appearance

    Screenshot_2018-10-21_23-18-40.png
     
  8. __Nikopol

    __Nikopol Registered Member

    Joined:
    Aug 13, 2008
    Posts:
    630
    Location:
    Germany
    No, that doesn't work. :(

    I found that now that I have made my own custom "userChrome.css" (Changes theme of Firefox), that I can say with confidence: "Using sandboxie changes the way Firefox draws the window.". It actually looks like it switches some values around.

    Maybe it's an issue with read-write-rights. Looking at about:profiles there are two folders: root and local. Root refers to the directory in Roaming and local to the one in Local. Do I need to add both to the exclusions in order to let Firefox read-write directly from them?
    This is currently the only excecption: %AppData%\Mozilla\Firefox\Profiles\*
    And in Sandboxie under Applications/Webbrower/firefox I allowed direct access to everything already.


    Edit: If someone is interested, here is my userChrome.css. It makes everything dark and works, except for the toolbar buttons, identical in the sandbox. (Meaning it looks good in both)
    Code:
    @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* set default namespace to XUL */
    
    #main-window[windowtype="navigator:browser"] {
       background-color: #404040 !important;   /* transparent doesn't work. It has to have a color */
    }
    
    #main-menubar {   
       background-color: #404040 !important;   /* Color of menubar. (file, edit, view...) */
    }
    
    #TabsToolbar {
       background-color: #404040 !important;   /* Color of the background behind tabs */
    }
    
    .titlebar-button {
       background-color: #404040 !important;   /* changes the background color of the button-box */
       transition: background-color 0.3s ease; /* Change time of transition effect for color change when hovered over any button */
    }
    
    /* If titlebar-button is not transparent, you need the next two hover-commands to fix it */
    .titlebar-button:hover {
       background-color: #202020 !important;   /* Color of minimize- and maximize-button when hovered over */
    }
    
    #titlebar-close:hover {       
       background-color: #E81123 !important;   /* Color of close-button when hovered over */
    }
    
    /*----------------------------------------------------------------------------------------*/
    /* change color of pop-up menu for bookmarks in the bookmark toolbar and all context-menus*/
    /*----------------------------------------------------------------------------------------*/
    
    /* Change color of items in the bookmark toolbar */
    #personal-bookmarks .bookmark-item {
       color: #b0b0b0 !important;                   /* was a8a8a8 text color */
       background-color: transparent !important;   /* was 303030 item- or text-background color */
    }
    /* Change color of items in the bookmark toolbar when hovered over */
    #personal-bookmarks .bookmark-item:hover {
       color: #a0a0a0 !important;                   /* text color */
       background-color: rgba(0, 0, 0, 0.3) !important;   /* was 585858 item- or text-background color */
    }
    /* Bookmark toolbar colors */
    #PersonalToolbar {
       color: #a0a0a0 !important;                   /* color of two arrows on the right */
       background-color: transparent !important;   /* was 303030 background color */
    }
    /* This removes the unnecessary padding from the bookmark items */
    .bookmark-item menuitem {
       padding-top: 0px !important;
       padding-bottom: 0px !important;
    }
    /* Remove icons from bookmarks toolbar*//*
    .bookmark-item .toolbarbutton-icon[label="Read Later"] {
        display: none !important;
    }*/
    
    /* This one changes the text color of all context menus */
    menu, menuitem {
       color: #d0d0d0 !important;
       -moz-appearance: none !important;
    }
    /* Change background color of all context menus */
    menupopup {
       background-color: #404040 !important;
    }
    /* This changes the color on hover of the context-menu items */
    menubar > menu[_moz-menuactive="true"],
    menupopup > menu[_moz-menuactive="true"],
    popup > menu[_moz-menuactive="true"],
    menuitem[_moz-menuactive="true"] {
       background-color: #585858 !important;
    }
    /* This does the same but for disabled ones */
    menubar > menu[_moz-menuactive="true"][disabled="true"],
    menupopup > menu[_moz-menuactive="true"][disabled="true"],
    popup > menu[_moz-menuactive="true"][disabled="true"],
    menuitem[_moz-menuactive="true"][disabled="true"] {
       background-color: #404040 !important;
    }
    /* This changes the text color of the greyed out actions on the context menus */
    menuitem[disabled="true"], popup > menu[disabled="true"],
    menupopup > menu[disabled="true"], menubar > menu[disabled="true"] {
       color: #808080 !important;
    }
    /* Context menu navigation tools (back, forward, reload) background color */
    #context-navigation {
       -moz-appearance: none !important;
       background-color: #404040 !important; /*Make this the same as context-menu background color */
       padding-bottom: 0px !important;
    }
    /* The following code changes the borders of all the context menus (except the ones above mentioned),
    as well as ignoring the bookmark menu context menu */
    menupopup {
       -moz-appearance: none !important;
       border: 1px solid #000000 !important;
    }
    /* Context menu separator color override */
    menuseparator {
       -moz-appearance: none !important;
       margin: 1px 0 1px 2.3em !important;
       height: 1px !important;
       border: none !important;
       background: #606060 !important;
       padding: 0 !important;
    }
    
    
    
    /*----------------------------------*/
    /* Color of tabs in the bat toolbar */
    /*----------------------------------*/
    .tabbrowser-tab:not([selected="true"]) .tab-text{
       color: #e0e0e0 !important;
       background-color: transparent !important;   /* was 404040 Color of the background of text on inactive tabs in the tab-toolbar*/
    }
    
    .tabbrowser-tab[selected="true"] .tab-text{
       color: #eeeeee !important;
       background-color: transparent !important;   /* was 303030 Color of the background of text on the active tab in the tab-toolbar*/
    }
    
    .tabbrowser-tab:hover .tab-text{
       color: #eeeeee !important;
       background-color: transparent !important;   /* was 505050 Color of the background of text on the hovered-over tab in the tab-toolbar*/
    }
    .tabbrowser-tab {
       background-color: transparent !important;       /* was 404040 Color of background of whole toolbar, maaybe */
    }
    #nav-bar {
       color: #e0e0e0 !important;                   /* Text color */
       background-color: transparent !important;   /* Background of navigations toolbar */
    }
    
    
    I updated the code in order brighten up the context-menu a little and adjust the bookmarks bar. EDIT: Changed it again. Looks perfect now. Can't show you though, full of bookmarks. :p
    I forgot to mention that this only looks good with Firefoxs standard Dark theme. And that you have to save it as "userChrome.css" in "C:\Users\USERNAME\AppData\Roaming\Mozilla\Firefox\Profiles\RANDOMCHARS.default\chrome". You may have to create the chrome folder.
    EDIT: Now works with skins or themes that add a picture to the nav-bar. Still focused on Sandboxed Firefox, though.
     
    Last edited: Oct 22, 2018
  9. Joxx

    Joxx Registered Member

    Joined:
    Sep 5, 2012
    Posts:
    1,718
    Try the options under
    Sandbox Settings > Resource Access > File Access
     
  10. __Nikopol

    __Nikopol Registered Member

    Joined:
    Aug 13, 2008
    Posts:
    630
    Location:
    Germany
    No, that changes nothing either. :(
    I even added them to Full Access.
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.