mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 05:22:45 +00:00 
			
		
		
		
	 8dc25dffc2
			
		
	
	
		8dc25dffc2
		
	
	
	
	
		
			
			The current helpers assume that a valid URL is a full URL (i.e. contains the "://" separator between the scheme and domain). This isn't true, as "file:" alone is parsed as a valid URL. We must also avoid simply searching for the parsed public suffix in the original URL string. For example, "com" is a public suffix. If we search for that in the URL "com.com", we will think the public suffix starts at index 0.
		
			
				
	
	
		
			7 lines
		
	
	
	
		
			152 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
			
		
		
	
	
			7 lines
		
	
	
	
		
			152 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
| set(TEST_SOURCES
 | |
|     TestWebViewURL.cpp
 | |
| )
 | |
| 
 | |
| foreach(source IN LISTS TEST_SOURCES)
 | |
|     serenity_test("${source}" LibWebView LIBS LibWebView)
 | |
| endforeach()
 |