mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 771621 - Check sameDocument on location change. r=mfinkle
This commit is contained in:
parent
831e3a5daa
commit
cb9ddecd19
@ -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());
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user