aboutsummaryrefslogtreecommitdiffstats
path: root/netx/net/sourceforge
diff options
context:
space:
mode:
authorDeepak Bhole <[email protected]>2011-08-29 17:02:36 -0400
committerDeepak Bhole <[email protected]>2011-08-29 17:02:36 -0400
commit55136f436dd81bba4e5d849efdfb61b14e47a531 (patch)
tree79f74ea25ca863b21c4567ba031de22c13941e0b /netx/net/sourceforge
parent773ca2bac809b75965c07344cc5f5b5e48c0bd0b (diff)
RH734081: Javaws cannot use proxy settings from Firefox
Based on patch from Lukas Zachar <lzachar at redhat dot com> 2011-08-29 Deepak Bhole <[email protected]> * netx/net/sourceforge/jnlp/browser/FirefoxPreferencesFinder.java (find): Only process Profile sections. Do not throw an exception if a Default= line is not found since it is not guaranteed to exist.
Diffstat (limited to 'netx/net/sourceforge')
-rw-r--r--netx/net/sourceforge/jnlp/browser/FirefoxPreferencesFinder.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/netx/net/sourceforge/jnlp/browser/FirefoxPreferencesFinder.java b/netx/net/sourceforge/jnlp/browser/FirefoxPreferencesFinder.java
index 45f6faa..99545f3 100644
--- a/netx/net/sourceforge/jnlp/browser/FirefoxPreferencesFinder.java
+++ b/netx/net/sourceforge/jnlp/browser/FirefoxPreferencesFinder.java
@@ -93,7 +93,7 @@ public class FirefoxPreferencesFinder {
}
line = line.trim();
- if (line.startsWith("[") && line.endsWith("]")) {
+ if (line.startsWith("[Profile") && line.endsWith("]")) {
if (foundDefaultSection) {
break;
}
@@ -115,7 +115,7 @@ public class FirefoxPreferencesFinder {
reader.close();
}
- if (!foundDefaultSection) {
+ if (!foundDefaultSection && linesInSection.size() == 0) {
throw new FileNotFoundException("preferences file");
}