mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-27 21:00:50 +00:00
Bug 640997 - Update contentWindowWidth/Height on pagehide [r+a=mfinkle]
This commit is contained in:
parent
46eacdb081
commit
ec06d77135
@ -210,6 +210,8 @@ let DOMEvents = {
|
||||
.getInterface(Ci.nsIDOMWindowUtils);
|
||||
|
||||
let json = {
|
||||
contentWindowWidth: content.innerWidth,
|
||||
contentWindowHeight: content.innerHeight,
|
||||
windowId: util.outerWindowID,
|
||||
persisted: aEvent.persisted
|
||||
};
|
||||
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user