mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 12:25:53 +00:00
Bug 966573 - Use speculative connections for URLs coming into BrowserCLH.js r=wesj
This commit is contained in:
parent
e1d7fdf2c0
commit
9f0f6c273f
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user