This adds support for the world:"MAIN" option to the following parts of the scripting API, including tests: - scripting.executeScript - scripting.getRegisteredContentScripts - scripting.registerContentScripts - scripting.updateContentScripts - scripting.ExecutionWorld.MAIN This patch includes a minimal prototype for scripting.executeScript with the func parameter, which does not work when the page has a CSP. This functionality will be improved in the next patch. Differential Revision: https://phabricator.services.mozilla.com/D211868
This source code is available under the Mozilla Public License 2.0.
Additionally, parts of the schema files originated from Chromium source code:
Copyright (c) 2012 The Chromium Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE-CHROMIUM file.
You are not granted rights or licenses to the trademarks of the Mozilla Foundation or any party, including without limitation the Firefox name or logo.
For more information, see: https://www.mozilla.org/foundation/licensing.html