Skip to main content

Bug Tracker

Side navigation

#4633 closed bug (invalid)

Opened May 07, 2009 08:21PM UTC

Closed December 02, 2010 08:07AM UTC

globalEval execution is delayed in Firefox if another script is executing

Reported by: krogot Owned by: krogot
Priority: minor Milestone: 1.4
Component: core Version: 1.3.2
Keywords: Cc:
Blocked by: Blocking:
Description

<script>

$.get('url', {}, function(contents) {

$.globalEval(contents);

// call of a function declared in "contents" fails in FF

});

</script>

<script>

document.write("<script src=\\"delay.php?r="+Math.random()+"\\"></"+"script>");

</script>

In IE/Safari/Chrome it works, in FF2/3 it fails. Looks like firefox schedules the <script> tag created by globalEval to be executed after "delay.php" finishes, so any code right after globalEval() does not work.

Attachments (0)
Change History (2)

Changed November 17, 2010 03:04AM UTC by dmethvin comment:1

owner: → krogot
status: newpending

Can you provide a complete test case?

Changed December 02, 2010 08:07AM UTC by trac-o-bot comment:2

resolution: → invalid
status: pendingclosed

Automatically closed due to 14 days of inactivity.