Bug 626873 Navigating sometimes does not reset scale r=mfinkle

This commit is contained in:
Benjamin Stover 2011-01-19 10:03:05 -08:00
Родитель aa207cbcd2
Коммит d5cd7c7f90
2 изменённых файлов: 4 добавлений и 2 удалений

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

@ -192,6 +192,9 @@ let DOMEvents = {
case "pageshow": case "pageshow":
case "pagehide": { case "pagehide": {
if (aEvent.target.defaultView != content)
break;
let util = aEvent.target.defaultView.QueryInterface(Ci.nsIInterfaceRequestor) let util = aEvent.target.defaultView.QueryInterface(Ci.nsIInterfaceRequestor)
.getInterface(Ci.nsIDOMWindowUtils); .getInterface(Ci.nsIDOMWindowUtils);

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

@ -332,8 +332,7 @@
if (this.feeds && aMessage.target == this) if (this.feeds && aMessage.target == this)
this.feeds = null; this.feeds = null;
if (aMessage.windowId == this.contentWindowId) this.scale = 1;
this.scale = 1;
]]> ]]>
</body> </body>
</method> </method>