Closed
Bug 1161095
Opened 10 years ago
Closed 10 years ago
Installing/updating a theme more than once should not duplicate the theme in the Settings app themes list
Categories
(Firefox OS Graveyard :: Gaia::Theme Editor, defect, P1)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: etienne, Assigned: etienne)
References
Details
Attachments
(2 files)
In js/generation.js, when the |mozApps.mgmt.import| call succeeds, we should store the manifestURL in the Studio IDB database.
This way when enabling/updating a theme that already has a manifestURL set we can uninstall it first and prevent the duplication.
Assignee | ||
Updated•10 years ago
|
Blocks: spark-theme-editor
Priority: -- → P1
Assignee | ||
Comment 1•10 years ago
|
||
Hope to get this one done this week to unblock the rest.
Assignee: nobody → etienne
Comment 2•10 years ago
|
||
Assignee | ||
Comment 3•10 years ago
|
||
Attachment #8604082 -
Flags: feedback?(fabrice)
Assignee | ||
Comment 4•10 years ago
|
||
Comment on attachment 8604081 [details] [review]
[gaia] etiennesegonzac:bug-1161095 > mozilla-b2g:master
I don't think we can use mozApps.mgmt.import() to push an update so I'm deinstalling/reinstalling the theme.
If we keep the prompt it's really confusing (the user gets prompted to "delete" just after tapping an "install" button).
What do you think?
Attachment #8604081 -
Flags: feedback?(fabrice)
Updated•10 years ago
|
Attachment #8604082 -
Flags: feedback?(fabrice) → feedback+
Comment 5•10 years ago
|
||
(In reply to Etienne Segonzac (:etienne) from comment #4)
> Comment on attachment 8604081 [details] [review]
> [gaia] etiennesegonzac:bug-1161095 > mozilla-b2g:master
>
> I don't think we can use mozApps.mgmt.import() to push an update so I'm
> deinstalling/reinstalling the theme.
>
> If we keep the prompt it's really confusing (the user gets prompted to
> "delete" just after tapping an "install" button).
>
> What do you think?
Yep, that's not a great experience. The fix looks ok but I'm slightly worried about generalizing that too much (I guess updating add-ons will need the same change).
Updated•10 years ago
|
Attachment #8604081 -
Flags: feedback?(fabrice) → feedback+
Assignee | ||
Comment 6•10 years ago
|
||
Comment on attachment 8604081 [details] [review]
[gaia] etiennesegonzac:bug-1161095 > mozilla-b2g:master
Moving to review then!
Added some tests (this part was not covered by unit tests yet, just homescreen integration tests).
Attachment #8604081 -
Flags: review?(kgrandon)
Assignee | ||
Comment 7•10 years ago
|
||
Comment on attachment 8604082 [details] [review]
Studio part
Mind taking a look? :)
Attachment #8604082 -
Flags: review?(hub)
Comment 8•10 years ago
|
||
Comment on attachment 8604081 [details] [review]
[gaia] etiennesegonzac:bug-1161095 > mozilla-b2g:master
Nice find. LGTM.
Attachment #8604081 -
Flags: review?(kgrandon) → review+
Comment 9•10 years ago
|
||
Comment on attachment 8604082 [details] [review]
Studio part
Looks good
Attachment #8604082 -
Flags: review?(hub) → review+
Assignee | ||
Updated•10 years ago
|
Keywords: checkin-needed
Assignee | ||
Comment 10•10 years ago
|
||
Studio part landed: https://github.com/fxos/studio/commit/7e3b65ad5ac9819315adf5a5e260dd20d3142a9f
Updated•10 years ago
|
Keywords: checkin-needed
Comment 11•10 years ago
|
||
Pull request has landed in master: https://github.com/mozilla-b2g/gaia/commit/f75abf8b9bd8ad567f987ca0511e9b692f7ec986
Updated•10 years ago
|
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•