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

Issue 13178043: Scan with "plain" function calls and check for window leaks. (Closed)

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

Description

This exercises the cause of, and detects the symptom of, <https://code.google.com/p/google-caja/issues/detail?id=1789>, and so should catch future occurrences of similar bugs in unrelated objects. * Define a new type of invocation, PLAIN_CALL, which means exactly f() as opposed to Function.prototype.apply.call(f, undefined, []), which does not trigger the bug. In order to do varargs calls without using apply, we create and evaluate code containing a call with the needed number of arguments. * Perform at least one PLAIN_CALL on all functions whose toString is "[native code]". * Consider encountering the taming or guest frame's feral "window" object to be a problem. * Explicitly mark Function as expected to throw in ES5/3 (needed because the new plain-call support invokes it despite being G.none in functionArgs). @r5574

Patch Set 1 #

Total comments: 4

Patch Set 2 : Scan with "plain" function calls and check for window leaks. #

Total comments: 3

Patch Set 3 : Scan with "plain" function calls and check for window leaks. #

Patch Set 4 : Scan with "plain" function calls and check for window leaks. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+108 lines, -7 lines) Patch
M tests/com/google/caja/plugin/browser-test-case.js View 1 chunk +3 lines, -0 lines 0 comments Download
M tests/com/google/caja/plugin/test-scan-guest.js View 1 2 3 13 chunks +105 lines, -7 lines 0 comments Download

Messages

Total messages: 11
kpreid_google
12 years, 6 months ago (2013-08-22 19:41:10 UTC) #1
felix8a
https://codereview.appspot.com/13178043/diff/1/tests/com/google/caja/plugin/test-scan-guest.js File tests/com/google/caja/plugin/test-scan-guest.js (right): https://codereview.appspot.com/13178043/diff/1/tests/com/google/caja/plugin/test-scan-guest.js#newcode55 tests/com/google/caja/plugin/test-scan-guest.js:55: // ALso, Function.prototype a native function in the sense ...
12 years, 6 months ago (2013-08-22 19:54:46 UTC) #2
kpreid_google
This exercises the cause of, and detects the symptom of, <https://code.google.com/p/google-caja/issues/detail?id=1789>, and so should catch ...
12 years, 6 months ago (2013-08-22 20:23:24 UTC) #3
kpreid_google
New snapshot. https://codereview.appspot.com/13178043/diff/1/tests/com/google/caja/plugin/test-scan-guest.js File tests/com/google/caja/plugin/test-scan-guest.js (right): https://codereview.appspot.com/13178043/diff/1/tests/com/google/caja/plugin/test-scan-guest.js#newcode55 tests/com/google/caja/plugin/test-scan-guest.js:55: // ALso, Function.prototype a native function in ...
12 years, 6 months ago (2013-08-22 20:23:36 UTC) #4
felix8a
lgtm with the bugfix below https://codereview.appspot.com/13178043/diff/4001/tests/com/google/caja/plugin/test-scan-guest.js File tests/com/google/caja/plugin/test-scan-guest.js (right): https://codereview.appspot.com/13178043/diff/4001/tests/com/google/caja/plugin/test-scan-guest.js#newcode101 tests/com/google/caja/plugin/test-scan-guest.js:101: var args = null; ...
12 years, 6 months ago (2013-08-22 20:29:42 UTC) #5
kpreid_google
This exercises the cause of, and detects the symptom of, <https://code.google.com/p/google-caja/issues/detail?id=1789>, and so should catch ...
12 years, 6 months ago (2013-08-22 20:39:33 UTC) #6
kpreid_google
https://codereview.appspot.com/13178043/diff/4001/tests/com/google/caja/plugin/test-scan-guest.js File tests/com/google/caja/plugin/test-scan-guest.js (right): https://codereview.appspot.com/13178043/diff/4001/tests/com/google/caja/plugin/test-scan-guest.js#newcode101 tests/com/google/caja/plugin/test-scan-guest.js:101: var args = null; On 2013/08/22 20:29:42, felix8a wrote: ...
12 years, 6 months ago (2013-08-22 20:41:04 UTC) #7
felix8a
lgtm
12 years, 6 months ago (2013-08-22 20:54:52 UTC) #8
kpreid_google
This exercises the cause of, and detects the symptom of, <https://code.google.com/p/google-caja/issues/detail?id=1789>, and so should catch ...
12 years, 6 months ago (2013-08-22 21:24:04 UTC) #9
kpreid_google
https://codereview.appspot.com/13178043/diff/4001/tests/com/google/caja/plugin/test-scan-guest.js File tests/com/google/caja/plugin/test-scan-guest.js (right): https://codereview.appspot.com/13178043/diff/4001/tests/com/google/caja/plugin/test-scan-guest.js#newcode101 tests/com/google/caja/plugin/test-scan-guest.js:101: var args = null; On 2013/08/22 20:41:05, kpreid_google wrote: ...
12 years, 6 months ago (2013-08-22 21:26:12 UTC) #10
felix8a
12 years, 6 months ago (2013-08-22 21:41:46 UTC) #11
lgtm still
Sign in to reply to this message.

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