Bug 1629499 - SeaMonkey's DownloadsCommon.jsm still uses getComplexValue. r=frg
authorIan Neal <iann_cvs@blueyonder.co.uk>
Sat, 11 Apr 2020 16:57:42 +0100
changeset 38802 82a6cd4c38f29245a4ac8514a22cf1b69e1acf1c
parent 38801 01de8e37563269a3d86d481fa824b2659c26bbe8
child 38803 ad558c51b1f0fcf7210f5c92e95822ec2ec77287
push id401
push userclokep@gmail.com
push dateMon, 01 Jun 2020 20:41:59 +0000
reviewersfrg
bugs1629499
Bug 1629499 - SeaMonkey's DownloadsCommon.jsm still uses getComplexValue. r=frg
suite/components/downloads/DownloadsCommon.jsm
--- a/suite/components/downloads/DownloadsCommon.jsm
+++ b/suite/components/downloads/DownloadsCommon.jsm
@@ -751,19 +751,18 @@ DownloadsDataCtor.prototype = {
 
   // Play a download sound.
   playDownloadSound: function()
   {
     if (Services.prefs.getBoolPref("browser.download.finished_download_sound")) {
       if (!this._sound)
         this._sound = Cc["@mozilla.org/sound;1"].createInstance(Ci.nsISound);
       try {
-        let url = Services.prefs.getComplexValue("browser.download.finished_sound_url",
-                                                 Ci.nsISupportsString);
-        this._sound.play(Services.io.newURI(url.data));
+        let url = Services.prefs.getStringPref("browser.download.finished_sound_url");
+        this._sound.play(Services.io.newURI(url));
       } catch (e) {
         this._sound.beep();
       }
     }
   },
 
   // Registration of views