10.6: Fix creation of widgets due to custom style sheets

May 14, '10 07:30:00AM

Contributed by: Anonymous

Snow Leopard only hintIf you find you cannot create web clip widgets (File » Open in Dashboard) from Safari, try looking into Preferences » Advanced tab. If there is a custom style sheet under 'Style sheet' option, set it to None selected, create the web clip and it should work. Then it's OK to re-enable the custom style sheet.

I thought it might be worthwhile to summarize this possibility in a hint because I spent an hour wondering what was wrong with an almost-freshly-installed Snow Leopard on a Mac Book Pro -- all I could get was a white rectangle and a com.apple.widget.web-clip: illegal type passed to setPreferenceForKey: undefined error message in the Console.

While you'd definitely remember setting your own CSS, some third party plug-ins (notably, ad/scam blockers and content filters) may set a custom CSS for their own needs without your knowledge.

[crarko adds: I tried this with a custom style sheet I had and had no problem saving clippings to the Dashboard. There must be some specific setting in some style sheets which can cause the issue, but I don't know what that setting is. This may be specific to 10.6, so I've left it marked as the author submitted it -- but if you're having the same issue in 10.5, please let me know.]

Comments (3)


Mac OS X Hints
http://hints.macworld.com/article.php?story=20100513070440911