Bug 640997 - Update contentWindowWidth/Height on pagehide [r+a=mfinkle]

This commit is contained in:
Matt Brubeck 2011-03-14 10:37:07 -07:00
parent 46eacdb081
commit ec06d77135
2 changed files with 5 additions and 0 deletions

View File

@ -210,6 +210,8 @@ let DOMEvents = {
.getInterface(Ci.nsIDOMWindowUtils);
let json = {
contentWindowWidth: content.innerWidth,
contentWindowHeight: content.innerHeight,
windowId: util.outerWindowID,
persisted: aEvent.persisted
};

View File

@ -333,6 +333,9 @@
// (as opposed to one of its iframes).
if (this.feeds && aMessage.target == this)
this.feeds = null;
this._contentWindowWidth = aMessage.json.contentWindowWidth;
this._contentWindowHeight = aMessage.json.contentWindowHeight;
]]>
</body>
</method>