We were using the top BrowsingContextGroup id in this case, which is obviously wrong. Also make the API take a BrowsingContext directly, rather than passing outerwindowids around. Differential Revision: https://phabricator.services.mozilla.com/D112413