Bug 839271: Use the inner window ID to cache workers so we get a new one if the outer window doesn't change.
Bug 839271: Address review comments.
Merge pull request #774 from Mossop/bug839271

Bug 839271: Use the inner window ID to cache workers so we get a new one if the outer window doesn't change. r=erikvold