X
Tap here to go to the mobile version of the site.

Support Forum

How to have a close tab button when you have only one tab ?

Posted

I'm using FF 24.0 on Win 7 enterprise x64. I would like to have an option to have a close tab button ("x") when you have only one tab. Is this possible ? How ? If not how to submit a feature request ? I did it 10+ times with feedback but didn't see any change. Thanks

I'm using FF 24.0 on Win 7 enterprise x64. I would like to have an option to have a close tab button ("x") when you have only one tab. Is this possible ? How ? If not how to submit a feature request ? I did it 10+ times with feedback but didn't see any change. Thanks

Additional System Details

Application

  • User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.76 Safari/537.36

More Information

Application Basics
------------------
Name: Firefox
Version: 24.0
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Firefox/24.0
Extensions
----------
Name: Adblock Plus
Version: 2.3.2
Enabled: true
ID: {d10d0bf8-f5b5-c8b4-a8b2-2b9879e08c5d}
Name: Disconnect
Version: 3.5.0
Enabled: true
ID: 2.0@disconnect.me
Name: NoScript
Version: 2.6.8.1
Enabled: true
ID: {73a6fe31-595d-460b-a920-fcc0f8843232}
Name: RoboForm Toolbar for Firefox
Version: 7.9.1.1
Enabled: true
ID: {22119944-ED35-4ab1-910B-E619EA06A115}
Name: Speed Dial
Version: 0.9.6.16
Enabled: true
ID: {64161300-e22b-11db-8314-0800200c9a66}
Important Modified Preferences
------------------------------
accessibility.typeaheadfind.flashBar: 0
browser.cache.disk.capacity: 358400
browser.cache.disk.smart_size.first_run: false
browser.cache.disk.smart_size.use_old_max: false
browser.cache.disk.smart_size_cached_value: 358400
browser.places.smartBookmarksVersion: 4
browser.startup.homepage: about:home
browser.startup.homepage_override.buildID: 20130910160258
browser.startup.homepage_override.mstone: 24.0
dom.mozApps.used: true
dom.storage.enabled: false
extensions.lastAppVersion: 24.0
font.internaluseonly.changed: true
gfx.direct3d.last_used_feature_level_idx: 0
network.cookie.cookieBehavior: 1
network.cookie.lifetimePolicy: 2
network.cookie.prefsMigrated: true
places.database.lastMaintenance: 1379925206
places.history.expiration.transient_current_max_pages: 104858
plugin.disable_full_page_plugin_for_types: application/pdf
plugin.importedState: true
privacy.clearOnShutdown.downloads: false
privacy.clearOnShutdown.history: false
privacy.clearOnShutdown.offlineApps: true
privacy.clearOnShutdown.passwords: true
privacy.clearOnShutdown.siteSettings: true
privacy.donottrackheader.enabled: true
privacy.sanitize.migrateFx3Prefs: true
privacy.sanitize.sanitizeOnShutdown: true
storage.vacuum.last.index: 1
storage.vacuum.last.places.sqlite: 1377071219
Graphics
--------
Adapter Description: Intel(R) HD Graphics 4000
Adapter Drivers: igdumdim64 igd10iumd64 igd10iumd64 igdumdim32 igd10iumd32 igd10iumd32
Adapter RAM: Unknown
Device ID: 0x0166
Direct2D Enabled: true
DirectWrite Enabled: true (6.2.9200.16571)
Driver Date: 7-29-2013
Driver Version: 9.18.10.3257
GPU #2 Active: false
GPU Accelerated Windows: 1/1 Direct3D 10
Vendor ID: 0x8086
WebGL Renderer: Google Inc. -- ANGLE (Intel(R) HD Graphics 4000 Direct3D9Ex vs_3_0 ps_3_0)
windowLayerManagerRemote: false
AzureCanvasBackend: direct2d
AzureContentBackend: direct2d
AzureFallbackCanvasBackend: cairo
JavaScript
----------
Incremental GC: true
Accessibility
-------------
Activated: false
Prevent Accessibility: 0
Library Versions
----------------
NSPR
Expected minimum version: 4.10
Version in use: 4.10
NSS
Expected minimum version: 3.15.1 Basic ECC
Version in use: 3.15.1 Basic ECC
NSSSMIME
Expected minimum version: 3.15.1 Basic ECC
Version in use: 3.15.1 Basic ECC
NSSSSL
Expected minimum version: 3.15.1 Basic ECC
Version in use: 3.15.1 Basic ECC
NSSUTIL
Expected minimum version: 3.15.1
Version in use: 3.15.1

iamjayakumars 475 solutions 5852 answers

If its last tab when your going to close that, it close the firefox too.

CTRL + W => to close a current tab.

If its last tab when your going to close that, it close the firefox too. CTRL + W => to close a current tab.

Question owner

Thanks for your answer. I knew about the keyboard shortcut. What I'm looking for is really a close tab button when you only have one tab. Is there an option or an add-on or a trick to have this ? Otherwise, how to submit an official change request (I thought I did this with the numerous feedbacks sent) ? (BTW "chrome" has this feature) I know that sounds specific, but you really end up loosing time switching from mouse to keyboard. If Ctrl-W is the solution, then why not remove the close tab buttons when you have more than one tab too ? Why are those close tab buttons supposed to be useful in multiple tabs mode and no longer in single tab mode ? I'd be interested to know. Thanks for help again, anyway.

Thanks for your answer. I knew about the keyboard shortcut. What I'm looking for is really a close tab button when you only have one tab. Is there an option or an add-on or a trick to have this ? Otherwise, how to submit an official change request (I thought I did this with the numerous feedbacks sent) ? (BTW "chrome" has this feature) I know that sounds specific, but you really end up loosing time switching from mouse to keyboard. If Ctrl-W is the solution, then why not remove the close tab buttons when you have more than one tab too ? Why are those close tab buttons supposed to be useful in multiple tabs mode and no longer in single tab mode ? I'd be interested to know. Thanks for help again, anyway.

Modified by pdecrocq

cor-el
  • Top 10 Contributor
  • Moderator
12740 solutions 117100 answers

Helpful Reply

Set the browser.tabs.closeWindowWithLastTab pref to false on the about:config page to prevent closing the last tab from closing that window and make a close button appear if only one tab is open.

Set the browser.tabs.closeWindowWithLastTab pref to false on the about:config page to prevent closing the last tab from closing that window and make a close button appear if only one tab is open. *http://kb.mozillazine.org/about:config

Question owner

Thanks that does partly what I'm looking for, but then the close button on tab doesn't do what it's meant for : close the tab and thus the window. Is there a way to have an official change request take this into account ?

Thanks that does partly what I'm looking for, but then the close button on tab doesn't do what it's meant for : close the tab and thus the window. Is there a way to have an official change request take this into account ?
the-edmeister
  • Top 10 Contributor
  • Moderator
4027 solutions 30350 answers

Using Feedback and filing a Bugzilla report are the two ways to make a request for enhancement to Firefox. If Mozilla does an enhancement as a result of feedback or a Bug report, it might be years before that enhancement is released into a Firefox release version. That can happen quicker if the person making the request can provide the code necessary to add the new or changed feature.

The usual "path" is via an extension, then after awhile is that extension is popular enough and enough users vote for a Bug report to include that feature in Firefox, it might be added 4 versions of Firefox down the road. But that is a rare occurrence, the Spellbound extension to being the built-in SpellCheck feature is the one example off the top of my head.
http://spellbound.sourceforge.net/
And that was back in 2005.

Using '''Feedback''' and filing a '''Bugzilla report''' are the two ways to make a '''''request for enhancement''''' to Firefox. '''''If''''' Mozilla does an enhancement as a result of feedback or a Bug report, it might be years before that enhancement is released into a Firefox release version. That can happen quicker if the person making the request can provide the code necessary to add the new or changed feature. The usual "path" is via an extension, then after awhile is that extension is popular enough and enough users vote for a Bug report to include that feature in Firefox, it might be added 4 versions of Firefox down the road. But that is a rare occurrence, the Spellbound extension to being the built-in SpellCheck feature is the one example off the top of my head. <br /> http://spellbound.sourceforge.net/ <br /> And that was back in 2005.

Question owner

Thanks too for this information. However what you tell me dispappoints me for three reasons :

  1. / what you explain yourself is not very motivating (given the time it takes for a request to be included in the product)
  2. / I used the feedback mechanism 10+ times without ANY reaction (which is why I ended submitting this request here)
  3. / I'm not an extensions' developer and I totally ignore how to program this.

I will try to open a bugzilla report, but I doubt about the result. Then the ultimate solution to this, will be to totally stop using FF and fully migrate to browsers which implement that behaviour the way I want (e.g. Chrome).

edit: paragraphs

Thanks too for this information. However what you tell me dispappoints me for three reasons : #/ what you explain yourself is not very motivating (given the time it takes for a request to be included in the product) #/ I used the feedback mechanism 10+ times without ANY reaction (which is why I ended submitting this request here) #/ I'm not an extensions' developer and I totally ignore how to program this. I will try to open a bugzilla report, but I doubt about the result. Then the ultimate solution to this, will be to totally stop using FF and fully migrate to browsers which implement that behaviour the way I want (e.g. Chrome). <sub>edit: paragraphs</sub>

Modified by John99

Question owner

FYI I filed a bug in bugzilla = > #919952

FYI I filed a bug in bugzilla = > #919952
the-edmeister
  • Top 10 Contributor
  • Moderator
4027 solutions 30350 answers

Time wise, Mozilla is like a big ocean liner, it takes time and distance to get up to speed, is takes time and distance to turn, and takes time and distance to get it to stop. Changes to the direction need to plotted correctly and do take time to implement - nothing beyond Security fixes are even considered in one version, six weeks time - unless Firefox is broken for a fairly large number of users.

People create extensions to add the features that a person wants or feels that Firefox should have to begin with, that's the beauty of open source in general and Mozilla in particular.

Feedback results are correlated to see the total numbers for similar feature requests and comments, 10 in a row or over short period of time can result in all of that SPAM just being ignored. Pus there is no way for a feedback submission to receive any sort of response from Mozilla.


Sorry, but I feel that Bugzilla report will be labeled WONTFIX very quickly.
You didn't follow proper Bug writing guidelines:
https://developer.mozilla.org/en/Bug_writing_guidelines

To begin with you didn't' select a Component, then under Expected results: (like in chrome) means little beyond emulating the "competition".

Overall, I wouldn't be surprised to see "design decision" mentioned as the reason for WONTFIX. IMO, placing a close X in a solitary open tab would run contrary to Mozilla's recent changes to Firefox and their plans with the Australis GUI appearance for Firefox in the near future.

Time wise, Mozilla is like a big ocean liner, it takes time and distance to get up to speed, is takes time and distance to turn, and takes time and distance to get it to stop. Changes to the direction need to plotted correctly and do take time to implement - nothing beyond Security fixes are even considered in one version, six weeks time - unless Firefox is broken for a fairly large number of users. People create extensions to add the features that a person wants or feels that Firefox should have to begin with, that's the beauty of open source in general and Mozilla in particular. Feedback results are correlated to see the total numbers for similar feature requests and comments, 10 in a row or over short period of time can result in all of that SPAM just being ignored. Pus there is no way for a feedback submission to receive any sort of response from Mozilla. Sorry, but I feel that Bugzilla report will be labeled WONTFIX very quickly. <br /> You didn't follow proper Bug writing guidelines: <br /> https://developer.mozilla.org/en/Bug_writing_guidelines To begin with you didn't' select a Component, then under Expected results: '''(like in chrome)''' means little beyond emulating the "competition". Overall, I wouldn't be surprised to see "design decision" mentioned as the reason for WONTFIX. IMO, placing a close X in a solitary open tab would run contrary to Mozilla's recent changes to Firefox and their plans with the Australis GUI appearance for Firefox in the near future.
cor-el
  • Top 10 Contributor
  • Moderator
12740 solutions 117100 answers

Chosen Solution

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

Question owner

Thanl you ! That's a nice workaround suggestion. Gonna try it immediately. Still I leave the bugzilla open b/c to me that should be standard in FF (at least as an option).

Thanl you ! That's a nice workaround suggestion. Gonna try it immediately. Still I leave the bugzilla open b/c to me that should be standard in FF (at least as an option).

Helpful Reply

Thanks again for the "close button" addon advice. I tried it but no luck, the close button doesn't appear on tabs but in the toolbar (which I do not display). So the problem remains for me.

Thanks again for the "close button" addon advice. I tried it but no luck, the close button doesn't appear on tabs but in the toolbar (which I do not display). So the problem remains for me.
hyess 0 solutions 2 answers

since the browser is open source, where in the source code and in which file of source code is located the piece of code which makes that button disappear when the current tab count is 1? where's the piece of code that looks like

onbrowserload and onanytabclose:

 if (currTabCount==1) 
   tab[0].closeButton.visibility = false

?

Thanks!

since the browser is open source, where in the source code and in which file of source code is located the piece of code which makes that button disappear when the current tab count is 1? where's the piece of code that looks like onbrowserload and onanytabclose: if (currTabCount==1) tab[0].closeButton.visibility = false ? Thanks!
hyess 0 solutions 2 answers

partial solution (tab close button to the right of all tabs):

go to url about:config, find browser.tabs.closeButtons, and set value to 3

partial solution (tab close button to the right of all tabs): go to url about:config, find browser.tabs.closeButtons, and set value to 3
James
  • Top 25 Contributor
  • Moderator
699 solutions 5176 answers

As it has not been mentioned, if you are using a mouse or trackball (in my case a Logitech T-CH11) and it has a scroll wheel or a middle click button you can use that to not only open links into a new tab but also to use middle-click on tab to close tab.

As it has not been mentioned, if you are using a mouse or trackball (in my case a Logitech T-CH11) and it has a scroll wheel or a middle click button you can use that to not only open links into a new tab but also to use middle-click on tab to close tab.

Question owner

@Hyess : I don't know at all (re. source code request)

@Hyess : I don't know at all (re. source code request)

Modified by pdecrocq

Question owner

@hyess : This has already been suggested, it doesn't do what i'm looking for (re. browser.tabs.closeButtons, and set value to 3)

@hyess : This has already been suggested, it doesn't do what i'm looking for (re. browser.tabs.closeButtons, and set value to 3)

Modified by pdecrocq

Question owner

@james : your suggestion doesnot work when in single tab mode (i.e. it doesn't close the last tab. re middle-click) Thanks anyway I didn't know that.

@james : your suggestion doesnot work when in single tab mode (i.e. it doesn't close the last tab. re middle-click) Thanks anyway I didn't know that.