By replacing nsWebBrowser's implementation of the nsIBaseWindow.initWindow and nsIBaseWindow.create with a new static nsWebBrowser::Create method we make it possible to pass arguments directly when creating an nsWebBrowser, for example the opener BrowsingContext. As a bonus we can do away with nsWebBrowser::mInitInfo! Differential Revision: https://phabricator.services.mozilla.com/D12634