aboutsummaryrefslogtreecommitdiffstats
path: root/plugin
diff options
context:
space:
mode:
Diffstat (limited to 'plugin')
-rw-r--r--plugin/icedteanp/java/sun/applet/PluginProxySelector.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/plugin/icedteanp/java/sun/applet/PluginProxySelector.java b/plugin/icedteanp/java/sun/applet/PluginProxySelector.java
index 4a1ce33..c863fb9 100644
--- a/plugin/icedteanp/java/sun/applet/PluginProxySelector.java
+++ b/plugin/icedteanp/java/sun/applet/PluginProxySelector.java
@@ -85,7 +85,7 @@ public class PluginProxySelector extends JNLPProxySelector {
// Nothing usable in cache. Fetch info from browser
Proxy proxy = Proxy.NO_PROXY;
- Object o = PluginAppletViewer.requestPluginProxyInfo(uri);
+ Object o = getProxyFromRemoteCallToBrowser(uri);
// If the browser returned anything, try to parse it. If anything in the try block fails, the fallback is direct connection
try {
@@ -118,6 +118,11 @@ public class PluginProxySelector extends JNLPProxySelector {
return proxyList;
}
+ /** For tests to override */
+ protected Object getProxyFromRemoteCallToBrowser(URI uri) {
+ return PluginAppletViewer.requestPluginProxyInfo(uri);
+ }
+
/**
* Checks to see if proxy information is already cached.
*