Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
AAAAWWWWWEEEESSSSOOOMMMMMEEEE!!!!

That was it! That worked. Thank you!!!

It would be nice to find out why this was a problem on my MBP, but not the iMac.

Glad it worked...but I have noticed that some Lion specific trackpad gestures aren't working now (ie. two finger swipe to go back/forward). Since you have an iMac that is working properly with a clean install of Lion, would you mind sharing your Safari.framework from the location Mac/System/Library/PrivateFrameworks

I tried to pull it from the Lion InstallESD.dmg but it appears to be empty.

Thanks
 
Stumped!

Glad it worked...but I have noticed that some Lion specific trackpad gestures aren't working now (ie. two finger swipe to go back/forward). Since you have an iMac that is working properly with a clean install of Lion, would you mind sharing your Safari.framework from the location Mac/System/Library/PrivateFrameworks

I tried to pull it from the Lion InstallESD.dmg but it appears to be empty.

Thanks

Well, here is another twist. I pulled a copy of the Safari.framework from my properly working iMac System/Library to test it back on the MBP (which your download file fixed.)

I was thinking, as I am assuming you might be, if I pull the Safari.framework over from the iMac that would restore the Lion version of Safari back to a fully functioning Lion / Safari 5.1 condition.

Not so. The gray bar came back. So I re-downloaded your original zip, replaced, and now fixed again.

Stumped.
 
Well, here is another twist. I pulled a copy of the Safari.framework from my properly working iMac System/Library to test it back on the MBP (which your download file fixed.)

I was thinking, as I am assuming you might be, if I pull the Safari.framework over from the iMac that would restore the Lion version of Safari back to a fully functioning Lion / Safari 5.1 condition.

Not so. The gray bar came back. So I re-downloaded your original zip, replaced, and now fixed again.

Stumped.

After trial and error I found the actual file within Safari.frameworks that is responsible for the gray url bar. The file is named Safari (no extension) and is located in /System/Library/PrivateFrameworks/Safari.framework/Versions/A

When using the SL version, the gray bar is fixed at the expense of specific 5.1 Lion features.

I'm stumped too, but will post back if I figure anything out.
 
Keep us posted. I have the same problem and I'm baffled... I tried pulling in the safari framework from a working version on my MBP and it does solve the problem...at the expense of the gestures and full app capabilities.
 
I tried the fix listed here and I no longer have fullscreen, like other people have been experiencing. Can someone post the original files (from Lion) so I can restore fullscreen capability. I would rather have a grey bar (until they fix it at least) than lose out on fullscreen.
 
Hi all, I have been having the same problem and thought I would update you with what I have found.

First, as others have said replacing the Mac/System/Library/PrivateFrameworks file does not seem to actually fix the problem, it gets rid of all of the OSX lion specific features of safari 5.1 - and effectively changes you back to the snow leopard version of safari - which is no good.

The problem must be related in some way to user accounts, because when I create a new user account and open safari in that, the address bar is the correct colour and not grey'ed out. However, it does not seem to be a preference file issue with safari, because deleting my safari preference files does not fix the issue. I am guess that there must be some operating system preference file that I have tweaked in the past, which is now messing up safari. So my next move is going to be trying to remove all my preference files to a folder on the desktop and seeing if that fixes the problem.

I'm not really comfortable posting my safari framework file because i don't know whether that contains personal info or not, but if you are stuck with the old file then re-installing lion should fix it i would guess? (a bit of a timesink but better than being stuck on the old one)
 
"The problem must be related in some way to user accounts, because when I create a new user account and open safari in that, the address bar is the correct colour and not grey'ed out."

I have had the exact same experience. Color correct on new user account.

"I am guess that there must be some operating system preference file that I have tweaked in the past, which is now messing up safari."

Both my iMac and MBP are slightly tweak'd with differences for my use.
I agree with you on this point. This must be User related. I just don't have a clue where to start.


"So my next move is going to be trying to remove all my preference files to a folder on the desktop and seeing if that fixes the problem."

When you state "all my preferences files" are you meaning the entire preferences folder?

Just curious what your process is.
 
Like I said a couple of days ago, the difference is in the Unix Executable File named "Safari" located in /System/Library/PrivateFrameworks/Safari.framework/Versions/A

If you open up that file in an editor (even TextEdit) you will see references to other frameworks. Here is a little snippet:

Code:
h/System/Library/PrivateFrameworks/Apple80211.framework/Versions/A/Apple80211
Xô/System/Library/Frameworks/Carbon.framework/Versions/A/Carbon
X/System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa
h/System/Library/Frameworks/CoreLocation.framework/Versions/A/CoreLocation
ÄW/System/Library/PrivateFrameworks/CrashReporterSupport.framework/Versions/A/
X/System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
h0/System/Library/Frameworks/JavaScriptCore.framework/Versions/A/JavaScriptCore
8./usr/lib/libicucore.A.dylib
/usr/lib/libsqlite3.dylib
8/usr/lib/libtidy.A.dylib
0/usr/lib/libxar.1.dylib
X/System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL
X/System/Library/Frameworks/PubSub.framework/Versions/A/PubSub
`/System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore
`‚÷/System/Library/Frameworks/Security.framework/Versions/A/Security
p›÷/System/Library/Frameworks/SecurityFoundation.framework/Versions/A/SecurityFoundation
p‹÷/System/Library/Frameworks/SecurityInterface.framework/Versions/A/SecurityInterface
p/System/Library/PrivateFrameworks/SyndicationUI.framework/Versions/A/SyndicationUI
pã/System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration
X0/System/Library/Frameworks/WebKit.framework/Versions/A/WebKit
`0/System/Library/PrivateFrameworks/WebKit2.framework/Versions/A/WebKit2
84/usr/lib/libstdc++.6.dylib
8ü/usr/lib/libSystem.B.dylib
8‰/usr/lib/libobjc.A.dylib
h5/System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
h{ñ/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
p)/System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices
`A,/System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
Xr-/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit

I haven't had time to look at all of these frameworks but my guess is one of them is actually causing the problem. The reason replacing Safari.framework from Snow Leopard worked is because that Unix Executable "Safari" didn't have the references to an externally referenced "problem" framework.

So if anyone has time to dig deeper I would take a look at that. If I find time I will also post back.
 
I just spent some time looking at those frameworks and do not see what could be causing the problem. Confused.

I also created a new user account and of course everything is working properly. I need to figure out the connection between user accounts and the framework. It doesn't make any sense. If the frameworks and all files aren't changing with a new user account then it must be a preference file... one that I haven't found. The changes in the URL bar when changing/replacing the framework with the Snow Leopard version may or may not be a coincidence.

So basically I got nothing. :(
 
I've given up trying to fix this problem because I found that safari was also consuming stupid amounts of memory over time and bringing my mac to a total halt. I've gone back to using google chrome which is both faster and more stable on my laptop anyway.
 
I've given up trying to fix this problem because I found that safari was also consuming stupid amounts of memory over time and bringing my mac to a total halt. I've gone back to using google chrome which is both faster and more stable on my laptop anyway.

I agree. Plus, Google is in the process of creating a Lion specific build that will take advantages of gestures and full screen capabilities. http://chromeossite.com/2011/07/25/chrome-for-os-x-lion-in-the-making/
 
Silly me.

I tried the fix, using the supplied Safari.framework. Which of course removed Lion features.

So I tried to copy the one over from my Macbook Air. Which has basically broke Safari, it now won't open. It quits on opening.

So I tried overwriting this with the supplied Safari.framework again, but Safari still crashes upon opening.

I'm really confused as to how this is possible, as it was working just minutes ago with this folder.

Any ideas? ATM Safari is dead.

It's not working for any of the other users on the machine either.

Thanks.
 
Silly me.

I tried the fix, using the supplied Safari.framework. Which of course removed Lion features.

So I tried to copy the one over from my Macbook Air. Which has basically broke Safari, it now won't open. It quits on opening.

So I tried overwriting this with the supplied Safari.framework again, but Safari still crashes upon opening.

I'm really confused as to how this is possible, as it was working just minutes ago with this folder.

Any ideas? ATM Safari is dead.

It's not working for any of the other users on the machine either.

Thanks.

This may have happened if you didn't replace all files when copying the framework folder. If you choose "keep new" or any other option, there are probably inconsistent or missing files within the folder. Creating a new user account won't help as those system files are the same across all users. Your best bet is either to get a good copy of the folder from a lion install or reinstall lion (it doesn't take that long). If you are completely stuck, post back and I will try to upload the Lion framework.
 
I just wanted to update this thread.

I was never able to correct the Safari gray address bar issue without removing Lion features from Safari. Instead, I created a new user account and everything is working as it should. This may be obvious to some, but I wanted to share the steps I used to create a new user account while maintaining the same user name.

1.) login to a different user account with admin privileges (create one if it doesn't exist).

2.) delete the user that exhibits the safari bug.

3.) choose to keep the home folder in the users folder

4.) create a new user with the same name and info as the one you just deleted

5.) login to the new user account so the OS creates a new home folder

6.) in Finder under the users folder you will see two folders, username and username deleted

7.) copy all contents of each folder (Documents, etc) from username deleted over to the folders located in your new home folder.

8.) log out all users and reboot for good measure.

Now, you will have lost some user prefs, but in my experience it should take 10-15 minutes at most to set everything up again. That's a lot better than the hours I've spent trying to troubleshoot the original issue.
 
I just went through a round of frustration with this having downloaded the suggested safari framework replacement. It gave me back a functioning address bar, but as others have noted - it left me without full screen functionality.

Having stupidly deleted the old framework and not having backed it up - I went to the Apple Store and downloaded the Safari framework from a laptop there. After replacing the framework, the full screen was working but not the swipes. I went into settings and turned off all swipes, rebooted and turned the swipes back on. Now everything is working the way it is supposed to. However, I don't know why the address bar stopped working so i'm not confident the problem won't return.
 
I have solved the URL bar bug.

Here's what I did. I decided to download Safari 5.1 for Snow Leopard and take a look at some of the files using Pacifist and compared them to my system files to see if there was a possibility I had some rogue orphans lying about.

Nothing really stood out so I began to systematically manually "install" the Snow Leopard version of Safari. Well, finally I found the directory of files that was causing the bug. I am not sure exactly what file(s) but I do know that Safari.framework which is located in /System/Library/PrivateFrameworks was causing the problem. So, I extracted Safari.framework from the Snow Leopard install package and copied it over to /System/Library/PrivateFrameworks.

If you want to save yourself some time, I've included a link to a zip file containing just the folder Safari.framework taken directly from the Snow Leopard Safari install package.

EDIT: THIS WILL REMOVE ANY SPECIFIC LION FEATURES FROM SAFARI. ALSO, THIS SHOULD GO WITHOUT SAYING, BUT PLEASE BACK UP ANY FILES YOU PLAN TO REPLACE FIRST!

http://www.mediafire.com/?fpie39iu5su9m3m

1.) Quit Safari
2.) Unzip Safari.framework.zip
3.) Copy the entire folder Safari.framework to Mac/System/Library/PrivateFrameworks. You will need to authenticate and overwrite all files (don't keep "newer versions" as that won't fix the problem).
4.) Relaunch and done.

Hope this helps.

Outstanding, thank you so much for your good work.
 
Return CoreUI to defaults.

I too had the gray address bar and I tried everything in this thread and it "fixed" the issue but removed the Lion features.

I think I caused this problem when I installed Magnifique using Leopard a few years back. I looked up threads about removing the damage cause by Magnifique and came across one that recommended that I return my CoreUI to default.

To return your theme to default go to terminal and enter "defaults write -g AppleUseCoreUI -bool YES" (without quotation marks, of course).

I tried this and it worked. My Safari no has a pristine white address bar with Lion features. Of course, back up first.
 
I too had the gray address bar and I tried everything in this thread and it "fixed" the issue but removed the Lion features.

I think I caused this problem when I installed Magnifique using Leopard a few years back. I looked up threads about removing the damage cause by Magnifique and came across one that recommended that I return my CoreUI to default.

To return your theme to default go to terminal and enter "defaults write -g AppleUseCoreUI -bool YES" (without quotation marks, of course).

I tried this and it worked. My Safari no has a pristine white address bar with Lion features. Of course, back up first.

Well done! I knew I too installed something a while back that customized my UI but I couldn't for the life of me remember what it was. I also had Magnifique and now it all makes sense. I have since created a new profile but this would have been a whole lot easier. Thanks for updating the thread.
 
Am I Screwed?

I have solved the URL bar bug.

Here's what I did. I decided to download Safari 5.1 for Snow Leopard and take a look at some of the files using Pacifist and compared them to my system files to see if there was a possibility I had some rogue orphans lying about.

Nothing really stood out so I began to systematically manually "install" the Snow Leopard version of Safari. Well, finally I found the directory of files that was causing the bug. I am not sure exactly what file(s) but I do know that Safari.framework which is located in /System/Library/PrivateFrameworks was causing the problem. So, I extracted Safari.framework from the Snow Leopard install package and copied it over to /System/Library/PrivateFrameworks.

If you want to save yourself some time, I've included a link to a zip file containing just the folder Safari.framework taken directly from the Snow Leopard Safari install package.

EDIT: THIS WILL REMOVE ANY SPECIFIC LION FEATURES FROM SAFARI. ALSO, THIS SHOULD GO WITHOUT SAYING, BUT PLEASE BACK UP ANY FILES YOU PLAN TO REPLACE FIRST!

http://www.mediafire.com/?fpie39iu5su9m3m

1.) Quit Safari
2.) Unzip Safari.framework.zip
3.) Copy the entire folder Safari.framework to Mac/System/Library/PrivateFrameworks. You will need to authenticate and overwrite all files (don't keep "newer versions" as that won't fix the problem).
4.) Relaunch and done.

Hope this helps.

I went to the Mac/System/Library/PrivateFrameworks folder in Lion on my MacBook Air and, using my contextual menu, compressed the file residing there.

I followed the precise, excellent instructions that ominx posted for the fix and it worked.

However, I can no longer use some of the Lion Safari features and if it comes to choosing these features over the gray menu bar, then I can live with the gray menu bar and I'd like to restore the original Mac/System/Library/PrivateFrameworks folder

Problem: I can't find the zipped file. Maybe I moused down to something else in that contextual menu, I don't know.

Is there anything I can to go go back? There is a MacBook and iMac in this household, both running Lion. Can I copy this folder from one of those machines and replace the Mac/System/Library/PrivateFrameworks folder currently there?

Thanks, and just joined this Forum today when I found this thread.
 
GREAT WORK @mikeyasx

I've been looking at that damn bar for months now. Checked a few times to see if there were any solutions, and now, finally came upon yours. Worked like a charm.

Thank you thank you thank you.

-J
 
Hi,

Replacing Safari with the older version is a poor workaround; this will still leave some of the UI anomalies in place e.g., some UI elements will not appear correctly and still appear dark like Mac Mail, terminal windows etc.

The culprit in my case was under ~/Library/Preferences/.GlobalPreferences.plist as AppleUseCoreUI which was set to NO. Set this to yes (or remove the entry entirely) using the Apple Preference List editor within Xcode (or a tool of your choice) or simply remove the file altogether, then enjoy Safari as it was intended under Lion with all features enabled.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.