Bug 410758 - Removing plugins with relative urls fail
diff --git a/bundles/org.eclipse.orion.client.ui/web/orion/widgets/plugin/PluginList.js b/bundles/org.eclipse.orion.client.ui/web/orion/widgets/plugin/PluginList.js
index aefda68..42aaf09 100644
--- a/bundles/org.eclipse.orion.client.ui/web/orion/widgets/plugin/PluginList.js
+++ b/bundles/org.eclipse.orion.client.ui/web/orion/widgets/plugin/PluginList.js
@@ -357,8 +357,8 @@
 					this.statusService.setErrorMessage(messages["Already installed"]);

 				} else {

 					this.settings.pluginRegistry.installPlugin(newPluginUrl).then(function(plugin) {

-						return plugin.start({lazy:true});

-					}).then(this.addPlugin.bind(this, newPluginUrl), this.pluginError.bind(this));

+						plugin.start({lazy:true}).then(this.addPlugin.bind(this, plugin.getLocation()), this.pluginError.bind(this));

+					}.bind(this));

 				}

 			}

 		},

@@ -426,9 +426,8 @@
 					this.statusService.setMessage(messages["Uninstalled "] + url, 5000, true);

 					this.settings.preferences.getPreferences("/plugins").then(function(plugins) { //$NON-NLS-0$

 						plugins.keys().some(function(key) {

-							if (_normalizeURL(key) === url) {

+							if (_normalizeURL(require.toUrl(key)) === _normalizeURL(url)) {

 								plugins.remove(key);

-								this.render(this);

 								return true;

 							}

 						});