Closed
Bug 861494
Opened 11 years ago
Closed 11 years ago
Add activities support to desktop-helper if the runtime support MozActivity
Categories
(Firefox OS Graveyard :: Gaia, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: vingtetun, Assigned: vingtetun)
References
Details
Attachments
(2 files)
In order for this addon to have any effect you need a runtime patched to remove #ifdef MOZ_SYS_MSG in order to replace it with a preference like other apis. Bug for the runtime and poc is coming.
Assignee | ||
Comment 1•11 years ago
|
||
In order to have this extension working Gecko needs to be patched with the poc in bug 861496. It won't hurt to land this sooner since the code for Activity was using postMessage anyway (and this does not work anymore with the right permissions). So Kevin I got Activities working in the browser with this and the Gecko patch. I will show you tomorrow / monday :) I suggest to land this asap and push on bug 861496 instead of spending time to maintain shims. Also I had a lot of XXX in desktop-helper/bootstrap.js and desktop-helper/content/content.js mostly because my mind if now clearer about how this stuff should work with the multiple addons: - Having mocks on b2g-desktop will be good for developers / simulation. So the desktop-helper addon should only try to do that at the end : load mocks. That will benefit the simulator too. - Other features such as keyboard support / activities support can be loaded as additional addon and should not be loaded with a profile made for b2g-desktop (this could be done by tweaking the install.rdf of those addons). Their relative code should not leak in desktop-helper/ (using overlays to execute some js at startup will be the solution here). - In the future the keyboard will be part of dom/ so the addon will be useless. - The code for Activities will still be necessary though so it worth thinking of a better way to steal code from b2g/. Not all of it is needed. In fact most of the code of shell.js is not needed on an embedded runtime in Firefox, but it would be nice to have a clean overview of what is needed / what is not and to have a magic way to get that from gecko instead of duplicating code by end with some minor tweaks (ochameau has some ideas on this I think). So this is globally the plan I have in mind. Should be pretty straighforward once the packaging / sharing issue is resolved.
Attachment #737123 -
Flags: review?(kgrandon)
Assignee | ||
Comment 2•11 years ago
|
||
Try build should be available at (soon): https://tbpl.mozilla.org/?tree=Try&rev=4fbe449b0af5
Assignee | ||
Comment 3•11 years ago
|
||
Kevin if you want to try you can find FF Nightly binaries here: http://ftp.mozilla.org/pub/mozilla.org/firefox/try-builds/vnicolas@mozilla.com-4fbe449b0af5/ A few activities related things are broken but they mostly works.
Comment 4•11 years ago
|
||
@Vivien - this sounds amazing! I agree that the desktop helper should only be used to load mocks, and ideally as few as possible. I am very interested to see this, so will see if I can test it out with your binary. Let's definitely try to land this as soon as possible.
Updated•11 years ago
|
Attachment #737123 -
Flags: review?(kgrandon) → review+
Assignee | ||
Comment 5•11 years ago
|
||
https://github.com/vingtetun/gaia/commit/4b812a845aad645969485b22e6a77a96a74d5627
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Comment 6•11 years ago
|
||
Attachment #737655 -
Flags: review?(21)
Assignee | ||
Comment 7•11 years ago
|
||
Comment on attachment 737655 [details] Patch part 2 https://github.com/KevinGrandon/gaia/commit/cdb2b5ec94929ce691d972a73f38b29fa76ee500
Attachment #737655 -
Flags: review?(21) → review+
You need to log in
before you can comment on or make changes to this bug.
Description
•