problem in loading milestone/timeline graph in my html page
Bug #421898 reported by
Harry (OpenERP)
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
High
|
Edwin Grubbs |
Bug Description
Hello!
I want to display milestone/timeline graph in my html page.
my html page :
<html>
<body>
<iframe src ="https:/
<p>Your browser does not support iframes.</p>
</iframe>
</body>
</html>
but graph is always in loading phase and display javascript Error in console :
"Error: Permission denied to get property Window.document"
so
Can you tell me where I'm wrong ? How can display this timeline graph in my html page ?
Thanks in advance!
Related branches
lp://qastaging/~edwin-grubbs/launchpad/bug-421898-cross-site-timeline-graph
- Aaron Bentley (community): Approve (code)
-
Diff: 13 lines1 file modifiedlib/lp/registry/templates/object-timeline-graph.pt (+2/-2)
summary: |
- problem in loading milestone/timeline graph in our site + problem in loading milestone/timeline graph in my html page |
affects: | launchpad → launchpad-registry |
Changed in launchpad-registry: | |
status: | New → Triaged |
Changed in launchpad-registry: | |
milestone: | none → 3.1.10 |
Changed in launchpad-registry: | |
status: | Triaged → Fix Committed |
Changed in launchpad-registry: | |
importance: | Undecided → High |
tags: | removed: graph |
tags: |
added: javascript removed: timeline |
To post a comment you must log in.
The problem appears to be caused by the javascript in the iframe trying to access its parent to resize the iframe. This works on launchpad, because the page with the iframe and the page inside the iframe are on the same domain name; therefore, the browser doesn't trigger a security error. This was not obvious in Firefox with Firebug, but there was a clear security error when testing it in Safari 4.