forked from mirrors/gecko-dev
		
	Bug 1897055. Assert SVGDocumentWrapper::DestroyViewer is called on main thread. r=layout-reviewers,emilio
Differential Revision: https://phabricator.services.mozilla.com/D210603
This commit is contained in:
		
							parent
							
								
									26a8fe175d
								
							
						
					
					
						commit
						446eaaa15c
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		|  | @ -54,6 +54,7 @@ SVGDocumentWrapper::~SVGDocumentWrapper() { | |||
| } | ||||
| 
 | ||||
| void SVGDocumentWrapper::DestroyViewer() { | ||||
|   MOZ_ASSERT(NS_IsMainThread()); | ||||
|   if (mViewer) { | ||||
|     mViewer->GetDocument()->OnPageHide(false, nullptr); | ||||
|     mViewer->Close(nullptr); | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue
	
	 Timothy Nikkel
						Timothy Nikkel