Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

JEP java location



I'm still looking a little bit at the open source code for the OS X plugins used by the Mozilla family of browsers. Follow up to...

http://lists.apple.com/archives/java-dev/2006/Aug/msg00166.html

I downloaded the code and have been tinkering with it a little bit. I had some difficulties with the Panther specific source so removed that. I was getting some slightly off applet handling in Firefox so I started only replacing the java jar and not the entire plugin which for now seems to fix that. I also made a change to a Tiger specific member that may of been part of the fix but I haven't tested that yet. For now I'm ok with just building and replacing the jar.
However, some things seem different for the plugin java that I am wondering about. Is there some way I can tell where I am being run from. The classes involved all seem to come from either the original, null in getClassLoader, loader or in applet specific loaders. java.class.path doesn't seem correct, not showing the plugin jar. user.dir indicates /. I've thought about getting the PWD environment variable but am guessing it would show the same.
[OFF-TOPIC] Is System.getenv actually a reformed character now. It appears to have been deprecated for years but doesn't show that way in the 1.5 java doc.


What I am still thinking is trying to implement the
I suppose JEP could be really sneaky and implement its own version of com.sun.deploy.net.cookie.MacOSXCookieHandler and ensure that it gets loaded first. It needs to implement the com.sun.deploy.net.cookie.CookieHandler interface, which basically has a getCookieInfo and a setCookieInfo method.

[Scott Kovatch]

'sneaky' suggestion here. If I know where I'm loaded from I could try to pre-load my own MacOSXCookieHandler from my jar with a URLClassLoader maybe. I still have some concerns that this might be a solution for permanent cookies but not session? But anyhow no success yet in getting to one I can test with is currently the problem, because I can't figure out, other than assuming I'm in /Applications/ Firefox.app where I'm at. That will obviously be a bad assumption for say Camino.


Mike Hall mikehall at spacestar dot net http://www.spacestar.net/users/mikehall http://sourceforge.net/projects/macnative



Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.