Bug 1084502, <template>'s document should inherit mHasHadScriptHandlingObject from the OwnerDoc(), r=bholley

--HG--
extra : rebase_source : 6991665b5d8a494285d632a3b96b10aed43a7b1c
Bug 935846, nsJSEnvironment should get a shutdown notification also in child processes, r=romaxa

--HG--
extra : rebase_source : 782bc88e47ecb750b4220fe01e3f74ebcfa05493