Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(132)

Issue 1812042: Shift to loading the Cajita runtime into an iframe rather than the host page. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
15 years, 11 months ago by kpreid2
Modified:
15 years, 11 months ago
Reviewers:
Jasvir, ihab.awad
CC:
google-caja-discuss_googlegroups.com
Base URL:
http://google-caja.googlecode.com/svn/trunk/
Visibility:
Public.

Description

Added file caja.js which creates an iframe, then loads everything from Cajita to HostTools into that frame, and calls a callback with all that stuff so the host page can load gadgets and grant access to the host DOM. Changed the container/ demos to use it. Does not update the playground or any other demos.

Patch Set 1 #

Total comments: 43
Unified diffs Side-by-side diffs Delta from patch set Stats (+495 lines, -265 lines) Patch
M build.xml View 6 chunks +61 lines, -12 lines 2 comments Download
D src/com/google/caja/demos/container/container-dynamic.html View 1 chunk +0 lines, -70 lines 0 comments Download
M src/com/google/caja/demos/container/container-interaction.html View 1 chunk +79 lines, -135 lines 15 comments Download
M src/com/google/caja/demos/container/container-trivial.html View 2 chunks +21 lines, -40 lines 2 comments Download
D src/com/google/caja/demos/container/gadget-library.html View 1 chunk +0 lines, -5 lines 0 comments Download
A + src/com/google/caja/demos/container/gadget-library.js View 1 chunk +0 lines, -2 lines 0 comments Download
A src/com/google/caja/plugin/caja.js View 1 chunk +136 lines, -0 lines 14 comments Download
A src/com/google/caja/plugin/host-iframe-final.js View 1 chunk +4 lines, -0 lines 2 comments Download
M src/com/google/caja/plugin/host-tools.js View 1 chunk +2 lines, -1 line 0 comments Download
A tests/com/google/caja/plugin/HostIframeTest.java View 1 chunk +51 lines, -0 lines 0 comments Download
A tests/com/google/caja/plugin/host-iframe-test.html View 1 chunk +39 lines, -0 lines 0 comments Download
A tests/com/google/caja/plugin/host-iframe-test.js View 1 chunk +102 lines, -0 lines 8 comments Download

Messages

Total messages: 7
kpreid2
15 years, 11 months ago (2010-07-12 22:49:01 UTC) #1
ihab.awad
LGTM++ http://codereview.appspot.com/1812042/diff/1/13 File build.xml (right): http://codereview.appspot.com/1812042/diff/1/13#newcode1158 build.xml:1158: <include name="host-iframe.html"/> Is "host-iframe.html" here correct? Where does ...
15 years, 11 months ago (2010-07-14 04:11:44 UTC) #2
kpreid2
http://codereview.appspot.com/1812042/diff/1/13 File build.xml (right): http://codereview.appspot.com/1812042/diff/1/13#newcode1158 build.xml:1158: <include name="host-iframe.html"/> On 2010/07/14 04:11:44, ihab.awad wrote: > Is ...
15 years, 11 months ago (2010-07-14 17:44:50 UTC) #3
ihab.awad
Still LGTM++ http://codereview.appspot.com/1812042/diff/1/6 File src/com/google/caja/plugin/caja.js (right): http://codereview.appspot.com/1812042/diff/1/6#newcode127 src/com/google/caja/plugin/caja.js:127: fscript.type = "text/javascript"; On 2010/07/14 17:44:50, kpreid2 ...
15 years, 11 months ago (2010-07-14 17:48:45 UTC) #4
kpreid1
I am currently working on testing after the requested changes and will commit shortly. On ...
15 years, 11 months ago (2010-07-14 18:35:39 UTC) #5
Jasvir
Using createAttribute and setAttributeNode instead of setAttribute work around the problems in IE and is ...
15 years, 11 months ago (2010-07-14 18:49:49 UTC) #6
ihab.awad
15 years, 11 months ago (2010-07-14 19:57:45 UTC) #7
On 2010/07/14 18:49:49, jasvir wrote:
> Using createAttribute and setAttributeNode instead of setAttribute work around
> the problems in IE and is cross-browser compatible.

In that case, the right thing would be to use setAttribute from here:

http://code.google.com/p/google-caja/source/browse/trunk/src/com/google/caja/...

which, fwiw, also helpfully lists all the hazards.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b