Bug 1418009 - Avoid speculative connections on prematurely inserted lazy tabs
MozReview-Commit-ID: 3T8PLBLEGNt
--- a/browser/components/sessionstore/SessionStore.jsm
+++ b/browser/components/sessionstore/SessionStore.jsm
@@ -3542,17 +3542,17 @@ var SessionStoreInternal = {
* Make a connection to a host when users hover mouse on a tab.
* This will also set a flag in the tab to prevent us from speculatively
* connecting a second time.
*
* @param tab
* a tab to speculatively connect on mouse hover.
*/
speculativeConnectOnTabHover(tab) {
- if (this._restore_on_demand && !tab.__SS_connectionPrepared && tab.hasAttribute("pending")) {
+ if (tab.__SS_lazyData && !tab.__SS_connectionPrepared) {
let url = this.getLazyTabValue(tab, "url");
let prepared = this.prepareConnectionToHost(url);
// This is used to test if a connection has been made beforehand.
if (gDebuggingEnabled) {
tab.__test_connection_prepared = prepared;
tab.__test_connection_url = url;
}
// A flag indicate that we've prepared a connection for this tab and