mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 14:12:44 +00:00 
			
		
		
		
	 2d5bee256e
			
		
	
	
		2d5bee256e
		
	
	
	
	
		
			
			Get rid of the bespoke NavigatorObject class and use the modern IDL strategies for creating platform objects to re-implement Navigator and its associcated mixin interfaces. While we're here, implement it in a way that brings WorkerNavigator up to spec :^)
		
			
				
	
	
		
			12 lines
		
	
	
	
		
			610 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
	
		
			610 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| // https://html.spec.whatwg.org/multipage/system-state.html#navigatorid
 | |
| interface mixin NavigatorID {
 | |
|   readonly attribute DOMString appCodeName; // constant "Mozilla"
 | |
|   readonly attribute DOMString appName; // constant "Netscape"
 | |
|   readonly attribute DOMString appVersion;
 | |
|   readonly attribute DOMString platform;
 | |
|   readonly attribute DOMString product; // constant "Gecko"
 | |
|   [Exposed=Window] readonly attribute DOMString productSub;
 | |
|   readonly attribute DOMString userAgent;
 | |
|   [Exposed=Window] readonly attribute DOMString vendor;
 | |
|   [Exposed=Window] readonly attribute DOMString vendorSub; // constant ""
 | |
| };
 |