[rfc][icedtea-web] PR1271, Handle 'javascript:' urls, with tests
Andrew Azores
aazores at redhat.com
Fri Aug 16 08:51:17 PDT 2013
On 08/07/2013 10:08 AM, Adam Domurad wrote:
>
>>> +
>>> + // Place an arbitrary handler, we only need the URL construction to not error-out
>>> + handlers.put("javascript", new sun.net.www.protocol.http.Handler());
>>> + } catch (Exception e) {
>> Uhh ahh, there are good reasons not to do this :)
> Indeed, unless there are no better ideas. There isn't exactly an API for
> doing this.
Is there a more specific Exception type that could be caught?
>
> Happy hacking,
> -Adam
I think this looks good though.
Thanks,
--
Andrew A
More information about the distro-pkg-dev
mailing list