mirror of
				https://github.com/mozilla/gecko-dev.git
				synced 2025-10-31 16:28:05 +02:00 
			
		
		
		
	
		
			
				
	
	
		
			20 lines
		
	
	
	
		
			492 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
	
		
			492 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| add_task(async function () {
 | |
|   let browserLoadedPromise = BrowserTestUtils.browserLoaded(
 | |
|     gBrowser.selectedBrowser,
 | |
|     false,
 | |
|     "about:mozilla"
 | |
|   );
 | |
|   window.browserDOMWindow.openURI(
 | |
|     makeURI("about:mozilla"),
 | |
|     null,
 | |
|     Ci.nsIBrowserDOMWindow.OPEN_CURRENTWINDOW,
 | |
|     null,
 | |
|     Services.scriptSecurityManager.getSystemPrincipal()
 | |
|   );
 | |
|   await browserLoadedPromise;
 | |
|   is(
 | |
|     gBrowser.currentURI.spec,
 | |
|     "about:mozilla",
 | |
|     "page loads in the current content window"
 | |
|   );
 | |
| });
 | 
