Closed
Bug 1158238
Opened 9 years ago
Closed 9 years ago
[System] Add 'import-app' activity
Categories
(Firefox OS Graveyard :: Gaia::System, defect)
Firefox OS Graveyard
Gaia::System
Tracking
(Not tracked)
RESOLVED
FIXED
2.2 S11 (1may)
People
(Reporter: justindarc, Assigned: kgrandon)
References
Details
(Whiteboard: [systemsfe])
Attachments
(2 files, 2 obsolete files)
As suggested here ( https://bugzilla.mozilla.org/show_bug.cgi?id=1123846#c11 ), the System app should support an 'import-app' activity that can check if dev mode is enabled and return an error if not. This is to allow for apps to create add-ons for themselves.
Assignee | ||
Comment 1•9 years ago
|
||
I will work on this.
Assignee: nobody → kgrandon
Status: NEW → ASSIGNED
Whiteboard: [systemsfe]
Comment 2•9 years ago
|
||
Reporter | ||
Comment 3•9 years ago
|
||
Test add-on for importing.
Assignee | ||
Comment 4•9 years ago
|
||
Comment on attachment 8597376 [details] [review] [gaia] KevinGrandon:bug_1158238_app_import_activity > mozilla-b2g:master Hey Justin - Here is part 1, just handling the activity for now. Could I delegate the review to you? I'm going to file another bug for showing an error if developer mode is not turned on as that might need some UX/strings. We can land this initially so we have something to work with. Thanks!
Flags: needinfo?(kgrandon)
Attachment #8597376 -
Flags: review?(jdarcangelo)
Comment 5•9 years ago
|
||
Keivn, gaia doesn't know if developer mode is set or not because there's no setting. But you don't need to know here because the *caller* will get an onerror when creating the activity (I'm returning SecurityError) so callers need to manage that.
Assignee | ||
Comment 6•9 years ago
|
||
(In reply to Fabrice Desré [:fabrice] from comment #5) > Keivn, gaia doesn't know if developer mode is set or not because there's no > setting. But you don't need to know here because the *caller* will get an > onerror when creating the activity (I'm returning SecurityError) so callers > need to manage that. Sounds good, then we don't need bug 1158342, but will need to add some UI if we encounter a SecurityError.
Updated•9 years ago
|
Target Milestone: --- → 2.2 S11 (1may)
Reporter | ||
Comment 7•9 years ago
|
||
Comment on attachment 8597376 [details] [review] [gaia] KevinGrandon:bug_1158238_app_import_activity > mozilla-b2g:master Kevin, I think we at least need to handle exceptions during `mgmt.import()` with a `postError()` call. I also commented in the PR about possibly using `postMessage()` to pass something useful, but I'm not as concerned about that as I am with the error case.
Attachment #8597376 -
Flags: review?(jdarcangelo) → review-
Assignee | ||
Comment 8•9 years ago
|
||
Comment on attachment 8597376 [details] [review] [gaia] KevinGrandon:bug_1158238_app_import_activity > mozilla-b2g:master Thanks Justin - I've gone ahead and made the updates. Please take another look when you can.
Attachment #8597376 -
Flags: review- → review?(jdarcangelo)
Reporter | ||
Comment 9•9 years ago
|
||
Comment on attachment 8597376 [details] [review] [gaia] KevinGrandon:bug_1158238_app_import_activity > mozilla-b2g:master LGTM. Thanks for making those changes!
Attachment #8597376 -
Flags: review?(jdarcangelo) → review+
Assignee | ||
Comment 10•9 years ago
|
||
Comment on attachment 8597376 [details] [review] [gaia] KevinGrandon:bug_1158238_app_import_activity > mozilla-b2g:master Thanks for the review. R=me as well as I'm delegating this to a non-system peer.
Attachment #8597376 -
Flags: review+
Assignee | ||
Updated•9 years ago
|
Keywords: checkin-needed
Updated•9 years ago
|
Keywords: checkin-needed
Comment 11•9 years ago
|
||
Pull request has landed in master: https://github.com/mozilla-b2g/gaia/commit/7e8cd362728be8241dffb781a7314db0f537e4ae
Updated•9 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Comment 12•9 years ago
|
||
Assignee | ||
Comment 13•9 years ago
|
||
Comment on attachment 8598824 [details] [review] [gaia] KevinGrandon:bug_1158238_follow_up_rename_activity > mozilla-b2g:master Simple follow-up to add a preference and rename the activity. R=me assuming the tests pass.
Attachment #8598824 -
Flags: review+
Assignee | ||
Updated•9 years ago
|
Keywords: checkin-needed
Updated•9 years ago
|
Keywords: checkin-needed
Comment 14•9 years ago
|
||
Pull request has landed in master: https://github.com/mozilla-b2g/gaia/commit/1e7b0df5260664713172cac60cc2df5def1a2a06
Assignee | ||
Comment 15•9 years ago
|
||
Had to back this out due to causing bug 1159539. Will take a look at this again. https://github.com/mozilla-b2g/gaia/commit/320bdae4d4d3e0a84230d04086fe40736b69ec5b https://github.com/mozilla-b2g/gaia/commit/d85284fd03e9eaffc1cafd83308dec061ee29ee1
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Comment 16•9 years ago
|
||
Assignee | ||
Updated•9 years ago
|
Attachment #8597376 -
Attachment is obsolete: true
Assignee | ||
Updated•9 years ago
|
Attachment #8598824 -
Attachment is obsolete: true
Assignee | ||
Comment 17•9 years ago
|
||
Comment on attachment 8599552 [details] [review] [gaia] KevinGrandon:reland_bug_1158238 > mozilla-b2g:master Alive - wondering if you can take a look at this. It this may have a slight impact for your base module patch, and I can help rebase your patch if necessary. I assume that we may want to lazy load both browser.js and import.js. I think activity_handler needs to be there on startup though for the mozSetMessageHandler call? Let me know if you have any questions, thanks!
Attachment #8599552 -
Flags: review?(alive)
Comment 18•9 years ago
|
||
Comment on attachment 8599552 [details] [review] [gaia] KevinGrandon:reland_bug_1158238 > mozilla-b2g:master LGTM
Attachment #8599552 -
Flags: review?(alive) → review+
Comment 19•9 years ago
|
||
(In reply to Kevin Grandon :kgrandon from comment #17) > Comment on attachment 8599552 [details] [review] > [gaia] KevinGrandon:reland_bug_1158238 > mozilla-b2g:master > > Alive - wondering if you can take a look at this. It this may have a slight > impact for your base module patch, and I can help rebase your patch if > necessary. I assume that we may want to lazy load both browser.js and > import.js. I think activity_handler needs to be there on startup though for > the mozSetMessageHandler call? > > Let me know if you have any questions, thanks! It's ok - this one is compatible with my patch. What we need is have ActivityHandler to load + start import I think.
Updated•9 years ago
|
Keywords: checkin-needed
Comment 21•9 years ago
|
||
http://docs.taskcluster.net/tools/task-graph-inspector/#LEo1pnbeR9yybylF3KAI-w The pull request failed to pass integration tests. It could not be landed, please try again.
Assignee | ||
Comment 22•9 years ago
|
||
Seems like a Gip infra issue =/ Trying again.
Keywords: checkin-needed
Updated•9 years ago
|
Keywords: checkin-needed
Comment 23•9 years ago
|
||
http://docs.taskcluster.net/tools/task-graph-inspector/#Xhqva16VSIui0j4XyIZxUQ The pull request failed to pass integration tests. It could not be landed, please try again.
Assignee | ||
Comment 24•9 years ago
|
||
These python tests are killing me =( Gaia-try is green though, so I think we should be ok here. Manually landing for now: https://github.com/mozilla-b2g/gaia/commit/bf5c2575cc0362556860238f8ca6953d67c2ed9c
Status: REOPENED → RESOLVED
Closed: 9 years ago → 9 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•