Created attachment 628669 [details] [diff] [review]
nsGlobalWindow::SetNewDocument is the only caller, so I think it's clearer to just put move it there.
Comment on attachment 628669 [details] [diff] [review]
- In dom/base/nsIScriptContext.h:
- virtual nsresult CreateNativeGlobalForInner(
- nsIScriptGlobalObject *aNewInner,
- nsIURI *aURI,
This changes the vtable layout, which means you need to bump the IID here. And to be on the safe side I'd bump the IID on nsIScriptGlobalObject as well, as I believe that's on the the most common path for getting your hands on an nsIScriptContext, and it's rare for code to QI anything to an nsIScriptContext so bumping the IID in this interface only buys us so much.