Closed
Bug 715416
Opened 14 years ago
Closed 12 years ago
can't open firefox if previous page asks to close itself
Categories
(Firefox :: General, defect)
Tracking
()
VERIFIED
WORKSFORME
People
(Reporter: descartavel1, Unassigned)
Details
User Agent: Mozilla/5.0 (X11; Linux i686; rv:8.0) Gecko/20100101 Firefox/8.0 Iceweasel/8.0
Build ID: 20111130203654
Steps to reproduce:
1. set option to reopen firefox with previous tabs.
2. leave firefox with only one page what closes itself. (in my case, it was the internal page from firefox asking my permission to update the language pack after i installed it in debian via apt-get. i confirmed, and it redirect to some page that closed the browser -- it was the only open tab)
3. try to open the browser again
Actual results:
browser opens, and immediately exits.
Expected results:
browser should have stayed open.
every other browser (opera, chrome) when you close the last tab, keeps the browser open (opera with an empty tab, chrome with an annoying "start tab")... firefox used to do the empty tab too. not anymore. it would have not made this an issue.
workaround:
open a terminal, run `firefox -new-window anything`
typo, sorry.
"2. leave firefox with only one page WHICH closes itself."
workaround 2:
go to about:config
set "browser.tabs.closeWindowWithLastTab" to false
Comment 3•12 years ago
|
||
Gabriel, can you still reproduce this issue with current Firefox builds?
It works fine for me when I leave only the about:dialog open and I press the restart button. Firefox restarts and it opens the page I had on the main Firefox window when I closed it. Tested on Firefox 25 Aurora - update from the 09/02 build to the 09/04 one.
Flags: needinfo?(descartavel1)
Updated•12 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 12 years ago
Resolution: --- → WORKSFORME
I did not save the use case at the time. I tried a new one now, naively maybe, using window.close()
I get "Scripts may not close windows that were not opened by script." on the console and the page remains. Maybe previous versions were saving the flag that the tab was opened by a script?
test case was a document with only this script:
setTimeout(function(){
window.close() || window.open(document.location.href);
}, 1000);
open that page, it will spaw a new one, close the original and close the browser before timer is up.
open the browser again and it will be saved on the session. it should not be able to close itself.
Status: RESOLVED → VERIFIED
Flags: needinfo?(descartavel1)
You need to log in
before you can comment on or make changes to this bug.
Description
•