Bug 771621 - Check sameDocument on location change. r=mfinkle

This commit is contained in:
Brian Nicholson 2012-07-06 22:50:07 -07:00
parent 38e784495d
commit 828521d0a3
2 changed files with 4 additions and 1 deletions

View File

@ -273,7 +273,6 @@ public class BrowserToolbar implements ViewSwitcher.ViewFactory,
public void onTabChanged(Tab tab, Tabs.TabEvents msg, Object data) {
switch(msg) {
case TITLE:
// if (sameDocument)
if (Tabs.getInstance().isSelectedTab(tab)) {
setTitle(tab.getDisplayTitle());
}

View File

@ -827,6 +827,10 @@ abstract public class GeckoApp
tab.updateURL(uri);
tab.setDocumentURI(documentURI);
// We can get a location change event for the same document with an anchor tag
if (sameDocument)
return;
tab.setContentType(contentType);
tab.clearFavicon();
tab.updateIdentityData(null);