Opened 23 months ago

Closed 22 months ago

Last modified 22 months ago

#19016 closed defect (fixed)

request/script error handler is added too late

Reported by: mssskhalsa Owned by: dylan
Priority: undecided Milestone: 1.8.15
Component: IO Version: 1.12.2
Keywords: Cc:
Blocked By: Blocking:

Description

If dojo/request/script is used in a page loaded over HTTPS and attempts to load a script over HTTP, the browser security policy will throw an error. However, dojo/request/script adds its error handler after the error event has already been emitted, so instead of terminating immediately, it will wait until the timeout has transpired.

This behavior varies by browser; Google Chrome 57 exhibits erroneous behavior.

The error handler should be added before the HTMLScriptElement is appended to the document.

Change History (6)

comment:1 Changed 22 months ago by dylans <dylan@…>

Resolution: fixed
Status: newclosed

In 2f376f1/dojo:

Error: Processor CommitTicketReference failed
Unsupported version control system "git": Can't find an appropriate component, maybe the corresponding plugin was not enabled? 

comment:2 Changed 22 months ago by dylans <dylan@…>

In 9b3a1c4/dojo:

Error: Processor CommitTicketReference failed
Unsupported version control system "git": Can't find an appropriate component, maybe the corresponding plugin was not enabled? 

comment:3 Changed 22 months ago by dylans <dylan@…>

In eed67ff6/dojo:

Error: Processor CommitTicketReference failed
Unsupported version control system "git": Can't find an appropriate component, maybe the corresponding plugin was not enabled? 

comment:4 Changed 22 months ago by dylans <dylan@…>

In d80b559/dojo:

Error: Processor CommitTicketReference failed
Unsupported version control system "git": Can't find an appropriate component, maybe the corresponding plugin was not enabled? 

comment:5 Changed 22 months ago by dylans <dylan@…>

In 7f2ac9d/dojo:

Error: Processor CommitTicketReference failed
Unsupported version control system "git": Can't find an appropriate component, maybe the corresponding plugin was not enabled? 

comment:6 Changed 22 months ago by dylan

Milestone: tbd1.8.15
Note: See TracTickets for help on using tickets.