18-Jul megacz Surface.java: improved shift modifier handling,
prohibited windows smaller than scar.
+18-Jul megacz XWT.java: added write-only 'proxyAuthorization' field.
+
import java.util.*;
import org.xwt.util.*;
import org.mozilla.javascript.*;
+import org.bouncycastle.util.encoders.Base64;
/** Singleton class that provides all functionality in the xwt.* namespace */
public final class XWT extends JSObject {
if (name == null) return;
else if (name.equals("thread") && value != null && value instanceof Function) ThreadMessage.newthread((Function)value);
else if (name.equals("clipboard")) Platform.setClipBoard(value.toString());
+
+ // FIXME: undocumented, possibly insecure
+ else if (name.equals("proxyAuthorization")) try {
+ HTTP.ProxyAuthorization.authorization = "Basic " + new String(Base64.encode(value.toString().getBytes("US-ASCII")));
+ HTTP.ProxyAuthorization.waitingForUser.release();
+ } catch (UnsupportedEncodingException e) {
+ if (Log.on) Log.log(this, e);
+ }
+
else super.put(name, start, value);
}