Bug 1581253 - Fix arguments to nsIWebBrowserPersist::saveURI() in AB card edit to enable assigning contact photos again. r+a=jorgk
authoraceman <acelists@atlas.sk>
Mon, 16 Sep 2019 15:10:45 +1200
changeset 79083 689f379e5c7c99e0ad6e9e09fd00ffe7fc706ebb
parent 79082 320773f8d2b66ef08e74f1439bd1bc7bb43060c9
child 79084 d78d701cf85a1074973f50be1c27c1fa3c029a8c
push id9345
push userkaie@kuix.de
push dateFri, 20 Sep 2019 05:14:40 +0000
treeherdertry-comm-central@b9101c33b5e5 [default view] [failures only]
bugs1581253
Bug 1581253 - Fix arguments to nsIWebBrowserPersist::saveURI() in AB card edit to enable assigning contact photos again. r+a=jorgk
mail/components/addrbook/content/abCommon.js
--- a/mail/components/addrbook/content/abCommon.js
+++ b/mail/components/addrbook/content/abCommon.js
@@ -1160,21 +1160,21 @@ var gImageDownloader = (function() {
       );
       downloader.saveURI(
         source,
         principal,
         null,
         null,
         null,
         null,
-        null,
         tempFile,
         privacy
       );
-    } catch (err) {
+    } catch (e) {
+      Cu.reportError(e);
       cleanup();
       if (callbackError) {
         callbackError(ERROR_SAVE);
       }
     }
   }
 
   /**
@@ -1324,17 +1324,16 @@ var gImageDownloader = (function() {
     );
     downloader.saveURI(
       source,
       principal,
       null,
       null,
       null,
       null,
-      null,
       target,
       privacy
     );
   }
 
   // Publicly accessible methods.
   return {
     cancelSave,