Closed Bug 770297 Opened 12 years ago Closed 12 years ago

Call to isLaunchable in getSelf/getInstalled/getAll/getNotInstalled needs to be the app origin, not the install origin

Categories

(Firefox Graveyard :: Web Apps, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED
Firefox 16

People

(Reporter: jsmith, Assigned: Felipe)

References

Details

(Whiteboard: [qa!])

Attachments

(1 file)

Steps:

1. Go to marketplace.mozilla.org
2. Install a free web application
3. Uninstall the free web application
4. Go to app page for the app in step #2

Expected:

The app install button should be showed as "install"

Actual:

The app install button is still showed as "installed." Under the hood, they are using getInstalled() to determine this.
See Also: → 768276
Looks like this generally applies to getAll() and getInstalled()
Summary: Uninstalling an app on Windows - Marketplace still shows that the app is "installed" even though getInstalled is used → Uninstalling an app on Windows - App still considered installed by getInstalled() from Marketplace and getAll() from myapps
OS: Windows 7 → All
Hardware: x86_64 → All
Summary: Uninstalling an app on Windows - App still considered installed by getInstalled() from Marketplace and getAll() from myapps → Call to isLaunchable in getSelf/getInstalled/getAll/getNotInstalled needs to be the app origin, not the install origin
Working with Felipe, we've figured out the root cause. Looks like the calls to isLaunchable in getSelf/getInstalled/getAll/getNotInstalled is using the install origin, not the app origin. That explains why there's a lot of problems being seen.
Attached patch PatchSplinter Review
Huh I was using the wrong origin to check if an app was installed, which had the amusing effect of considering if an app was installed or not based on if you had the Marketplace app itself installed
Attachment #638545 - Flags: review?(fabrice)
Attachment #638545 - Flags: review?(fabrice) → review+
http://hg.mozilla.org/mozilla-central/rev/8155cc5972d6
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 16
Whiteboard: [qa+]
Did a good amount of testing with the try build on Windows - it works! Did tests such as:

- Installing and uninstalling apps on marketplace
- Viewing apps on the myapps dashboard
- Installing apps with and without appcache support
- Testing apps natively vs. acquired
Just tested with Linux and it's working.
QA Contact: jsmith
Verified on Nightly for Windows 7, Windows XP, OS X 10.7, and Ubuntu 12.
Status: RESOLVED → VERIFIED
Whiteboard: [qa+] → [qa!]
Product: Firefox → Firefox Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: