Bug 1262661 - clear the MessageQueue after send. r=mconley
☠☠ backed out by aad69ac9b118 ☠ ☠
authorGabor Krizsanits <gkrizsanits@mozilla.com>
Thu, 28 Apr 2016 12:52:44 +0200
changeset 357354 e3517606f9eeb49ec0d8925013ad26c0e81dff0b
parent 357353 8a9107830c844b4b8f811463ca6f9c30802d5acf
child 357355 d2995bc1288fa84a7db26eb7afcd84c5198befc1
push id16755
push useryura.zenevich@gmail.com
push dateThu, 28 Apr 2016 15:12:20 +0000
reviewersmconley
bugs1262661
milestone49.0a1
Bug 1262661 - clear the MessageQueue after send. r=mconley
browser/components/sessionstore/content/content-sessionStore.js
--- a/browser/components/sessionstore/content/content-sessionStore.js
+++ b/browser/components/sessionstore/content/content-sessionStore.js
@@ -708,16 +708,18 @@ var MessageQueue = {
         for (let histogramId of Object.keys(value)) {
           telemetry[histogramId] = value[histogramId];
         }
       } else {
         data[key] = value;
       }
     }
 
+    this._data.clear();
+
     durationMs = Date.now() - durationMs;
     telemetry.FX_SESSION_RESTORE_CONTENT_COLLECT_DATA_LONGEST_OP_MS = durationMs;
 
     try {
       // Send all data to the parent process.
       sendAsyncMessage("SessionStore:update", {
         data, telemetry, flushID,
         isFinal: options.isFinal || false,