Bug 957922 - aBrowser is null in _setPluginNotificationIcon. r=jaws

This commit is contained in:
Bhagya 2014-01-27 15:34:35 -05:00
parent 8a8077fefb
commit b827c5367b

View File

@ -271,7 +271,8 @@ var gPluginHandler = {
if (eventType == "PluginRemoved") {
let doc = event.target;
let browser = gBrowser.getBrowserForDocument(doc.defaultView.top.document);
this._setPluginNotificationIcon(browser);
if (browser)
this._setPluginNotificationIcon(browser);
return;
}
@ -301,6 +302,8 @@ var gPluginHandler = {
let shouldShowNotification = false;
let browser = gBrowser.getBrowserForDocument(doc.defaultView.top.document);
if (!browser)
return;
switch (eventType) {
case "PluginCrashed":