mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 04:12:43 +00:00 
			
		
		
		
	 78d455e231
			
		
	
	
		78d455e231
		
	
	
	
	
		
			
			Some DOM APIs are restricted to user-activated events. For example, you can't just invoke `navigator.clipboard.writeText` from JS - it has to be accompanied by a user gesture, such as a mouse-down event. This adds an Internals API to simulate such a gesture.
		
			
				
	
	
		
			10 lines
		
	
	
	
		
			246 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
	
		
			246 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| #import <DOM/EventTarget.idl>
 | |
| 
 | |
| [Exposed=Nobody] interface Internals {
 | |
| 
 | |
|     undefined signalTextTestIsDone();
 | |
|     undefined gc();
 | |
|     object hitTest(double x, double y);
 | |
|     boolean dispatchUserActivatedEvent(EventTarget target, Event event);
 | |
| 
 | |
| };
 |