Bug 1488628 - Update comm-central for nsISHEntry.setTitle removal. r=frg
authorNicholas Nethercote <nnethercote@mozilla.com>
Fri, 07 Sep 2018 10:50:34 +1000
changeset 33099 f3be60013adcfc2e2743421dc9c0c62cbaf62f4f
parent 33098 d3cc5c00e5d6947f865dc8c12091fca8550b2239
child 33100 86dfca32fb5640120c0df1939e36484e781909ba
push id387
push userclokep@gmail.com
push dateMon, 10 Dec 2018 21:30:47 +0000
reviewersfrg
bugs1488628
Bug 1488628 - Update comm-central for nsISHEntry.setTitle removal. r=frg The method is gone because nsISHEntry.title is now mutable.
suite/components/sessionstore/nsSessionStore.js
--- a/suite/components/sessionstore/nsSessionStore.js
+++ b/suite/components/sessionstore/nsSessionStore.js
@@ -2856,17 +2856,17 @@ SessionStoreService.prototype = {
    */
   _deserializeHistoryEntry:
     function sss_deserializeHistoryEntry(aEntry, aIdMap, aDocIdentMap) {
 
     var shEntry = Cc["@mozilla.org/browser/session-history-entry;1"]
                     .createInstance(Ci.nsISHEntry);
 
     shEntry.setURI(this._getURIFromString(aEntry.url));
-    shEntry.setTitle(aEntry.title || aEntry.url);
+    shEntry.title = aEntry.title || aEntry.url;
     if (aEntry.subframe)
       shEntry.setIsSubFrame(aEntry.subframe || false);
     shEntry.loadType = Ci.nsIDocShellLoadInfo.loadHistory;
     if (aEntry.contentType)
       shEntry.contentType = aEntry.contentType;
     if (aEntry.referrer)
       shEntry.referrerURI = this._getURIFromString(aEntry.referrer);