diff --git a/browser/base/content/browser.js b/browser/base/content/browser.js
index e5aa95a7a88a..de86ff48dc62 100755
--- a/browser/base/content/browser.js
+++ b/browser/base/content/browser.js
@@ -6777,6 +6777,14 @@ var gIdentityHandler = {
this.refreshIdentityBlock();
},
+ updateSharingIndicator() {
+ let sharing = gBrowser.selectedTab.getAttribute("sharing");
+ if (sharing)
+ this._identityBox.setAttribute("sharing", sharing);
+ else
+ this._identityBox.removeAttribute("sharing");
+ },
+
/**
* Attempt to provide proper IDN treatment for host names
*/
diff --git a/browser/base/content/browser.xul b/browser/base/content/browser.xul
index b137c4235db2..1e98e57213ec 100644
--- a/browser/base/content/browser.xul
+++ b/browser/base/content/browser.xul
@@ -706,6 +706,7 @@
+
diff --git a/browser/base/content/tabbrowser.xml b/browser/base/content/tabbrowser.xml
index 9557eafa6704..32fb6aa6e037 100644
--- a/browser/base/content/tabbrowser.xml
+++ b/browser/base/content/tabbrowser.xml
@@ -1225,6 +1225,7 @@
}
updateUserContextUIIndicator();
+ gIdentityHandler.updateSharingIndicator();
this.tabContainer._setPositionalAttributes();
@@ -1380,6 +1381,9 @@
else
tab.removeAttribute("sharing");
this._tabAttrModified(tab, ["sharing"]);
+
+ if (aBrowser == this.mCurrentBrowser)
+ gIdentityHandler.updateSharingIndicator();
]]>