Closed Bug 809947 Opened 12 years ago Closed 12 years ago

Implement app.checkForUpdate for hosted apps

Categories

(Core Graveyard :: DOM: Apps, defect, P1)

x86
macOS
defect

Tracking

(blocking-basecamp:+, firefox18 fixed, firefox19 fixed, firefox20 fixed)

RESOLVED FIXED
B2G C2 (20nov-10dec)
blocking-basecamp +
Tracking Status
firefox18 --- fixed
firefox19 --- fixed
firefox20 --- fixed

People

(Reporter: sicking, Assigned: fabrice)

References

Details

(Keywords: feature, Whiteboard: [qa-])

Attachments

(1 file)

+++ This bug was initially created as a clone of Bug #796045 +++

The remaining work here is:

* Hook up the checkForUpdate function to the API added in bug 751754.
Assignee: nobody → jonas
Marking for C2, given this meets the criteria of known P1/P2 bugs at the end of C1.
Target Milestone: --- → B2G C2 (20nov-10dec)
Attached patch patchSplinter Review
Fernando, I tested with a local version of http://owapps.cloudfoundry.com/ 
Please double check that it's also working for you.
Assignee: jonas → fabrice
Attachment #687966 - Flags: review?(ferjmoreno)
Blocks: 813765
Comment on attachment 687966 [details] [diff] [review]
patch

Review of attachment 687966 [details] [diff] [review]:
-----------------------------------------------------------------

I've tested and works for me too.

::: dom/apps/src/Webapps.jsm
@@ +1041,5 @@
> +              aMm.sendAsyncMessage("Webapps:CheckForUpdate:Return:OK", aData);
> +            }
> +          }
> +          let updateSvc = Cc["@mozilla.org/offlinecacheupdate-service;1"]
> +                            .getService(Ci.nsIOfflineCacheUpdateService);

I think you can use here the 'updateSvc' that you got from the lazy getter in line 46.

@@ +1042,5 @@
> +            }
> +          }
> +          let updateSvc = Cc["@mozilla.org/offlinecacheupdate-service;1"]
> +                            .getService(Ci.nsIOfflineCacheUpdateService);
> +          updateSvc.checkForUpdate(Services.io.newURI(aData.manifestURL, null, null),

At some point we would need to clean this file from lines longer than 80 chars :)
Attachment #687966 - Flags: review?(ferjmoreno) → review+
https://hg.mozilla.org/mozilla-central/rev/2c4bd5ee4114
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Whiteboard: [qa-]
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: