bug 966059 - add nsIDocShell::GetWindow and GetDocument r=smaug
bug 966084 - don't QI the result of win->GetFrameElementInternal() when its not required r=smaug