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

This test is mostly the same of the previous one, same comments applied.