From afa45a91d09027618ccb581413c59e36cdbd775b Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Fri, 30 Nov 2012 14:01:36 -0800 Subject: [PATCH] Bug 810453: Load background services in the background. r=jlebar a=blocking-basecamp --- apps/system/js/background_service.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/apps/system/js/background_service.js b/apps/system/js/background_service.js index 1ff680dc84fb..8e63736a5acc 100644 --- a/apps/system/js/background_service.js +++ b/apps/system/js/background_service.js @@ -137,6 +137,13 @@ var BackgroundServiceManager = (function bsm() { frames[manifestURL][name] = frame; document.body.appendChild(frame); + + // Background services should load in the background. + // + // (The funky setTimeout(0) is to work around + // https://bugzilla.mozilla.org/show_bug.cgi?id=810431 .) + setTimeout(function () { frame.setVisible(false) }, 0); + return true; };