Changeset 147149 in webkit
- Timestamp:
- Mar 28, 2013 1:08:36 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r147148 r147149 1 2013-03-28 Arnaud Renevier <a.renevier@sisa.samsung.com> 2 3 exceptions are not checked after toInt32 calls in bindings. 4 https://bugs.webkit.org/show_bug.cgi?id=113218 5 6 Reviewed by Kentaro Hara. 7 8 * platform/chromium/TestExpectations: Enable fast/dom/exception-in-binding.html 9 1 10 2013-03-28 Roger Fong <roger_fong@apple.com> 2 11 -
trunk/LayoutTests/platform/chromium/TestExpectations
r147123 r147149 3801 3801 webkit.org/b/113114 media/video-controls-captions.html [ Timeout ] 3802 3802 3803 webkit.org/b/113219 fast/dom/exception-in-binding.html [ Failure ]3804 3805 3803 webkit.org/b/113474 http/tests/cache/subresource-failover-to-network.html [ Pass Failure ] 3806 3804 -
trunk/Source/WebCore/ChangeLog
r147145 r147149 1 2013-03-28 Arnaud Renevier <a.renevier@sisa.samsung.com> 2 3 exceptions are not checked after toInt32 calls in bindings. 4 https://bugs.webkit.org/show_bug.cgi?id=113218 5 6 Reviewed by Kentaro Hara. 7 8 In attribute setter, wrap JSValue to native value conversion in a try 9 catch block. 10 11 Define a new macro binding: V8TRYCATCH_VOID 12 13 No new tests: covered by fast/dom/exception-in-binding.html 14 15 * bindings/scripts/CodeGeneratorV8.pm: 16 (GenerateNormalAttrSetter): 17 * bindings/v8/V8BindingMacros.h: 18 (WebCore): 19 1 20 2013-03-28 ChangSeok Oh <changseok.oh@collabora.com> 2 21 -
trunk/Source/WebCore/bindings/scripts/CodeGeneratorV8.pm
r147041 r147149 1399 1399 push(@implContentInternals, " V8TRYCATCH_WITH_TYPECHECK_VOID($nativeType, v, $value, info.GetIsolate());\n"); 1400 1400 } else { 1401 push(@implContentInternals, " $nativeType v = $value;\n");1401 push(@implContentInternals, " V8TRYCATCH_VOID($nativeType, v, $value);\n"); 1402 1402 } 1403 1403 } -
trunk/Source/WebCore/bindings/v8/V8BindingMacros.h
r145929 r147149 41 41 if (block.HasCaught()) \ 42 42 return block.ReThrow(); \ 43 } 44 45 #define V8TRYCATCH_VOID(type, var, value) \ 46 type var; \ 47 { \ 48 v8::TryCatch block; \ 49 var = (value); \ 50 if (block.HasCaught()) { \ 51 block.ReThrow(); \ 52 return; \ 53 } \ 43 54 } 44 55
Note: See TracChangeset
for help on using the changeset viewer.