[tbb-commits] [tor-browser/tor-browser-52.1.0esr-7.0-2] Bug 22452: Isolate tab list menuitem favicons to content first party

gk at torproject.org gk at torproject.org
Wed May 31 20:39:48 UTC 2017


commit 1cb4d06b54d26e35c78b398abdd456444b26acd7
Author: Arthur Edelstein <arthuredelstein at gmail.com>
Date:   Tue May 30 00:43:48 2017 -0700

    Bug 22452: Isolate tab list menuitem favicons to content first party
---
 browser/base/content/tabbrowser.xml | 1 +
 toolkit/content/widgets/menu.xml    | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/browser/base/content/tabbrowser.xml b/browser/base/content/tabbrowser.xml
index 2b3ac67..f82dd5a 100644
--- a/browser/base/content/tabbrowser.xml
+++ b/browser/base/content/tabbrowser.xml
@@ -7068,6 +7068,7 @@
             aMenuitem.setAttribute("busy", aTab.getAttribute("busy"));
             aMenuitem.removeAttribute("image");
           } else {
+            aMenuitem.setAttribute("iconLoadingPrincipal", aTab.getAttribute("iconLoadingPrincipal"));
             aMenuitem.setAttribute("image", aTab.getAttribute("image"));
             aMenuitem.removeAttribute("busy");
           }
diff --git a/toolkit/content/widgets/menu.xml b/toolkit/content/widgets/menu.xml
index 26dcad4..6b0886c 100644
--- a/toolkit/content/widgets/menu.xml
+++ b/toolkit/content/widgets/menu.xml
@@ -214,7 +214,7 @@
     <content>
       <xul:hbox class="menu-iconic-left" align="center" pack="center"
                 xbl:inherits="selected,_moz-menuactive,disabled,checked">
-        <xul:image class="menu-iconic-icon" xbl:inherits="src=image,validate,src"/>
+        <xul:image class="menu-iconic-icon" xbl:inherits="src=image,loadingprincipal=iconLoadingPrincipal,validate,src"/>
       </xul:hbox>
       <xul:label class="menu-iconic-text" flex="1" xbl:inherits="value=label,accesskey,crop" crop="right"/>
       <children/>



More information about the tbb-commits mailing list