Merge pull request #858 from erikvold/851161

Fix Bug 851161 preventing panels from being used with per-window private browsing r=@Gozala(cherry picked from commit 707eca737187f2e825be9aa6a539c9e7934ef077)