mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-03 20:49:27 +00:00
Bug 904462 - Clean up warnings and errors when starting B2G on the mac r=fabrice
This commit is contained in:
parent
9353b52bb6
commit
ebcbb532bc
@ -29,8 +29,8 @@ this.AccessFu = {
|
||||
Utils.init(aWindow);
|
||||
|
||||
try {
|
||||
Cc['@mozilla.org/android/bridge;1'].
|
||||
getService(Ci.nsIAndroidBridge).handleGeckoMessage(
|
||||
let bridgeCc = Cc['@mozilla.org/android/bridge;1'];
|
||||
bridgeCc.getService(Ci.nsIAndroidBridge).handleGeckoMessage(
|
||||
JSON.stringify({ type: 'Accessibility:Ready' }));
|
||||
Services.obs.addObserver(this, 'Accessibility:Settings', false);
|
||||
} catch (x) {
|
||||
|
@ -1103,8 +1103,12 @@ window.addEventListener('ContentStart', function cr_onContentStart() {
|
||||
});
|
||||
|
||||
window.addEventListener('ContentStart', function update_onContentStart() {
|
||||
let updatePrompt = Cc["@mozilla.org/updates/update-prompt;1"]
|
||||
.createInstance(Ci.nsIUpdatePrompt);
|
||||
let promptCc = Cc["@mozilla.org/updates/update-prompt;1"];
|
||||
if (!promptCc) {
|
||||
return;
|
||||
}
|
||||
|
||||
let updatePrompt = promptCc.createInstance(Ci.nsIUpdatePrompt);
|
||||
if (!updatePrompt) {
|
||||
return;
|
||||
}
|
||||
|
@ -199,7 +199,7 @@ this.AppsUtils = {
|
||||
#ifdef MOZ_WIDGET_GONK
|
||||
isCoreApp = app.basePath == this.getCoreAppsBasePath();
|
||||
#endif
|
||||
debug(app.name + " isCoreApp: " + isCoreApp);
|
||||
debug(app.basePath + " isCoreApp: " + isCoreApp);
|
||||
return { "basePath": app.basePath + "/",
|
||||
"isCoreApp": isCoreApp };
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user