Bug 898192 - Skip SocialMark and SocialShare code in onLocationChange when SocialUI is disabled. f=mhammond,r=jaws

--HG--
extra : rebase_source : f19d53a330e8f81ce6779bd1e786a1c256a5b921
This commit is contained in:
Matthew Noorenberghe 2013-07-25 03:38:05 -07:00
parent 8262747c69
commit c987bd1037

View File

@ -3941,8 +3941,10 @@ var XULBrowserWindow = {
// Update starring UI // Update starring UI
BookmarkingUI.updateStarState(); BookmarkingUI.updateStarState();
SocialMark.updateMarkState(); if (SocialUI.enabled) {
SocialShare.update(); SocialMark.updateMarkState();
SocialShare.update();
}
} }
// Show or hide browser chrome based on the whitelist // Show or hide browser chrome based on the whitelist