Go Back   The macosxhints Forums > OS X Help Requests > Applications



Reply
 
Thread Tools Rating: Thread Rating: 2 votes, 3.00 average. Display Modes
Old 07-04-2008, 07:11 PM   #1
Casemon
Prospect
 
Join Date: Sep 2006
Posts: 40
Lightbulb Modified Safari binary breaking auto-fill passwords... solution?

I recently posted about how my Safari wasn't auto-filling form passwords, despite everything looking that it should (permissions, Keychain and everything was in order). I had failed to mention that I was using this hint to add keyword functionality to Safari...

Well with the 10.5.4 update, Safari's core binary was also updated and I was once again back to a unmodified Safari with no keywords, and lo! auto-filling of passwords works again!

I know some of you are going to say "that's what you get for editing binaries!" but keyword functionality is really great, and I hate to decide between 2 great features in my favorite browser: either "fill in passwords" or "keywords"

Can anyone offer tips on how I might resolve the issue to have both "fill in passwords" & "keywords" functionality?

Before anyone spouts off with random caveats, please note: I've verified the binary size is exactly the same (replaced string is same length as old), the permissions of the modified binary are exactly the same as the unmodified binary (root:admin 777) and yet still, something is telling Safari not to load passwords.

Maybe is it a checksum issue somehow? Checksum stored in a receipt somewhere? Maybe I can update that as well?

Anyone with tips / experience to share? Beuller?
Casemon is offline   Reply With Quote
Old 07-04-2008, 07:36 PM   #2
baf
MVP
 
Join Date: Jun 2007
Location: Skellefteċ, Sweden
Posts: 1,173
Quote:
Originally Posted by Casemon
the permissions of the modified binary are exactly the same as the unmodified binary (root:admin 777) and yet still, something is telling Safari not to load passwords.

Having mode 777 looks fishy to me.
at least on tiger it should be:
Code:
$ ls -la /Applications/Safari.app/Contents/MacOS/Safari
-rwxrwxr-x   1 root  admin  2941912 Jun 13 18:40 /Applications/Safari.app/Contents/MacOS/Safari
__________________
/Bengt-Arne Fjellner IT-Administrator Luleċ university, Sweden.
Some say: "You learn as long as you live".
My way: "You live as long as you learn".
baf is offline   Reply With Quote
Old 07-04-2008, 07:46 PM   #3
Casemon
Prospect
 
Join Date: Sep 2006
Posts: 40
Thanks for the reply, however, it's the same with 775.
Casemon is offline   Reply With Quote
Old 07-15-2008, 02:05 AM   #4
Casemon
Prospect
 
Join Date: Sep 2006
Posts: 40
.: bump :.
Casemon is offline   Reply With Quote
Old 07-15-2008, 02:22 AM   #5
hayne
Site Admin
 
Join Date: Jan 2002
Location: Montreal
Posts: 32,473
I'm guessing that it has to do with the "application signing" that was introduced with Leopard: http://www.google.com/search?q=%22ap...ing%22+leopard
__________________
hayne.net/macosx.html
hayne is offline   Reply With Quote
Old 07-15-2008, 02:28 AM   #6
Casemon
Prospect
 
Join Date: Sep 2006
Posts: 40
Ahh didn't see that. Damn, it looks like my favorite browser feature will have to now come from Apple instead of this DIY.
Casemon is offline   Reply With Quote
Old 07-15-2008, 09:06 AM   #7
biovizier
All Star
 
Join Date: May 2004
Location: london on ca
Posts: 930
Quote:
it looks like my favorite browser feature will have to now come from Apple instead of this DIY.

You could try signing the modified app yourself:
http://developer.apple.com/documenta...gningGuide.pdf

I played with this earlier this year (but I forget the details...) and it seemed to work, at least for usernames and passwords. From what I recall, it will be necessary to re-approve each password item the first time but after that, it should be ok.

But work on a copy - removing Apple's signature might break other things.
biovizier is offline   Reply With Quote
Old 07-15-2008, 06:30 PM   #8
gdap
Prospect
 
Join Date: Sep 2007
Posts: 12
Hi,

There's a plugin for Safari called SafariSIA (http://allocsoft.com/safarisia/) which does exactly what you need.

Edit: Oh. I see from your post on the page detailing the hint that you're trying to avoid SIMBL plugins. This one doesn't seem to slow down Safari too much, if at all, so I'd still recommend you try it.

Last edited by gdap; 07-15-2008 at 06:33 PM.
gdap is offline   Reply With Quote
Old 07-15-2008, 06:59 PM   #9
Casemon
Prospect
 
Join Date: Sep 2006
Posts: 40
Quote:
Originally Posted by biovizier
You could try signing the modified app yourself:
http://developer.apple.com/documenta...gningGuide.pdf

I played with this earlier this year (but I forget the details...) and it seemed to work, at least for usernames and passwords. From what I recall, it will be necessary to re-approve each password item the first time but after that, it should be ok.

But work on a copy - removing Apple's signature might break other things.

Interesting. This is probably what is causing it. Will look into resigning (a copy) as a possible solution, though it all seems a bit daunting.

Quote:
Originally Posted by gdap
Hi,

There's a plugin for Safari called SafariSIA (http://allocsoft.com/safarisia/) which does exactly what you need.

Edit: Oh. I see from your post on the page detailing the hint that you're trying to avoid SIMBL plugins. This one doesn't seem to slow down Safari too much, if at all, so I'd still recommend you try it.

Yeah, considering the performance issues and the fact SIMBL plugins are now officially unsupported, was hoping to avoid this route.

Nonetheless, giving this one a try, it seems to no longer work in Leopard?

Tried copying to ~/Library/InputManagers also /Library/InputManagers, but with either, Safari doesn't load the plugin (no preferences option).

Wonder if this has something to do with it: http://blog.macromates.com/2007/inpu...rs-on-leopard/
Casemon is offline   Reply With Quote
Old 07-15-2008, 07:26 PM   #10
gdap
Prospect
 
Join Date: Sep 2007
Posts: 12
It works for me in Leopard. Did you copy the whole folder? (http://allocsoft.com/safarisia/Install.txt)
gdap is offline   Reply With Quote
Old 07-15-2008, 07:52 PM   #11
Casemon
Prospect
 
Join Date: Sep 2006
Posts: 40
Hmm I wonder why it would load on your system and not on mine. I did indeed follow the Install.txt to the letter.

Also noticed the initial bundle is a regular folder and the first Info file is apparently a plist though missing the .plist extension (not hiding, but missing... intentional?).

Using Leopard 10.5.4 with latest Safari 3.1.2 (5525.20.1)

EDIT: If it helps, this util perpetually reports SafariISIA as broken (even after fixing). http://blog.greatascent.com/archives/18

Last edited by Casemon; 07-15-2008 at 08:13 PM. Reason: Added util results
Casemon is offline   Reply With Quote
Old 10-17-2008, 10:13 PM   #12
Casemon
Prospect
 
Join Date: Sep 2006
Posts: 40
Issue Resolved!

Just a note to update on this issue; re-signing of the Safari binary is necessary to get this working (showing saved passwords, and without prompts everytime) under Leopard.

Was much easier than I first thought and works a treat! (though if you do it, back up first!)

Thanks to biovizier for the pointer here. Now I'm back to full Safari goodness (now with no annoyances!)
Casemon is offline   Reply With Quote
Reply

Tags
binary, experience, keywords, passwords, safari


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT -5. The time now is 04:08 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.