Closed Bug 361314 Opened 19 years ago Closed 19 years ago

XMLHttpRequest failed when used in *first* external script on the page.

Categories

(Firefox :: General, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: sergey.kushniruk, Unassigned)

References

()

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.8) Gecko/20061025 Firefox/1.5.0.8 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.8) Gecko/20061025 Firefox/1.5.0.8 I use ScriptLoader class to dynamically load JS-files. It uses synchronous XMLHttpRequest to load external script, and then evaluates received contents. Right after definition of the ScriptLoader class I use it to load script.js that alerts 'Success.' string. The problem is occured when loader.js is attached in the head of a page in the first place, with no preceding <script /> elements that loads external scripts. I have tested that many times to figure the problem out. View the example at http://1m.kiev.ua/dynjsloadtest/. As you can see (I use FireBug), XMLHttpRequest works well only in approx. 30%-40% cases (alerting 'Success.'). Other 60%-70% are fails. Reproducible: Sometimes Steps to Reproduce: See details. See details.
Is this a problem if you disable FireBug? I can't reproduce this problem with a current trunk build.
(In reply to comment #1) > Is this a problem if you disable FireBug? I can't reproduce this problem with > a current trunk build. > Oops. Seems like disabling FireBug solves the problem. I don't even think about FireBug can cause this problem. I'm very sorry for your time spend.
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.