Merge pull request #720 from erikvold/804935

Bug 804935 window.tabs is undefined r=@zer0(cherry picked from commit a722b820818aa631ae81446e5322cc264f083590)