[Pkg-mozext-commits] [adblock-plus-element-hiding-helper] 371/483: Work around bug 719376: Make sure to use new strings when the extension updates

David Prévot taffit at moszumanska.debian.org
Thu Jan 22 21:41:58 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository adblock-plus-element-hiding-helper.

commit 340f335bd830d99e6c701722769a872a947bf844
Author: Wladimir Palant <trev at adblockplus.org>
Date:   Thu Jan 19 11:27:10 2012 +0100

    Work around bug 719376: Make sure to use new strings when the extension updates
---
 modules/AppIntegration.jsm | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/modules/AppIntegration.jsm b/modules/AppIntegration.jsm
index d65e037..e45037c 100644
--- a/modules/AppIntegration.jsm
+++ b/modules/AppIntegration.jsm
@@ -183,7 +183,8 @@ var WindowObserver =
 
   get menuItem()
   {
-    let stringBundle = Services.strings.createBundle("chrome://elemhidehelper/locale/global.properties");
+    // Randomize URI to work around bug 719376
+    let stringBundle = Services.strings.createBundle("chrome://elemhidehelper/locale/global.properties?" + Math.random());
     let result = [stringBundle.GetStringFromName("selectelement.label"), stringBundle.GetStringFromName("stopselection.label")];
 
     delete this.menuItem;
@@ -234,7 +235,8 @@ var InspectorObserver =
 
   get inspectorButton()
   {
-    let stringBundle = Services.strings.createBundle("chrome://elemhidehelper/locale/global.properties");
+    // Randomize URI to work around bug 719376
+    let stringBundle = Services.strings.createBundle("chrome://elemhidehelper/locale/global.properties?" + Math.random());
     let result = [stringBundle.GetStringFromName("inspector.button.label"), stringBundle.GetStringFromName("inspector.button.accesskey"), stringBundle.GetStringFromName("inspector.button.tooltiptext")];
 
     delete this.inspectorButton;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/adblock-plus-element-hiding-helper.git



More information about the Pkg-mozext-commits mailing list