mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 15:52:07 +00:00
Bug 738527 - Syntax error breaks removing closed tabs r=bnicholson
This commit is contained in:
parent
502585bb83
commit
27d14f9642
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user