Bug 738527 - Syntax error breaks removing closed tabs r=bnicholson

This commit is contained in:
Mark Finkle 2012-03-23 16:53:43 -04:00
parent 502585bb83
commit 27d14f9642

View File

@ -1501,8 +1501,7 @@ Tab.prototype = {
sendMessageToJava(message);
this.overscrollController = new OverscrollController(this);
this.browser.contentWindow.controllers
.insertControllerAt(0, this.overscrollController);
this.browser.contentWindow.controllers.insertControllerAt(0, this.overscrollController);
let flags = Ci.nsIWebProgress.NOTIFY_STATE_ALL |
Ci.nsIWebProgress.NOTIFY_LOCATION |
@ -1553,8 +1552,7 @@ Tab.prototype = {
if (!this.browser)
return;
this.browser.controllers.contentWindow
.removeController(this.overscrollController);
this.browser.contentWindow.controllers.removeController(this.overscrollController);
this.browser.removeProgressListener(this);
this.browser.removeEventListener("DOMContentLoaded", this, true);