From 1aa424c6574996fc535aa116eba4a868699d8cb2 Mon Sep 17 00:00:00 2001
From: Shane Tomlinson <stomlinson@mozilla.com>
Date: Thu, 28 Jun 2012 15:04:11 +0100
Subject: [PATCH] No longer clear the stored returnTo on window.unload.

---
 resources/static/dialog/js/misc/state.js | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/resources/static/dialog/js/misc/state.js b/resources/static/dialog/js/misc/state.js
index 7f36178c5..032bd85f6 100644
--- a/resources/static/dialog/js/misc/state.js
+++ b/resources/static/dialog/js/misc/state.js
@@ -62,13 +62,6 @@ BrowserID.State = (function() {
     });
 
     handleState("window_unload", function() {
-      if (!self.success) {
-        storage.setReturnTo("");
-        // do not call doCancel here, let winchan's cancel
-        // handling do the work. This gives us consistent semantics
-        // across browsers on the RP side of the WinChan.
-      }
-
       // Round up final KPI stats as the user is leaving the dialog.  This
       // ensures the final state is sent to the KPI stats.  Any new logins are
       // counted, any new sites are counted, any new emails are included, etc.
-- 
GitLab