Closed
Bug 893848
Opened 11 years ago
Closed 11 years ago
Manifest properties aren't updated when installing apps multiple times
Categories
(DevTools Graveyard :: WebIDE, defect)
DevTools Graveyard
WebIDE
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 26
People
(Reporter: ochameau, Assigned: ochameau)
References
Details
(Whiteboard: [needs-coverage])
Attachments
(1 file, 5 obsolete files)
(deleted),
patch
|
ochameau
:
review+
|
Details | Diff | Splinter Review |
When using the webapps actor to push an app multiple times,
all information like app name, descriptions, ... aren't updated after the first install. You have to reboot your phone or uninstall and reinstall the app to get these data updated.
We already fixed that in the simulator, it is only about uplifting the fix and get it tested.
Assignee | ||
Comment 1•11 years ago
|
||
I think that webapp actor tests have been disabled with the removal of the big xpcshell tests ini file :(
I say that because I had to modify the promise library import to make it work locally on b2g desktop tests.
https://tbpl.mozilla.org/?tree=Try&rev=b1a08be46fc5
Comment 2•11 years ago
|
||
(In reply to Alexandre Poirot (:ochameau) from comment #1)
> I think that webapp actor tests have been disabled with the removal of the
> big xpcshell tests ini file :(
> I say that because I had to modify the promise library import to make it
> work locally on b2g desktop tests.
I believe you are right, the latest fx-team build in tbpl doesn't contain apps unit tests. I don't see however how the change you made to promises will be useful. I made this change in bug 885318 and now everything in devtools imports the sdk promise library using a lowercase promise variable identifier. Why is reversing this change necessary?
Assignee | ||
Comment 3•11 years ago
|
||
(In reply to Panos Astithas [:past] from comment #2)
> I don't see however how the change you made to promises
> will be useful. I made this change in bug 885318 and now everything in
> devtools imports the sdk promise library using a lowercase promise variable
> identifier. Why is reversing this change necessary?
TBH, I have no clear idea why I had to modify the promise requirement. I'm used to see weird issues on b2g cu.import behavior, so I just made a random modification of import statement and that one works. Would it be the only one test run on b2g?
Or may be my build is somehow broken and I need to clobber?
Assignee | ||
Comment 4•11 years ago
|
||
Looks like it is broken on b2g, I'm seeing this exception on a master build:
[JavaScript Error: "ReferenceError: promise is not defined wa_actorGetAll@resource://gre/modules/devtools/dbg-server.jsm -> resource://gre/modules/devtools/server/actors/webapps.js:302
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → poirot.alex
Assignee | ||
Comment 5•11 years ago
|
||
The issue was really simple, the bad thing, we don't have unit test covering b2g remote debugging :(
Attachment #775704 -
Attachment is obsolete: true
Assignee | ||
Comment 6•11 years ago
|
||
New patch, with only the fix.
Assignee | ||
Comment 7•11 years ago
|
||
I moved the tests to another patch as it is bigger than exception.
I ended up being stuck in xpcshell, there was no way to test it sanely with just a docshell.
So I converted piece of xpcshell to mochitest and added test for this (app updating)
and also a better test for redirects.
https://tbpl.mozilla.org/?tree=Try&rev=72f17cce96c6
Assignee | ||
Updated•11 years ago
|
Attachment #779180 -
Flags: review?(past)
Comment 8•11 years ago
|
||
Comment on attachment 779180 [details] [diff] [review]
Fix promise related exception in webapps actor.
Review of attachment 779180 [details] [diff] [review]:
-----------------------------------------------------------------
Thanks!
Attachment #779180 -
Flags: review?(past) → review+
Assignee | ||
Updated•11 years ago
|
Component: Developer Tools → Developer Tools: App Manager
Assignee | ||
Comment 9•11 years ago
|
||
Attachment #779180 -
Attachment is obsolete: true
Attachment #779181 -
Attachment is obsolete: true
Attachment #779183 -
Attachment is obsolete: true
Assignee | ||
Updated•11 years ago
|
Attachment #802272 -
Flags: review?(fabrice)
Assignee | ||
Comment 10•11 years ago
|
||
Tests are about to be added in bug 914604.
Comment 11•11 years ago
|
||
Comment on attachment 802272 [details] [diff] [review]
Uplift simulator patch to m-c
Review of attachment 802272 [details] [diff] [review]:
-----------------------------------------------------------------
::: toolkit/devtools/server/actors/webapps.js
@@ +173,5 @@
> reg._saveApps(function() {
> aApp.manifest = manifest;
> +
> + // Needed to evict manifest cache on content side
> + // (has to be dispatched first, otherwise other messages lik
nit: messages like
Attachment #802272 -
Flags: review?(fabrice) → review+
Assignee | ||
Comment 12•11 years ago
|
||
Attachment #802272 -
Attachment is obsolete: true
Assignee | ||
Updated•11 years ago
|
Attachment #802321 -
Flags: review+
Assignee | ||
Updated•11 years ago
|
Keywords: checkin-needed
Whiteboard: [land-in-fx-team]
Comment 13•11 years ago
|
||
Keywords: checkin-needed
Whiteboard: [land-in-fx-team]
Comment 14•11 years ago
|
||
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 26
Whiteboard: [needs-coverage]
Updated•6 years ago
|
Product: Firefox → DevTools
Updated•5 years ago
|
Product: DevTools → DevTools Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•