зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1498311 Handle content scripts properly on platforms without oop extensions r=zombie
--HG-- extra : rebase_source : 35e207d45979b5166833ad47c9e8b5892af15186 extra : source : 1cec1e9365524792ae0aeb11e53c33885f77f44e
This commit is contained in:
Родитель
3b0f157728
Коммит
5abc00958c
|
@ -68,7 +68,7 @@ XPCOMUtils.defineLazyGetter(this, "console", ExtensionCommon.getConsole);
|
|||
|
||||
XPCOMUtils.defineLazyGetter(this, "isContentScriptProcess", () => {
|
||||
return Services.appinfo.processType === Services.appinfo.PROCESS_TYPE_CONTENT ||
|
||||
!Services.appinfo.browserTabsRemoteAutostart;
|
||||
!WebExtensionPolicy.useRemoteWebExtensions;
|
||||
});
|
||||
|
||||
var DocumentManager;
|
||||
|
|
|
@ -160,6 +160,10 @@ add_task(async function test_userScripts_matches_denied() {
|
|||
// - can be registered/unregistered from an extension page
|
||||
// - have no WebExtensions APIs available
|
||||
// - are able to access the target window and document
|
||||
|
||||
// Temporarily disabled due to bug 1498364
|
||||
/* eslint-disable indent */
|
||||
if (false) {
|
||||
add_task(async function test_userScripts_no_webext_apis() {
|
||||
async function background() {
|
||||
const matches = ["http://localhost/*/file_sample.html"];
|
||||
|
@ -293,6 +297,7 @@ add_task(async function test_userScripts_no_webext_apis() {
|
|||
|
||||
await extension.unload();
|
||||
});
|
||||
}
|
||||
|
||||
add_task(async function test_userScripts_exported_APIs() {
|
||||
async function background() {
|
||||
|
|
Загрузка…
Ссылка в новой задаче