Opened 5 years ago

Closed 3 years ago

#18181 closed defect (patchwelcome)

dojo/hash when invoked from a child iframe causes incorrect location navigation

Reported by: Nick Fenwick Owned by:
Priority: undecided Milestone: 1.13
Component: Core Version: 1.10.0
Keywords: Cc:
Blocked By: Blocking:

Description

I made two examples, the simpler one actually sums up the problem better:

http://nickfenwick.com/tractest/tractest_simpleframehost.html

There are two files involed: tractest_simpleframehost.html - main page, contains dojo code, with a global callback which will use dojo/hash to change its own hash. tractest_simplecallback.html - content loaded into iframe in main page - after 5 seconds, it invokes the callback in the main page.

Expected behaviour:

Actual behaviour:

The iframe's URL has been taken as the main URL of the outer page.

The more complicated example uses dojo/router, but it basically uses dojo/hash and suffers the same problem for the same reason. http://nickfenwick.com/tractest/tractest_framehost.html

Attachments (2)

tractest_simpleframehost.html (624 bytes) - added by Nick Fenwick 5 years ago.
Main page, hosting the iframe.
tractest_simplecallback.html (361 bytes) - added by Nick Fenwick 5 years ago.
Contents in the iframe, invokes callback on window.top

Download all attachments as: .zip

Change History (4)

Changed 5 years ago by Nick Fenwick

Main page, hosting the iframe.

Changed 5 years ago by Nick Fenwick

Contents in the iframe, invokes callback on window.top

comment:1 Changed 4 years ago by dylan

Component: GeneralCore

comment:2 Changed 3 years ago by dylan

Milestone: tbd1.12
Resolution: patchwelcome
Status: newclosed

Given that no one has shown interest in creating a patch in more than a year, I'm closing this as patchwelcome. Please let us know if you would like to get involved in helping make this change to Dojo!

Note: See TracTickets for help on using tickets.