Bug 1215601 - Enable service workers for non-release builds on Fennec similar to desktop; r=bkelly

This commit is contained in:
Ehsan Akhgari 2015-10-16 13:55:00 -04:00
Родитель 82415576a3
Коммит 9dd6f325b3
3 изменённых файлов: 9 добавлений и 11 удалений

Просмотреть файл

@ -1015,13 +1015,13 @@ var interfaceNamesInGlobalScope =
// IMPORTANT: Do not change this list without review from a DOM peer!
"Selection",
// IMPORTANT: Do not change this list without review from a DOM peer!
{name: "ServiceWorker", b2g: false, nightlyAndroid: true, android: false, release: false},
{name: "ServiceWorker", b2g: false, release: false},
// IMPORTANT: Do not change this list without review from a DOM peer!
{name: "ServiceWorkerContainer", b2g: false, nightlyAndroid: true, android: false, release: false},
{name: "ServiceWorkerContainer", b2g: false, release: false},
// IMPORTANT: Do not change this list without review from a DOM peer!
{name: "ServiceWorkerMessageEvent", b2g: false, nightlyAndroid: true, android: false, release: false},
{name: "ServiceWorkerMessageEvent", b2g: false, release: false},
// IMPORTANT: Do not change this list without review from a DOM peer!
{name: "ServiceWorkerRegistration", b2g: false, nightlyAndroid: true, android: false, release: false},
{name: "ServiceWorkerRegistration", b2g: false, release: false},
// IMPORTANT: Do not change this list without review from a DOM peer!
"SettingsLock",
// IMPORTANT: Do not change this list without review from a DOM peer!
@ -1514,14 +1514,13 @@ function createInterfaceMap(isXBLScope) {
} else {
ok(!("pref" in entry), "Bogus pref annotation for " + entry.name);
if ((entry.nightly === !isNightly) ||
(entry.nightlyAndroid === !(isAndroid && isNightly) && isAndroid) ||
(entry.xbl === !isXBLScope) ||
(entry.desktop === !isDesktop) ||
(entry.b2g === !isB2G) ||
(entry.windows === !isWindows) ||
(entry.mac === !isMac) ||
(entry.linux === !isLinux) ||
(entry.android === !isAndroid && !entry.nightlyAndroid) ||
(entry.android === !isAndroid) ||
(entry.release === !isRelease) ||
(entry.permission && !hasPermission(entry.permission)) ||
entry.disabled) {

Просмотреть файл

@ -176,7 +176,7 @@ var interfaceNamesInGlobalScope =
// IMPORTANT: Do not change this list without review from a DOM peer!
"Response",
// IMPORTANT: Do not change this list without review from a DOM peer!
{ name: "ServiceWorkerRegistration", b2g: false, nightlyAndroid: true, android: false, release: false },
{ name: "ServiceWorkerRegistration", b2g: false, release: false },
// IMPORTANT: Do not change this list without review from a DOM peer!
"TextDecoder",
// IMPORTANT: Do not change this list without review from a DOM peer!
@ -241,9 +241,8 @@ function createInterfaceMap(permissionMap, version, userAgent, isB2G) {
} else {
ok(!("pref" in entry), "Bogus pref annotation for " + entry.name);
if ((entry.nightly === !isNightly) ||
(entry.nightlyAndroid === !(isAndroid && isNightly) && isAndroid) ||
(entry.desktop === !isDesktop) ||
(entry.android === !isAndroid && !entry.nightlyAndroid) ||
(entry.android === !isAndroid) ||
(entry.b2g === !isB2G) ||
(entry.release === !isRelease) ||
(entry.permission && !permissionMap[entry.permission]) ||

Просмотреть файл

@ -937,8 +937,8 @@ pref("dom.vr.cardboard.enabled", true);
pref("browser.tabs.showAudioPlayingIcon", true);
// Enable service workers and fetch interception on Nightly Fennec
#ifdef NIGHTLY_BUILD
// Enable service workers and fetch interception on non-release Fennec
#ifndef RELEASE_BUILD
pref("dom.serviceWorkers.enabled", true);
pref("dom.serviceWorkers.interception.enabled", true);
#endif