mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-26 02:52:35 +00:00 
			
		
		
		
	 d4a890080d
			
		
	
	
		d4a890080d
		
	
	
	
	
		
			
			NewAKString is effectively the default for any new IDL interface, so let's mark this as the default behavior. It also makes it much easier to figure out whatever interfaces are still left to port over to new AK String.
		
			
				
	
	
		
			28 lines
		
	
	
	
		
			897 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
	
		
			897 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| #import <FileAPI/Blob.idl>
 | |
| #import <URL/URLSearchParams.idl>
 | |
| 
 | |
| // https://url.spec.whatwg.org/#url
 | |
| [Exposed=*, LegacyWindowAlias=webkitURL]
 | |
| interface URL {
 | |
|     constructor(USVString url, optional USVString base);
 | |
| 
 | |
|     static boolean canParse(USVString url, optional USVString base);
 | |
| 
 | |
|     stringifier attribute USVString href;
 | |
|     readonly attribute USVString origin;
 | |
|     attribute USVString protocol;
 | |
|     attribute USVString username;
 | |
|     attribute USVString password;
 | |
|     attribute USVString host;
 | |
|     attribute USVString hostname;
 | |
|     attribute USVString port;
 | |
|     attribute USVString pathname;
 | |
|     attribute USVString search;
 | |
|     [SameObject] readonly attribute URLSearchParams searchParams;
 | |
|     attribute USVString hash;
 | |
| 
 | |
|     USVString toJSON();
 | |
| 
 | |
|     static DOMString createObjectURL(Blob obj); // FIXME: Should be (Blob or MediaSource).
 | |
|     static undefined revokeObjectURL(DOMString url);
 | |
| };
 |