Opened 11 years ago

Closed 10 years ago

#14480 closed defect (worksforme)

window.parent.require not accessible

Reported by: Pete Smith Owned by: Rawld Gill
Priority: high Milestone: tbd
Component: Core Version: 1.7.1
Keywords: Cc:
Blocked By: Blocking:


I have a dojo app that is embeddable in an iframe. When I do, line 603 of dojo.js dies on this line:

if(window.parent != window && window.parent.require)

window.parent.require is not accessible. It looks like this code is just for doh testing, I commented it out and my app works fine.

Change History (2)

comment:1 Changed 11 years ago by bill

Owner: set to Rawld Gill

Please attach test cases to all your tickets, including this one.

Presumably window.parent is not defined, although I'm not sure why?

The bigger code snippet is:

	// pass down doh.testConfig from parent as if it were a data-dojo-config
		if(window.parent != window && window.parent.require){
			var doh = window.parent.require("doh");
			doh && mix(dojoSniffConfig, doh.testConfig);

Rawld, looks like a ticket for you?

comment:2 Changed 10 years ago by Rawld Gill

Resolution: worksforme
Status: newclosed

attempted but unable to duplicate.

Note: See TracTickets for help on using tickets.