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

Issue 4530099: Fixes javascript URLs and inline event handlers (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years, 10 months ago by metaweta
Modified:
14 years, 10 months ago
CC:
google-caja-discuss_googlegroups.com
Base URL:
http://google-caja.googlecode.com/svn/trunk/
Visibility:
Public.

Description

Modifies caja.js to copy the taming frame's plugin_dispatchToHandler___ and plugin_dispatchEvent___ functions into the guest frame (which is necessary for inline event handlers like onclick="...") and into the window containing the dom elements (which is necessary for 'javascript:' URLs). Since we always use a single taming frame even when there are multiple guest frames, this fix should work in the presence of multiple cajoled pages.

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fixes javascript URLs and inline event handlers #

Total comments: 9

Patch Set 3 : Fixes javascript URLs and inline event handlers #

Unified diffs Side-by-side diffs Delta from patch set Stats (+94 lines, -78 lines) Patch
M src/com/google/caja/es53.js View 1 2 2 chunks +0 lines, -75 lines 0 comments Download
M src/com/google/caja/plugin/caja.js View 1 2 3 chunks +94 lines, -3 lines 0 comments Download

Messages

Total messages: 19
metaweta
14 years, 10 months ago (2011-06-02 17:18:50 UTC) #1
ihab.awad
We do not *always* use a single taming frame; that is just the typical use ...
14 years, 10 months ago (2011-06-02 17:20:58 UTC) #2
ihab.awad
http://codereview.appspot.com/4530099/diff/1/src/com/google/caja/plugin/caja.js File src/com/google/caja/plugin/caja.js (right): http://codereview.appspot.com/4530099/diff/1/src/com/google/caja/plugin/caja.js#newcode294 src/com/google/caja/plugin/caja.js:294: guestWindow.plugin_dispatchEvent___ = Why assign to guest window as well?
14 years, 10 months ago (2011-06-02 17:22:57 UTC) #3
metaweta
On 2011/06/02 17:20:58, ihab.awad wrote: > We do not *always* use a single taming frame; ...
14 years, 10 months ago (2011-06-02 17:33:35 UTC) #4
metaweta
http://codereview.appspot.com/4530099/diff/1/src/com/google/caja/plugin/caja.js File src/com/google/caja/plugin/caja.js (right): http://codereview.appspot.com/4530099/diff/1/src/com/google/caja/plugin/caja.js#newcode294 src/com/google/caja/plugin/caja.js:294: guestWindow.plugin_dispatchEvent___ = On 2011/06/02 17:22:57, ihab.awad wrote: > Why ...
14 years, 10 months ago (2011-06-02 17:33:50 UTC) #5
ihab.awad
On Thu, Jun 2, 2011 at 10:33 AM, <metaweta@gmail.com> wrote: > A lot harder than ...
14 years, 10 months ago (2011-06-02 17:49:13 UTC) #6
metaweta
On 2011/06/02 17:49:13, ihab.awad wrote: > How hard *is* it really to preserve the non-singleton ...
14 years, 10 months ago (2011-06-02 18:30:06 UTC) #7
ihab.awad
On Thu, Jun 2, 2011 at 11:30 AM, <metaweta@gmail.com> wrote: > Well, we already have ...
14 years, 10 months ago (2011-06-02 18:32:51 UTC) #8
metaweta
On 2011/06/02 18:32:51, ihab.awad wrote: > On Thu, Jun 2, 2011 at 11:30 AM, <https://mail.google.com/mail?view=cm&tf=0&ui=1&to=metaweta@gmail.com> ...
14 years, 10 months ago (2011-06-02 18:41:57 UTC) #9
ihab.awad
On Thu, Jun 2, 2011 at 11:41 AM, <metaweta@gmail.com> wrote: > So rather than expose ...
14 years, 10 months ago (2011-06-02 18:44:09 UTC) #10
metaweta
On 2011/06/02 18:44:09, ihab.awad wrote: > On Thu, Jun 2, 2011 at 11:41 AM, <https://mail.google.com/mail?view=cm&tf=0&ui=1&to=metaweta@gmail.com> ...
14 years, 10 months ago (2011-06-02 18:57:57 UTC) #11
MikeSamuel
Is there already something which maps from a module id to a frame for that ...
14 years, 10 months ago (2011-06-02 20:13:27 UTC) #12
metaweta
On Thu, Jun 2, 2011 at 1:13 PM, Mike Samuel <mikesamuel@gmail.com> wrote: > Is there ...
14 years, 10 months ago (2011-06-02 20:22:49 UTC) #13
ihab.awad
On Thu, Jun 2, 2011 at 1:18 PM, Mike Stay <metaweta@gmail.com> wrote: > Not that ...
14 years, 10 months ago (2011-06-02 20:46:16 UTC) #14
MikeSamuel
2011/6/2 <ihab.awad@gmail.com>: > > On Thu, Jun 2, 2011 at 1:18 PM, Mike Stay <metaweta@gmail.com> ...
14 years, 10 months ago (2011-06-02 21:03:53 UTC) #15
ihab.awad
http://codereview.appspot.com/4530099/diff/13001/src/com/google/caja/es53.js File src/com/google/caja/es53.js (right): http://codereview.appspot.com/4530099/diff/13001/src/com/google/caja/es53.js#newcode1949 src/com/google/caja/es53.js:1949: id = imports.id___ = +('' + Math.random()).substr(2); Doesn't this ...
14 years, 10 months ago (2011-06-07 01:46:37 UTC) #16
metaweta
http://codereview.appspot.com/4530099/diff/13001/src/com/google/caja/es53.js File src/com/google/caja/es53.js (right): http://codereview.appspot.com/4530099/diff/13001/src/com/google/caja/es53.js#newcode1949 src/com/google/caja/es53.js:1949: id = imports.id___ = +('' + Math.random()).substr(2); On 2011/06/07 ...
14 years, 10 months ago (2011-06-07 02:56:22 UTC) #17
ihab.awad
http://codereview.appspot.com/4530099/diff/13001/src/com/google/caja/plugin/caja.js File src/com/google/caja/plugin/caja.js (right): http://codereview.appspot.com/4530099/diff/13001/src/com/google/caja/plugin/caja.js#newcode292 src/com/google/caja/plugin/caja.js:292: imports.id___ = +('' + Math.random()).substr(2); So the problem is ...
14 years, 10 months ago (2011-06-07 03:53:07 UTC) #18
ihab.awad
14 years, 10 months ago (2011-06-10 03:43:35 UTC) #19
lgtm
Sign in to reply to this message.

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