зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1110271 - Enable GMPInstallManager on Android r=mfinkle
This commit is contained in:
Родитель
3ef87de0c2
Коммит
396525896e
|
@ -376,6 +376,8 @@ class RemoteReftest(RefTest):
|
|||
prefs["extensions.getAddons.search.url"] = "http://127.0.0.1:8888/extensions-dummy/repositorySearchURL"
|
||||
# Make sure that opening the plugins check page won't hit the network
|
||||
prefs["plugins.update.url"] = "http://127.0.0.1:8888/plugins-dummy/updateCheckURL"
|
||||
# Make sure the GMPInstallManager won't hit the network
|
||||
prefs["media.gmp-manager.url.override"] = "http://127.0.0.1:8888/dummy-gmp-manager.xml";
|
||||
prefs["layout.css.devPixelsPerPx"] = "1.0"
|
||||
|
||||
# Disable skia-gl: see bug 907351
|
||||
|
|
|
@ -850,3 +850,6 @@ pref("device.storage.enabled", true);
|
|||
|
||||
// Enable meta-viewport support for font inflation code
|
||||
pref("dom.meta-viewport.enabled", true);
|
||||
|
||||
// Enable the OpenH264 plugin support in the addon manager.
|
||||
pref("media.gmp-gmpopenh264.provider.enabled", true);
|
||||
|
|
|
@ -112,6 +112,9 @@ XPCOMUtils.defineLazyModuleGetter(this, "Notifications",
|
|||
XPCOMUtils.defineLazyModuleGetter(this, "ReaderMode",
|
||||
"resource://gre/modules/ReaderMode.jsm");
|
||||
|
||||
XPCOMUtils.defineLazyModuleGetter(this, "GMPInstallManager",
|
||||
"resource://gre/modules/GMPInstallManager.jsm");
|
||||
|
||||
// Lazily-loaded browser scripts:
|
||||
[
|
||||
["SelectHelper", "chrome://browser/content/SelectHelper.js"],
|
||||
|
@ -342,6 +345,9 @@ var BrowserApp = {
|
|||
CastingApps.init();
|
||||
}, Ci.nsIThread.DISPATCH_NORMAL);
|
||||
|
||||
BrowserApp.gmpInstallManager = new GMPInstallManager();
|
||||
BrowserApp.gmpInstallManager.simpleCheckAndInstall().then(null, () => {});
|
||||
|
||||
#ifdef MOZ_SAFE_BROWSING
|
||||
Services.tm.mainThread.dispatch(function() {
|
||||
// Bug 778855 - Perf regression if we do this here. To be addressed in bug 779008.
|
||||
|
@ -1193,6 +1199,10 @@ var BrowserApp = {
|
|||
},
|
||||
|
||||
quit: function quit(aClear = { sanitize: {}, dontSaveSession: false }) {
|
||||
if (this.gmpInstallManager) {
|
||||
this.gmpInstallManager.uninit();
|
||||
}
|
||||
|
||||
// Figure out if there's at least one other browser window around.
|
||||
let lastBrowser = true;
|
||||
let e = Services.wm.getEnumerator("navigator:browser");
|
||||
|
|
|
@ -126,6 +126,7 @@
|
|||
@BINPATH@/components/commandlines.xpt
|
||||
@BINPATH@/components/composer.xpt
|
||||
@BINPATH@/components/content_events.xpt
|
||||
@BINPATH@/components/content_geckomediaplugins.xpt
|
||||
@BINPATH@/components/content_html.xpt
|
||||
@BINPATH@/components/content_webrtc.xpt
|
||||
@BINPATH@/components/content_xslt.xpt
|
||||
|
|
|
@ -62,6 +62,7 @@ EXTRA_JS_MODULES += [
|
|||
|
||||
EXTRA_PP_JS_MODULES += [
|
||||
'CertUtils.jsm',
|
||||
'GMPInstallManager.jsm',
|
||||
'ResetProfile.jsm',
|
||||
'secondscreen/RokuApp.jsm',
|
||||
'Services.jsm',
|
||||
|
@ -73,7 +74,6 @@ EXTRA_PP_JS_MODULES += [
|
|||
|
||||
if 'Android' != CONFIG['OS_TARGET']:
|
||||
EXTRA_PP_JS_MODULES += [
|
||||
'GMPInstallManager.jsm',
|
||||
'LightweightThemeConsumer.jsm',
|
||||
]
|
||||
else:
|
||||
|
|
|
@ -13,8 +13,6 @@ support-files =
|
|||
[test_dict.js]
|
||||
[test_FileUtils.js]
|
||||
[test_GMPInstallManager.js]
|
||||
# GMPInstallManager is not shipped on Android
|
||||
skip-if = os == 'android'
|
||||
[test_Http.js]
|
||||
[test_Log.js]
|
||||
[test_NewTabUtils.js]
|
||||
|
|
|
@ -15,6 +15,6 @@ contract @mozilla.org/addons/installtrigger;1 {9df8ef2b-94da-45c9-ab9f-132eb55fd
|
|||
category JavaScript-global-property InstallTrigger @mozilla.org/addons/installtrigger;1
|
||||
#ifndef MOZ_WIDGET_ANDROID
|
||||
category addon-provider-module PluginProvider resource://gre/modules/addons/PluginProvider.jsm
|
||||
#endif
|
||||
category addon-provider-module OpenH264Provider resource://gre/modules/addons/OpenH264Provider.jsm
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
@ -11,13 +11,13 @@ EXTRA_JS_MODULES.addons += [
|
|||
'AddonUpdateChecker.jsm',
|
||||
'Content.js',
|
||||
'LightweightThemeImageOptimizer.jsm',
|
||||
'OpenH264Provider.jsm',
|
||||
'SpellCheckDictionaryBootstrap.js',
|
||||
]
|
||||
|
||||
# Don't ship unused providers on Android
|
||||
if CONFIG['MOZ_WIDGET_TOOLKIT'] != 'android':
|
||||
EXTRA_JS_MODULES.addons += [
|
||||
'OpenH264Provider.jsm',
|
||||
'PluginProvider.jsm',
|
||||
]
|
||||
|
||||
|
|
|
@ -45,8 +45,6 @@ skip-if = e10s
|
|||
[browser_newaddon.js]
|
||||
skip-if = e10s
|
||||
[browser_openH264.js]
|
||||
# OpenH264Provider.jsm is not shipped on Android
|
||||
skip-if = os == "android"
|
||||
[browser_select_compatoverrides.js]
|
||||
[browser_select_confirm.js]
|
||||
[browser_select_selection.js]
|
||||
|
|
Загрузка…
Ссылка в новой задаче