added URI test to stop opening invalid URIs
added tests for chrome and resource URIs
added test for ftp
closed all the opened windows
Improved windows closing
Merge pull request #983 from darkowlzz/bug840314

Bug 840314 - Don't open untrusted content in top-level chrome windows r=@erikvold