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

Issue 8632047: Fix test-of-repair for FREEZING_BREAKS_PROTOTYPES from r5359. (Closed)

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

Description

test_FREEZING_BREAKS_PROTOTYPES correctly tested for the problem, but did it in a frame other than the repaired one, so it failed to confirm the repair was successful. Unfortunately, there is no way to do this accurately at repairES5 time since the problem is only exhibited once Object.prototype is frozen. Instead, * The test applies the repair to the throwaway frame before testing, if and only if the repair has already been applied to this frame, thus satisfying the test-and-repair logic. * startSES, as a special case, executes the test after Object.prototype is frozen, and the test then actually tests the SES frame, thus ensuring that our repair worked. The whole thing is a horrible kludge and we should rip it out as soon as we no longer need to support repairing this problem. @r5360

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+53 lines, -12 lines) Patch
M src/com/google/caja/ses/repairES5.js View 4 chunks +36 lines, -12 lines 0 comments Download
M src/com/google/caja/ses/startSES.js View 1 chunk +17 lines, -0 lines 0 comments Download

Messages

Total messages: 11
kpreid2
12 years, 11 months ago (2013-04-17 20:49:11 UTC) #1
MarkM
Please add a secondary reviewer.
12 years, 11 months ago (2013-04-17 20:52:54 UTC) #2
ihab.awad
I'll take it.
12 years, 11 months ago (2013-04-17 20:53:14 UTC) #3
MarkM
What actually happens when this is run on the Chrome where explicit.html fails?
12 years, 11 months ago (2013-04-17 20:54:58 UTC) #4
kpreid2
On 2013/04/17 20:54:58, MarkM wrote: > What actually happens when this is run on the ...
12 years, 11 months ago (2013-04-17 20:59:00 UTC) #5
ihab.awad
lgtm lktm (looks kludgey to me)? Thanks for fixing!
12 years, 11 months ago (2013-04-17 21:04:17 UTC) #6
MarkM
I won't have time to review this till tonight. I'm happy for this to commit ...
12 years, 11 months ago (2013-04-17 21:14:50 UTC) #7
MarkM
Correction: I might not get to this till tomorrow night.
12 years, 11 months ago (2013-04-17 21:42:30 UTC) #8
MarkM
Once M27 is repaired, the really kludgy parts of this will be backed out, right? ...
12 years, 10 months ago (2013-04-18 22:34:40 UTC) #9
kpreid2
On 2013/04/18 22:34:40, MarkM wrote: > Once M27 is repaired, the really kludgy parts of ...
12 years, 10 months ago (2013-04-18 22:40:35 UTC) #10
MarkM
12 years, 10 months ago (2013-04-18 22:49:10 UTC) #11
Message was sent while issue was closed.
Ok, will do.
Sign in to reply to this message.

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