mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 19:42:43 +00:00 
			
		
		
		
	LibWeb: Don't tell UI process about subframe title changes
This fixes an issue where loading an iframe would cause the current browser tab title to get overwritten with an empty string. The problem is that nested browsing contexts can be considered "top level" during their initialization, but only one browsing context is ever the Page::top_level_browsing_context(), so that's what we check.
This commit is contained in:
		
							parent
							
								
									7603f8dcae
								
							
						
					
					
						commit
						58d3322b0e
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -532,7 +532,7 @@ void BrowsingContext::set_active_document(JS::NonnullGCPtr<DOM::Document> docume | |||
|     // AD-HOC:
 | ||||
|     document->set_browsing_context(this); | ||||
| 
 | ||||
|     if (m_page && is_top_level()) | ||||
|     if (m_page && this == &m_page->top_level_browsing_context()) | ||||
|         m_page->client().page_did_change_title(document->title()); | ||||
| 
 | ||||
|     if (previously_active_document && previously_active_document != document.ptr()) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andreas Kling
						Andreas Kling