[rfc][icedtea-web] prevent CCE from plugin appeltviewer
Jiri Vanek
jvanek at redhat.com
Thu Jul 31 14:03:37 UTC 2014
On 07/31/2014 03:36 PM, Jie Kang wrote:
>>
>>
>> ok for head and 1.5 ?
>>
>>
>> J.
>>
> Hello,
>
>
> Good catch!
>
> I think now that we check for CCE, we should output something to let us know that the CCE occurred since behaviour is affected.
>
> Also for the following code:
>
>
> + if (panel.getAppletClassLoader() instanceof JNLPClassLoader) {
> + JNLPClassLoader loader = (JNLPClassLoader) panel.getAppletClassLoader();
>
> - URL localURL = null;
> - if (loader.resourceAvailableLocally(resourceName)) {
> - url = loader.getResource(resourceName);
> + URL localURL = null;
> + if (loader.resourceAvailableLocally(resourceName)) {
> + url = loader.getResource(resourceName);
> + }
> +
> + url = localURL != null ? localURL : url;
> }
> -
> - url = localURL != null ? localURL : url;
>
>
> I think that the behaviour of the function changed a little. If a CCE occurs, the AppletImageRef returned is that of url that includes codebase. Is this valid? I think if CCE occurs then we should return null.
>
>
+
> What happens in the first hunk if the appletClassLoader isn't a JNLPClassLoader?
The url will have its default value and if this is invalid, then it will die alter. BUt in most
cases it will work.
J.
More information about the distro-pkg-dev
mailing list