mirror of
				https://github.com/LadybirdBrowser/ladybird.git
				synced 2025-10-31 21:30:58 +00:00 
			
		
		
		
	 26b7946123
			
		
	
	
		26b7946123
		
	
	
	
	
		
			
			Corresponds to: - https://github.com/whatwg/html/pull/10898 - https://github.com/whatwg/html/pull/10971 I've also updated the imported WPT test as it's been recently changed to account for 10898 being merged.
		
			
				
	
	
		
			58 lines
		
	
	
	
		
			1.7 KiB
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			58 lines
		
	
	
	
		
			1.7 KiB
		
	
	
	
		
			Text
		
	
	
	
	
	
| #import <DOM/AbortSignal.idl>
 | |
| #import <DOM/Event.idl>
 | |
| #import <HTML/NavigationDestination.idl>
 | |
| #import <HTML/NavigationType.idl>
 | |
| #import <XHR/FormData.idl>
 | |
| 
 | |
| // https://html.spec.whatwg.org/multipage/nav-history-apis.html#the-navigateevent-interface
 | |
| [Exposed=Window]
 | |
| interface NavigateEvent : Event {
 | |
|     constructor(DOMString type, NavigateEventInit eventInitDict);
 | |
| 
 | |
|     readonly attribute NavigationType navigationType;
 | |
|     readonly attribute NavigationDestination destination;
 | |
|     readonly attribute boolean canIntercept;
 | |
|     readonly attribute boolean userInitiated;
 | |
|     readonly attribute boolean hashChange;
 | |
|     readonly attribute AbortSignal signal;
 | |
|     readonly attribute FormData? formData;
 | |
|     readonly attribute DOMString? downloadRequest;
 | |
|     readonly attribute any info;
 | |
|     readonly attribute boolean hasUAVisualTransition;
 | |
|     readonly attribute Element? sourceElement;
 | |
| 
 | |
|     undefined intercept(optional NavigationInterceptOptions options = {});
 | |
|     undefined scroll();
 | |
| };
 | |
| 
 | |
| dictionary NavigateEventInit : EventInit {
 | |
|     NavigationType navigationType = "push";
 | |
|     required NavigationDestination destination;
 | |
|     boolean canIntercept = false;
 | |
|     boolean userInitiated = false;
 | |
|     boolean hashChange = false;
 | |
|     required AbortSignal signal;
 | |
|     FormData? formData = null;
 | |
|     DOMString? downloadRequest = null;
 | |
|     any info;
 | |
|     boolean hasUAVisualTransition = false;
 | |
|     Element? sourceElement = null;
 | |
| };
 | |
| 
 | |
| dictionary NavigationInterceptOptions {
 | |
|     NavigationInterceptHandler handler;
 | |
|     NavigationFocusReset focusReset;
 | |
|     NavigationScrollBehavior scroll;
 | |
| };
 | |
| 
 | |
| enum NavigationFocusReset {
 | |
|     "after-transition",
 | |
|     "manual"
 | |
| };
 | |
| 
 | |
| enum NavigationScrollBehavior {
 | |
|     "after-transition",
 | |
|     "manual"
 | |
| };
 | |
| 
 | |
| callback NavigationInterceptHandler = Promise<undefined> ();
 |