Closed Bug 961655 Opened 11 years ago Closed 11 years ago

Gaia doesn't start if shell.html is loaded after webapps registry is ready

Categories

(Firefox OS Graveyard :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: ochameau, Assigned: ochameau)

References

Details

Attachments

(1 file, 1 obsolete file)

That's because webapps-registy-ready is never dispatched if shell.html loads after webapps registry. This race is unlikely on device, as well as on b2g desktop as we start loading both at startup. But in Firefox mulet (bug 943878), shell.html and the system app aren't necessarely loaded on startup and can be loaded/reloaded later.
Attached patch patch (obsolete) — Splinter Review
Ensure that webapps-registry-ready event is fired, even if the Webapps registry is initialized before shell.html is loaded.
Attachment #8362451 - Flags: review?(fabrice)
Comment on attachment 8362451 [details] [diff] [review] patch Review of attachment 8362451 [details] [diff] [review]: ----------------------------------------------------------------- lgtm with the error fixed. ::: b2g/chrome/content/shell.js @@ +671,3 @@ > shell.sendChromeEvent({ type: 'webapps-registry-start' }); > +}); > +DOMApplicationRegistry.registryStarted.then(function () { I think you want .registryReady.then() here ::: dom/apps/src/Webapps.jsm @@ +248,4 @@ > notifyAppsRegistryStart: function notifyAppsRegistryStart() { > Services.obs.notifyObservers(this, "webapps-registry-start", null); > + this._registryStarted.resolve(); > + }, nit: add a blank line. @@ +260,3 @@ > Services.obs.notifyObservers(this, "webapps-registry-ready", null); > this._saveApps(); > }, here too.
Attachment #8362451 - Flags: review?(fabrice) → review+
Attachment #8362451 - Attachment is obsolete: true
Attachment #8363563 - Flags: review+
Keywords: checkin-needed
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: