Bug 838980: Test that context-menu works correctly with private browsing support

Only the last commit is relevant here, the rest are from https://github.com/mozilla/addon-sdk/pull/769 (I wish github handled this better).