Bug 699450 - Exceptions are thrown when you use page-mod and tab.close()
Address review comments. Make it work on Fennec. Fix worker.tab.close
callback on desktop.
Merge pull request #1015 from ochameau/bug699450

Bug 699450 - Exceptions are thrown when you use page-mod and tab.close() r=@erikvold