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

Issue 9979047: [APICHANGE] Replace NO_KNOWN_EXPLOIT_SPEC_VIOLATION with configurable list. (Closed)

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

Description

The notion of NO_KNOWN_EXPLOIT_SPEC_VIOLATION (NKESV) depends on the use being made of SES (for example, the cross-frame freeze bug is problematic only if you use multiple frames). Therefore, it should not be hardcoded in SES itself, but supplied by the system loading SES. * Remove NKESV and replace it with ses.acceptableProblems, which allows specifying 'permit' and 'doNotRepair' flags for problem IDs. 'permit' causes a problem's severity to not be counted in the max severity. 'doNotRepair' causes a problem to not be repaired at all; this new feature may be used to improve performance by disabling slow repairs that are not necessary for the application. * caja.js specially recognizes NKESV in its config and causes acceptance of the same list of problems to be accepted as NKESV did. For safety, and pending design, there is no way to configure the list of problems using caja.js. * Replace ses-iframe-init.js with a hook which runs on an iframe before the ses-single-frame.js is loaded; this also allows us to throw out the kludge where we set SES's max severity to NEW_SYMPTOM and check separately after (which incidentally reduces the hazard of issue 1758), and might make autoswitching faster. * Resurrect the "too slow" repair_PUSH_IGNORES_SEALED from r5238 and disable it using doNotRepair. Note that the repair will now be applied in Caja unless NKESV is requested. Impact: * Applications using SES directly must specify acceptableProblems rather than NKESV. Applications using caja.js are unaffected except that they will now get repair_PUSH_IGNORES_SEALED unless specifying NKESV. @r5442

Patch Set 1 #

Total comments: 6

Patch Set 2 : [APICHANGE] Replace NO_KNOWN_EXPLOIT_SPEC_VIOLATION with configuration. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+148 lines, -70 lines) Patch
M build.xml View 1 chunk +0 lines, -1 line 0 comments Download
M src/com/google/caja/plugin/caja.js View 1 8 chunks +39 lines, -12 lines 0 comments Download
D src/com/google/caja/plugin/ses-iframe-init.js View 1 chunk +0 lines, -35 lines 0 comments Download
M src/com/google/caja/ses/repairES5.js View 1 20 chunks +109 lines, -22 lines 0 comments Download

Messages

Total messages: 11
kpreid2
12 years, 9 months ago (2013-06-06 20:46:55 UTC) #1
felix8a
the code looks fine, but I'm wary that repairES5 has now lost the distinction between ...
12 years, 9 months ago (2013-06-06 21:33:59 UTC) #2
kpreid2
On 2013/06/06 21:33:59, felix8a wrote: > the code looks fine, but I'm wary that repairES5 ...
12 years, 9 months ago (2013-06-06 21:41:14 UTC) #3
MarkM
ses/* stuff LGTM https://codereview.appspot.com/9979047/diff/1/src/com/google/caja/ses/repairES5.js File src/com/google/caja/ses/repairES5.js (right): https://codereview.appspot.com/9979047/diff/1/src/com/google/caja/ses/repairES5.js#newcode240 src/com/google/caja/ses/repairES5.js:240: * An object whose keys are ...
12 years, 9 months ago (2013-06-06 21:59:52 UTC) #4
MarkM
On 2013/06/06 21:41:14, kpreid2 wrote: > On 2013/06/06 21:33:59, felix8a wrote: > > the code ...
12 years, 9 months ago (2013-06-06 22:02:54 UTC) #5
MarkM
On 2013/06/06 22:02:54, MarkM wrote: > On 2013/06/06 21:41:14, kpreid2 wrote: > > On 2013/06/06 ...
12 years, 9 months ago (2013-06-06 22:14:54 UTC) #6
kpreid2
On 2013/06/06 22:14:54, MarkM wrote: > Each of these description records should have links to ...
12 years, 9 months ago (2013-06-06 22:19:01 UTC) #7
MarkM
On 2013/06/06 22:19:01, kpreid2 wrote: > On 2013/06/06 22:14:54, MarkM wrote: > > Each of ...
12 years, 9 months ago (2013-06-06 22:48:04 UTC) #8
kpreid2
The notion of NO_KNOWN_EXPLOIT_SPEC_VIOLATION (NKESV) depends on the use being made of SES (for example, ...
12 years, 9 months ago (2013-06-07 19:43:05 UTC) #9
kpreid2
Significant changes to acceptableProblems; change description updated. See below for why. https://codereview.appspot.com/9979047/diff/1/src/com/google/caja/ses/repairES5.js File src/com/google/caja/ses/repairES5.js (right): ...
12 years, 9 months ago (2013-06-07 19:43:55 UTC) #10
MarkM
12 years, 9 months ago (2013-06-07 20:46:18 UTC) #11
A nice improvement. I also like the addition you made to the logging. The logged
output would look confusing otherwise, as the alleged max wouldn't have been the
max of the previously enumerated results.

LGTM
Sign in to reply to this message.

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