fune/browser/fxr/content/fxr-content.js
thomasmo b841095b22 Bug 1608844 - WebExtensions do not run in FxRPC content processes r=zombie
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
2020-01-15 15:14:15 +00:00

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");