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

Issue 10882043: Whitelist <video> and <audio> content. (Closed)

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

Description

* Add AUDIO::SRC and VIDEO::SRC to whitelist. * Tame HTMLMediaElement, HTMLAudioElement, and HTMLVideoElement. * Add Audio ctor. Supporting changes: * The PT.filter(false, identity, true, identity) pattern shall now be known as NP_writePolicyOnly, with comments. More refactoring to come. * Slightly generalize handling of Image and Option ctors. @r5470

Patch Set 1 #

Total comments: 10

Patch Set 2 : Whitelist <video> and <audio> content. #

Patch Set 3 : Whitelist <video> and <audio> content. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+164 lines, -44 lines) Patch
M src/com/google/caja/lang/html/html5-attributes-whitelist.json View 1 2 chunks +2 lines, -4 lines 0 comments Download
M src/com/google/caja/plugin/domado.js View 1 2 10 chunks +133 lines, -37 lines 0 comments Download
M tests/com/google/caja/plugin/es53-test-domado-dom-guest.html View 1 2 3 chunks +16 lines, -0 lines 0 comments Download
M tests/com/google/caja/plugin/es53-test-scan-guest.js View 1 5 chunks +13 lines, -3 lines 0 comments Download

Messages

Total messages: 5
kpreid2
12 years, 8 months ago (2013-07-02 18:45:25 UTC) #1
ihab.awad
lgtm++ If there is a way to add actual test of the elements, that would ...
12 years, 8 months ago (2013-07-02 19:41:23 UTC) #2
kpreid2
* Add AUDIO::SRC and VIDEO::SRC to whitelist. * Tame HTMLMediaElement, HTMLAudioElement, and HTMLVideoElement. * Add ...
12 years, 8 months ago (2013-07-02 20:12:02 UTC) #3
kpreid2
https://codereview.appspot.com/10882043/diff/1/src/com/google/caja/plugin/domado.js File src/com/google/caja/plugin/domado.js (right): https://codereview.appspot.com/10882043/diff/1/src/com/google/caja/plugin/domado.js#newcode4427 src/com/google/caja/plugin/domado.js:4427: domClass: 'HTMLAudioElement' On 2013/07/02 19:41:23, ihab.awad wrote: > Is ...
12 years, 8 months ago (2013-07-02 20:12:07 UTC) #4
kpreid2
12 years, 8 months ago (2013-07-02 21:05:39 UTC) #5
* Add AUDIO::SRC and VIDEO::SRC to whitelist.
* Tame HTMLMediaElement, HTMLAudioElement, and HTMLVideoElement.
* Add Audio ctor.

Supporting changes:
* The PT.filter(false, identity, true, identity) pattern shall now be
  known as NP_writePolicyOnly, with comments. More refactoring to come.
* Slightly generalize handling of Image and Option ctors.
Sign in to reply to this message.

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