Opened 7 years ago
Closed 5 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:
- Window starts with URL http://nickfenwick.com/tractest/tractest_simpleframehost.html
- after 5 seconds, callback is invoked, URL changes to http://nickfenwick.com/tractest/tractest_simpleframehost.html#/somewhere
Actual behaviour:
- after 5 seconds, callback is invoked, but URL changes to http://nickfenwick.com/tractest/tractest_simplecallback.html#/somewhere
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)
Change History (4)
Changed 7 years ago by
Attachment: | tractest_simpleframehost.html added |
---|
Changed 7 years ago by
Attachment: | tractest_simplecallback.html added |
---|
Contents in the iframe, invokes callback on window.top
comment:1 Changed 5 years ago by
Component: | General → Core |
---|
comment:2 Changed 5 years ago by
Milestone: | tbd → 1.12 |
---|---|
Resolution: | → patchwelcome |
Status: | new → closed |
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!
Main page, hosting the iframe.