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)
Firefox OS Graveyard
General
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: ochameau, Assigned: ochameau)
References
Details
Attachments
(1 file, 1 obsolete file)
4.96 KB,
patch
|
ochameau
:
review+
|
Details | Diff | Splinter Review |
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.
Assignee | ||
Comment 1•11 years ago
|
||
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 2•11 years ago
|
||
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+
Assignee | ||
Comment 3•11 years ago
|
||
Attachment #8362451 -
Attachment is obsolete: true
Attachment #8363563 -
Flags: review+
Assignee | ||
Comment 4•11 years ago
|
||
Assignee | ||
Updated•11 years ago
|
Keywords: checkin-needed
Comment 5•11 years ago
|
||
Keywords: checkin-needed
Comment 6•11 years ago
|
||
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.
Description
•