Safari 7.1 broke my proxy.pac setup again, by updating the following file:
/System/Library/StagedFrameworks/Safari/WebKit2.framework/Versions/A/Resources/c om.apple.WebProcess.sb
At this point, I think that directions to allow Safari/WebKit processes to read a proxy.pac file might actually be needed in three separate files:
/System/Library/PrivateFrameworks/WebKit2.framework/Versions/A/Resources/com.app le.WebKit.NetworkProcess.sb
/System/Library/StagedFrameworks/Safari/WebKit2.framework/Versions/A/Resources/c om.apple.WebKit.NetworkProcess.sb
/System/Library/StagedFrameworks/Safari/WebKit2.framework/Versions/A/Resources/c om.apple.WebProcess.sb
Every time Safari gets updated, one of the above three files gets updated, breaking the ability to allow Safari to read my proxy.pac file. Rather than continue to play whack-a-mole, I noticed that at the beginning of all three files, they all contain the following line "(import system.sb)". So, I've moved my fix to the following file:
/System/Library/Sandbox/Profiles/system.sb
I've added the following line (in red) to the above file at line 132:
____________________________________________
;;; (system-network) - Allow access to the network.
(define (system-network)
(allow file-read*
(literal "/Users/tfischer/Documents/scripts/proxy.pac")
(literal "/Library/Preferences/com.apple.networkd.plist"))
(allow mach-lookup
____________________________________________
After adding the above line to system.sb, and restoring the other three .sb files back to their original versions, I'm back in business with Safari being able to read and use a local proxy.pac file...
tom