Avoid caching the inner reference for window in CKEDITOR.document, because it is mutable in IE+Quirks and may represent a object that is different from the current window.
Merge branch 't/10505'