mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-11 21:58:41 +02:00
Bug 957922 - aBrowser is null in _setPluginNotificationIcon. r=jaws
This commit is contained in:
parent
d311475a3a
commit
153485720b
1 changed files with 4 additions and 1 deletions
|
|
@ -271,6 +271,7 @@ var gPluginHandler = {
|
||||||
if (eventType == "PluginRemoved") {
|
if (eventType == "PluginRemoved") {
|
||||||
let doc = event.target;
|
let doc = event.target;
|
||||||
let browser = gBrowser.getBrowserForDocument(doc.defaultView.top.document);
|
let browser = gBrowser.getBrowserForDocument(doc.defaultView.top.document);
|
||||||
|
if (browser)
|
||||||
this._setPluginNotificationIcon(browser);
|
this._setPluginNotificationIcon(browser);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
@ -301,6 +302,8 @@ var gPluginHandler = {
|
||||||
|
|
||||||
let shouldShowNotification = false;
|
let shouldShowNotification = false;
|
||||||
let browser = gBrowser.getBrowserForDocument(doc.defaultView.top.document);
|
let browser = gBrowser.getBrowserForDocument(doc.defaultView.top.document);
|
||||||
|
if (!browser)
|
||||||
|
return;
|
||||||
|
|
||||||
switch (eventType) {
|
switch (eventType) {
|
||||||
case "PluginCrashed":
|
case "PluginCrashed":
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue