NaiveUserAgent and ITextUserAgent should not rely internally on java.net.URL to allow resource abstraction

See https://code.google.com/p/flying-saucer/issues/detail?id=237 for details.


Done. BTW, I would recomment not the set the baseURL at all here and set 
it explicitely.
>
> In 
> flying-saucer-core/src/main/java/org/xhtmlrenderer/swing/NaiveUserAgent.java:
>
> > @@ -284,9 +286,11 @@ public String resolveURI(String uri) {
> >          String ret = null;
> >          if (_baseURL == null) {//first try to set a base URL
> >              try {
> > -                URL result = new URL(uri);
> > -                setBaseURL(result.toExternalForm());
> > -            } catch (MalformedURLException e) {
> > +                URI result = new URI(uri);
> > +                if (result.isAbsolute()) setBaseURL(result.toString());
> > +            } catch (URISyntaxException e) {
> > +            }
>
> Please log this exception.
>
> —
> Reply to this email directly or view it on GitHub 
> <https://github.com/flyingsaucerproject/flyingsaucer/pull/52/files#r14558303>.
>