Close browser by closing last tab

I would like my browser to close when I close the last tab. I tried browser.tabs.closeWindowWithLastTab;true but when rightclicking the last tab, "close" is grayed out.

You can't close the last tab via the right-click context menu or via a middle-click if browser.tabs.closeWindowWithLastTab is true.<br />
If the pref is false then you can close the tab, but not the window.
You can only close the last tab and window via the Ctrl+W shortcut.<br />
Via the menu only Quit or Exit is available unless you open the File menu via the Alt+F shortcut and then you see Close Tab.

Similar Messages

  • How to close window only if closing last tab is about:newtab

    Is there a way to achieve this behaviour:
    Let's say I have a last tab left open, for example mozilla.org or any other site. When closing that tab I want firefox to open about:newtab. This can be achieved by setting closeWindowWithLastTab flag in config. But here is the catch when closing that about:newtab I want to close window.
    So basically - Close window with last tab only if it is about:newtab. Also I want the close button on last tab to remain there.
    P.S. Last tab close button extension did not help.

    See:
    *Close Button: https://addons.mozilla.org/firefox/addon/close-button/

  • I have several home page tabs open. How do I close them without closing other tabs?

    When I open my home page and go to other web sites, I can close the tabs for those sites but cannot close my home page tab when I finish. How do I close a home page tab while keeping other tabs open?

    Have you tried ctrl alt del and force closing Firefox?

  • [SOLVED] Disconnecting session when client close browser's window or tab

    Hello,
    I'm looking for disconnect my database session and invalidate the session with the "onunload" af:document function. I think that is the same as the "onunload" in "body" html tag.
    I see some documentation about that, for example:
    http://www.oracle.com/technology/products/jdev/htdocs/partners/addins/exchange/jsf/doc/tagdoc/core/document.html
    and I see that is enable to put an EL Expression, so I try with this:
    <f:view>
    <af:document binding="#{backing_user.document_user}" id="document_user" onunload="#{backing_user.logout}">
    <af:form binding="#{backing_user.form_user}" id="form_user"/>
    </af:document>
    </f:view>
    and not works, then I try:
    <f:view>
    <af:document binding="#{backing_user.document_user}" id="document_user" onunload="return logout_function()">
    <af:form binding="#{backing_user.form_user}" id="form_user"/>
    </af:document>
    </f:view>
    and as this, I try a lot of combinations, with no result. I take my time searching in various browsers but, surprisingly, I fount not much information about this (rare, I think is a very interesting matter).
    What is the way to be able this funcionallity?
    Thanks,
    Westh
    Edit: obviusly, logout_function() is a correct javascript function :P

    Hello,
    I resolve my problem. Now I go to describe the steps in a little tutorial.
    Remmember that this is a very basic tutorial that only allow you to do this matter, but not in deep. See bottom links for more information.
    Step's list:
    1) Download Shale framework from http://shale.apache.org/index.html#download
    2) Import all .jar libraries in your application.
    3) Open your web.xml file and add this:
    <context-param>
    <param-name>org.apache.shale.remoting.DYNAMIC_RESOURCES</param-name>
    <param-value>/dynamic/*:org.apache.shale.remoting.impl.MethodBindingProcessor</param-value>
    </context-param>
    4) Consider this:
    4.1) Managed bean --> userBean.java that have this method:
    public void logout () {
    /* Your logout code */
    and this name in faces-config.xml:
    <managed-bean>
    <managed-bean-name>userBeanId</managed-bean-name>
    <managed-bean-class>userBean</managed-bean-class>
    <managed-bean-scope>session</managed-bean-scope>
    </managed-bean>
    4.2) JSP Page --> home.jsp that have this code:
    A clinet listener:
    <af:clientListener method="unloadEvent" type="load"/>
    and this javascript functions:
    <f:verbatim>
    <script type="text/javascript">
    function unloadEvent () {
    window.onunload = function () {
    processUnload();
    function processUnload () {
    var httpRequest;
    if (window.XMLHttpRequest) {
    httpRequest = new XMLHttpRequest();
    } else if (window.ActiveXObject) {
    httpRequest = new ActiveXObject("Microsoft.XMLHTTP");
    httpRequest.overrideMimeType('text/xml');
    httpRequest.onreadystatechange = function() { alertContents(httpRequest); };
    httpRequest.open('GET', 'dynamic/userBeanId/logout.faces', false);
    httpRequest.send('');
    function alertContents(httpRequest) {
    if (httpRequest.readyState == 4) {
    if (!httpRequest.status == 200) {
    alert('There was a problem with the request. Http code: ' + httpRequest.status);
    </script>
    </f:verbatim>
    Assuming the suffix '.faces' is mapped to the JSF servlet.
    With this, you are able to acces to logout method of userBean (using ajax) when client closes window or tab. No servlets, no 'logout.jsp' pages, etc; and the most important thing: the code never be repeat! it's funny :)
    Westh
    Resources:
    http://thepeninsulasedge.com/blog/2007/06/22/adf-faces-rc-more-on-javascript/
    http://thepeninsulasedge.com/frank_nimphius/adf-faces-rich-client-javascript-programming/
    http://www.oracle.com/technology/products/adf/adffaces/11/doc/multiproject/adf-richclient-api/tagdoc/af_clientListener.html
    http://shale.apache.org/shale-remoting/apidocs/org/apache/shale/remoting/package-summary.html
    http://shale.apache.org/shale-remoting/index.html

  • How to make close last tab actually open SuperStart rather then closing Firefox?

    Is there a way to make Firefox (or SuperStart) NOT close Firefox when the last tab is closed? I'd prefer for it to act like Opera in that it would make the SuperStart tab page appear instead. This way I have to choose to close Firefox by actually closing Firefox (such as clcking the red "x" in the corner of Firefox, etc).
    Just because I don't want the last tab open does NOT mean I want to close my browser.
    As a result of this current behavior, when I reopen Firefox I end up with that last tab showing up again, which of course I don't want either.

    Also make SuperStart your home page.

  • Unable to close home page tab or unable to close firefox by closing home page tab (when if that is the only last tab remaining in the browser

    Recently I noticed that I could not close my browser by closing the last tab, which is nothing but home page tab. also noticed that when I open my browser and after opening many other tab if I want to close home page tab I could not close. If I closed it then I cant navigate or surf from that tab.
    This may be due to some add-on causing trouble.
    The problem does not arise in safe mode. Also if I group tab after closing, it is counted as tab but I cant open that particular tab.

    # Click the orange Firefox button, then select Options to open the options window
    # Go to the General panel
    #Change the setting "When Firefox starts" to "Show my home page"

  • Close the last tab without closing the firefox app

    greetings!
    1.I would like to close the last tab without closing the app. The behaviour I expect is the app to open a new blank tab when I close the last tab. Currently I cannot close the last tab which already has some website opened in it.
    2. When I open a new tab, i'm forced to enter a website address. I expect to the app to simply open a blank new tab & leave it to me whether to enter a address or not.
    Thanks for your support. I love firefox for Android.

    well, I would prefer to leave it to the end user whether he wants the awesome screen while pressing a new tab button/ or open a simple blank page. Let him choose it in the config.
    regards,

  • How do I set Safari to prompt before closing multiple tabs OR reopen all of the closed tabs when when I relaunch the application?  The "Reopen all windows from last session" is unselectable.

    How do I set Safari to prompt before closing multiple tabs OR reopen all of the closed tabs when when I relaunch the application?  The "Reopen all windows from last session" is unselectable.

    It would seem if your choose "Show my windows and tabs from last time" '''''and''''',
    *when you last closed Firefox, you had no web site open (just a blank tab), that it would open just that blank tab
    *when you last closed Firefox, you had one or more tabs/web site open, that would allow you to "Restore Previous Session"
    #Have you tried that?
    #If so, what is happening in each circumstance when you reopen Firefox?
    '''Restore Previous Session'''<br />
    Open tabs are automatically saved when closing Firefox beginning in Firefox 4. To open your last session, after Firefox starts, click History > Restore Previous Session. For this to work
    #You must be remembering history (Options > Privacy > Remember my browsing history).
    #*See [https://support.mozilla.com/en-US/kb/Options%20window%20-%20Privacy%20panel Options window-Privacy panel]
    #You must not be using Private Browsing or permanent Private Browsing
    #*See [https://support.mozilla.com/en-US/kb/Private%20Browsing Private Browsing]
    #You must not use Clear Recent History or Clear history when Firefox closes
    #*See [https://support.mozilla.com/en-US/kb/Clear%20Recent%20History Clear Recent History]
    #*See [https://support.mozilla.com/en-US/kb/Options%20window%20-%20Privacy%20panel Options window-Privacy panel]
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''
    Not related to your question, but...
    You need to update some plug-ins:
    *Plug-in check: https://www-trunk.stage.mozilla.com/en-US/plugincheck/
    *Adobe PDF Plug-In For Firefox and Netscape: [https://support.mozilla.com/en-US/kb/Using%20the%20Adobe%20Reader%20plugin%20with%20Firefox#w_installing-and-updating-adobe-reader Installing/Updating Adobe Reader in Firefox]

  • Firefox 25.0.1 Warn when closing multiple tabs (on) conflicts with "show windows und tabs from last time" (on); need both, but only one or the other works.

    Using Firefox 25.0.1 on Windows 7 Home Premium
    I've poured through support forums for Mozilla Firefox searching for a fix to my initial problem of the "Warn when closing multiple tabs" pop up not popping up when I have it selected.
    Went through About:Config, making sure warnings for tabs und closing, und showing on quit, und quitting, etc. were all set to true, which were "possible" fixes for the issue I was having, there are like five or six things set to true for warnings/quitting/etc. No avail. They are all set to true.
    Then I stumbled across one that suggested a conflict with the "Warn When Closing Multiple Tabs" und the "Show Windows und Tabs from last time".
    I use both features. However, I found if I want the warning pop up for closing multiple tabs, I have to have "show homepage" or "show blank page" selected instead of "Show windows und tabs from last time" selected. (Tools>Options>General>Start Up>When Firefox Starts:) The problem with this is, yes, I get my warning pop up, BUT, I don't get my tabs from my last session.
    The warning in settings (Tools>Options>Tabs>Warn Me When Closing Multiple Tabs) is checked.
    To have my tabs restored from last session, I simply select it for "when firefox starts". Bam, I have my tabs that were open from the last time I quit. Und again, full circle, I don't have my warning pop up.
    There were also suggestions of the warning on close for tabs is conflicting with add-ons.
    However, I don't have many. Und I have yet to test them to see if they interfere. These are according to my Add Ons tab when I check it myself.
    Extensions:
    1. Avast WebRep (disabled)
    2. HP Smart Web Printing (disabled)
    Plugins:
    1. Adobe Acrobat
    2. Google Update
    3. iTunes Application Detector
    4. Java (TM) Platform SE 7 U45
    5. Shockwave Flash
    6. Shockwave For Director
    7. Silverlight Plug-In
    8. VLC Web Plugin
    9. Windows Live Photo Gallery
    10. Java Deployment Toolkit (disabled)
    Note: The Details Firefox provides says I have these for Plugins
    * Shockwave Flash 11.9 r900
    * Adobe Shockwave for Director Netscape plug-in, version 12.0.5.146
    * Next Generation Java Plug-in 10.45.2 for Mozilla browsers
    * Google Update
    * Adobe PDF Plug-In For Firefox and Netscape 11.0.05
    * VLC media player Web Plugin 2.1.0
    * 5.1.20913.0
    * iTunes Detector Plug-in
    * NPWLPG
    Unsure of what the "5.1.20913.0" und the "NPWLPG" plugins are, but they don't appear to me under Add Ons.
    Und as usual, I'm assuming the solution lies within About:Config, I will show here now what I have set to True.
    browser.tabs.warnOnClose - True
    browser.tabs.warnOnCloseOtherTabs - True
    browser.tabs.warnOnOpen - True
    browser.warnOnQuit - True
    browser.showQuitWarning - True
    As aforementioned:
    The seemingly only issue is the conflict between Show Windows/Tabs From Last Time und the Warn On Quit pop up. Und again, I need/want both of them. More so the tabs from the last session, but I really really really really really want the warning.
    So, if anyone knows a work around, preferably without having to download anything to fix this, I would be extremely grateful.

    You mention a second subject.
    ''I'm probably going to downgrade to another version of firefox that was suggested to me since I'm also having issues with shockwave flash causing firefox to hang und ultimately needs to be force closed otherwise having to have flash disabled to use firefox.''
    <u>Downgrading Firefox </u><br />
    Flash is notorious for causing Firefox problems. I suggest you start a new thread about that. If at all possible you should try to avoid downgrading to an unsecure & unsupported version of Firefox. it will increase risks to your system and Personal data. (There are methods of mitigating the risks, using a virtual machine or operating within a secure intranet for instance)
    *(Do Not) [[Install an older version of Firefox]]
    <u>Try Flash with Protected Mode Off</u><br/>
    Worth a try as it takes minimal effort & often solves Flash Problems whilst allowing current and more secure FlashPlayer to be used. See
    * http://kb.mozillazine.org/Flash#Flash_Player_11.3_Protected_Mode_-_Windows
    * http://forums.adobe.com/thread/1018071#TemporaryWorkaround
    If you wish to pursue these subjects further I note you have already started a thread you may as well continue the discussion in that thread, but also post back here so we can follow both.
    * ''Firefox is having "Script" issues (Not Responding) und possibly Flash issues?'' [/questions/978181]
    ** try ensuring you close down Firefox using the menu, that may even help with Flash problems.
    <u>Your experience in submitting troubleshooting information on the forum</u><br />
    (This is out of curiosity, but with the intention of pressing for changes if forum faults are discovered.)
    There are yet more changes to this forum underway. Mozilla recently tried to improve the experience for first time users of the forum and a troubleshooting app option was included in the workflow to try to encourage users to submit full troubleshooting information.
    I would be interested to know what you thought
    I sometimes wonder if users are not trying to use that, or whether forum users run into problems in using it. At one point I wondered whether there was a problem if too much data was included but never actually proved that conjecture.
    Assuming you are using the forum, and not merely replying by email look towards the top in the right hand margin for clickable buttons
    * Question Details -V- More System Details -> [Additional System Details]
    You will note that includes only partial information. There are no changed prefs or extensions listed. Compare for instance the information in this thread [/questions/978130] with full information.
    I believe your mystery plugins are Windows related
    * NPWLPG relates usually to Windows Live Photo Gallery
    * 5.1.20913.0 will be Silverlight

  • When I close the last tab I am sent to my desk top and do not stay on Firefox, but if I hit the open button again it says Firefox is running??

    This started this last weekend. When I close the last tab instead of staying on Firefox it goes directly to my desktop. If I hit the Firefox icon again I get a message saying that Firefox is still running and that I should restart. But if I just hit open again it reopens or shows Firefox home page again. How do I stop this?

    Set the pref browser.tabs.closeWindowWithLastTab to false on the about:config page to prevent closing the last tab from closing that window, you need to use "File > Close Window" or the close X on the title bar.
    To open the <i>about:config</i> page, type <b>about:config</b> in the location (address) bar and press the "<i>Enter</i>" key, just like you type the url of a website to open a website.<br />
    If you see a warning then you can confirm that you want to access that page.<br />
    *Use the Filter bar at to top of the about:config page to locate a preference more easily.
    *Preferences that have been modified show as bold(user set).
    *Preferences can be reset to the default or changed via the right-click context menu.
    You may need to wait a bit longer before restarting Firefox.
    See "Hang at exit":
    *http://kb.mozillazine.org/Firefox_hangs
    *https://support.mozilla.com/kb/Firefox+hangs

  • When I close firefox it warns me that I am closing multiple tabs. and will not let me save them. the only option is cancel or OK.

    This just started. When I close firefox it warns me that I am closing multiple tabs. and will not let me save them. the only option is cancel or OK. When I say OK and restart Firefox all my tabs are going:-( This happens every time now. I know how to get my old tabs back but every time I close Firefox it always warns me that I am closing multiple tabs.
    Tanks for helping me get me Firefox working correctly again
    Jim

    Do not use "Clear history when Firefox closes" to clear the "Browsing History".
    *Tools > Options > Privacy: History: [X] Clear history when Firefox closes > Settings
    *https://support.mozilla.org/kb/Clear+Recent+History
    Using the "Show my windows and tabs from last time" setting is a more reliable way to restore session data.
    * Tools > Options > General > Startup: "When Firefox Starts": "Show my windows and tabs from last time"

  • Even after enabling "Warn me when closing multiple tabs", firefox closes without any warning even if multiple tabs are open.

    I recently installed Firefox 4.0 and in the options, under the section "Tabs", I have enabled "Warn me when closing multiple tabs". But if I have multiple tabs opened with websites loaded in them, and then try to close the browser, it simply closes. No warnings are shown (which was there in previous versions). Couple of times I clicked on the close button of browser and then realized that I had some important sites opened in different tabs, which I lost as it didn't warn me. Can you please let me know whether this is a bug or a mistake from my side?

    I'm sure you are using Private Browsing mode in Firefox 4. I have also the same problem and I tried to uncheck this option after many times accessing about:config\browser.warnOnquit. And it's wonderful, the warning cameback. I think it's a bug about Private Browsing mode. Hope Mozilla's Developers will fix it.

  • Sometimes I just want to close ONLY one window, but Firefox is closing ALL TABS, and I don't want this!

    I sometimes will open several windows, especially from my Comcast mailbox. When I am through with that window, I will close it, but leave the other ones open. FIrefox won't do this any more, When I close 1 window, Firefox send me a message stating that it is CLOSING ALL TABS. I DONT WANT TO CLOSE all of them, I just want to close the window I am closing!. This is very annoying, because I have to re-log back into everything, because FIrefox is "CLOSING ALL TABS", and all I want to to close ONE window...I am about ready to chuck this browser....I tried to find an answer to this in tools, but was unable to do so. Please help me with this

    Use CTRL+W - to close the surrent tab.
    '''Try the Firefox Safe Mode''' to see how it works there. The Safe Mode is a troubleshooting mode, which disables most add-ons.''
    ''(If you're not using it, switch to the Default theme.)''
    * You can open the Firefox 4.0+ Safe Mode by holding the '''Shift''' key when you use the Firefox desktop or Start menu shortcut.
    * Or use the Help menu item and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    ''Don't select anything right now, just use "'Start in Safe Mode"''
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before using the Firefox shortcut (without the Shift key) to open it again.''
    '''''If it is good in the Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one.
    Please follow the [[Troubleshooting extensions and themes]] article for that.
    ''When you figure out what's causing your issues, please let us know. It might help other users who have the same problem.''

  • If I have multiple browser windows open (not tabs, windows) and I close 1 of them, why do ALL browser windows close?

    If I have multiple browser windows open (not tabs, windows) and I close 1 of them, why do ALL browser windows close?

    How are you closing the window?
    Are you using the File menu or the close X on the title bar?
    Use Alt + F to open the File menu with the Close Tab entry visible (doesn't work with the mouse).

  • Cannot close tabs in Firefox 4 - only able to access 1st and last tab...nothing in between

    As the title says... even if I hover over tabes between 1st and last tabes adn right click, 'close tab' still doesn't close

    nearly. when there are 2 tabs, when I move mouse over the second tab's closing X, OR the new tab opener + near it, it doesn't highlight so I cannot click on them although the area where I can click can be found a bit left for the X and a bit right for the +. If there are more tabs open, only the second tab's closing problem stays, the new-tab-opener's goes. /default theme/

Maybe you are looking for

  • What are the steps for extending a OAF page (11iApplication Salary screen)

    I couldn't proceed further beyond step 3 after following the instruction in OAF Developer's Guide, Chapter 9, Common BC4J Extension, page 890. In Step 3, it says... Create a new view object that extends the parent VO (you create the extended VO just

  • Save As "File Not Found" error?

    I have been working on archiving some shows from our studio. I have done this a LOT over the course of the last year and everything has been fine. I needed to delete one of the buttons from the menu for a certain amount of shows but I didn't want to

  • Connecting Airport Extreme to a DSL

    I have recently acquired an Airport Extreme which is connected to the DSL via an old Linksys Router. Signal keeps dropping and is slow especially in distant rooms. What is the best way to connect airport to DSL. Does the Linksys wireless need to be d

  • Nano/Nike+ question. Will old kit work on the new iPod nano?

    i had a 2nd generation nano with the nike+ kit when it first came out. i was given a 4th generation nano for xmas and was wondering if i can use the same nike+ kit or do i need to purchase a newer one? anyone know?

  • SAP SRM module time line estimate

    I need a very rough first take on requirements, design, build, test, implement, and train for implementing SAP SRM. This module is new to use, but we have been using SAP for many years. Assuming it's all the functionality, would 3 full time FTEs for