forked from mirrors/gecko-dev
		
	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,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…
	
		Reference in a new issue
	
	 Bhagya
						Bhagya