Case: window.screen.__defineGetter__("width", function(){return "foo";}); Firefox allows defining a getter on a readonly property, WebKit ignores it.
Created attachment 13106 [details] test case
See also: bug 18737.
*** Bug 26127 has been marked as a duplicate of this bug. ***
(In reply to comment #3) > *** Bug 26127 has been marked as a duplicate of this bug. *** As I described under bug 26127, this isn't limited to "read-only" properties as described here, but rather getters and setters on any native DOM property. And this contradicts the behavior of Firefox, IE8 and even Chrome.
I've confirmed this behavior as well. Any fix to this would be most welcome! :-) Cheers, - Bill
The behaviour of __defineGetter__ is correct here, we should not be able to redefine non-configurable properties. The problem is likely that these properties are directly on the instance of the object, rather than accessors on the prototype. Per WebIDL, this is a bug in our implementation. *** This bug has been marked as a duplicate of bug 49739 ***