I had just rolled out a new masterpage template to our test server and was getting this weird UI error where some of the ribbons dropdowns were not... dropping down.
I jumped into the developer tools on IE and Firefox soon uncovered that I was getting a Script5 access is denied error in IE and a 407 authentication required error on a JQuery-ui css file I was trying to load from the google api librarys
This wasn't an issue on the development environment and only showed up once on the test box so I think its a server setting somewhere but I haven't gotten to the bottom of it yet.
After a bit of googling around I discovered that the script5 error can occur when loading a 'blank' css file on the master page. In this case it was because the jquery-ui.css was not being allowed to load due to the 407 error...
The solution... temporarily .... was to host the offending jquery-ui.css file on the server and change the cssregistration link in the masterpage to point to it.