[Webkit-unassigned] [Bug 48337] V8 bindings report readonly idl attributes as writable

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Oct 26 11:40:00 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=48337





--- Comment #1 from anton muhin <antonm at chromium.org>  2010-10-26 11:40:00 PST ---
Rico did a lot of work on getOwnPropertyDescriptor, so he is probably the best guy to solve it.

Alas, we have two options to control not-writeability of API callbacks (currentTarget is API callback that is thing like getter where getter is implemented in C++): property attributes and absence of a setter.

Currently v8 believes into attributes (see src/runtime.cc  ln. 77 as of bleeding edge at 63542) while DOM bindings use missing setter (see third_party/WebKit/WebCore/bindings/scripts/CodeGeneratorV8.pm, ln. 1535 as of @70305).

If memory serves, v8 treats callback properties without setter as readonly anyway (at least it ignores any attempts to write, but we need to double check how it correlates with const), so I think the problem should be fixed on v8 part (checking if a setter is missing).

Rico, any thoughts?

Erik, this issue doesn't look of very high priority and could probably wait a bit (Rico is on paternity leave).

And I cannot just cc Rico, so I am forwarding this bug to him cc'ing this bug cc list instead.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list