Bug 1385453 - Speculatively warm-up a tab for the async tab switcher when hovering the tab element. r?billm draft
authorMike Conley <mconley@mozilla.com>
Mon, 21 Aug 2017 10:11:47 -0400
changeset 652634 65dc59818c00f8aecd5513a5913e65e23eef7271
parent 652633 f7ba43e6fa9c6567651e928a3e1e80cbae7c2132
child 652635 2df8e64d7687bdb4f540010ee7707337bad8a9d6
push id76103
push usermconley@mozilla.com
push dateFri, 25 Aug 2017 01:57:10 +0000
reviewersbillm
bugs1385453
milestone57.0a1
Bug 1385453 - Speculatively warm-up a tab for the async tab switcher when hovering the tab element. r?billm MozReview-Commit-ID: 1xSduIdiQFQ
browser/base/content/tabbrowser.xml
--- a/browser/base/content/tabbrowser.xml
+++ b/browser/base/content/tabbrowser.xml
@@ -7647,16 +7647,17 @@
           tabContainer._hoveredTab = this;
           if (this.linkedPanel && !this.selected) {
             this.linkedBrowser.unselectedTabHover(true);
             this.startUnselectedTabHoverTimer();
           }
 
           // Prepare connection to host beforehand.
           SessionStore.speculativeConnectOnTabHover(this);
+          tabContainer.tabbrowser.warmupTab(this);
         ]]></body>
       </method>
 
       <method name="_mouseleave">
         <body><![CDATA[
           let tabContainer = this.parentNode;
           if (tabContainer._beforeHoveredTab) {
             tabContainer._beforeHoveredTab.removeAttribute("beforehovered");