forked from mirrors/gecko-dev
		
	This change introduces a content script, fxr-content.js, that runs in content processes associated with an FxR PC window. This new script notifies observers of "tab-content-frameloader-created", which allows for WebExtensions content script to be injected into the content process. Differential Revision: https://phabricator.services.mozilla.com/D59887 --HG-- extra : moz-landing-system : lando
		
			
				
	
	
		
			14 lines
		
	
	
	
		
			684 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
	
		
			684 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
/* -*- indent-tabs-mode: nil; js-indent-level: 2 -*- */
 | 
						|
/* This Source Code Form is subject to the terms of the Mozilla Public
 | 
						|
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 | 
						|
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 | 
						|
 | 
						|
/* This content script is for code associated with an FxR PC window that
 | 
						|
 * must run in a content process. */
 | 
						|
 | 
						|
var { Services } = ChromeUtils.import("resource://gre/modules/Services.jsm");
 | 
						|
 | 
						|
// Send this notification from the content process so that the
 | 
						|
// ExtensionPolicyService can register this content frame and be ready to load
 | 
						|
// content scripts
 | 
						|
Services.obs.notifyObservers(this, "tab-content-frameloader-created");
 |