Bug 559838 - Switching between subscriptions in Google Reader resets zoom level [r=mfinkle]

This commit is contained in:
Matt Brubeck 2010-06-04 09:15:13 -04:00
Родитель f74adb48ec
Коммит e27455cabe
2 изменённых файлов: 10 добавлений и 9 удалений

Просмотреть файл

@ -851,7 +851,7 @@ var BrowserUI = {
case "cmd_forceReload":
{
// Simulate a new page
browser.lastSpec = null;
browser.lastLocation = null;
const reloadFlags = Ci.nsIWebNavigation.LOAD_FLAGS_BYPASS_PROXY |
Ci.nsIWebNavigation.LOAD_FLAGS_BYPASS_CACHE;

Просмотреть файл

@ -2594,7 +2594,7 @@ var FormSubmitObserver = {
let doc = aWindow.content.top.document;
let tab = Browser.getTabForDocument(doc);
if (tab)
tab.browser.lastSpec = null;
tab.browser.lastLocation = null;
},
QueryInterface : function(aIID) {
@ -2808,22 +2808,23 @@ ProgressController.prototype = {
if (aWebProgress.DOMWindow != this._tab.browser.contentWindow)
return;
let location = aLocationURI ? aLocationURI.spec : "";
let spec = aLocationURI ? aLocationURI.spec : "";
let location = spec.split("#")[0]; // Ignore fragment identifier changes.
this._hostChanged = true;
if (location != this.browser.lastSpec) {
this.browser.lastSpec = this.browser.currentURI.spec;
if (location != this.browser.lastLocation) {
this.browser.lastLocation = location;
Browser.removeTransientNotificationsForTab(this._tab);
this._tab.resetZoomLevel();
if (this._tab == Browser.selectedTab) {
BrowserUI.updateURI();
// We're about to have new page content, so scroll the content area
// to the top so the new paints will draw correctly.
// (background tabs are delayed scrolled to top in _documentStop)
Browser.scrollContentToTop();
// We're about to have new page content, so scroll the content area
// to the top so the new paints will draw correctly.
// (background tabs are delayed scrolled to top in _documentStop)
Browser.scrollContentToTop();
}
}
},