replace:
Code: Select all
onLocationChange: function(aWebProgress, aRequest, aLocation, aFlags)
{
// Reset the buttons if the top level document changes
if (aWebProgress.DOMWindow != content || aFlags & Ci.nsIWebProgressListener.LOCATION_CHANGE_SAME_DOCUMENT) return;
this.setPermButton();
setTimeout(this.tidyNotification, 250);
},
with:
Code: Select all
onLocationChange: function(aWebProgress, aRequest, aLocation, aFlags)
{
// Reset the buttons if the top level document changes
if(aFlags===1) aFlags=0;//SM Fix by Alx
if (aWebProgress.DOMWindow != content || aFlags & Ci.nsIWebProgressListener.LOCATION_CHANGE_SAME_DOCUMENT) return;
this.setPermButton();
setTimeout(this.tidyNotification, 250);
},
I do not know why but FF return to aFlag = 0 while SM returns a aFlag = 1