diff options
author | Deepak Bhole <[email protected]> | 2011-08-29 17:02:36 -0400 |
---|---|---|
committer | Deepak Bhole <[email protected]> | 2011-08-29 17:02:36 -0400 |
commit | 55136f436dd81bba4e5d849efdfb61b14e47a531 (patch) | |
tree | 79f74ea25ca863b21c4567ba031de22c13941e0b /netx/net/sourceforge/jnlp | |
parent | 773ca2bac809b75965c07344cc5f5b5e48c0bd0b (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/jnlp')
-rw-r--r-- | netx/net/sourceforge/jnlp/browser/FirefoxPreferencesFinder.java | 4 |
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"); } |