mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 05:22:45 +00:00 
			
		
		
		
	 5913efbb45
			
		
	
	
		5913efbb45
		
	
	
	
	
		
			
			AbstractBrowsingContext has a subclass RemoteBrowsingContext without a visit_edges() override (and it doesn't really need one). But currently, we rely on subclasses visiting AbstractBrowsingContext's opener BC. This adds a visit_edges() to AbstractBrowsingContext to explicitly visit the opener BC itself.
		
			
				
	
	
		
			18 lines
		
	
	
	
		
			381 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
	
		
			381 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| /*
 | |
|  * Copyright (c) 2023, Tim Flynn <trflynn89@serenityos.org>
 | |
|  *
 | |
|  * SPDX-License-Identifier: BSD-2-Clause
 | |
|  */
 | |
| 
 | |
| #include <LibWeb/HTML/AbstractBrowsingContext.h>
 | |
| #include <LibWeb/HTML/BrowsingContext.h>
 | |
| 
 | |
| namespace Web::HTML {
 | |
| 
 | |
| void AbstractBrowsingContext::visit_edges(JS::Cell::Visitor& visitor)
 | |
| {
 | |
|     Base::visit_edges(visitor);
 | |
|     visitor.visit(m_opener_browsing_context);
 | |
| }
 | |
| 
 | |
| }
 |