Project: Eclipse_Platform_UI
Bug 366985 MenuHelper#getIconURI() should be more specific when rewriting URLs
Reported: 2011-12-16 16:21:40 | Status: verified fixed

MenuHelper#getIconURI(ImageDescriptor) rewrites URIs extracted from a URLImageDescriptor to the more stable platform:/plugin form. But it doesn't check that the URI is actually a form where this is applicable (i.e., a bundleentry: or bundleresource: URI). It's not impossible that an icon could be fetched via the interwebs or specified as an RFC 2397-style data: URI.

Files changed in fix:
bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/menus/MenuHelper.java