Bug 1031945.  Don't expose showModalDialog on Window if it's preffed off.  r=smaug
Bug 957243. Fix test_bug602838.html to not assume server response ordering. r=mayhemer