Bug 966573 - Use speculative connections for URLs coming into BrowserCLH.js r=wesj

This commit is contained in:
Mark Finkle 2014-02-12 11:27:25 -05:00
parent e1d7fdf2c0
commit 9f0f6c273f

View File

@ -88,6 +88,9 @@ BrowserCLH.prototype = {
if (!uri)
return;
// Let's get a head start on opening the network connection to the URI we are about to load
Services.io.QueryInterface(Ci.nsISpeculativeConnect).speculativeConnect(uri, null);
let browserWin = Services.wm.getMostRecentWindow("navigator:browser");
if (browserWin) {
if (!pinned) {