Bug 877164 - nsDocument should call GetJunkScope later. r=smaug