mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-12 15:02:11 +00:00
Bug 957922 - aBrowser is null in _setPluginNotificationIcon. r=jaws
This commit is contained in:
parent
d311475a3a
commit
153485720b
@ -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":
|
||||
|
Loading…
x
Reference in New Issue
Block a user