Closed Bug 713243 Opened 13 years ago Closed 13 years ago

Send quit-application in head_download_manager.js

Categories

(Toolkit :: Downloads API, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla12

People

(Reporter: espindola, Assigned: espindola)

References

Details

Attachments

(1 file)

      No description provided.
Attached patch is to be used on top of the patch for 713242.
Assignee: nobody → respindola
Status: NEW → ASSIGNED
Attachment #584073 - Flags: review?(mak77)
Comment on attachment 584073 [details] [diff] [review]
Send quit-application in head_download_manager.js

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

::: toolkit/components/downloads/test/unit/head_download_manager.js
@@ +190,5 @@
>  Services.prefs.setBoolPref("browser.download.manager.showAlertOnComplete", false);
> +
> +do_register_cleanup(function() {
> +  let obsSvc = Components.classes["@mozilla.org/observer-service;1"].
> +    getService(Components.interfaces.nsIObserverService);

Import Services.jsm at the top (where XPCOMUtils.jsm is imported) and just use Services.obs here.

@@ +192,5 @@
> +do_register_cleanup(function() {
> +  let obsSvc = Components.classes["@mozilla.org/observer-service;1"].
> +    getService(Components.interfaces.nsIObserverService);
> +  obsSvc.notifyObservers(null, "quit-application", null);
> +})

missing semicolon
Attachment #584073 - Flags: review?(mak77) → review+
https://hg.mozilla.org/mozilla-central/rev/2d36b9fd44ca
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla12
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: