Bug 337375 session restore disturbs secondary firefox window sizing (r=me)

This commit is contained in:
dietrich@mozilla.com
2006-06-22 04:53:43 +00:00
parent 25749286f4
commit b69695713c

View File

@@ -1729,11 +1729,14 @@ SessionStoreService.prototype = {
* Object containing session data
*/
_openWindowWithState: function sss_openWindowWithState(aState) {
var argString = Cc["@mozilla.org/supports-string;1"].
createInstance(Ci.nsISupportsString);
argString.data = "";
//zeniko: why isn't it possible to set the window's dimensions here (as feature)?
var window = Cc["@mozilla.org/embedcomp/window-watcher;1"].
getService(Ci.nsIWindowWatcher).
openWindow(null, this._getPref("chromeURL", null), "_blank", "chrome,dialog=no,all", null);
openWindow(null, this._getPref("chromeURL", null), "_blank", "chrome,dialog=no,all", argString);
window.__SS_state = aState;
var _this = this;