Restart Firefox

Discussion of general topics about Mozilla Firefox
Post Reply
User avatar
keithy397
Posts: 2352
Joined: August 29th, 2004, 6:49 pm
Location: North Wales, UK.

Restart Firefox

Post by keithy397 »

Hi,

Anyone know of a simple way to restart the browser?

Searches have led me to two complicated extensions, both of which are far too fiddly for me! I just want to hit a button and the browser restarts!!
Cheers,
Keith
morat
Posts: 6421
Joined: February 3rd, 2009, 6:29 pm

Re: Restart Firefox

Post by morat »

You can restart the app using the "Restart normally" button in the about:profiles page.

I use a userChrome.js hack to create a restart button. (geeks only)

More info: http://forums.mozillazine.org/viewtopic ... #p14854175
User avatar
keithy397
Posts: 2352
Joined: August 29th, 2004, 6:49 pm
Location: North Wales, UK.

Re: Restart Firefox

Post by keithy397 »

The about:profiles method suits me fine.

Thanks for the tip.
Cheers,
Keith
User avatar
ndebord
Posts: 1122
Joined: December 7th, 2002, 9:53 am

Re: Restart Firefox

Post by ndebord »

keithy397 wrote:Hi,

Anyone know of a simple way to restart the browser?

Searches have led me to two complicated extensions, both of which are far too fiddly for me! I just want to hit a button and the browser restarts!!
Wrong post

Nick
-N- Si vis pacem, para bellum
FrameWork, SeaMonkey(64-bit),Windows 10 Pro (X64- 21H2), WinPatrol, Malwarebytes & Panda Dome
User avatar
FineWine
Posts: 230
Joined: July 16th, 2004, 12:21 am

Re: Restart Firefox

Post by FineWine »

Yes it would be nice if Mozilla listened to their users. This request has been around for a long long time.

At the moment I use the 'Bookmark' of 'about:Profiles' trick and just have that at the far left of my Bookmarks Toolbar which then places it next to my 'New Tab' button.

A nice 'Restart' button (from the Customise Panel) plus an entry in the 'Firefox' menu above the 'Quit' entry and even in the macOS Dock and Windows System Tray icons would be great.
morat
Posts: 6421
Joined: February 3rd, 2009, 6:29 pm

Re: Restart Firefox

Post by morat »

Mozilla should implement the about:restart url like Google.

Restart Google Chrome
http://edgetalk.net/chrome-tip-properly ... sing-tabs/
User avatar
keithy397
Posts: 2352
Joined: August 29th, 2004, 6:49 pm
Location: North Wales, UK.

Re: Restart Firefox

Post by keithy397 »

ndebord wrote:
keithy397 wrote:Hi,

Anyone know of a simple way to restart the browser?

Searches have led me to two complicated extensions, both of which are far too fiddly for me! I just want to hit a button and the browser restarts!!
Wrong post

Nick
Don't understand what you mean Nick? Wrong Forum?
Cheers,
Keith
User avatar
keithy397
Posts: 2352
Joined: August 29th, 2004, 6:49 pm
Location: North Wales, UK.

Re: Restart Firefox

Post by keithy397 »

morat wrote:Mozilla should implement the about:restart url like Google.

Restart Google Chrome
http://edgetalk.net/chrome-tip-properly ... sing-tabs/
Is it my cynicism or would that be too easy?!
Cheers,
Keith
User avatar
BruceAWittmeier
Posts: 3076
Joined: June 9th, 2008, 10:53 am
Location: Near 37.501685 -80.147967

Re: Restart Firefox

Post by BruceAWittmeier »

I know this is a bit older thread but this is my solution.

Enter this on the URL bar: about:restartrequired

Then drag the url to your bookmark toolbar

When the page opens there is 1 button "restart firefox" -- click this button and browser restarts.

All your open tabs are in place.

See option 1 here. Comment is it is a hidden page remaining in Firefox.
https://www.thewindowsclub.com/restart- ... -same-tabs
I often take a long windy road to my destination. Upon arrival, I wonder how I missed the shortcut.
User avatar
keithy397
Posts: 2352
Joined: August 29th, 2004, 6:49 pm
Location: North Wales, UK.

Re: Restart Firefox

Post by keithy397 »

BruceAWittmeier wrote:I know this is a bit older thread but this is my solution.

Enter this on the URL bar: about:restartrequired

Then drag the url to your bookmark toolbar

When the page opens there is 1 button "restart firefox" -- click this button and browser restarts.

All your open tabs are in place.

See option 1 here. Comment is it is a hidden page remaining in Firefox.
https://www.thewindowsclub.com/restart- ... -same-tabs
Thanks for the tip.

I've been using the about:profiles method for a little while since picking up the tip here. Coincidentally, the tip for this method is on the same page as the tip for about:restartrequired in the link you provided! Both methods return open tabs.
Cheers,
Keith
User avatar
BruceAWittmeier
Posts: 3076
Joined: June 9th, 2008, 10:53 am
Location: Near 37.501685 -80.147967

Re: Restart Firefox

Post by BruceAWittmeier »

I'm still curious if it is possible to put an basic html wrapper around the .js file and let the restartrequired.js be the only call.

The source of
about:restartrequired
gives you some JS code.

It calls this which seems to do the work:
chrome://browser/content/aboutRestartRequired.js

Put this file somewhere on your PC and accomplish restart with 1 single click.

I think this is what morat's recommendation produces but too involved for me. I don't know JS well enough to do any good. Any hackers want a task? :)
I often take a long windy road to my destination. Upon arrival, I wonder how I missed the shortcut.
morat
Posts: 6421
Joined: February 3rd, 2009, 6:29 pm

Re: Restart Firefox

Post by morat »

@BruceAWittmeier

You can't run the aboutRestartRequired.js file in the command prompt window. Microsoft JScript compiler wouldn't understand Mozilla API calls.

You would have to create a command line handler to restart the app using a desktop icon.

More info: http://forums.mozillazine.org/viewtopic ... &t=3060782
User avatar
BruceAWittmeier
Posts: 3076
Joined: June 9th, 2008, 10:53 am
Location: Near 37.501685 -80.147967

Re: Restart Firefox

Post by BruceAWittmeier »

Thanks for responding.

I wasn't thinking about a command prompt window but an html with a JS call in it using the about:restartrequired script.

I have used JS before but only to the limit of copying it and a couple tweaks for my information. But I don't know how to construct an html shell to make a JS call.

If you right-click the button to perform the restart you can see all the JS. I was thinking if I could get this into an html page it could be reduced to 1 click.

I'm sorry if it doesn't make sense but it is not my strong suit.
I often take a long windy road to my destination. Upon arrival, I wonder how I missed the shortcut.
Post Reply