Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#18998 closed defect (fixed)

request/xhr has('native-xhr2-blob') test fails in web worker created from blob

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

Description

Relative URLs with XMLHttpRequest do not work in a Web Worker generated from a blob.

dojo/request/xhr adds a dojo/has test for 'native-xhr2-blob' that doesn't need to send an XHR, but creates one for feature-testing and sets the URL to '/'. This causes an error in Chrome and Firefox:

Chrome 56: DOMException: Failed to execute 'open' on 'XMLHttpRequest': Invalid URL

Firefox 52: SyntaxError: The URI is malformed.

If the URL is set to a fully-qualified URL then it works.

Change History (5)

comment:1 Changed 3 years ago by mssskhalsa

comment:2 Changed 3 years ago by dylans <dylan@…>

Resolution: fixed
Status: newclosed

In d615824/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 3 years ago by dylans <dylan@…>

In 6a087b9/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 3 years ago by dylans <dylan@…>

In 501813f/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 3 years ago by dylan

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