RESOLVED FIXED 91924
[JSC] REGRESSION(r122912): CodeGeneratorJS.pm should not implicitly assume ScriptExecutionContext for static attributes
https://bugs.webkit.org/show_bug.cgi?id=91924
Summary [JSC] REGRESSION(r122912): CodeGeneratorJS.pm should not implicitly assume Sc...
Kentaro Hara
Reported 2012-07-21 03:18:43 PDT
r122912 implemented static attributes in CodeGeneratorJS.pm. The generated code implicitly assumes that a static attribute always requires ScriptExecutionContext, which is wrong. If ScriptExecutionContext is needed, we should specify [CallWith=ScriptExecutionContext]. I will upload a patch after bug 91764 is fixed.
Attachments
Patch (12.62 KB, patch)
2012-07-23 19:51 PDT, Kentaro Hara
haraken: commit-queue-
fix indentation, patch for landing (27.25 KB, patch)
2012-07-23 23:04 PDT, Kentaro Hara
no flags
Kentaro Hara
Comment 1 2012-07-23 19:51:25 PDT
Kentaro Hara
Comment 2 2012-07-23 19:54:02 PDT
Comment on attachment 153942 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=153942&action=review > Source/WebCore/bindings/scripts/CodeGeneratorJS.pm:-1887 > } > - } Indentation is wrong here. Let me fix it in a follow-up patch (because the indentation fix will mess up this patch). > Source/WebCore/bindings/scripts/test/JS/JSTestInterface.cpp:248 > + JSValue result = jsNumber(TestSupplemental::supplementalStaticReadOnlyAttr(impl)); Passing 'impl' is wrong. This will be fixed in bug 91925.
Adam Barth
Comment 3 2012-07-23 22:58:32 PDT
Thanks for keeping the diff clean. rs=me to fix the indent.
Kentaro Hara
Comment 4 2012-07-23 23:04:23 PDT
Created attachment 153967 [details] fix indentation, patch for landing
WebKit Review Bot
Comment 5 2012-07-24 00:21:45 PDT
Comment on attachment 153967 [details] fix indentation, patch for landing Clearing flags on attachment: 153967 Committed r123433: <http://trac.webkit.org/changeset/123433>
Jon Lee
Comment 6 2012-07-24 12:15:12 PDT
This patch does not appropriately call the static attribute function with ScriptExecutionContext if [CallWith=ScriptExecutionContext] is specified.
Jon Lee
Comment 7 2012-07-24 12:17:35 PDT
(In reply to comment #6) > This patch does not appropriately call the static attribute function with ScriptExecutionContext if [CallWith=ScriptExecutionContext] is specified. Sorry I misspoke, I put the attribute in the wrong place.
Radar WebKit Bug Importer
Comment 8 2012-07-24 12:52:41 PDT
Note You need to log in before you can comment on or make changes to this bug.