Merge lp:~edwin-grubbs/launchpad/bug-421898-cross-site-timeline-graph into lp:launchpad
Proposed by
Edwin Grubbs
Status: | Merged |
---|---|
Approved by: | Aaron Bentley |
Approved revision: | no longer in the source branch. |
Merged at revision: | not available |
Proposed branch: | lp:~edwin-grubbs/launchpad/bug-421898-cross-site-timeline-graph |
Merge into: | lp:launchpad |
Diff against target: |
13 lines 1 file modified
lib/lp/registry/templates/object-timeline-graph.pt (+2/-2) |
To merge this branch: | bzr merge lp:~edwin-grubbs/launchpad/bug-421898-cross-site-timeline-graph |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Aaron Bentley (community) | code | Approve | |
Review via email: mp+12551@code.launchpad.net |
To post a comment you must log in.
Summary
-------
A user wanted to embed the timeline graph on their website. This was not working due to the timeline graph's javascript trying to access the parent of the iframe across domain names, which triggered a browser security error. This branch fixes the problem by changing resize_frame to default to an empty string instead of nothing, since that gets converted to "None", since that variable is usually a string matching the id of the iframe.
Tests
-----
./bin/lp-windmill test=lib/ canonical/ launchpad/ windmill/ tests/test_ registry/ test_timeline_ graph.py firefox http:// launchpad. dev:8085
Demo and Q/A
------------
Demo: launchpadlibrar ian.net/ 32631714/ test_iframe. html ian.net domain.
* Start up launchpad.dev
* Open http://
* You should see the timeline graph, even though the iframe is on the launchpadlibrar
QA: launchpadlibrar ian.net/ 32632477/ test_edge_ iframe. html ian.net domain.
* Open http://
* You should see the timeline graph, even though the iframe is on the launchpadlibrar