# HG changeset patch # User Hamzah # Date 1562857946 0 # Node ID f2781523675e0804e2b381e5d479344ea1e1a20b # Parent 4a036bcf8c109df8da8cf1d2c643fcb19c403019 Bug 1510351 - Remove unused code in PluginChild.jsm r=prathiksha Differential Revision: https://phabricator.services.mozilla.com/D36524 diff --git a/browser/modules/PluginContent.jsm b/browser/modules/PluginContent.jsm --- a/browser/modules/PluginContent.jsm +++ b/browser/modules/PluginContent.jsm @@ -1044,15 +1044,10 @@ PluginContent.prototype = { } let messageString = gNavigatorBundle.formatStringFromName("crashedpluginsMessage.title", [pluginName], 1); this.global.sendAsyncMessage("PluginContent:ShowPluginCrashedNotification", { messageString, pluginID }); - - // Remove the notification when the page is reloaded. - doc.defaultView.top.addEventListener("unload", event => { - this.hideNotificationBar("plugin-crashed"); - }); }, };