Mac Safari closes window when opening new tab


#1

Safari v. 11.1.2 on a 2013 iMac… (it’s been doing this for a couple of months… don’t know when the last update was, or if it started then…)

About 20 percent of the time, when I open a new tab (or open a tab and then put the cursor in the URL field), the entire window closes. I’ve tried ALL the following, but it persists:

  • Safari/Preferences/Advanced - enable the Develop menu, then go there and Empty Caches. Quit/reopen Safari and test.

  • Safari/History/Show History and delete all history items. Quit/reopen Safari and test.

  • Safari/Clear History

  • Select Library/Caches/com.apple.Safari/Cache.db and move it to the trash.

  • Go to Safari Preferences/Extensions and turn all extensions off. Test. If okay, turn the extensions on one by one until you figure out what extension is causing the problem.

I’m at a loss… Is there anything else I can try?

Thanks,
Russell


#2

If you use Safe Boot and the problem persists, it’d probably be worth backing up and reinstalling the OS.


#3

Thanks. I may have to give this a try. Can I reinstall the OS without a full “nuke and pave?”


#4

That seems far too extreme. I’d first try to create a new user account and see if the problem is there.


#5

Reinstalling the system is a bit drastic. I’d try resetting Safari first, among other things.

First of all, back up your computer.

Then try the following. It may not seem that some of these would cause the problem, but strange things can happen and these are fairly benign:

  1. Disable all your Safari extensions. If this fixes, it, you can iteratively figure out where the problem is by replacing them one by one.

  2. Clear the Safari history. It’s an item under the Safari menu.

  3. Clear the Safari caches. The easiest way to do this is to use the Develop menu. If you don’t have it enabled, you can do so by going to Safari>Preferences>advanced and checking the box.

  4. Quit Safari. Then go to ~/Library and move the Safari file to the desktop. This clears almost all the settings. Restart Safari and see if it works. If this does not fix it, you can always move the original file back to restore settings you want to keep. You might delay dong this until you first try step 5:

  5. Quit Safari. Go back to the library folder and open the caches folder. Delete anything that starts with com.apple.safari… restart and see if things are better.

Hopefully, one of these will work.


#6

Sorry, yes, I meant to just reinstall without wiping. Backing is just always wise as a precaution. I imagine you’ve resolved things by now - what was the outcome?


#7

No, it still happens after all the steps Quahog suggested, and even after upgrading from Sierra to Mojave. I’ve about given up, resorting to the keyboard shortcut to reopen last closed window. :frowning: