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

Issue 4798044: Defend <script> elements against setting .innerHTML and .innerText. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 10 months ago by kpreid2
Modified:
12 years, 9 months ago
Reviewers:
MikeSamuel, Jasvir
CC:
caja-discuss-undisclosed_googlegroups.com
Base URL:
http://google-caja.googlecode.com/svn/trunk/
Visibility:
Public.

Description

Change TameElement's accessors for innerHTML and innerText to test the childrenEditable___ flag rather than editable___. Also reenable as best I could the tests which should have caught this bug; they are now in es53-test-domita-special rather than es53-test-domita-scripts-guest where they could not work (if they weren't commented out). These tests were commented out because "this test often causes ie6/ie7 to crash"; I suggest that in the future we handle this by disabling them only if we have this problem while testing on IE, rather than letting these hazards go unchecked in our automated (Firefox) tests.

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+190 lines, -163 lines) Patch
M src/com/google/caja/plugin/domita.js View 2 chunks +10 lines, -2 lines 0 comments Download
M tests/com/google/caja/plugin/ES53BrowserTest.java View 1 chunk +0 lines, -4 lines 0 comments Download
M tests/com/google/caja/plugin/es53-test-domita-dom-guest.html View 1 chunk +54 lines, -0 lines 0 comments Download
D tests/com/google/caja/plugin/es53-test-domita-scripts-guest.html View 1 chunk +0 lines, -143 lines 0 comments Download
M tests/com/google/caja/plugin/es53-test-domita-special.js View 2 chunks +48 lines, -2 lines 0 comments Download
M tests/com/google/caja/plugin/es53-test-domita-special-guest.html View 1 chunk +77 lines, -1 line 0 comments Download
M tests/com/google/caja/plugin/whitelisted_script.js View 1 chunk +1 line, -11 lines 0 comments Download

Messages

Total messages: 2
kpreid2
12 years, 10 months ago (2011-07-20 21:31:22 UTC) #1
MikeSamuel
12 years, 10 months ago (2011-07-21 19:34:10 UTC) #2
On 2011/07/20 21:31:22, kpreid2 wrote:

LGTM
Sign in to reply to this message.

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