Bug 888773 - Sidebar followup: show/hide should take a window argument

Nit: I think we can simply have:
```js
showSidebar(viewFor(window), this);
```