Opened 8 years ago

Closed 7 years ago

Last modified 7 years ago

#15285 closed defect (fixed)

uploader killed when link clicked

Reported by: haysmark Owned by: Mike Wilcox
Priority: undecided Milestone: 1.9
Component: DojoX Uploader Version: 1.7.2
Keywords: Cc:
Blocked By: Blocking:

Description

See line 94 of dojox/embed/Flash.js. It appears the code suffers from the old issue where a user clicks a download link and addOnUnload gets unexpectedly called. The solution is to use addOnWindowUnload.

 dojo.addOnUnload(function(){ // this method will be call when click a href link in html page. there should change to dojo.addOnWindowUnload.
            var dummy = function(){};
            var objs = dojo.query("object").
                reverse().
                style("display", "none").
                forEach(function(i){
                    for(var p in i){
                        if((p != "FlashVars") && dojo.isFunction(i[p])){
                            try{
                                i[p] = dummy;
                            }catch(e){}
                        }
                    }
                });
        });

Change History (2)

comment:1 Changed 7 years ago by Mike Wilcox

Resolution: fixed
Status: newclosed

In [30330]:

Fixes #15285 - using addOnWindowUnload to avoid IE bugs

comment:2 Changed 7 years ago by Mike Wilcox

Milestone: tbd1.9

I did not see the problem, but implemented your suggestion regardless.

Note: See TracTickets for help on using tickets.