# URLLoader + Firefox + Bad Domain Name

**URL:** <https://forum.kirupa.com/t/urlloader-firefox-bad-domain-name/227889>\
**Category:** flash\
**Created:** [June 3, 2007, 3:55pm UTC](https://forum.kirupa.com/t/urlloader-firefox-bad-domain-name/227889 "2007-06-03T15:55:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rossman](https://avatars.discourse-cdn.com/v4/letter/r/41988e/32.png) [@Rossman](https://forum.kirupa.com/u/Rossman)\
**Post date:** [June 3, 2007, 3:55pm UTC](https://forum.kirupa.com/t/urlloader-firefox-bad-domain-name/227889/1 "2007-06-03T15:55:31Z")

</div>

This is driving me crazy.

I have a small piece of test code for accessing data on a server using URLLoader.

```auto

            var loader:URLLoader = new URLLoader();
            configureListeners(loader);

            var request:URLRequest = new URLRequest("http://somedomain.com");
            try {
            	label.text = "Loading XML...";
                loader.load(request);
            } catch (error:Error) {
            	label.text = "Unable to load requested document.";
            }

```

In IE, if I change “[http://somedomain.com](http://somedomain.com)” to an invalid domain, a security error event fires within seconds; but in Firefox, no events ever fire and my textbox always just says “Loading XML…”. It never times out.

I saw this in Flash MX 2004 and Flash 8 with the XML.load() method as well. It will fail in IE but not in Firefox.

In previous versions of flash I have built a routine which monitors the XML.load() and if it hasn’t fired any events in a long time, I would stop it manually, but that just seems to hacky when this clearly a Firefox only issue.

Anyone run into this before, or have any suggestions for how to better deal with it?

Thanks!
