diff --git a/browser/metro/base/content/browser.js b/browser/metro/base/content/browser.js index a954ccc29e72..b96845041031 100644 --- a/browser/metro/base/content/browser.js +++ b/browser/metro/base/content/browser.js @@ -1312,9 +1312,6 @@ Tab.prototype = { self._eventDeferred = null; } browser.addEventListener("pageshow", onPageShowEvent, true); - browser.addEventListener("DOMWindowCreated", this, false); - Elements.browsers.addEventListener("SizeChanged", this, false); - browser.messageManager.addMessageListener("Content:StateChange", this); Services.obs.addObserver(this, "metro_viewstate_changed", false); @@ -1323,20 +1320,6 @@ Tab.prototype = { this._loadUsingParams(browser, aURI, aParams); }, - updateViewport: function (aEvent) { - // is not yet supported; just use the main window size. - this.browser.setWindowSize(window.innerWidth, window.innerHeight); - }, - - handleEvent: function (aEvent) { - switch (aEvent.type) { - case "DOMWindowCreated": - case "SizeChanged": - this.updateViewport(); - break; - } - }, - receiveMessage: function(aMessage) { switch (aMessage.name) { case "Content:StateChange": @@ -1365,8 +1348,6 @@ Tab.prototype = { destroy: function destroy() { this._browser.messageManager.removeMessageListener("Content:StateChange", this); - this._browser.removeEventListener("DOMWindowCreated", this, false); - Elements.browser.removeEventListener("SizeChanged", this, false); Services.obs.removeObserver(this, "metro_viewstate_changed", false); clearTimeout(this._updateThumbnailTimeout);