Opened 14 years ago

Closed 14 years ago

#102 closed defect (wontfix)

dojo fails to load when document.domain is set

Reported by: rich dot manalang at gmail dot com Owned by: alex
Priority: high Milestone:
Component: General Version: 0.1
Keywords: Cc:
Blocked By: Blocking:

Description

I'm trying to use the dojo widget package on a site that sets the document.domain property. Because of this, I get these these errors:

DEBUG: failed loading /dojo/src/widget/Dialog.js with error: Permission denied to call method XMLHttpRequest.open DEBUG: failed loading /dojo/src/widget.js with error: Permission denied to call method XMLHttpRequest.open DEBUG: failed loading /dojo/src/package.js with error: Permission denied to call method XMLHttpRequest.open DEBUG: failed loading /dojo/src.js with error: Permission denied to call method XMLHttpRequest.open DEBUG: failed loading /dojo/package.js with error: Permission denied to call method XMLHttpRequest.open

Any ideas for work arounds?

Change History (4)

comment:1 Changed 14 years ago by dylan

Resolution: worksforme
Status: newclosed

You need to make sure document.domain is also set in iframe_history.html, or disable the back button fix, i.e.:

{{{djConfig = {

preventBackButtonFix: true,

};}}}

comment:2 Changed 14 years ago by dylan

sigh... remove the triple brackets before and after... some

djConfig = {

    preventBackButtonFix: true, };

comment:3 Changed 14 years ago by rich dot manalang at gmail dot com

Resolution: worksforme
Status: closedreopened

That fixed it for IE, but not for firefox. It looks like this is a bug in firefox (http://www.mozdev.org/pipermail/greasemonkey/2005-July/004343.html). Looks like Dojo should revert to using iFrames instead of XMLHttpRequest when document.domain is set.

What do you think?

Rich

comment:4 Changed 14 years ago by schontz@…

Resolution: wontfix
Status: reopenedclosed

It looks like the bug in question (marked as a dup, so it's really this bug) has been fixed. I assume that it'll be in Firefox 1.5 so we won't be fixing it. That said, the iframe transport is in the works, so there will be an alternative on the way at some point.

Note: See TracTickets for help on using tickets.