Bug 858014, make sure nsPIDOMWindow can be used in external apps, like TB/SM, r=neil

--HG--
extra : rebase_source : 5c3bfc5bb175efba465be834974d26df34207568
Bug 856313 - Clean up some Traverse/Unlink declarations. r=smaug
Bug 771975 - Remove -moz-prefixed gradients usage from browser and toolkit. r=dao
Bug 854888, don't warn when GetContextForEventHandlers fails, r=smaug
Clobber for  Bug 858014
Bug 771975 - Remove -moz-prefixed gradients usage from android. r=mfinkle
rebased