Windows closing when clicking on .webloc files.

Hi!


Something weird is happening: when I select or click a .webloc file, my windows close!


Here is a clip: Dropbox - webloc.mov


I restarted many times without success.


Thanks!


Chris.

MacBook Pro with Retina display, macOS Sierra (10.12.6), null

Posted on Sep 21, 2018 6:47 AM

Reply
19 replies

Sep 21, 2018 9:37 AM in response to Krissserz

What Mac/model/year


What macOS?


What Safari version?


Recent upgrade/ new software?


On going issues ?


To trouble shoot further you can:


Try a SafeBoot https://support.apple.com/en-us/HT201262

Takes noticeable longer to get to the login screen, does a 5 minute disk repair before it loads up, and certain system caches, dynamic loader cache, etc. get cleared and rebuilt.

This test will tell you if third party interference; extensions etc are not loaded in safe boot mode.


Test issue in another user (or guest user) account https://support.apple.com/en-us/HT204443

This will tell you if it a universal issue or isolated to your user/admin account.



Boot into Recovery (Command R) and from the dropdown menu: Utilities> Disk Utility> run the First Aid on your Macintosh HD. If errors are found and repaired, run again until no errors reported.


Recovery http://support.apple.com/kb/HT4718

Dec 28, 2018 3:58 PM in response to Krissserz

SOLUTION

  • Currently working for OS X 10.12.6
  • Finder doesn't crash when .weblock is clicked.
  • Safari is able to launch the url.
  • However, Quicklook views .weblocs as plain text files, bypassing the web preview generation.


Overview

Step 1

File: /System/Library/QuickLook/Web.qlgenerator/Contents.info.plist

Remove: <string>com.apple.weblocation</string>



Step 2

File: /System/Library/QuickLook/Text.qlgenerator/Contents.info.plist

Add:

<string>com.apple.internet-location</string>

Location:

<string>QLGenerator</string>
<key>LSItemContentTypes</key>
<array>
	<string>public.data</string>
	<string>com.apple.internet-location</string> <!-- sierra-webloc-crashfix  -->
</array>


Step 3

Copy File: /System/Library/QuickLook/Text.qlgenerator

Move Copy:/Library/QuickLook/Text.qlgenerator


Step 4

Terminal Command:

qlmaange -r 


Basic instructions for editing these types of files:

ex.Step 1


Locate File: /System/Library/QuickLook/Web.qlgenerator/

-Right Click and select “Show Package Contents”


Copy File to desktop: /System/Library/QuickLook/Web.qlgenerator/Contents.info.plist

…Enter PW to allow changes

Duplicate File on desktop & rename: original.Contents.info.plist

-Edit desktop/Contents.info.plist

Remove:

<string>com.apple.weblocation</string>


- Save, move both files to replace original File: /System/Library/QuickLook/Web.qlgenerator/Contents.info.plist

…Enter PW to allow changes


ect.


Sep 21, 2018 6:51 PM in response to Krissserz

Krissserz wrote:


Hi!


Thanks for your reply.


  • Mac/model/year: MacBook Pro (Retina, 15-inch, Mid 2015)
  • What macOS? 10.12.6
  • What Safari version? 12.0
  • Recent upgrade/ new software? No
  • On going issues? Adobe InDesign is unusable when InDesign is operating.


I will try your suggestions.


Thanks!


There seems to be some random oddities with Safari 12 not playing nice.


You can fall back to before the Safari 12, however there is no stand alone installer, therefore you have to restore your macOS from Time machine.

Jan 12, 2019 11:09 AM in response to Chris-Alvarado

I'm stuck on Step 1....

I followed some steps somewhere else to fix the spotlight error caused by Safari 12....


Following your steps to fix the webloc issue. (I don't care for quicklook, but I use "get info" a bit and I guess the two are tied together... get info on a .webloc is causing my finder to crash. (OS Sierra.... Mojave bricked a bunch of software that I use regularly.... and it seems like Apple is trying to make Safari jack up the rest.)


Anyway... I opened the info.plist (plist version 1.0) in BBEdit (Formerly TextWrangler) and I don't have a "<string>com.apple.weblocation</string>" line to delete.


Skip and go to step 2 or make a "genius" appointment and kick someone in the nads?

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Windows closing when clicking on .webloc files.

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.