mirror of
				https://github.com/LadybirdBrowser/ladybird.git
				synced 2025-10-31 21:30:58 +00:00 
			
		
		
		
	LibWeb: Log URL when loading <script> with src attribute
This makes it easier to debug failing scripts as most websites don't inline huge amounts of JavaScript.
This commit is contained in:
		
							parent
							
								
									ad3871b64e
								
							
						
					
					
						commit
						91f70a9258
					
				
				
				Notes:
				
					sideshowbarker
				
				2024-07-19 06:36:06 +09:00 
				
			
			Author: https://github.com/linusg
Commit: 91f70a9258
Pull-request: https://github.com/SerenityOS/serenity/pull/2253
Issue: https://github.com/SerenityOS/serenity/issues/2250
			
					 1 changed files with 1 additions and 0 deletions
				
			
		|  | @ -95,6 +95,7 @@ void HTMLScriptElement::inserted_into(Node& new_parent) | |||
|         return; | ||||
|     } | ||||
| 
 | ||||
|     dbg() << "Parsing and running script from " << src_url; | ||||
|     auto parser = JS::Parser(JS::Lexer(source)); | ||||
|     auto program = parser.parse_program(); | ||||
|     if (parser.has_errors()) { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Linus Groh
						Linus Groh